Arduino Nano - Joystick - Servo Motor

This tutorial instructs you how to use Arduino Nano and a joystick to control two servo motors or a pan-tilt kit.

A joystick is equipped with two potentiometers that are perpendicular to each other (known as the X-axis and Y-axis). These potentiometers output analog values (X-value and Y-value) on VRX and VRY pins. We will use these analog values to independently control two servo motors: X-value for servo #1 and Y-value for servo #2. When using a pan-tilt kit, the movement of the two servo motors creates 3-D motion.

There are two application use cases: