Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measuring battery voltage on a adafruit feather esp32-s3 tft fails in circuitpython #20

Open
BeatArnet opened this issue Oct 1, 2022 · 5 comments

Comments

@BeatArnet
Copy link

  • IDE: Thonny (german)
  • Device: adafruit esp32-s3 tft
  • circuitpython from end of september 2022
  • LipO WITH 2000mAh ist attached
  • Using the code simpletest.py
  • Libraries installed (including the latest versions of adafruit_lc709203f.pmy, adafruit_bus_device, adafruit_register)

Result:

LC709203F simple test
Make sure LiPoly battery is plugged into the board!
Zurückverfolgung (jüngste Aufforderung zuletzt):
Datei "", Zeile 12, in
Datei "/lib/adafruit_lc709203f.py", Zeile 132, in init
Datei "/lib/adafruit_lc709203f.py", Zeile 136, in init_RSOC
Datei "/lib/adafruit_lc709203f.py", Zeile 257, in _write_word
OSError: [Errno 116] ETIMEDOUT

Measuring the distance with the VL53L4CX, air quality with the bme688 and luminance with the bh1750 on the same esp32 works fine. Detaching the sensors does not help.

@BeatArnet
Copy link
Author

Meanwhile I have found an additional notice:
The library adafruit_lc709203f reports, that there is no sensor at 0xb but I2C-Scan tells:
I2C addresses found: ['0xb', '0x23', '0x29', '0x77']

@dhalbert
Copy link
Contributor

dhalbert commented Oct 2, 2022

The ESP32-S3 cannot use an LC709203F, because of an issue with its I2C implementation. The problem is specific to the S3.

adafruit/circuitpython#6311
espressif/esp-idf#8894 (comment)

This has been a very hard issue to diagnose. There is a problem deep in the ESP-IDF.

@BeatArnet
Copy link
Author

@dhalbert Thanks for the answer. Therefore I have to find another solution with the ADC.

@dhalbert
Copy link
Contributor

dhalbert commented Oct 2, 2022

It works fine on the ESP32-S2, if you are willing to buy another board.

@vladak
Copy link

vladak commented Nov 10, 2022

Unfortunately, this bug seems to be hitting ESP32 V2 (running CircuitPython 8.0.0-beta.4) as well: https://forums.adafruit.com/viewtopic.php?p=947702#p947702

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants