Arduino Nano 33 IoT - Joystick - Servo Motor

In this guide, you'll learn how to use the Arduino Nano 33 IoT board and a joystick to control either two servo motors or a pan-tilt kit that uses servos.

A joystick has two built-in variable resistors that are arranged at right angles (called the X-axis and Y-axis). These resistors send analog signals (called the X-value and Y-value) through the VRX and VRY pins. We use these signals to control two servo motors separately: the X-value controls servo motor #1 and the Y-value controls servo motor #2. In a pan-tilt kit, moving these two servo motors makes a 3-D movement.

Arduino Nano 33 IoT Joystick Servo Motor

There are two ways to use this application: