- 20%

Linear Magnetic Hall Effect Sensor Module

৳ 120.00 ৳ 150.00

Available : 20 Sold : 0

20 in stock

SKU: 17377 Category:


The Linear Hall Effect Sensor Module detects both North and South poles and relative strength of a magnetic field and provides both analog and digital outputs.


  • Linear Hall Effect Sensor Module


  • Uses 49E analog Hall Effect sensor
  • Can differentiate between North and South pole of the magnet
  • Detects the relative strength of the magnetic field
  • Provides analog output representative of relative magnetic strength
  • Provides digital output when magnetic strength exceeds the adjustable set-point
  • 3.3 or 5V operation

This module incorporates an analog Hall Effect sensor.  Hall Effect sensors detect the presence of a magnetic field and are commonly used for measuring the RPM of rotating assemblies where a magnet on the assembly alternately makes and breaks magnetic contact with the sensor as the assembly rotates.  They can even be used to detect electrical current flow through conductors in some cases.

Module Operation

The analog output sits at around 50% Vcc with no input, but this varies with the setting of the sensitivity adjustment pot.  Any magnetic field picked up by the sensor causes this value to increase or decrease depending on whether the south or north pole of the magnet is coming near.  The south pole of the magnet will cause the analog output to linearly ramp towardsLinear Hall Effect Sensor Module Schematic Vcc to a maximum of about 4.2V (if Vcc is 5V).  If the north pole is presented, the voltage will linearly ramp towards ground to a minimum of 0.86V.  The amount of the voltage change will depend on the strength of the magnetic field.

The digital output which is active HIGH, is the result of a LM393 voltage comparator IC comparing the amplitude of the sensor to the level set by the on-board potentiometer.  Turning the pot CW increases the sensitivity.  A LED that is turned on when the output goes active HIGH.  If the pot is turned CCW (less sensitive), the LED will eventually always be off and if it is turned CW (more sensitive) it will come on as the magnet comes near.

The board also has a red LED which lights whenever power is applied.

To use this sensor with a microcontroller,  if the strength of the field is to be measured, the analog output should be hooked up to an analog input.  The output will read 1/2 Vcc with no magnetic field present.  With a magnetic field, the voltage will change linearly at a rate of 2.5mV / G.   Gauss (G) is the unit of measure for magnetism.  If a basic GO / NO GO indication of a magnetic field is desired, the digital output can be connected to a digital input on the microcontroller.

Module Connections

There is a 4-pin header on the module for making connections.

1 x 4 Header 

  • GND / G  = Ground
  • ‘+’ =  Vcc (3.3 – 5V)
  • A0 = Analog output, connects to analog input on uC
  • D0 = Digital output, connects to digital input on uC


This is an interesting module that can be used to experiment with a number of industrial type applications involving Hall Effect sensors.

The analog version of the Hall Effect sensor as used in this module is a little trickier to use than the digital version, but it can provide information that the digital sensors cannot provide such as which pole of the magnet is being presented as well as the relative strength of the magnetic field.  Since this module also has a digital output, it also functions similar to a digital Hall Effect sensor, but with an adjustable trigger point.

The program below monitors the analog output of the module using pin A0, but this can be any available analog pin.  It then reports the raw analog input value as well as the calculated Gauss value.

Linear Hall Effect Sensor Module Example Program

Analog Hall Effect module test

Basic code for reading the analog output of the hall effect module. 

const int AnalogPin = A0;
const float GAUSS_PER_STEP = 1.96;  // Sensor outputs 2.5mV / Gauss.  
                                    // ADC step is about 4.89mV / Step
float rawValue = 0.0;
float gaussValue = 0.0;
float zeroLevel = 530.0;  // Adjust as needed to get zero output with no magnetic field present.

//  Initialization
void setup() 
  pinMode (AnalogPin, INPUT);
  Serial.begin(9600);         // Set comm speed for debug window messages

//  Main
void loop() 
  rawValue = analogRead (AnalogPin) - zeroLevel;  // Output normalized to '0' with no field present
  Serial.print ("Reading Raw: ");
  Serial.println (rawValue);
  // Reading positive relative to the South Pole, the North Pole negative
  gaussValue = rawValue * GAUSS_PER_STEP;
  Serial.print ("Reading in Gauss: ");
  Serial.println (gaussValue);
  delay (3000);


  • Inspected
  • Basic operation verified
  • Packaged in a resealable ESD bag for protection and easy storage.


  1. Module similar or same as KY-024
Customer reviews
  • 0
    0 ratings
  • 5 Stars
    4 Stars
    3 Stars
    2 Stars
    1 Star

There are no reviews yet.

Write a customer review

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