Let's say about 20v max or something? I see how a potential divider could be used, because the Aref max is Vcc which happens to be 5v,
Aref=5v so we have to step down the input voltage to something between 0 and 5v.
R1 = 30k
R2 = 10k
If Vin = 20v, Vout = 5v
If Vin = 15v, Vout = 3.75v
If Vin = 10v, Vout = 2.5v
If Vin = 5v, Vout = 1.25v
If Vin = 0v, Vout = 0v
This is a really neat solution! One that I wouldn't have thought of in a billion years! I'd probably use an aref of something divisible by 1.024v so it'd make the calcumalations simple, but that's not really important.
Is this very accurate? I'd say it depends on the resolution of the ADC (May use internal 10 bit, but external 12 bit could be used.)
EDIT: 2.048*(2^-8) gives a resolution of 8mV. Very nice! Hopefully going to lay down a schematic soon, seems rather simple!
EDIT AGAIN: Math simplifying fail, 2.048/2^8 seems "cleaner" to me.