hi,
i use voltagec()
generic configuration VoltageC()
{ provides interface Read<uint16_t>;}
implementation
{
components new AdcReadClientC(), VoltageP;
Read = AdcReadClientC;
AdcReadClientC.Atm128AdcConfig -> VoltageP;
}
i can't resolve the problem. for telosb it's give a right values (the voltage
increase) but for micaz , it does not work
________________________________
De : Agii Gusti <[email protected]>
À : srsini srsini <[email protected]>
Envoyé le : Mar 24 mai 2011, 11h 57min 16s
Objet : Re: [Tinyos-help] micaz voltage increasing when battery droop
give your sample code (configuration code).
Did you notice that module VoltageP provides interface Atm128AdcConfig? What
interface(s) did you used on you configuration?
________________________________
From: srsini srsini <[email protected]>
To: tinyOsailingList <[email protected]>
Sent: Tue, May 24, 2011 2:26:33 PM
Subject: [Tinyos-help] micaz voltage increasing when battery droop
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