Sorry if I still ask a question about the battery measure.
I have an HTCC_AB02A node to which 2 sensors are connected (on ADC2 e ADC3) and it is powered externally by the 3,3V pin.
What should I do to measure the power supply voltage? should I remove the BR1 resistor and read with a voltage divider on the ADC pin?
Where is the BR1 resistor located?
Thanks
Battery measure
have you tried this?
uint16_t BatteryVoltage = getBatteryVoltage();
Serial.print("Battery mV: ");
Serial.println(BatteryVoltage);
Hi,
If you want measure the battery voltage, Please don’t remove the BR1 resistor.
Please refer the picture:
As the picture shows:VDD is VABT. If you remove the BR1 resistor, This makes it impossible to measure the battery voltage.
How to measure the battery voltage? You can refer jezd’s code.
I use the method described by Jezd
.
I noticed that the measurement sometimes returns 0 instead of the voltage value. If I power the node via USB and then resume powering it via Vdd, the measurement seems correct.
Thanks