ESP32 SPI communication with ADS1292R

Hi All,
I am trying to use SPI of ESP32 with ADS1292r, but it is not working. I am trying to read the chip id of ADS1292r, but it always reads zero. I tried with baud rates of 9600 and 57600 in the serial.begin(), but it did not work.
Could anyone please help.

Regards,
Nitin

What does serial.begin() have to do with SPI?

Post a wiring diagram, an image of your setup, and the code in code tags.

Hi,
The following is my code for the ESP32 with ADS1292r breakout kit.

#include "protocentralAds1292r.h"
//#include "BLE2904.h"
#include "SPI.h"

// See the following for generating UUIDs:
// https://www.uuidgenerator.net/

#define SERVICE_UUID "4fafc201-1fb5-459e-8fcc-c5c9c331914b" //creating the service UUID
#define CHARACTERISTIC_UUID "beb5483e-36e1-4688-b7f5-ea07361b26a8" //creating the characteristics UUID

#define ESP32_V_SPI_CS_PIN 5
#define ADS1292R_PWRDN_PIN 2
#define ADS1292R_START_PIN 15

char Reg_read_data;

#define LED_BUILTIN 2 //pin with LED to turn on when BT connected

ads1292OutputValues* ADS1292RegValues;
ads1292r ECG_SENSOR_ADS1292R;
/-----------------Function to detect Lead off condition in ECG.----------------------/
bool leadoff_detect(bool LEADOFF_DETECT){

/* Setup for leads off detection for RLD and Lead sense*/

// ECG_SENSOR_ADS1292R.getAds1292EcgAndRespirationSamples(DATA_READY,CS,ADS1292RegValues);
// return ADS1292RegValues->leadoffDetected;
}
/------------------------------------------------------------------------------------/

/------------------------Setup or main function.---------------------------/
void setup() {

SPI.begin();

Serial.begin(9600); // define the baud rate of ESP32

/-------------------------------------------------------------------------------------------/
/-------------Setting up the Sensor------------------------/

ECG_SENSOR_ADS1292R.ads1292Reset(ADS1292R_PWRDN_PIN);
delay(1000);
ECG_SENSOR_ADS1292R.ads1292Init(ESP32_V_SPI_CS_PIN,ADS1292R_PWRDN_PIN,ADS1292R_START_PIN);
delay(1000);
Serial.println("ECG sensor initialised.");

//For Debug purpose only.
//Reading the Chip ID
ECG_SENSOR_ADS1292R.ads1292RegRead(ESP32_V_SPI_CS_PIN,ADS1292_REG_ID,Reg_read_data);
Serial.println("CHIP ID is:");
Serial.println(Reg_read_data,HEX);
}

code in code tags? Good luck.

Hi Idahowalker,
I am a newbie to Arduino, could you please let me know where is the code tags or how do I access them.

Regards,
Nitin

In your post #3.

Edit the post and select (highlight) just the code, exclude the top comments, then click the toolbar icon "</>". That should do it.