analogRead(A0)
Posted: Sun Jan 31, 2016 4:14 am
Hi Guys,
i just mad a simple program .
When started it gives an value between 6 and 8.
I plugged Different sensors into this analog port (thay give 1v / 5v as an output) and never got 1024 value,
it seems like i cannot reach 1024 - the max i have seen was 115...? why?
i just mad a simple program .
Code: Select all
loop()
{
int adcvalue = 0;
adcvalue = analogRead(A0);
serial.print("VALUE: "+String(adcvalue));
delay(1000);
}
When started it gives an value between 6 and 8.
I plugged Different sensors into this analog port (thay give 1v / 5v as an output) and never got 1024 value,
it seems like i cannot reach 1024 - the max i have seen was 115...? why?