Introduction
The KY-023 Dual Axis Joystick module is an electronic component that can be used to control the movement of objects in two directions. This module is commonly used in robotics, gaming, and other electronic applications that require precision control. It is a versatile and easy-to-use component that can be integrated with other electronic components to create a range of applications.
This module is compatible with popular electronic platforms like Arduino, ESP32, Raspberry Pi, and other microcontrollers. The Moving result of the joystick is up/down and the Moving result of the joystick is left/right and 1023. Press the joystick down to start the Z-axis button. showing results on the monitor
Hardware Required
You will require the following Hardware Components for interfacing the KY-023 Dual Axis Joystick module with arduino.
Components | # | Buy From Amazon |
---|---|---|
Arduino UNO | 1 | Buy Now |
KY-023 Dual Axis Joystick module | 1 | Buy Now |
Jumper Wires | 5 | Buy Now |
Breadboard | 1 | Buy Now |
What is the KY-023 Dual Axis Joystick module?
The KY-023 Dual Axis Joystick module is an electronic component that consists of two potentiometers and a button. The module is mounted on a PCB board and can be used to control the movement of objects in two directions. By moving the joystick in different directions, the potentiometers generate analog signals that can be read by a microcontroller or other electronic components.
![KY-023-Dual-Axis-Joystick-module](http://arduinocircuit.com/wp-content/uploads/2023/02/KY-023-Dual-Axis-Joystick-module.webp)
Specifications
The module is composed of two 10kΩ potentiometers positioned perpendicularly to allow control over the X and Y axes by altering the resistance when the joystick is moved. Additionally, there is a push button that is triggered when the joystick is pressed down along the Z axis. The module is equipped with 5 male header pins.
Operating Voltage | 3.3V to 5V |
Output Signal | Analog (0-5V) |
Working Temperature | -10 to 50°C |
Board Dimensions | 2.6cm x 3.4cm [1.02in x 1.22in] |
Features
- Dual-axis control for precise movement
- Simple and easy-to-use interface
- Affordable and widely available
- Built-in button for additional functionality
- Compatible with a range of microcontrollers
Pinout
![KY-023-Dual-Axis-Joystick-module-Pinout](http://arduinocircuit.com/wp-content/uploads/2023/02/KY-023-Dual-Axis-Joystick-module-Pinout-1024x720.webp)
Pin Configuration
Pin Name | Pin Type |
---|---|
+5V | Positive supply Pin |
GND | Ground Pin |
VRx | Voltage Proportional to X axis |
VRy | Voltage Proportional to Y axis |
SW | Switch Pin |
Circuit Diagram
The following circuit shows you the connection of the KY-023 Dual Axis Joystick module with Arduino Please make the connection carefully
![KY-023-Dual-Axis-Joystick-module-Interfacing-with-Arduino](http://arduinocircuit.com/wp-content/uploads/2023/02/KY-023-Dual-Axis-Joystick-module-Interfacing-with-Arduino.webp)
Circuit Connections
Arduino | Module |
---|---|
+5V | +5V Pin |
GND | GND Pin |
A0 | VRx Pin |
A1 | VRy Pin |
Pin 7 | SW Pin |
Installing Arduino IDE Software
First, you will require to Download the updated version of Arduino IDE Software and Install it on your PC or laptop. if you Learn How to install the Arduino step-by-step guide then click on how to install Arduino Button given Blow
Code
//For more Projects: www.arduinocircuit.com
int value = 0;
void setup() {
//pinMode(A0, INPUT);
//pinMode(A1, INPUT);
pinMode(7, INPUT_PULLUP); //set pin 7 as an input and enable the internal pull-up resistor
Serial.begin(9600);
}
void loop() {
value = analogRead(A0); // read X axis value [0..1023]
Serial.print("X:");
Serial.print(value, DEC);
value = analogRead(A1); // read Y axis value [0..1023]
Serial.print(" | Y:");
Serial.print(value, DEC);
value = digitalRead(7); // read Button state [0,1]
Serial.print(" | Button:");
Serial.println(value, DEC);
delay(100);
}
Applications
- Robotics and automation
- Gaming and virtual reality
- Consumer electronics
- DIY electronic projects
- Industrial control systems
Conclusion
The KY-023 Dual Axis Joystick module is a versatile and affordable electronic component that can be used to control the movement of objects in two directions. With its dual-axis control, simple interface, and compatibility with a range of microcontrollers, it is a popular choice for robotics, gaming, and other electronic applications. Whether you’re building a robot or a gaming controller, the KY-023 Dual Axis Joystick module is a useful and reliable component that can help bring your projects to life.