You should read the Tmote Invent User's Guide.  It provides the theory
of operation.  You should also look at the Boomerang drivers, they
will help you too.

All of the components provided with Tmote Invent are individually
controllable.  This means you have to explicitly turn each component
on or off before you can use it.  By default, the accelerometer is
off, thus it is not producing readings for you.

-Joe

On Dec 27, 2007 8:16 PM, Gary <[EMAIL PROTECTED]> wrote:
> I am trying to read TMote Invent sensors using TinyOS 2 and I pretty much
> followed tinyos-2.x/apps/tests/msp430/AdcSimple. I used following config but
> it kept giving me 0,1 values. I also tried several other channels with same
> behaviors (accel sensors give very small numbers with little change even if
> I wave it). The onboard sensors however seem to be working fine.
>
> Do I need to do something more than AdcSimple? Has anyone got any success
> that I can learn from?
>
> const msp430adc12_channel_config_t config = {
>     inch: INPUT_CHANNEL_A3,
>     sref: REFERENCE_AVcc_AVss,
>     ref2_5v: REFVOLT_LEVEL_NONE,
>     adc12ssel:    SHT_SOURCE_ACLK,
>     adc12div:     SHT_CLOCK_DIV_8,
>     sht: SAMPLE_HOLD_8_CYCLES,
>     sampcon_ssel: SAMPCON_SOURCE_SMCLK,
>     sampcon_id: SAMPCON_CLOCK_DIV_1
>   };
>
> Thanks!
> Gary
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to