According to "MPR-MIB Users Manual":
"To compute the battery voltage:
1. Set the BAT_MON processor pin (PA5/AD5) to HI.
2. Program the application code to measure ADC Channel 7.
3. Compute battery voltage, Vbatt, from Channel 7s data by:
Vbatt = Vref × ADC _ FS ADC _ Count
where:
Vbatt = Battery voltage
ADC_FS = 1024
Vref = External voltage reference = 1.223 V
ADC_Count = Data from the ADC measurement of Channel 7"
(This is for MICA2)
But how do I get this ADC_Count? Would that be what VoltageRead of
VoltageC returns? I am not sure about that, but the veracity of this
information is really important. If anyone can affirm this or correct me,
please answer.
Thanks in advance,
Fernando.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help