Dark Light
-18%

LM393 Hall Effect Sensor Module – 4 Pin


The Hall Effect Sensor Module is a compact magnetic detection sensor featuring an LM393 comparator that detects the presence of a nearby magnetic field without physical contact. It is ideal for rotation counting, motor speed measurement, magnetic position detection and robotics projects.

Key Features:

  • Semiconductor-based Hall effect sensing
  • LM393 voltage comparator
  • Contactless magnetic detection
  • Digital detection output
  • Compact blue PCB with 4-pin interface
  • Onboard power and detection LED indicators
  • Suitable for Arduino, ESP32 and other compatible microcontroller circuits

Buy the Hall Effect Sensor Module online from Yagobotix with shipping across India and same-day delivery or pickup available in Surat.

₹49.00 ₹60.00 (incl. GST)

LM393 Hall Effect Sensor Module – 4 Pin

1. What Is a Hall Effect Sensor Module?

The Hall Effect Sensor Module is an electronic magnetic detection sensor designed to detect the presence of a suitable magnetic field without requiring physical contact.

It features a semiconductor-based Hall sensing element and an LM393 comparator circuit that provides a digital detection signal.

Unlike mechanical magnetic reed switches, a Hall effect sensor operates without moving electrical contacts, making it suitable for repeated magnetic switching, rotation counting and position detection.

The compact module can be used with Arduino, ESP32 and other compatible microcontrollers for robotics, automation and educational electronics projects.

2. What Can You Build With a Hall Effect Sensor Module?

This magnetic detection module is suitable for applications such as:

  • Motor rotation counters
  • Digital RPM measurement projects
  • Bicycle speedometer prototypes
  • Robot wheel rotation detection
  • Magnetic position detection
  • Contactless electronic switches
  • Door and window monitoring
  • Magnetic proximity detection
  • IoT monitoring systems
  • Robotics feedback systems
  • School science and STEM projects
  • DIY automation projects

3. Who Is It For?

The Hall Effect Sensor Module is suitable for:

  • Beginners learning electronics
  • School and engineering students
  • Arduino and ESP32 enthusiasts
  • Robotics hobbyists
  • IoT project developers
  • STEM educators and trainers
  • DIY electronics makers

It is particularly useful for learning about magnetic fields, semiconductor sensors, digital signals and rotational speed measurement.

4. How Does a Hall Effect Sensor Module Work?

The Hall effect is a physical phenomenon in which a voltage develops across a current-carrying material when it is exposed to a magnetic field in an appropriate direction.

A Hall effect sensing element uses this principle to detect magnetic fields.

In a magnetic switching module, the sensing circuit changes its electrical output when the applied magnetic field satisfies its switching conditions.

The onboard LM393 comparator circuit helps provide a digital detection signal that can be read by a microcontroller.

Working principle:

Magnetic Field → Hall Effect Sensing Element → Signal Processing → Digital Output → Microcontroller → Action

For example, a magnet attached to a rotating wheel can trigger the Hall Effect Sensor Module each time it passes nearby. A microcontroller can count these detection events to calculate rotational speed.

5. Technical Specifications

Specification Details
Product Type Hall Effect Sensor Module
Comparator IC LM393
Sensing Technology Semiconductor Hall effect
Recommended Reference Supply 5V DC
Detection Method Magnetic field detection
Primary Output Digital HIGH / LOW
Number of Pins 4
Pin Labels A0, D0, GND, VCC
Sensitivity Adjustment No visible adjustment potentiometer
Indicators Power and switching LEDs
PCB Colour Blue
Mounting PCB mounting hole
Detection Type Contactless
Mechanical Contacts None
Application Magnetic detection, rotation counting and position sensing

The exact operating voltage range, sensing element model and magnetic switching characteristics depend on the supplied hardware.

The functionality of the A0 terminal may vary between module designs. This product is primarily intended for digital magnetic detection rather than calibrated magnetic field measurement.

6. Hall Effect Sensor Module Pinout

The Hall Effect Sensor Module has four connection pins.

Pin Function
A0 Analog-labelled terminal; functionality depends on circuit design
D0 Digital magnetic detection output
GND Ground
VCC Positive power supply

When viewing the component side of the PCB with the connection pins facing downward, the pin sequence from left to right is:

A0 → D0 → GND → VCC

For basic magnetic detection projects, only VCC, GND and D0 are required.

Always follow the pin labels printed on the actual PCB.

7. How to Connect a Hall Effect Sensor Module to Arduino

The Hall Effect Sensor Module can be connected to an Arduino Uno using three jumper wires for digital magnetic detection.

Required components:

  • Hall Effect Sensor Module
  • Arduino Uno
  • Permanent magnet
  • Jumper wires

Wiring connections:

Hall Effect Sensor Module Arduino Uno
VCC Compatible 5V supply
GND GND
D0 Digital Pin D2
A0 Leave disconnected

After connecting the module, bring a suitable permanent magnet near the Hall sensing element.

Observe the digital output and onboard detection indicator.

If the sensor does not respond, try changing the orientation of the magnet. Some Hall effect switches respond primarily to a particular magnetic polarity.

8. Arduino Example Code

The following program detects a nearby magnet using the Hall Effect Sensor Module and displays its status in the Arduino Serial Monitor.

const int hallPin = 2;

// Example output polarity.
// Change to HIGH if required.
const int detectedState = LOW;

void setup() {
  pinMode(hallPin, INPUT);
  Serial.begin(9600);
}

void loop() {
  int sensorValue = digitalRead(hallPin);

  if (sensorValue == detectedState) {
    Serial.println("Magnet Detected");
  } else {
    Serial.println("No Magnet Detected");
  }

  delay(100);
}

How to test the sensor:

  1. Connect the Hall Effect Sensor Module to Arduino.
  2. Upload the program using Arduino IDE.
  3. Open the Serial Monitor at 9600 baud.
  4. Bring a magnet near the sensing element.
  5. Observe the displayed sensor status.
  6. Remove the magnet and observe the output again.

Verify the actual digital output polarity before integrating the module into an automated circuit.

9. Beginner Project: Digital RPM Counter Using a Hall Effect Sensor

Build a simple rotational speed measurement system using the Hall Effect Sensor Module and Arduino.

Components required:

  • 1 × Hall Effect Sensor Module
  • 1 × Arduino Uno
  • 1 × Permanent magnet
  • Rotating wheel or motor
  • Jumper wires
  • Suitable motor power supply and driver circuit, if required

Secure the magnet to a rotating wheel and position the Hall effect sensor close enough to detect the magnet without touching the rotating assembly.

Every time the magnet passes the sensor, the Arduino counts a pulse.

Wiring connections:

  • Sensor VCC → Compatible 5V supply
  • Sensor GND → Arduino GND
  • Sensor D0 → Arduino D2

Example Arduino code:

const int hallPin = 2;
const int pulsesPerRevolution = 1;

volatile unsigned long pulseCount = 0;
unsigned long previousTime = 0;

void countPulse() {
  pulseCount++;
}

void setup() {
  pinMode(hallPin, INPUT);
  Serial.begin(9600);

  attachInterrupt(
    digitalPinToInterrupt(hallPin),
    countPulse,
    FALLING
  );

  previousTime = millis();
}

void loop() {
  unsigned long currentTime = millis();

  if (currentTime - previousTime >= 1000) {

    noInterrupts();
    unsigned long pulses = pulseCount;
    pulseCount = 0;
    interrupts();

    unsigned long elapsed =
      currentTime - previousTime;

    float rpm =
      (pulses * 60000.0) /
      (elapsed * pulsesPerRevolution);

    Serial.print("RPM: ");
    Serial.println(rpm);

    previousTime = currentTime;
  }
}

This example assumes one detection pulse per revolution and an active-LOW sensor output.

If multiple magnets are used, update the pulsesPerRevolution value accordingly. Verify the output waveform and ensure that each magnet pass produces one counted pulse.

Secure the magnet firmly and test the assembly at low rotational speeds before operating it at higher speeds.

This project teaches digital interrupts, magnetic detection, pulse counting and rotational speed measurement.

10. Related Products

Complete your electronics project with:

11. Related Tutorials

Explore these electronics learning topics:

  • How to Use a Hall Effect Sensor Module with Arduino
  • How to Build a Digital RPM Counter
  • Hall Effect Sensor vs Magnetic Reed Switch
  • How to Connect a Hall Effect Sensor to ESP32
  • How to Measure DC Motor Speed Using Arduino
  • Understanding the Hall Effect
  • How to Build a Magnetic Door Detection System
  • Understanding Arduino Interrupts
  • How to Build a Digital Speedometer

12. Frequently Asked Questions

What is a Hall Effect Sensor Module?

A Hall Effect Sensor Module is an electronic sensor that detects magnetic fields using a semiconductor-based sensing element.

What is the function of the LM393 IC?

The LM393 is a voltage comparator used in the module’s signal-processing circuit to provide a digital detection output.

Can a Hall effect sensor detect ordinary metal objects?

A Hall effect sensor detects magnetic fields rather than ordinary metal objects. A non-magnetised metal object may not trigger the sensor.

Does this sensor require physical contact with a magnet?

No. The Hall Effect Sensor Module detects a suitable magnetic field without requiring physical contact.

Can this sensor measure motor RPM?

Yes. A magnet attached to a rotating component can generate detection pulses. A microcontroller can count these pulses to estimate rotational speed.

What is the difference between a Hall effect sensor and a reed switch?

A Hall effect sensor uses semiconductor technology without moving mechanical contacts, whereas a reed switch uses electrical contacts that move in response to a magnetic field.

Can I use the Hall Effect Sensor Module with Arduino?

Yes. Connect the module’s digital output to an Arduino digital input and supply it with compatible power.

Can I use a Hall effect sensor with ESP32?

Yes, with a suitable power supply and logic-level conversion wherever required.

Does this Hall Effect Sensor Module have adjustable sensitivity?

This PCB version does not feature a visible adjustment potentiometer. Its magnetic detection behaviour depends on the sensing element and circuit design.

Can this module measure magnetic field strength?

This module is primarily intended for magnetic switching and detection. It should not be used as a calibrated magnetic field strength meter.

What is the purpose of the A0 pin?

A0 is an analog-labelled terminal. Its functionality varies between board designs, and it may not provide a usable linear analog signal on digital Hall switch-based modules.

What is the detection distance of this sensor?

The detection distance depends on the magnet’s strength, polarity, orientation and the sensor’s switching characteristics.

Where can I buy a Hall Effect Sensor Module in Surat?

You can purchase the Hall Effect Sensor Module online from Yagobotix with same-day delivery and pickup available in Surat.

13. What Is Included?

  • 1 × LM393 Hall Effect Sensor Module – 4 Pin, Blue PCB

Magnets, microcontroller boards, motors, wheels, breadboards and jumper wires are not included.

14. Compatibility

The Hall Effect Sensor Module can be used in suitable electronic circuits involving:

  • Arduino Uno
  • Arduino Nano
  • Arduino Mega
  • ESP32 development boards
  • ESP8266 NodeMCU
  • Raspberry Pi GPIO
  • STM32 development boards
  • Other compatible microcontrollers
  • Custom magnetic detection circuits

Verify the sensor’s operating voltage and digital output levels before connecting it to a microcontroller.

When using a 3.3V controller, use appropriate logic-level conversion if the module produces a 5V output.

Do not connect a 5V digital signal directly to a GPIO pin that is not 5V tolerant.

15. Buy Hall Effect Sensor Module Online in India

Add contactless magnetic detection and rotational feedback to your next electronics project with the Hall Effect Sensor Module from Yagobotix.

Featuring semiconductor-based magnetic sensing, an LM393 comparator and a compact PCB design, this module is suitable for RPM counters, robotics, speed measurement, position detection and educational electronics projects.

Whether you are building a robot, developing a digital speedometer or experimenting with magnetic fields, this module provides a convenient way to detect magnetic switching events.

Shop with Yagobotix:

  • Shipping across India
  • Same-day delivery in Surat
  • Same-day pickup available in Surat
  • Electronic components for students, hobbyists and engineers

Same-day services are subject to stock availability, delivery location and applicable order cut-off times.

Add to cart and start building your next electronics project with Yagobotix!

SKU: YGB-SEN-HALL-04 Category:

Based on 0 reviews

0.0 overall
0
0
0
0
0

Only logged in customers who have purchased this product may leave a review.

There are no reviews yet.

SHOPPING CART

close

Select at least 2 products
to compare