Use component "VoltageC".

It is a universal component to read voltage levels for most of the
platforms. You can find the MicaZ implementation in:
*TOSROOT/tos/platforms/mica/VoltageC*. You will have to convert the raw
readings to the actual voltage (in mV) using this formula:

       actual_val = 1024*1223 / raw_reading


Thanks,
Xiaoyang

On Wed, Dec 17, 2014 at 4:09 PM, mega fortele <[email protected]> wrote:
>
> Dear all,
> I am new to TinyOS and really need your help.
>
> I have MicaZ mote.
> I want to make Radio unit of MicaZ ON and OFF by considering the Battery
> Voltage level.
> For example :
> if battery Voltage level grater than 3 ==>  Turn the radio On
> if battery Voltage level less than 3 ==> Just Turn the radio OFF and let
> other units continue their jobs.
> I know how to turn the radio On and Off. but I do not know how to monitor
> the battary voltage level.
>
> The main question is: How can I know the Battery Voltage Level of MicaZ
> mote?
>
> I searched TinyOS related mailing list archives for my question but I could
> not find suitable answer.
>
> Best Regard,
> MF
>
>
> _______________________________________________
> 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

Reply via email to