HomeKY-023 Dual Axis Joystick Module
KY-023 Dual Axis Joystick Module
KY-023 Dual Axis Joystick ModuleKY-023 Dual Axis Joystick Module
Standard shipping in 7 working days

KY-023 Dual Axis Joystick Module

₹75
₹45
Saving ₹30
40% off
Product Description

The KY-023 Dual Axis Joystick Module is a simple module that includes a joystick for controlling two axes, typically used for interfacing with microcontrollers like Arduino, Raspberry Pi, and other similar platforms. It allows for both horizontal and vertical motion, providing input on two axes, X and Y, and often includes a push button for additional input when the joystick is pressed.

Here are the main features of the KY-023 Dual Axis Joystick Module:

  1. Dual Axis Control:
  • The joystick controls two axes, typically X (left/right) and Y (up/down).
  • Each axis is a potentiometer that provides an analog voltage output corresponding to the position of the joystick.
  1. Push Button:
  • The joystick typically features a button beneath it that can be pressed, often used for an additional input signal.
  • When pressed, it usually sends a digital signal (HIGH or LOW) to the microcontroller.
  1. Analog Output:
  • The module outputs analog signals for both X and Y axes. This allows for continuous control with variable intensity.
  • These signals can be read by an analog input pin on a microcontroller like Arduino.
  1. Connection Pins:
  • VCC: This pin is connected to the power supply (typically 5V).
  • GND: This pin connects to ground (0V).
  • X: The analog output for the X-axis.
  • Y: The analog output for the Y-axis.
  • SW: The digital signal for the push button, typically connected to a digital input pin on the microcontroller.
  1. Working Principle:
  • The position of the joystick is converted into an analog voltage using the potentiometer.
  • As you move the joystick, the output voltage changes based on the direction and intensity of the movement.
  • The push button sends a HIGH or LOW signal when pressed or released.

Example of Use with Arduino:

Here’s a simple example of how you might use the KY-023 with an Arduino:

int xPin = A0; // X-axis connected to analog pin A0
int yPin = A1; // Y-axis connected to analog pin A1
int buttonPin = 2; // Button connected to digital pin 2

int xValue = 0;
int yValue = 0;
int buttonState = 0;

void setup() {
  Serial.begin(9600);
  pinMode(buttonPin, INPUT);
}

void loop() {
  xValue = analogRead(xPin); // Read X-axis
  yValue = analogRead(yPin); // Read Y-axis
  buttonState = digitalRead(buttonPin); // Read button press state

  // Output values to Serial Monitor
  Serial.print("X: ");
  Serial.print(xValue);
  Serial.print(" Y: ");
  Serial.print(yValue);
  Serial.print(" Button: ");
  Serial.println(buttonState);

  delay(100); // Short delay for readability
}

Calibration and Adjustment:

The joystick module might need to be calibrated, depending on your application, to account for any slight offsets in the joystick's resting position. For example, if you want the joystick to rest at the midpoint when idle, you can adjust the values in your code accordingly.

Applications:

  • Robotics: For controlling robot movements, like with a tank or car robot.
  • Games and Simulations: Can be used as an input device for various game controllers.
  • Camera Controls: For pan/tilt control in camera applications.


Brand:- Generic

Origin:- China

Share
Customer Reviews

Secure Payments

Shipping in India

Cash on Delivery

Great Value & Quality