Robot or rover driving
Map X and Y to motor speed and steering for smooth remote driving.
A KY-023 two-axis analog thumb joystick with a push button, built from two potentiometers for X and Y control.

The KY-023 is an analog thumb joystick like the ones on game controllers. Under the stick are two potentiometers, one for the X axis and one for the Y axis, plus a momentary push switch you activate by pressing straight down. It gives smooth, proportional two-axis control rather than just on and off.
It has five pins: VCC, GND, an X output, a Y output, and the switch (SW). Each axis outputs an analog voltage that swings from near ground to near the supply as you move the stick, sitting at roughly half the supply voltage when centered. A microcontroller reads X and Y on its analog inputs.
The board runs from about 3.3 to 5 V. The push switch is a simple button to ground, so it needs a pull-up like any momentary switch. Because the outputs are ratiometric, the centered value tracks whatever supply voltage you use.
| Pin | Function | Type |
|---|---|---|
SW SW (Button) | Digital push button | Digital output |
Y Y | Analog Y-position | Digital output |
X X | Analog X-position | Digital output |
VCC +V | Power | Power in |
GND GND | Power | Power in |
Verified from the Tinkered component library · Joy-IT.
The KY-023 Joystick connects to any of the microcontrollers supported in Tinkered. Mind the 3.3 V logic level on 3.3 V boards.
The mechanical center rarely lands on a perfect midpoint, and it wanders slightly. Calibrate the resting value and apply a dead zone, or the project will react to a stick that is not being touched.
The SW pin is a switch to ground. Without a pull-up it floats and reports random button presses. Enable the internal pull-up and read it as active low.
Because the outputs are ratiometric, powering the joystick at 5 V but reading with a 3.3 V ADC clips each axis near the top. Keep the joystick supply and the ADC reference on the same rail.
X and Y are analog. Reading them on a digital pin throws away the proportional position and only sees fully pushed versus centered.
Map X and Y to motor speed and steering for smooth remote driving.
Drive two servos from the axes to aim a camera or sensor, with the button to recenter.
Use the two axes and button as a paddle or D-pad for simple Arduino games.
Move a cursor or step through options on a display, clicking the stick to select.
Drop the KY-023 Joystick into a circuit, write firmware, and simulate it in your browser, then deploy to real hardware. All in one editable Tinkered project.