Hi Janos

Thanks for your reply

I've already used VoltageC component. I just wanted to know about controlling 
the mote and to know more about accessing the peripherals. 

about the power consumption mails you forwarded me to, I found it very 
informative but could not know how can I determine how much power in my app.
I wanted to know when I started the RF by splitcontrol, is it keeps on or goes 
to sleep when it finish sending or receiving, and if I used splitcontrol.start 
i have to use splitcontrol.stp to turn the RF off. 

what command should i use to turn the RF on when sending a message and goes off 
or (sleep ) when it stops and then on when it receiving.

I've attached my app. file to see if the RF still on or what. and how to modify 
it to implement what I've said.



Mohamed

--- On Wed, 3/18/09, Janos Sallai <[email protected]> wrote:


From: Janos Sallai <[email protected]>
Subject: Re: [Tinyos-help] Fw: Battery Voltage measurement
To: "Mohamed H. Seddik" <[email protected]>
Cc: [email protected]
Date: Wednesday, March 18, 2009, 11:56 PM


The VoltageC component is what you need.
Janos

On Wed, Mar 18, 2009 at 4:44 PM, Mohamed H. Seddik <[email protected]> wrote:
> TinyOS 2.1
>
> Mohamed
>
> --- On Wed, 3/18/09, Janos Sallai <[email protected]> wrote:
>
> From: Janos Sallai <[email protected]>
> Subject: Re: [Tinyos-help] Fw: Battery Voltage measurement
> To: "Mohamed H. Seddik" <[email protected]>,
> "[email protected]" <[email protected]>
> Date: Wednesday, March 18, 2009, 11:25 PM
>
> What tinyos version do you have? Moteworks or TinyOS 2.1?
>
> Janos
>
> 2009/3/18 Mohamed H. Seddik <[email protected]>:
>>
>>
>> Thanks  & Have a Nice Day
>>
>> Mohamed
>>
>> --- On Wed, 3/18/09, Mohamed H. Seddik <[email protected]> wrote:
>>
>> From: Mohamed H. Seddik <[email protected]>
>> Subject: Battery Voltage measurement
>> To: [email protected]
>> Date: Wednesday, March 18, 2009, 1:47 AM
>>
>>  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 7s 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
>>
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>




      

Attachment: BatteryC.nc
Description: Cdf file

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

Reply via email to