KY-023 Dual Axis Joystick module with Arduino

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 UNO1Buy Now
KY-023 Dual Axis Joystick module1Buy Now
Jumper Wires5Buy Now
Breadboard1Buy 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

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 Voltage3.3V to 5V
Output SignalAnalog (0-5V)
Working Temperature-10 to 50°C
Board Dimensions2.6cm x 3.4cm [1.02in x 1.22in]

Features

  1. Dual-axis control for precise movement
  2. Simple and easy-to-use interface
  3. Affordable and widely available
  4. Built-in button for additional functionality
  5. Compatible with a range of microcontrollers

Pinout

KY-023-Dual-Axis-Joystick-module-Pinout

Pin Configuration

Pin NamePin Type
+5VPositive supply Pin
GNDGround Pin
VRxVoltage Proportional to X axis
VRyVoltage Proportional to Y axis
SWSwitch 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

Circuit Connections

ArduinoModule
+5V+5V Pin
GNDGND Pin
A0VRx Pin
A1VRy Pin
Pin 7SW 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

  1. Robotics and automation
  2. Gaming and virtual reality
  3. Consumer electronics
  4. DIY electronic projects
  5. 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.

Leave a Comment


error: