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