Since the range of the analogRead() function ranges from 0 to 1023, if I were to supply the Arduino with +9V, would 1023 represent 9V input or would it be 5V? I'm assuming it would be 9V but I want to be sure.
Since the range of the analogRead() function ranges from 0 to 1023, if I were to supply the Arduino with +9V, would 1023 represent 9V input or would it be 5V? I'm assuming it would be 9V but I want to be sure.
The 1023 equals the supply voltage. Some parts run at 3.3 volts so 1023=3.3 volts. Or with a 5 volt supply 1023=5V.
The Arduino has a maximum supply of 5.4volts so don't go to 9 volts!
Sorry for the late response but thanks everyone. I just changed the functionality of the circuit I was using from analog to digital so there was no frying of the I/O port