Closed charlespax closed 10 years ago
A nice implementation was suggested in the EEVblog forums https://github.com/PaxInstruments/t400-electronics/issues/36
ATmega32U4 pin is now set to drain the VBAT voltage divider at VBAT_EN. See https://github.com/PaxInstruments/t400-electronics/issues/72
The voltage measurement should still be possible when vin is 3.7 V. So the voltage devider for the battery measurement needs to make sure that when the lipo is full the vmeas. line never exceeds 3.0V (leaving some safe margin).