Akankshu,

To the best of my knowledge there is no sure-fire way of determining how much residual energy the batteries contain. I believe the MicaZ has the ability to take ADC measurements on the battery voltage itself (using some regulated voltage as a reference). However, this won't exactly correlate with energy reserves of the battery as most batteries supply a constant voltage until they are very near the end of their reserves. Most likely the best you can do is look at the datasheets of each of the components, determine how much energy they use while on or in any other mode(varying sleep modes for microprocessor, etc) you use them in, and try to keep a running tally of your guess as to how much energy that mote has used. Using this internal tally you can make decisions based upon energy usage.

With hardware diagnostic tools (Ammeter, etc) you can measure how much current the motes are drawing, and by integrating the current you can get the energy consumed. However, any low power devices are probably not going to have this functionality built-in(the micaz included).

-Paul

Akankshu Dhawan wrote:
Hi All
I want to know what is the best way to get the residual battery (energy) on the MICAZ motes ? I need to calculate this intermittently and based on the value make some decisions so I really need this. I would appreciate if someone who has worked on similar issues can guide me with this


Thanks Akankshu Dhawan

--
First they ignore you, then they laugh at you, then they fight you, then you win.
- Mahatma Gandhi
------------------------------------------------------------------------

_______________________________________________
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