[Tinyos-help] Battery Voltage and RSSI in mica2

Termodonte termodonte at gmail.com
Wed Jan 10 09:47:35 PST 2007


Hello,

i would like to get the battery voltage of mica2 motes and use it while i calculate the rssi valor (dBm). I'm using the Pong application but i can't take the ADC count of battery voltage because i'm pretty new to nesC and i don't know what to do. i read the manuals and i found that the battery voltage valor is placed in channel 7 of ADC count and that there is an application called VoltageC (in opt\tinyos-1.x\tos\system folder) linked to VoltageM (in platform\mica2 folder) that take the ADC count and convert it to the real voltage of battery (mV). 
So the main problem is: how can i get the battery voltage information and put it in the Pong application? And then, how can i put this ADC count valor into the pong packets to calculate (with the java application associated) the exact valor of RSSI (dBm)?

Hope you can help me,

Roberto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070110/a5332f77/attachment.htm


More information about the Tinyos-help mailing list