
Connect a Potentiometer to an Arduino Analog Input On the other hand, digital input pins only read two logic levels of 0 or 1. Ten bit binary values represent the voltages read. Therefore, A0 to A15 are sixteen pins and not fifteen.Īrduino analog input pins read voltages between 0V to 5V by default, with a certain resolution. As explained above, pin numbering starts from 0. Hence A0 to A5 are six pins.Īrduino MEGA 2560 boards have sixteen analog input pins, labelled A0 to A15. Because pin numbering starts from 0, there are actually six pins. At first glance A0 to A5 looks like five pins. Arduino Analog Input PinsĪrduino Uno boards have six analog input pins, labelled A0 to A5.

The potentiometer varies or changes the voltage on the Arduino analog input pin. Use a potentiometer in this part of the Arduino tutorial for beginners in order to read an analog input with Arduino. In addition, it provides basic information on potentiometers. This article shows different potentiometer symbols used in circuit diagrams. The potentiometer article on this website has more information on potentiometers for beginners.

Turn the shaft or screw of the potentiometer to change its resistance. PotentiometerĪ potentiometer is a variable resistor. In addition it is important to know what an Arduino analog input is. What is a Potentiometer and Analog Input?īefore reading an analog input with Arduino, it is important to know what a potentiometer is.
