[Tinyos-help] Junk data with Adc on telosb
John Griessen
john at ecosensory.com
Tue Sep 4 17:41:34 PDT 2007
Jan Hauer wrote:
> Can you try this (create a new app):
> - instantiate Msp430Adc12ClientAutoRVGC() and wire you application module to it
> - in your app module where you provide AdcConfigure, return a pointer
> to the 1st channel configuration (with VREFplus_AVss) which you
> defined as a const module variable
> - in Boot.booted() you call Resource.request()
> - in Resource.granted() you call Msp430Adc12MultiChannel.configure()
> and then Msp430Adc12MultiChannel.getData()
> - check all return values
I just fixed some code like that. A working code example of
multichannel a2d with the above kind of structure. It's at:
http://www.ecosensory.com/ch12AdcP.nc
http://www.ecosensory.com/ch12AdcC.nc
http://www.ecosensory.com/a2d12ch.h
http://www.ecosensory.com/Testch12AdcC.nc
http://www.ecosensory.com/Testch12AdcP.nc
It doesn't get the data out on a radio message yet,
but it turns on leds at the SUCCESS responses we want
from multichannel...
John Griessen
--
Ecosensory
tinyOS devel on: ubuntu Linux; tinyOS v2.0.2; telosb ecosens1
More information about the Tinyos-help
mailing list