Hi everybody,
in my recent project I use a ADS1115 16bit 4-Ch ADC with I2C-interface connected to an ESP32.
TI’s ADS1115 is a 16-bit, 860-SPS, 4-channel, delta-sigma ADC with PGA, oscillator, VREF, comparator and I2C. Find parameters, ordering and quality information
In an unregular manner the ADC reads the maximum-voltage (6141 mV) and then hangs on it.
When I measure with a DMM the DMM shows the expected value (something around 1,3V)
So what could cause the ADC to "hang"?
As a workaround: is there any possability to "reset" this ADC?
To make it work again.
The really ugly workaround I'm using know is to execute ESP.restart();
I would be very thankful if somebody can give hints or tips
best regards Stefan
Sounds like an intermittent connection. If it is on a breadboard, that is always something to suspect. Also check the solder connections to the module header pins.
I've never seen that happen with the ADS1115, and I've used one to collect data on four channels for days at a time.
Hi @StefanL38
I don't know if it's the same as your problem, but as I saw this topic I decided to post it.
opened 07:59PM - 11 Sep 20 UTC
Awaiting Response
## Environment
- Development Kit: ESP32-DevKitC
- Kit version: … v4
- Module or chip used: ESP32-WROOM-32D
- IDF version: 4.1
- Build System: CMake
- Compiler version
- Operating System: Windows
- environment type: ESP Command Prompt
- Using an IDE?: Eclipse IDE Version: 2020-06 (4.16.0)
- Power Supply: USB | labratory power supply for the potentiometer with 1.0 V and 0.01A
## Problem Description
Dear Ladies and Gentleman,
I am currently getting started with the ESP32. So I got myself an ESP32 DevKitC V4 Board. I wanted to try the analog-to-digital-converter, and somehow my ESP32 got completely wasted.
After uploading the unchanged sketch from https://github.com/espressif/esp-idf/tree/c77c4cc/examples/peripherals/adc, the values were pretty switching every second. So I connected the GPIO34 to ground, the values got to 0, the expected Value. After that I connected GPIO34 to the 3.3V and got the expected value of 4095.
So I wanted to start to measure something in between and read the value of a potentiometer. So I connected the middle Pin of the 10kOhm Potentiometer to the GPIO34, used an 1.00V and 0,01A labratory power supply for the rest of the potentiometer. The ESP32 immediately lost the connection, the terminal in eclipse closed.
Right now the esp32 is getting really hot when connected to the PC. I can't flash any new programs to the ESP32. It looks like it is trapped in something like a bootloop.
I have alread tried the suggested solutions in this github: https://github.com/espressif/arduino-esp32/issues/2630.
I have already tried to flash the ESP32 with Arduino, tried to remove the flash with esptool.py or idf.py, nothing works. I can't even connect to the board.
Does anybody have an idea or a solution proposal? I guess this couldn't be an electrical issue, the potentiometer resistance is almost like the maufacturer's information. In the minimum position the resistance is about 0 Ohm, in the maximum position the resistance is about 10.000 Ohm.
Thanks in advance,
Philipp
### Expected Behavior
Printing out the different ADC-Values in the serial monitor.
### Actual Behavior
ESP32-Module not usable anymore. The Chip itself get's hot, no flashing possible.
### Steps to reproduce
1. Flash the peripherals/adc1 without changing a single line of Code.
2. Power the potentiometer with the labratory power supply. The position of the potentiometer was almost in the middle between the maximum positions.
3. Connect the middle wire of a 10 kOhm potentiometer to GPIO34.
https://i1.wp.com/randomnerdtutorials.com/wp-content/uploads/2019/05/Analog_Input_Potentiometer-700px.jpg?ssl=1
### Code to reproduce this issue
https://github.com/espressif/esp-idf/tree/c77c4cc/examples/peripherals/adc
## Debug Logs
## Other items if possible
RV mineirin
system
Closed
November 30, 2021, 9:00pm
4
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.