ESP32 and ADS111x Analog to Digital converter fail

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
stefan.erni
Valued Contributor
Posts: 849
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

ESP32 and ADS111x Analog to Digital converter fail

Post by stefan.erni »

Hi to All

With ESP32 and ADS111x I get a fail.

And there is a pin RDY/ALRT but I just have a QWII connector with SDA and SCL.

https://www.adafruit.com/product/1085
2024-07-10_16-28-22.PNG
2024-07-10_16-28-22.PNG (866.84 KiB) Viewed 3183 times
ADS1115_test1.fcfx
(8.57 KiB) Downloaded 238 times

stefan.erni
Valued Contributor
Posts: 849
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Re: ESP32 and ADS111x Analog to Digital converter fail

Post by stefan.erni »

Hi Ben

At the moment I cannot compile with the ESP32 when I insert the ADS1115.

If you have to change something anyway
Could you also add the read/write registers on this opportunity?

2024-07-16_08-43-29.PNG
2024-07-16_08-43-29.PNG (33.72 KiB) Viewed 2202 times


I have found a couple of other boards and will also test the Grove board with the screws
https://www.digikey.ch/de/products/det ... /12340170
2024-07-16_08-32-31.PNG
2024-07-16_08-32-31.PNG (549.4 KiB) Viewed 2202 times
https://www.digikey.ch/de/products/det ... 3/9356341
2024-07-16_08-35-59.PNG
2024-07-16_08-35-59.PNG (211.05 KiB) Viewed 2202 times

https://www.digikey.ch/de/products/deta ... 5/21720386
2024-07-16_08-40-57.PNG
2024-07-16_08-40-57.PNG (995.4 KiB) Viewed 2202 times

BenR
Matrix Staff
Posts: 1882
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 484 times
Been thanked: 661 times

Re: ESP32 and ADS111x Analog to Digital converter fail

Post by BenR »

Hello,

Many thanks for letting us know, I've solved the problem for you and also updated the source code here on the wiki if you need to do a further edit to the component.
https://www.flowcode.co.uk/wiki/index.p ... log_Input)

I couldn't expose the read/write register macros as the component isn't organised like this at the moment.

stefan.erni
Valued Contributor
Posts: 849
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Re: ESP32 and ADS111x Analog to Digital converter fail

Post by stefan.erni »

Hi Ben

Perfect! It's working fine? Thank you.

But..... I have to choose a pin for RDY/ALRT.
If I choose unconnected it's give a pop up warning and it's compiling but not working in hardware



This is my Testprogram:
2024-07-16_12-12-45.PNG
2024-07-16_12-12-45.PNG (69.87 KiB) Viewed 2187 times
and the nice result, I set it to gnd and later to 3.3Volt and show it in a terminal App
2024-07-16_12-10-06.PNG
2024-07-16_12-10-06.PNG (158.62 KiB) Viewed 2187 times

Post Reply