meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.37k stars 825 forks source link

TTGO-LoRa32-V2.1 battery level display continuously shows charging #303

Closed thomslik closed 4 years ago

thomslik commented 4 years ago

TTGO-LoRa32-V2.1-1.6, the battery level screen display shows only the charging symbol, not the battery level, while running with a battery attached. Installed my new batteries and discovered this, after running on just battery power.

Also shows same on Android app.

geeksville commented 4 years ago

alas - this device doesn't have a charging and battery voltage sensor (I don't think - @slavino do you happen to know if battery voltage is hooked to any of the CPU analog inputs? I don't have one of these boards)

slavino commented 4 years ago

There are more v2 boards

As they marked exactly the same way the pin 35 , it may be worth giving it a try. http://www.lilygo.cn/prod_view.aspx?TypeId=50003&Id=1271&FId=t3:50003:3

@geeksville And Pax counter shows that it should be pin 35... https://github.com/cyberman54/ESP32-Paxcounter/blob/master/src/hal/ttgov21new.h

geeksville commented 4 years ago

@slavino ooh - that is super useful. I'll add checking that ADC when I add tbeam 0.7 support.

geeksville commented 4 years ago

Merging with #279