As I understand it, the mica platforms measure battery voltage
by taking a reading from a fixed 1.23v chip. Since the ADC
reference (full-scale-value) _is_ the battery itself, the
reading from the chip will _increase_ as the battery droops.

You may be seeing this effect, but I thought the Voltage
components for each platform handled this in their read
methods and also converted the result to milli-volts.

MS

srsini srsini wrote:
> Hello,
> i try to compute the remaining power in the battry in micaz !! but each 
> time i do the test i find that the power is increasing . that's strange 
> , i don't understand the matter. PLZ any idea could help.
> i use this 
> 
> #
>  */
> module VoltageP
> {
>   provides interface Atm128AdcConfig;
> }
> implementation
> {
>   async command uint8_t Atm128AdcConfig.getChannel()
>   {
>     // select the 1.23V (V_BG). Reference: Table 97, page 244 from the 
> Atmega128
>     return ATM128_ADC_SNGL_1_23;
>   }
> 
>   async command uint8_t Atm128AdcConfig.getRefVoltage()
>   {
>     return ATM128_ADC_VREF_OFF;
>   }
> 
>   async command uint8_t Atm128AdcConfig.getPrescaler()
>   {
>     return ATM128_ADC_PRESCALE;
>   }
> }
> #
> 
> Bye
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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