I am using analogread() from pin A0 and as the function is suppose to return me an int (0 to 1023), I only get 0-256 when the voltage get to 1.1V. Then its start 0-256 to 2.2V.
I have also put the analogreference to DEFAULT. (suppose to be 5V)
I also tryed EXTERNAL and apply 5V.
DO you know how I am suppose to get a scale from 0-1023 with a 0-5V ????
int analogPin = 0; int voltage = 0; ... pinMode(A0, INPUT); analogReference(DEFAULT); ... voltage = analogRead(analogPin); // read the input pin ...