ESP32-S2 ReverseTFT CircuitPython can't find battery monitor

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
memcbride
 
Posts: 41
Joined: Sat Oct 29, 2016 11:51 am

ESP32-S2 ReverseTFT CircuitPython can't find battery monitor

Post by memcbride »

I purchased two ESP32-S2 ReverseTFT's for a project - one for testing ideas and one for the final project. I've run into the same problem with both trying to use CircuitPython.

Setup both times.
1. I powered up the board, and the default installed program shows the battery monitor working with a battery attached. See the picture below. I also attached another I2C board.
2. I installed the latest CircuitPython for the board: CircuitPython 8.0.0-rc.2 at https://circuitpython.org/board/adafrui ... verse_tft/
3. I downloaded the library bundle to go with CircuitPython 8.0.0-rc.2 at https://github.com/adafruit/Adafruit_Ci ... 230202.zip
4. I added the library adafruit_ic709203f.mpy in the CircuitPython drive library.
5. I changed the code.py code to LC709203F simple test at https://learn.adafruit.com/adafruit-lc7 ... cuitpython
6. I get the following error:
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
LC709203F simple test
Make sure LiPoly battery is plugged into the board!
Traceback (most recent call last):
File "code.py", line 14, in <module>
File "adafruit_lc709203f.py", line 139, in __init__
File "adafruit_lc709203f.py", line 132, in __init__
ValueError: No I2C device at address: 0xb
7. I change the code.py code to the I2C scanning code at https://learn.adafruit.com/scanning-i2c ... cuitpython
8. I get the following output:
I2C addresses found: ['0x10', '0x11', '0x36', '0x60']

So it seems that the CircuitPython code is having trouble seeing the battery monitor, but we know the battery monitoring works from the default shipping program.

What else should I be trying?

Thank you,

Mark
Attachments
IMG_1414 (1).png
IMG_1414 (1).png (120.05 KiB) Viewed 40 times

User avatar
adafruit_support_carter
 
Posts: 29179
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP32-S2 ReverseTFT CircuitPython can't find battery monitor

Post by adafruit_support_carter »

Sorry for the confusion. There was a typo on the product page for the ESP32-S2 Reverse TFT that said it had the LC709203F. It actually has a different battery monitor chip - the MAX17048.

Here's the library for the MAX17048:
https://github.com/adafruit/Adafruit_Ci ... n_MAX1704x

User avatar
memcbride
 
Posts: 41
Joined: Sat Oct 29, 2016 11:51 am

Re: ESP32-S2 ReverseTFT CircuitPython can't find battery monitor

Post by memcbride »

adafruit_support_carter wrote: Fri Feb 03, 2023 3:10 pm Sorry for the confusion. There was a typo on the product page for the ESP32-S2 Reverse TFT that said it had the LC709203F. It actually has a different battery monitor chip - the MAX17048.

Here's the library for the MAX17048:
https://github.com/adafruit/Adafruit_Ci ... n_MAX1704x
Thanks for the quick replay. That certainly made a difference. Onward and upward with the project!

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

Return to “Feather - Adafruit's lightweight platform”