I think you are getting a raw value. Check this link, this might help you: http://tinyos.stanford.edu/tinyos-wiki/index.php/Boomerang_ADC_Example
I am not sure though. Thanks. Jenis ________________________________________ From: [email protected] [[email protected]] on behalf of lukas [[email protected]] Sent: Monday, September 23, 2013 9:49 PM To: [email protected] Subject: [Tinyos-help] Read Telosb battery power Hi, I wanna know the power of battery, so I try to read the voltage and current of the node. I use Read interface and call event void ReadVoltage.readDone (error_t result, uint16_t val) { batteryVoltage = val; } printf("Battery vol = %u \n", batteryVoltage); I print out the reading and find the value is 4063. Can I ask what is the unit of this value? It is mV? Thx a lot. _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
