Xinyuan-LilyGO / T7-S3

ESP32-S3 Development Board
MIT License
23 stars 8 forks source link

Battery status #6

Open dima-fedotovs opened 1 year ago

dima-fedotovs commented 1 year ago

How to read battery status/voltage? I'm using ESPHome config:

sensor:
    - platform: adc
      id: battery_level
      pin: 2

And this sensor always shows the same value of 0.961 until it is switched off because empty battery. Is it possible to measure the voltage on pin 2?

maxdd commented 1 year ago

Not sure about ESPHome but with my c code on pin 2 i can read the battery voltage