Home Chapter 8 Maxuino/Arduino analog input with potentiometer
Maxuino/Arduino analog input with potentiometer

You can also create input into your Arduino UNO reading analog voltages though of course here you must use the analog input pins. On the Arduino UNO those are pins A0, A1, A2, A3, A4 and A5 or numerically in order pins 14, 15, 16, 17, 18 and 19.

 

 
 CC Arduino design for potentiometer in Arduino UNO (Diecimila)

 

Schematic for the circuit.

 
  CC Arduino schematic design for potentiometer in Arduino UNO

 

The code for the analog input looks like this.

 
 Copyright Ken Rinaldo