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()
ESP32 S2 issue reading battery
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67391
- Joined: Thu Feb 11, 2010 2:51 pm
Re: ESP32 S2 issue reading battery
Try the CircuitPython code from this part of the tutorial instead:
https://learn.adafruit.com/adafruit-esp ... ry-3122383
https://learn.adafruit.com/adafruit-esp ... ry-3122383
- superg2
- Posts: 41
- Joined: Wed Aug 31, 2022 12:27 pm
- adafruit_support_mike
- Posts: 67391
- Joined: Thu Feb 11, 2010 2:51 pm
Re: ESP32 S2 issue reading battery
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.
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.
- superg2
- Posts: 41
- Joined: Wed Aug 31, 2022 12:27 pm
Re: ESP32 S2 issue reading battery
Attached is the photo of the board
- Attachments
-
- IMG_4263.jpeg (185.14 KiB) Viewed 156 times
- adafruit_support_mike
- Posts: 67391
- Joined: Thu Feb 11, 2010 2:51 pm
Re: ESP32 S2 issue reading battery
Thank you. Nothing is missing or out of place.
As a final sanity check, do any other I2C devices work with the Feather?
As a final sanity check, do any other I2C devices work with the Feather?
- superg2
- Posts: 41
- Joined: Wed Aug 31, 2022 12:27 pm
Re: ESP32 S2 issue reading battery
I have been able to get my mini gps to work on this Feather.
- adafruit_support_mike
- Posts: 67391
- Joined: Thu Feb 11, 2010 2:51 pm
Re: ESP32 S2 issue reading battery
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.
Send a note containing a link to this page and your order number to [email protected]. The folks there will get you a replacement.
- superg2
- Posts: 41
- Joined: Wed Aug 31, 2022 12:27 pm
Re: ESP32 S2 issue reading battery
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.
Please be positive and constructive with your questions and comments.