• +965 51122049
ss49e Linear hall sensor module

ss49e Linear hall sensor module

KWD1.000KWD1.000
0%Off

ss49e Linear hall sensor module


 

 


Share:

Hall Effect Sensor Module

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 a digital output. The digital output acts as a switch that will turn on/off when a magnet is near.

Quick Spec

  • Operating Voltage: 2.7 ~ 6.5V
  • Sensitivity: 1.0 mV/G min., 1.4 mV/G typ., 1.75 mV/G max.
  • Current Input: 8mA
  • Output Current: 20mA
  • Response Time: 3uS
  • Board Dimensions: 15 x 36mm
  • Weight: 4g

Wiring Diagram

KY-024-004

 

   KY-024      Arduino   
   A0   A0
   G      GND   
   +   5V
   D0      3



 

Sample Code



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);
}

Resources


Add your review

Your email address will not be published. Required fields are marked *

Please login to write review!

Upload photos

Looks like there are no reviews yet.

Related Products