Re: [Tinyos-help] Reading extenal ADC Tmote

2006-12-14 Thread Mikael Ifversen
Thats what I thought but it keeps giving me syntax error in the header file when swapping: REFERENCE_VREFplus_AVss and REFERENCE_AVcc_AVss Mikael Joe Polastre wrote: Yes. On 12/14/06, Mikael Ifversen <[EMAIL PROTECTED]> wrote: "REFERENCE_AVcc_AVss" Is this what is needed to use AVcc as the h

Re: [Tinyos-help] Reading extenal ADC Tmote

2006-12-14 Thread Mikael Ifversen
"REFERENCE_AVcc_AVss" Is this what is needed to use AVcc as the high rail for the sampling period. Mikael Joe Polastre wrote: Incoming voltage should not exceed the voltage reference. Instead of using a reference voltage, use AVcc as the high rail for the sampling period. -Joe On 12/14/06,

Re: [Tinyos-help] Reading extenal ADC Tmote

2006-12-14 Thread Joe Polastre
Incoming voltage should not exceed the voltage reference. Instead of using a reference voltage, use AVcc as the high rail for the sampling period. -Joe On 12/14/06, Mikael Ifversen <[EMAIL PROTECTED]> wrote: Is the AVcc always max available voltage output approx 3v? If I want to read values fr

Re: [Tinyos-help] Reading extenal ADC Tmote

2006-12-14 Thread Mikael Ifversen
Is the AVcc always max available voltage output approx 3v? If I want to read values from a flex sensor the flow is AVcc to Flex to (Voltage divider) Vout = ADC0? Do I need an Op Amp? Does R2 from the Voltage divider go to the 9-pin on expansion connector? If Vref is at 1.5v, incoming voltage at

Re: [Tinyos-help] Reading extenal ADC Tmote

2006-12-14 Thread Joe Polastre
The voltage of A0 as a 12-bit number where 0 represents 0V and 4095 represents 1.5V. -Joe On 12/14/06, Mikael Ifversen <[EMAIL PROTECTED]> wrote: Hi, What voltage should I expect by meassuring AVcc and ADC0 with following enum in TelosADC: enum { TOS_ADC_FLEX_PORT = unique("ADCPort"), TOSH_

[Tinyos-help] Reading extenal ADC Tmote

2006-12-14 Thread Mikael Ifversen
Hi, What voltage should I expect by meassuring AVcc and ADC0 with following enum in TelosADC: enum { TOS_ADC_FLEX_PORT = unique("ADCPort"), TOSH_ACTUAL_ADC_FLEX_PORT = ASSOCIATE_ADC_CHANNEL( INPUT_CHANNEL_A0, REFERENCE_VREFplus_AVss, REFVOLT_LEVEL_1_5 ), }; Mikael __