icssw-org / MeshCom-Firmware

MeshCom Client 4.0
https://icssw.org/meshcom/
MIT License
15 stars 4 forks source link

TTGO-LORA32 and battery voltage bug #43

Open ok1cdj opened 1 month ago

ok1cdj commented 1 month ago

On TTGO-LORA32 is not battery voltage displayed properly. Regardless of battery state always 100% is showed.

According the schematic the IO35 is used for voltage measurement

https://github.com/LilyGO/TTGO-LORA32/blob/995b37300c8f70b68f01b83ca1ff3ac3e0abc3ec/schematic1in6.pdf

I think vbat_pin is not properly set for TLORA.

rainerfritz commented 2 weeks ago

Hi!

You are right. It is set to ADC_UNIT_1 and ADC_CHANNEL_6 which is based on the pinout PIN34, so it should be ADC_CHANNEL_7.

rainerfritz commented 1 week ago

Please check the current main branch, please compile and flash.

ok1cdj commented 1 week ago

Hello Rainer, there is some mismatch in GPS library: src/loop_functions.cpp:12:10: fatal error: TinyGPSplus.h: No such file or directory was able to compile with #include "TinyGPS++.h"

but the voltage measurement still not working, the value shown is 25.7 V.

Regards, Ondra