ADS1xxx-Series-ADC-Libraries / ADS1255-ADS1256

Arduino Library for Texas Instrument ADS1256 Very Low Noise, 24-Bit Analog-to-Digital Converter
MIT License
24 stars 11 forks source link

Wiring help for Diymore ESP32 #11

Closed ChrGri closed 1 year ago

ChrGri commented 1 year ago

Thank you for this awesome library. Unfortunately, I'm new to ESP32 and need some wiring help.

I do own this ESP32 breadboard: https://www.amazon.de/dp/B09Z6RLS7R?psc=1&ref=ppx_yo2ov_dt_b_product_details

61h+tKEZVAL _AC_SX679_

I tried to append the original wiring table (first two columns) from the markdown with the pins on my board as follows:

ADS Board ESP32 WROOM GPIOs on Diymore ESP32 board
* 5V 5V (vin) 5V
* GND GND GND
* SCLK pin D (HSCK) GPIO18
* DIN pin D (HMOSI) GPIO23
* DOUT pin D (HMISO) GPIO19
* DRDY pin D GIPO17
* CS pin D (HCS) GPIO5
* POWN 5V or 3V3 3V3

Can someone check and help me please?

BR Chris

ChrGri commented 1 year ago

Never mind, got it running with the GPIOs as mentioned. However, SPI does not work initially. Had to modify the ADS1256 source as described here: https://github.com/ADS1xxx-Series-ADC-Libraries/ADS1255-ADS1256/issues/8

In the "ADS1256.h" also the line

elif defined(ARDUINO_ARCH_ESP32)

had to modified to -->

elif defined(ARDUINO_ARCH_ESP32) || defined(ESP32)