[ESP32 Dev Kit] ADC pin readings always HIGH with external battery connected
Posted: Sun Mar 24, 2024 6:33 pm
Hi everyone, this is my first time working with an ESP32 Dev Kit and I hope someone can solve my mystery.
I have this ESP32 board powered by a 3.7V LiPo battery through Vin. The battery is plugged in an Adafruit charging circuit.
Put aside the battery life and voltage concerns etc., I'm trying to use ADC pin 35 to measure the battery voltage status at the same time.
The battery voltage is stepped down by using a voltage divider of 27k and 100k resistors.
Say now my battery voltage is 3.7V, and the stepped down voltage to be measured by PIN 35 is 2.9V.
- When I tested this design by connecting ESP32 to Arduino through USB, and the tuned down voltage of battery to PIN 35, it measures the voltage 2.9V correctly.
- When I tested it by connecting ESP32 to battery, and the tuned down voltage to PIN 35, the voltage read by PIN 35 immediately goes HIGH and stays HIGH.
- I then checked battery voltage at PIN35 using DMM and it shows the actual stepped down voltage which was still 2.9V. However it shows HIGH when I tried to read the PIN status wirelessly...
I've checked common ground - they are all soldered together.
Checked wiring multiple times.
Continuity checked multiple times.
Tried with PIN 34 but same problem.
Any help would be much appreciated. Thank you!
- TJ
I have this ESP32 board powered by a 3.7V LiPo battery through Vin. The battery is plugged in an Adafruit charging circuit.
Put aside the battery life and voltage concerns etc., I'm trying to use ADC pin 35 to measure the battery voltage status at the same time.
The battery voltage is stepped down by using a voltage divider of 27k and 100k resistors.
Say now my battery voltage is 3.7V, and the stepped down voltage to be measured by PIN 35 is 2.9V.
- When I tested this design by connecting ESP32 to Arduino through USB, and the tuned down voltage of battery to PIN 35, it measures the voltage 2.9V correctly.
- When I tested it by connecting ESP32 to battery, and the tuned down voltage to PIN 35, the voltage read by PIN 35 immediately goes HIGH and stays HIGH.
- I then checked battery voltage at PIN35 using DMM and it shows the actual stepped down voltage which was still 2.9V. However it shows HIGH when I tried to read the PIN status wirelessly...
I've checked common ground - they are all soldered together.
Checked wiring multiple times.
Continuity checked multiple times.
Tried with PIN 34 but same problem.
Any help would be much appreciated. Thank you!
- TJ