[Tinyos-help] Battery Voltage measurement

Mohamed H. Seddik mhsedek at yahoo.com
Tue Mar 17 16:47:33 PDT 2009


 how to use This "
TinyOS component VoltageM.nc can be wired into an application to provide this measurement capability. The reserved keyword TOS_ADC_VOLTAGE_PORT is mapped to ADC Channel 30"
 how to get access to the channels and do whatever this say

How can I do the following steps, 

According to "MPR-MIB Users Manual":

"To compute the battery voltage:

   1. Set the BAT_MON processor pin (PA5/AD5) to HI.

   2. Program the application code to measure ADC Channel 7.

   3. Compute battery voltage, Vbatt, from Channel 7’s data by:

      Vbatt = Vref × ADC _ FS ADC _ Count

      where:

      Vbatt = Battery voltage

      ADC_FS = 1024

      Vref = External voltage reference = 1.223 V

      ADC_Count = Data from the ADC measurement of Channel 7"


Thanks  & Have a Nice Day
     Mohamed


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090317/911af0f5/attachment.htm 


More information about the Tinyos-help mailing list