SQ9MDD / TTGO-T-Beam-LoRa-APRS

Use TTGO T-Beam as LoRa APRS Tracker
64 stars 23 forks source link

TTGO T-Beam 0.7 Battery voltage problem #65

Closed iu2frl closed 2 years ago

iu2frl commented 2 years ago

On TTGO T-BEAM battery at full charge is shown as 7.2V instead of 3.7

Using latest code (22 Aug) with T-Beam 0.7 binary

iu2frl commented 2 years ago

In "TTGO_T-Beam_LoRa_APRS.ino" file, line 359 change 4096 with 8192 like this:

void batt_read(){
#ifdef T_BEAM_V1_0
  BattVolts = axp.getBattVoltage()/1000;
  InpVolts = axp.getVbusVoltage()/1000;
#else
  BattVolts = analogRead(35)*7.221/8192;
#endif
}

this will solve the issue on 0.7 boards

SQ9MDD commented 2 years ago

corrected closed. Thanks Luca

iu2frl commented 2 years ago

Seems that problem is not solved, i can't understand if problem is my TTGO or if it's something on 0.7, measured voltage on pin 35 never changes