Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use KY-024: Examples, Pinouts, and Specs

Image of KY-024
Cirkit Designer LogoDesign with KY-024 in Cirkit Designer

Introduction

The KY-024 is a linear Hall effect sensor module designed to detect magnetic fields. It outputs an analog voltage proportional to the strength of the magnetic field, allowing for precise measurement and detection. Additionally, the module includes a digital output that can be triggered when the magnetic field strength exceeds a user-defined threshold. This dual-output functionality makes the KY-024 versatile for a wide range of applications.

Explore Projects Built with KY-024

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Wireless Joystick-Controlled Interface with Arduino Nano and NRF24L01
Image of Transmitter 11: A project utilizing KY-024 in a practical application
This circuit features an Arduino Nano interfaced with a KY-023 Dual Axis Joystick Module for analog input, and an NRF24L01 module for wireless communication. The joystick provides x and y-axis control signals to the Arduino's analog inputs and a switch signal to a digital input, while the NRF24L01 enables the Arduino to communicate with other devices wirelessly. The 2x 18650 batteries supply power to the Arduino, which in turn powers the joystick and the NRF24L01 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano Joystick-Controlled Wireless Communication System with NRF24L01
Image of Joystick/Transmitter: A project utilizing KY-024 in a practical application
This circuit features an Arduino Nano microcontroller interfaced with a KY-023 Dual Axis Joystick Module and an NRF24L01 wireless transceiver module. The joystick provides analog input to the Arduino, which can then transmit data wirelessly using the NRF24L01 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano Joystick-Controlled Bluetooth Module with Battery Power
Image of padelpro transmitter: A project utilizing KY-024 in a practical application
This circuit is a wireless joystick controller that uses an Arduino Nano to read analog signals from a KY-023 Dual Axis Joystick Module and transmits the data via an HC-05 Bluetooth Module. The system is powered by a 18650 Li-Ion battery with a rocker switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano Controlled Joystick with NRF24L01 Wireless Communication
Image of drone remote: A project utilizing KY-024 in a practical application
This circuit features an Arduino Nano interfaced with two KY-023 Dual Axis Joystick Modules and an NRF24L01 wireless transceiver module. The joysticks provide X and Y axis inputs to the Arduino, which reads these analog signals and a button state, then transmits a message wirelessly via the NRF24L01. The circuit is likely used for remote control applications, with the Arduino processing joystick inputs and handling wireless communication to send control signals to a receiver.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with KY-024

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Transmitter 11: A project utilizing KY-024 in a practical application
Wireless Joystick-Controlled Interface with Arduino Nano and NRF24L01
This circuit features an Arduino Nano interfaced with a KY-023 Dual Axis Joystick Module for analog input, and an NRF24L01 module for wireless communication. The joystick provides x and y-axis control signals to the Arduino's analog inputs and a switch signal to a digital input, while the NRF24L01 enables the Arduino to communicate with other devices wirelessly. The 2x 18650 batteries supply power to the Arduino, which in turn powers the joystick and the NRF24L01 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Joystick/Transmitter: A project utilizing KY-024 in a practical application
Arduino Nano Joystick-Controlled Wireless Communication System with NRF24L01
This circuit features an Arduino Nano microcontroller interfaced with a KY-023 Dual Axis Joystick Module and an NRF24L01 wireless transceiver module. The joystick provides analog input to the Arduino, which can then transmit data wirelessly using the NRF24L01 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of padelpro transmitter: A project utilizing KY-024 in a practical application
Arduino Nano Joystick-Controlled Bluetooth Module with Battery Power
This circuit is a wireless joystick controller that uses an Arduino Nano to read analog signals from a KY-023 Dual Axis Joystick Module and transmits the data via an HC-05 Bluetooth Module. The system is powered by a 18650 Li-Ion battery with a rocker switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of drone remote: A project utilizing KY-024 in a practical application
Arduino Nano Controlled Joystick with NRF24L01 Wireless Communication
This circuit features an Arduino Nano interfaced with two KY-023 Dual Axis Joystick Modules and an NRF24L01 wireless transceiver module. The joysticks provide X and Y axis inputs to the Arduino, which reads these analog signals and a button state, then transmits a message wirelessly via the NRF24L01. The circuit is likely used for remote control applications, with the Arduino processing joystick inputs and handling wireless communication to send control signals to a receiver.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Position sensing in robotics and automation
  • Proximity detection for security systems
  • Magnetic field strength measurement
  • Motor speed sensing
  • Contactless switches

Technical Specifications

The KY-024 module is manufactured by ESP32 with the part ID 12. Below are the key technical details and pin configurations:

Key Technical Details

Parameter Value
Operating Voltage 3.3V to 5V
Analog Output Voltage 0V to Vcc (proportional to magnetic field strength)
Digital Output High/Low (based on threshold)
Sensitivity Adjustment Potentiometer onboard
Dimensions 32mm x 14mm x 8mm
Operating Temperature -40°C to +85°C

Pin Configuration and Descriptions

Pin Name Pin Type Description
VCC Power Connect to 3.3V or 5V power supply
GND Ground Connect to the ground of the power supply
A0 Analog Out Outputs an analog voltage proportional to the
magnetic field strength
D0 Digital Out Outputs HIGH or LOW based on the threshold set
by the onboard potentiometer

Usage Instructions

How to Use the KY-024 in a Circuit

  1. Power the Module: Connect the VCC pin to a 3.3V or 5V power supply and the GND pin to ground.
  2. Analog Output: Connect the A0 pin to an analog input pin on your microcontroller to read the magnetic field strength as a voltage.
  3. Digital Output: Connect the D0 pin to a digital input pin on your microcontroller to detect when the magnetic field exceeds the threshold.
  4. Adjust Sensitivity: Use the onboard potentiometer to set the threshold for the digital output.

Important Considerations and Best Practices

  • Ensure the module is powered within its operating voltage range (3.3V to 5V).
  • Avoid placing the module near strong electromagnetic interference sources, as this may affect accuracy.
  • Use proper pull-up or pull-down resistors if required for the digital output pin.
  • For precise measurements, calibrate the module in your specific application environment.

Example: Connecting KY-024 to Arduino UNO

Below is an example of how to connect and use the KY-024 with an Arduino UNO:

Circuit Connections

  • Connect the KY-024 VCC pin to the Arduino 5V pin.
  • Connect the KY-024 GND pin to the Arduino GND pin.
  • Connect the KY-024 A0 pin to the Arduino A0 pin.
  • Connect the KY-024 D0 pin to the Arduino digital pin 2.

Arduino Code

// KY-024 Hall Effect Sensor Example with Arduino UNO
// Reads analog and digital outputs from the KY-024 module

const int analogPin = A0;  // Analog pin connected to A0 of KY-024
const int digitalPin = 2;  // Digital pin connected to D0 of KY-024

void setup() {
  Serial.begin(9600);      // Initialize serial communication
  pinMode(digitalPin, INPUT); // Set digital pin as input
}

void loop() {
  // Read analog value from A0
  int analogValue = analogRead(analogPin);
  Serial.print("Analog Value: ");
  Serial.println(analogValue);

  // Read digital value from D0
  int digitalValue = digitalRead(digitalPin);
  Serial.print("Digital Value: ");
  Serial.println(digitalValue);

  // Add a small delay for stability
  delay(500);
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output from the Module

    • Ensure the module is powered correctly (3.3V or 5V).
    • Check all connections for loose wires or incorrect pin mapping.
  2. Analog Output is Not Changing

    • Verify that the magnetic field source is strong enough to be detected.
    • Ensure the sensor is not placed near strong electromagnetic interference.
  3. Digital Output is Always HIGH or LOW

    • Adjust the potentiometer to set an appropriate threshold for the digital output.
    • Check if the magnetic field strength is within the detectable range.
  4. Inconsistent Readings

    • Ensure stable power supply to the module.
    • Avoid rapid changes in the magnetic field, as the sensor may require time to stabilize.

FAQs

Q: Can the KY-024 detect both north and south poles of a magnet?
A: Yes, the KY-024 can detect both poles of a magnet, but the output voltage will vary depending on the polarity and strength of the magnetic field.

Q: Is the KY-024 compatible with 3.3V microcontrollers like ESP32?
A: Yes, the KY-024 can operate at 3.3V, making it compatible with microcontrollers like the ESP32.

Q: How do I calibrate the KY-024 for my application?
A: Use the onboard potentiometer to adjust the sensitivity threshold for the digital output. For analog output, you may need to map the voltage range to your specific application requirements.

Q: Can the KY-024 measure the exact strength of a magnetic field?
A: The KY-024 provides an analog voltage proportional to the magnetic field strength, but it does not provide a direct measurement in units like Gauss. You may need additional calibration or reference data for precise measurements.