Are there any of the "standard" telosb external sensors (Humidity/Temperature/Light) available on your telosb ? Can you test whether they give you good readings (or test your code with the internal sensors of the msp430).
> > 2) open tinyos-2.x/tos/chips/msp430/adc12/Msp430Adc12.h and comment > > out "ADC12_P6PIN_AUTO_CONFIGURE". Now the Ax PINs are not > > automatically configured, so you should (e.g. in Boot.booted()), do > > this: > > > > call Port61.selectModuleFunc(); > > call Port61.makeInput(); > > > > (in your configuration: > > components HplMsp430GeneralIOC; > > MyDriverC.Port61 -> HplMsp430GeneralIOC.Port61;) > > I'm not sure I understand - should I create a new driver myself? Based > on an existing module? > The pin(s) on the msp430 to which your sensor is attached must be configured to be in input and module (ADC) function mode. This is done automatically if ADC12_P6PIN_AUTO_CONFIGURE is defined (which is the default). But the pins are switched to module function mode just before the conversion and back to IO function mode afterwards. Maybe there is a timing issue, so you could try to disable the default behaviour and try to take care of the pin configuration yourself. Jan _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
