

The Hall Effect Magnetic Sensor Module (Manufacturer: HiLetgo, Part ID: 3-01-1193) is a versatile electronic component designed to detect the presence and strength of a magnetic field. It operates based on the Hall effect, which generates a voltage difference across a conductor when it is exposed to a magnetic field. This module is widely used in applications such as position sensing, proximity detection, speed measurement, and current sensing.








The following table outlines the key technical details of the HiLetgo Hall Effect Magnetic Sensor Module:
| Parameter | Specification |
|---|---|
| Operating Voltage | 3.3V to 5V DC |
| Output Type | Digital (High/Low) |
| Sensitivity | Detects magnetic fields > 3mT |
| Output Voltage (High) | ~Vcc (3.3V or 5V, depending on input) |
| Output Voltage (Low) | ~0V |
| Operating Temperature | -40°C to +85°C |
| Dimensions | 32mm x 14mm x 7mm |
The module has three pins, as described in the table below:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.3V to 5V DC) |
| 2 | GND | Ground connection |
| 3 | OUT | Digital output pin (High when no magnetic field, Low when a magnetic field is detected) |
VCC pin to a 3.3V or 5V DC power source and the GND pin to the ground of your circuit.OUT pin to a digital input pin of your microcontroller or other logic-level device.Below is an example of how to use the Hall Effect Magnetic Sensor Module with an Arduino UNO:
VCC pin of the module to the 5V pin on the Arduino.GND pin of the module to the GND pin on the Arduino.OUT pin of the module to digital pin 2 on the Arduino.// Hall Effect Magnetic Sensor Module Example
// Manufacturer: HiLetgo, Part ID: 3-01-1193
const int sensorPin = 2; // Digital pin connected to the OUT pin of the sensor
const int ledPin = 13; // Built-in LED pin on Arduino
void setup() {
pinMode(sensorPin, INPUT); // Set sensor pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int sensorState = digitalRead(sensorPin); // Read the sensor output
if (sensorState == LOW) {
// Magnetic field detected
digitalWrite(ledPin, HIGH); // Turn on the LED
Serial.println("Magnetic field detected!");
} else {
// No magnetic field detected
digitalWrite(ledPin, LOW); // Turn off the LED
Serial.println("No magnetic field detected.");
}
delay(500); // Wait for 500ms before the next reading
}
No Output Signal:
VCC and GND pins are properly connected.Erratic Behavior:
Sensor Not Detecting Magnetic Field:
Q: Can this module detect both north and south poles of a magnet?
A: Yes, the module can detect both poles, but it does not differentiate between them.
Q: What is the maximum distance for magnetic field detection?
A: The detection range depends on the strength of the magnet. Typically, it can detect fields within a few centimeters.
Q: Can I use this module with a 3.3V microcontroller?
A: Yes, the module operates at both 3.3V and 5V, making it compatible with 3.3V microcontrollers like ESP32.
Q: Is the output signal analog or digital?
A: The output signal is digital, providing a HIGH or LOW state based on the presence of a magnetic field.