ESP8266 - Joystick - Servo Motor

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 controls servo #1 and Y-value controls servo #2. When using a pan-tilt kit, the combination of the two servo motors creates three-dimensional movement.

There are two use cases: