SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on the software and hardware for Atmel's STK standard.
By ujjwalbsoni20032003
#157159
Hi,

I am connecting LM35 temperature sensor with ATMEGA328. I have connected it to ADC5 and VCC and GND.

My question is that do i need to pass voltage to AVCC or AHREF in order to use ADC ?

Currently, i dont get any value from this sensor.

Thanks,

Ujjwal Soni
By n1ist
#157165
AVcc and AGND must always be connected to Vcc and GND (though you could use a series bead and 100n cap to ground on AVcc to reduce noise). If you are using the internal reference (which you probably will), connect a 100n cap from Aref to AGND.
/mike