CuriousScientist0 / ADS1256

An Arduino-compatible library for the ADS1256 24-bit analog-to-digital converter.
MIT License
26 stars 9 forks source link

Read register with R command is not working in esp32 (Always showing 81) #3

Closed srisankaran closed 7 months ago

CuriousScientist0 commented 7 months ago

You did not state which ESP board... Also, do you change the register before reading it? If you don't write something to the register, it will always return the same value. Also, check your wiring and circuitry. I remember your nickname from YouTube and based on your question there, I am not 100% sure that you do everything correctly (no offence). I have an ESP32-WROOM-32 in front of me as I am writing this reply, and I can read and write any registers and it works perfectly.

srisankaran commented 7 months ago

As I mentioned earlier, I am a college student trying to learn this by watching your YouTube videos. I genuinely try to do everything correctly and to the best of my knowledge. I am using ESP32-WROOM-32. I haven't changed the value of the register, so shouldn't it give the current default register value?

CuriousScientist0 commented 7 months ago

I am still convinced that there's something wrong on your side. I have the circuit in front of me and it works well. Incorrect wiring, using the incorrect SPI (especially on an ESP32) and so on... Since you haven't provided any details, no images, no schematics, I won't be able to help.