Hi
 
I am using mica2 tinyos 1.1.15 and VoltageC from tos/system. it also uses VoltageM from the tos/platform folder in my case platform/mica2.
 
Here VoltageM signals an event dataReady(uint16_t data) so in ur M file when u handle this event the data value passed is the voltage. u do not need to apply any conversion formula. the formula u mentioned below is already applied in voltageM.
 
while handling the event i put this data in a tos message and send it to base station here after extracting the data i just reverse the bytes and get values like 0x 0ADF = 2783 mVolts and this matches with what i get on multimeter across the 2 battery terminals.
 
I think for micaz also it will be similar. atleast the VoltageM file in platform/micaz does the same thing.
 
 
Rahul Sawant


 
On 4/25/06, Gina Upperman <[EMAIL PROTECTED]> wrote:

Hi All –

 

We are trying to measure the battery voltage on micaz motes using the module: Tos/system/VoltageC.nc.  We are getting values back like hex 100A and 1139.  We are using the conversion formulas referenced on page 22 of the Crossbow manual: http://www.xbow.com/Support/Support_pdf_files/MPR-MIB_Series_Users_Manual.pdf , which involves calculating the voltage as 1.223 * 1024 / ADC.  We get values between 0.2 and 0.3, which don't seem correct.  (Although perhaps multiplying by 10 would solve the problem?)

 

Has anyone had luck measuring the voltage on the micaz motes?  Is this the correct module to use?  Is this the correct conversion formula?  Any advice would be greatly appreciated!

 

Thank you,

Gina Upperman

 

 

 


_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to