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 that is proportional to the strength of the magnetic field, making it ideal for applications requiring precise magnetic field measurements. Additionally, the module includes a digital output that can be triggered when the magnetic field strength exceeds a user-defined threshold, adjustable via an onboard potentiometer.

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
  • Proximity detection
  • Magnetic field strength measurement
  • Motor speed sensing
  • Contactless switches

Technical Specifications

The KY-024 module consists of a linear Hall effect sensor, a comparator, and an onboard potentiometer for sensitivity adjustment. Below are the key technical details:

Key Technical Details

  • Operating Voltage: 3.3V to 5V
  • Analog Output Voltage: Proportional to magnetic field strength
  • Digital Output: High/Low signal based on threshold
  • Sensitivity Adjustment: Via onboard potentiometer
  • Dimensions: 32mm x 14mm x 8mm
  • Operating Temperature: -40°C to 85°C

Pin Configuration and Descriptions

The KY-024 module has 3 pins for interfacing with external circuits. The table below describes each pin:

Pin Name Description
1 VCC Power supply input (3.3V to 5V)
2 GND Ground connection
3 AOUT Analog output voltage proportional to the magnetic field strength
4 DOUT Digital output signal (High/Low) based on the magnetic field threshold setting

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 source and the GND pin to ground.
  2. Read Analog Output: Connect the AOUT pin to an analog input pin on your microcontroller to measure the magnetic field strength.
  3. Use Digital Output: Connect the DOUT 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 desired magnetic field threshold for the digital output.

Important Considerations and Best Practices

  • Ensure the module is powered within its operating voltage range (3.3V to 5V) to avoid damage.
  • Place the sensor in the desired magnetic field area for accurate readings.
  • Avoid placing the module near strong electromagnetic interference sources, as this may affect accuracy.
  • Use the analog output for precise measurements and the digital output for simple threshold-based detection.

Example: Connecting KY-024 to an 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's VCC pin to the Arduino's 5V pin.
  • Connect the KY-024's GND pin to the Arduino's GND pin.
  • Connect the KY-024's AOUT pin to the Arduino's A0 pin.
  • Connect the KY-024's DOUT pin to the Arduino's D2 pin.

Arduino Code Example

// KY-024 Hall Effect Sensor Example Code
// Reads analog and digital outputs from the KY-024 module and displays the results.

const int analogPin = A0;  // Pin connected to AOUT (analog output)
const int digitalPin = 2;  // Pin connected to DOUT (digital output)

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

void loop() {
  int analogValue = analogRead(analogPin); // Read analog value from AOUT
  int digitalValue = digitalRead(digitalPin); // Read digital value from DOUT

  // Print the analog and digital values to the Serial Monitor
  Serial.print("Analog Value: ");
  Serial.print(analogValue);
  Serial.print(" | Digital Value: ");
  Serial.println(digitalValue);

  delay(500); // Wait for 500ms before the next reading
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output from the Module

    • Ensure the module is powered correctly (3.3V to 5V).
    • Check all connections for loose wires or incorrect pin assignments.
  2. Inaccurate Analog Readings

    • Verify that the sensor is placed in the correct magnetic field area.
    • Avoid placing the module near strong electromagnetic interference sources.
  3. Digital Output Not Triggering

    • Adjust the potentiometer to set the correct threshold for the magnetic field.
    • Ensure the magnetic field strength exceeds the set threshold.
  4. Arduino Not Detecting Signals

    • Double-check the pin connections between the KY-024 and the Arduino.
    • Confirm that the Arduino code matches the connected pins.

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. The analog output voltage will vary depending on the strength and polarity of the magnetic field.

Q: How do I know if the digital output is working?
A: The onboard LED will light up when the digital output is triggered, indicating that the magnetic field strength has exceeded the threshold.

Q: Can I use the KY-024 with a 3.3V microcontroller?
A: Yes, the KY-024 is compatible with 3.3V microcontrollers, but ensure the power supply voltage matches the microcontroller's requirements.

Q: What is the range of the analog output voltage?
A: The analog output voltage typically ranges from 0V to the supply voltage (3.3V or 5V), depending on the magnetic field strength.

By following this documentation, you can effectively integrate the KY-024 Hall effect sensor module into your projects for reliable magnetic field detection and measurement.