ESPBoards Learn – Early Access!

KY-023 Dual Axis Joystick Module

KY-023 Dual Axis Joystick Module image

View on Amazon

Overview

The KY-023 is a dual-axis joystick module that provides analog outputs for X and Y positions, along with a digital output for a built-in push-button. It's ideal for applications requiring directional input, such as remote controls, gaming interfaces, and robotic navigation.

About KY-023 Dual Axis Joystick Module

The KY-023 Dual Axis Joystick Module is an input device that combines two potentiometers and a push-button switch, allowing for control in both the X and Y axes. Each axis corresponds to a potentiometer that outputs an analog voltage, which can be read by microcontrollers like the Arduino or ESP32. The module also features a push-button that activates when the joystick is pressed down. This joystick is commonly used in robotics, gaming, and other interactive projects.

Where to Buy

Get Your KY-023

KY-023 Dual Axis Joystick Module

Starting from

$2 per unit

Amazon com
Amazon.com Ships worldwide
Amazon de
Amazon.de Ships to EU
Aliexpress
AliExpress Best value option

💡 Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specs

KY-023 Specifications

Complete technical specification details for KY-023 Dual Axis Joystick Module

📊 Technical Parameters

Operating Voltage 3.3V - 5V
Output Voltage Range 0V to VCC
Dimensions 34 x 39 x 26 mm
Weight 12 g
Pin Configuration

KY-023 Pinout

The **KY-023** is a 5-pin dual-axis joystick module with integrated push button:

Visual Pinout Diagram

Pinout Diagram Primary
KY-023 Dual Axis Joystick Module pinout
5
Total Pins

Pin Types

Power
2
Communication
2
Control
1

Quick Tips

🔌

**Interface**: Dual analog output + digital button,đŸ•šī¸ **Axes**: X and Y axis potentiometers (0-3.3V or 0-5V range)

🔘

**Button**: Built-in push-button (active low when pressed),⚡ **Power**: 3.3V or 5V operation

📊

**Center Position**: ~1.65V (3.3V) or ~2.5V (5V) when centered,đŸŽ¯ **Applications**: Game controllers, robotic navigation, camera control, RC vehicles

Pin Descriptions

Pin NameTypeDescriptionNotes
1 GND
Power

Ground connection

2 +5V
Power

Power supply

3.3V or 5V (check compatibility)

3 VRx
Communication

X-axis analog output

Voltage varies with X position

4 VRy
Communication

Y-axis analog output

Voltage varies with Y position

5 SW
Control

Switch/button signal

Active low when pressed

Connection Guide

Wiring KY-023 to ESP32

To interface the **KY-023** with an **ESP32** for joystick input:

Visual Wiring Diagram

Wiring Diagram Recommended
KY-023 Dual Axis Joystick Module wiring with ESP32
5
Connections

Connection Status

Required
4
Optional
1

Protocol

Analog

Pin Connections

KY-023 PinConnectionESP32 PinDescription
1 GND Required
GND

Ground

2 +5V Required
3.3V

Power supply (use 3.3V for ESP32)

3 VRx Required
GPIO36

X-axis analog input (ADC pin)

4 VRy Required
GPIO39

Y-axis analog input (ADC pin)

5 SW Optional
GPIO34

Button input with internal pull-up

💡

**ADC Pins**: Use GPIO32-39 for analog inputs on ESP32

⚡

**Voltage**: Use 3.3V to match ESP32 ADC range (0-3.3V)

🎮

**Centering**: Read center position at startup for calibration

🔘

**Pull-up**: Enable internal pull-up resistor on SW pin

📊

**Mapping**: Map ADC values (0-4095) to desired ranges

Help & Support

KY-023 Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

KY-023 Programming Examples

Ready-to-use code examples for different platforms and frameworks

Summary

Wrapping Up KY-023

The ESP32 KY-023 Dual Axis Joystick Module is a powerful KY-0xx module sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

Best Practices

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Safety First

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.

Ready to Start Building?

Now that you have all the information you need, it's time to integrate the KY-023 into your ESP32 project and bring your ideas to life!