Go Down

Topic: The analog reference does not change? (Read 146 times) previous topic - next topic

Ahmed321

I've used Atmega328 3.3v 8Mhz . But when I use analogReference(INTERNAL), but the real result is always default.
for example By applying 1v to the Analog input, the answer is about 305, and the selection DEFAULT, INTERNAL and EXTERNAL no effect
How can I effectively use the internal reference?

Wawa

Which Arduino.
Did you connect anything to the Aref pin (if it has one).
Leo..

Ahmed321

atmega328 on board with 8Mhz oscillator. and Aref pin not connected.

Wawa

Not sure.
Maybe you should post a picture of the setup,
and post an example of the code that doesn't work.
Read the "how to post" guidelines first.
Leo..

Go Up