[Tinyos-help] Junk data with Adc on telosb

Jan Hauer hauer at tkn.tu-berlin.de
Tue Sep 4 07:20:22 PDT 2007


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

If you still get strange values try to use internal ADC channels
instead of your external sensors, e.g. temperature/voltage. The
configurations are in   tinyos-2.x/tos/chips/msp430/sensors.

Jan

On 9/4/07, Nicolas Esteves <nicolas.esteves at inrialpes.fr> wrote:
> Hi Jan,
> Did you have the time to check my configuration in my last mail?
> I still haven't found a way to resolve the problem with my adc sampling..
>
> Thanks again
>
>
>


More information about the Tinyos-help mailing list