NODEMCU ESP8266 interface with Protocentral ADS1293 3-channel, 24-bit ECG Breakout Board

surendra gupta's picture

Offline

Joined: Jun 26, 2021

Replies: 3
NODEMCU ESP8266 interface with Protocentral ADS1293 3-channel, 24-bit ECG Breakout Board
June 26, 2021 - 3:22pm

How to interface NODEMCU ESP8266 interface with Protocentral ADS1293 3-channel, 24-bit ECG Breakout Board?

surendra gupta's picture

Offline

Joined: Jun 26, 2021

Replies: 3

How to interface NODEMCU ESP8266 interface with Protocentral ADS1293 3-channel, 24-bit ECG Breakout Board

Sourav Gupta's picture

Offline

Joined: Feb 12, 2018

Replies: 632

It is spi based protocol. You could send and receive commands over SPI. Check the datasheet for commands.

surendra gupta's picture

Offline

Joined: Jun 26, 2021

Replies: 3

Dear Sir, 

Thank for the response. I have used SPI protocol and connected the NODEMCU and Protocentral board accordingly. However, I am not receveing any signal in the serial monitor. Would you please suggest how to make it to work?

Sourav Gupta's picture

Offline

Joined: Feb 12, 2018

Replies: 632

Please share the code.

surendra gupta's picture

Offline

Joined: Jun 26, 2021

Replies: 3

Dear Sir, 

Below are the pin connections and code I have used. The protocentral library files are available at this link (https://github.com/Protocentral/protocentral-ads1293-arduino)

 

Pin        Protocentral board(ads1293)    ESP8266   

1                MISO                                 D6 (HMSIO) (GPIO12)

2               MOSI                                  D7 (HMOSI) (GPIO13)

3               SCK                                    D5 (HSCLK) (GPIO14)

4               CS                                       D8 (HCS) (GPIO15)

5               DRDY                                D4 (GPIO2)    

6              VDD                                    VIN

7               GND                                  GND

 

#include "protocentral_ads1293.h"

#include <SPI.h>

 

#define DRDY_PIN                02

#define CS_PIN                  15

 

ads1293 ADS1293(DRDY_PIN, CS_PIN);

bool drdyIntFlag = false;

 

void setup() {

  Serial.begin(9600);

  SPI.begin();

  ADS1293.ads1293Begin3LeadECG();

  delay(10);

}

void loop() {

 

  if (digitalRead(ADS1293.drdyPin) == false){

    drdyIntFlag = false;

    int32_t ecg = ADS1293.getECGdata(1);

 

    Serial.println(ecg);

  }

}