Electronics

Hall Effect Magnetic Module KY-024 Linear Switches Speed Counting Sensor

Out Of Stock

1

Description

The KY-024 Linear Magnetic Hall Sensor responds when a magnetic field is present, It features a potentiometer to modify the sensor's sensitivity and offers both analog and digital outputs. Similar to the KY-003, the digital output functions as a switch that is activated or deactivated by the presence of a magnet. The polarity and relative strength of the magnetic field can be measured using the analog output, the SS49E hall-effect sensor, on which the KY-024 module is based, allows an operating voltage range of 2.7V to 6.5V. The ESP8266 and ESP32 microcontrollers, both of which operate at 3.3V, this is what makes the module compatible with a variety of well-known electronics platforms, including Teensy, Esp32, Arduino, and Raspberry Pi.

Package Includes:

  • 1x Hall Effect Magnetic Sensor Module KY-024

Features:

  • This Module includes Digital and Analog output
  • Responds to Either Positive or Negative Gauss
  • Linear Output for circuit design flexibility
  • compatible with Arduino Raspberry Pi And ESP32
  • Stable and Accurate Output 

Description:

The KY-024 Linear Magnetic Hall Sensor responds when a magnetic field is present, It features a potentiometer to modify the sensor's sensitivity and offers both analog and digital outputs. Similar to the KY-003, the digital output functions as a switch that is activated or deactivated by the presence of a magnet. The polarity and relative strength of the magnetic field can be measured using the analog output, the SS49E hall-effect sensor, on which the KY-024 module is based, allows an operating voltage range of 2.7V to 6.5V. The ESP8266 and ESP32 microcontrollers, both of which operate at 3.3V, as well as our Arduino microcontroller, which operates at 5V, are ideal for this voltage range. Because the KY-024 module measures the analog signal and generates a digital signal as well, it is bigger than some other hall-effect modules. As a result, the module includes additional parts like the LM393 dual comparator and a 100k potentiometer.

Principle of Work:

When an electric current flows through a conductor, a magnetic field perpendicular to the current direction is created. This magnetic field applies a diagonal force to the moving charge carriers, pushing them to one side of the conductor. Because of the potential difference caused by the pushed outwards charge, a measurable voltage between the two sides of the conductor is produced, which is known as the Hall voltage. The Hall Effect is named after E. H. Hall, who discovered it in 1879. The effect is determined by the conductor's thickness. As a result, the conductor should be very thin.

 

 

A linear Hall effect sensor SS49E, a double differential comparator LM393, and a potentiometer BOCHEN 3296 comprise the KY-024 module. The comparator, in conjunction with the potentiometer, allows the sensor value to be compared to a threshold value in order to use the sensor as an all-or-nothing sensor. On the module, there are two leds. The led1 indicates that the sensor is receiving power, and the led2 indicates that a magnetic field has been detected.

 

 

Pinout of the Board:

The analog output (AO) of the KY-024 module can determine the polarity and relative strength of the magnetic field, while the digital output (DO) merely functions as a switch that turns on/off when a magnet is nearby

  • Pin D0 signal, connect to MCU's Digital pin 
  • GND  is, connect to the GND of the MCU
  • VCC pin is the power VCC +5v, connect to MCU +5
  • Pin A0 signal, connect to MCU's Analog pin 

Applications:

  • Brushless DC electric motors to detect the position of the permanent magnet.
  • Computer printers to detect missing paper and open covers.
  • General switch applications

Circuit:

The Output of the module is going to be connected to the Analog pin A0 on Arduino and the digital pin D0 of the module is connected to the pin3 on Arduino, the 5v and GND should be connected as you see in the schematic that follows.

Library: 

No Need for Library for this module

Code:

This code will read data from the module's analog and digital interfaces. The Arduino's LED will turn on when a magnetic field is detected by the digital interface. The potentiometer and input voltage set the initial value for the analog interface, which will change depending on the strength and polarity of the magnetic field.

int led = 13 ; // LED on arduino
int digitalPin = 3; // linear Hall magnetic sensor digital interface
int analogPin = A0; // linear Hall magnetic sensor analog interface
int digitalVal ; // digital readings
int analogVal; // analog readings
void setup ()
{
  pinMode (led, OUTPUT); 
  pinMode (digitalPin, INPUT); 
  //pinMode(analogPin, INPUT); 
  Serial.begin(9600);
}
void loop ()
{
  // Read the digital interface
  digitalVal = digitalRead(digitalPin) ; 
  if (digitalVal == HIGH) // When magnetic field is present, Arduino LED is on
  {
    digitalWrite (led, HIGH);
  }
  else
  {
    digitalWrite (led, LOW);
  }
  
  // Read the analog interface
  analogVal = analogRead(analogPin);
  Serial.println(analogVal); // print analog value
  delay(100);
}

Technical Details:

  • Operating Voltage Range: 2.7V to 6.5V
  • Sensitivity 1.0mV per Gmin
  • Board Dimension 1.5cm×3.6cm
  • Parameter

    Symhol

    Test Conditions

    Min

    Typ

    Max

    Units

    Operating voltage Vee Operating 3.0   6.5 v
    Supply current Icc Average   4.2 8.0 rnA
    Output Current lout   1.0 1.5   rnA
    Response Time Tack     3   us
    Quiescent Output Voltage Vo B = OG 2.25 2.5 2.75 v
    Sensitivity Vout TA= 25°C 2.0 2.5 3.0 mV/G
    Min Output Voltage   B = -15000   0.86   v
    Max Output Voltage   B = 15000   4.21   v
    Linearity (% of Span)       -0.007    
    Temperanrre Error (Null Drift)
    Sensitivity Drift
        -0.10   0.10 %/°C
      TA ≥25°C -0.15   0.05 %/°C
      TA < 25°C -0.04   0.185 %/°C

Resources:

Tutorial

Datasheet

Comparisons:

The KY-035 is based on the AH49E  IC while the KY-003 hall sensor module is based on the 3144EUA-S hall-effect sensor and operates at a voltage range of 4.5V to 24V as a result, the KY-003 module can be connected to an Arduino but not to an ESP8266 or ESP32 microcontroller board due to the low operating voltage of 3.3V while the KY-35 works form voltage of 3v which makes it good for RPi and ESP32. The KY-003 is the same size as the KY-35, the KY-003 gives a digital output while the KY-035 gives an analog output,