Extra 5% OFF Use Code: OL05
Free Shipping over ₹999

The KY-024 Linear magnetic Hall sensor reacts in the presence of a magnetic field. It has a potentiometer to adjust the sensitivity of the sensor and it provides both analog and digital outputs.

The digital output acts as a switch that will turn on/off when a magnet is near, whereas the analog output can measure the polarity and relative strength of the magnetic field.

The KY-024 module consists of a 49E Linear Hall-Effect Sensor, a LM393 Dual Differential Comparator, a potentiometer, two LEDs and six resistors. It’s compatible with popular electronics boards like Arduino, Raspberry Pi, ESP32 and ESP8266.

Features
  • Miniature Construction
  • Single Current Sourcing Output
  • Linear Output for Circuit Design Flexibility
  • Low Noise Output Virtually Eliminates the Need
    for Filtering
  • A Stable and Accurate Output
  • Temperature Range of -40oC to 85oC
  • Responds to Either Positive or Negative Gauss
/*Author : OceanLabz 
  Module : KY-024
*/

 #define DIGITAL 1
 const int LED = 13 ; // LED as Indicator
 const int digitalPin = 3; // magnetic sensor digital interface
 const int analogPin = A0; // magnetic sensor analog interface
 const int digitalVal ; // digital value readings
 const int analogVal; // analog value readings

 void setup ()
 { 
    pinMode (LED, OUTPUT);

    #if DIGITAL
       pinMode (digitalPin, INPUT);
    #else
       pinMode(analogPin, INPUT);
    #endif

    Serial.begin(9600);
 } 

 void loop ()
 { 
    #if DIGITAL
       //Read digital values
       digitalVal = digitalRead(digitalPin) ;
       // When magnetic field is present, Turn ON LED
       if (digitalVal == HIGH) 
       { 
          digitalWrite (LED, HIGH);
       } 
       else
       { 
          digitalWrite (LED, LOW);
       }
   #else
       //Read the analog values
       analogVal = analogRead(analogPin);
       // print analog value
       Serial.println(analogVal);
   #endif
       delay(100); 
}

 

Applications
  • Current Sensing
  • Motor Control
  • Position Sensing
  • Magnetic Code Reading
  • Ferrous Metal Detector
  • Vibration Sensing
  • Liquid Level Sensing
  • Weight Sensing

 

Reviews

There are no reviews yet.

Be the first to review “KY-024 Linear Magnetic Hall Effect Sensor Module”

Your email address will not be published.

Recently Viewed

  • Recently Viewed Products is a function which helps you keep track of your recent viewing history.
    Shop Now
Need Help?
KY-024 Linear Magnetic Hall Effect Sensor Module
99.00

1 in stock