Can AREF pin be used as an input?

Looking at the pinout I see that the AREF pin is called "AREF / AIN[1]".
It's not a digital pin, analog only according to the pinout, right?
Can I use it to measure some analog voltage? And if so, what is the pin number/name I need to pass to analogRead() ?

Thanks

I'm also wondering what the PA30 and PA31 solder pins at the bottom of the arduino are for? Can I use these as two as two additional GPIO pins?

AREF can be used as an external voltage reference for the ADC.

See the processor data sheet for the details, and the Arduino analogReference() documentation.

1 Like

D7
9422d9f214f966538caf96575f0e847e

Its not an analog input, its for a voltage that will be used as a reference by the ADC.

Its possible to work out what that voltage is - so yes you can measure it; but its not as easy as reading an analog input.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.