Is there a way I can adjust the Analog in range from 0-5 Volt to 0-2.5 Volt? I have a sensor which produces values between 0 and 2.5 and I need arduino to digitize the input with as much resolution as possible.
I understand that I can change the reference voltage, but how?
One possibility is to use an opamp with a voltage gain of 2. You will need an opamp that can work from a single supply (+5v) and can go rail-to-rail. Something like a MAX473 or a TLV2372.
Thanks to both or you for the excellent advice!
When I follow up about changing
the AREF, I find this:
Table 74. Voltage Reference Selections for ADC
REFS1 REFS0 Voltage Reference Selection
0 0 AREF, Internal Vref turned off
0 1 AVCC with external capacitor at AREF pin
1 0 Reserved
1 1 Internal 2.56V Voltage Reference with external capacitor at AREF pin
Does that mean if I change the bits to 11 I will get to use the INTERNAL 2.56 V (which would be close enough), and if so what would that code look like?