First your measured voltage should be between 0 and 3 volts
(the mica battery voltage). If it's some kind of proportional
thing it's actually a good idea to use the mica batteries to
power it because they are used as the ADC reference.
Then pick an available ADC input. Here's a pin list I made years ago:
http://www.etantdonnes.com/Motes/ATMEGApins.txt
Connect the sensor ground to mica ground and the output to the ADC in.
Trash DemoSensor in O'scope and replace it with ADCC. In the config
file it's something like this:
RobotM.Target -> ADCC.ADC[ROBOADC_TARGET];
Readup in the tutorial about how to manipulate config files and trace
the DemoSensor all the way down to ADC world to see an example. My
Motes directory also contains largish and complicated example code
for TOS 1.x.
MS
Akarsha Ramani wrote:
I am a beginner with nesC programming. I am working on an application
where I need to send voltage values from the node to the base station. I
am programming Mica2 motes with OscilloscopeRF code to get the voltage
readings. I am not sure about the channel from which the data needs to
be collected.
Can someone provide any inputs on reading voltage values using Mica2 ?
Thanks.
------------------------------------------------------------------------
Looking for a deal? Find great prices on flights and hotels
<http://us.rd.yahoo.com/evt=47094/*http://farechase.yahoo.com/;_ylc=X3oDMTFicDJoNDllBF9TAzk3NDA3NTg5BHBvcwMxMwRzZWMDZ3JvdXBzBHNsawNlbWFpbC1uY20->
with Yahoo! FareChase.
------------------------------------------------------------------------
_______________________________________________
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