ESP32 S2 issue reading battery

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
superg2
 
Posts: 41
Joined: Wed Aug 31, 2022 12:27 pm

ESP32 S2 issue reading battery

Post by superg2 »

I'm trying to use the build-in battery monitor on the ESP32 S2, I'm using the sample code and receiving the following error
No I2C device at address: 0xb

Sample code
https://github.com/adafruit/Adafruit_Ci ... pletest.py

I also added the following code to the sample and does not list anything 0xb. It does find my GPS board, 0x10

while not i2c.try_lock():
pass
running = True
try:
while running:
print(
"I2C addresses found:",
[hex(device_address) for device_address in i2c.scan()],
)
# time.sleep(2)
running = False

finally: # unlock the i2c bus when ctrl-c'ing out of the loop
i2c.unlock()

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: ESP32 S2 issue reading battery

Post by adafruit_support_mike »

Try the CircuitPython code from this part of the tutorial instead:

https://learn.adafruit.com/adafruit-esp ... ry-3122383

User avatar
superg2
 
Posts: 41
Joined: Wed Aug 31, 2022 12:27 pm

Re: ESP32 S2 issue reading battery

Post by superg2 »

same result

This is the board I'm using.
https://www.adafruit.com/product/5000

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: ESP32 S2 issue reading battery

Post by adafruit_support_mike »

Thank you for trying the tutorial code.

Post a photo showing your the component side of your Feather please. Let's see if there are any visible hardware issues. 800x600 images usually work best.

User avatar
superg2
 
Posts: 41
Joined: Wed Aug 31, 2022 12:27 pm

Re: ESP32 S2 issue reading battery

Post by superg2 »

Attached is the photo of the board
Attachments
IMG_4263.jpeg
IMG_4263.jpeg (185.14 KiB) Viewed 156 times

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: ESP32 S2 issue reading battery

Post by adafruit_support_mike »

Thank you. Nothing is missing or out of place.

As a final sanity check, do any other I2C devices work with the Feather?

User avatar
superg2
 
Posts: 41
Joined: Wed Aug 31, 2022 12:27 pm

Re: ESP32 S2 issue reading battery

Post by superg2 »

I have been able to get my mini gps to work on this Feather.

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: ESP32 S2 issue reading battery

Post by adafruit_support_mike »

Okay, that puts the fault in the battery monitor. Thank you.

Send a note containing a link to this page and your order number to [email protected]. The folks there will get you a replacement.

User avatar
superg2
 
Posts: 41
Joined: Wed Aug 31, 2022 12:27 pm

Re: ESP32 S2 issue reading battery

Post by superg2 »

I was reading on the product the LDO regulator could be disabled. Could that be the issue? Do not know how to check the state of the GPIO.
Instead of a transistor we now have a totally new LDO regulator that can be enabled or disabled with a GPIO pin. Set GPIO 7 to be output and HIGH to turn on the NeoPixel and QT power.

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”