Description
SS41F Bipolar Hall-Effect Sensor
The SS41F is a bipolar digital Hall-effect switch that responds to magnetic fields of alternating north and south polarity. It is used for position sensing, electronic switching and speed or direction detection.
Specifications stated in the source
- Supply voltage: 4.5–24V DC
- Output: digital, open-collector (sinking); add a pull-up resistor to a compatible logic voltage
- Maximum output current stated in source: 20mA
- Supply current: up to 10mA at 4.5V, according to the source
- Operating temperature: −40°C to +150°C
- Magnetic thresholds: source lists approximately −150G release to +150G operate; actual operate/release thresholds depend on magnetic polarity and device tolerances
- Package: TO-92, three leads
For Arduino use, power the sensor from 5V and GND. Because the output is open-collector, provide a pull-up to the Arduino’s 5V logic rail; do not pull the output up to the sensor’s higher supply voltage. Check the package drawing for the exact lead order before wiring.
Applications
- Position sensing
- Brushless DC motor commutation
- Speed and direction detection
- Security systems and robotics projects
Basic Arduino Uno example
The source example reads the digital output on D3, lights the onboard LED when the input is LOW, and reports status over Serial.
const int led = 13; // LED sur l'Arduino
const int hallPin = 3; // Interface numérique du capteur Hall
int hallState; // Etat du capteur Hall
void setup() {
pinMode(led, OUTPUT);
pinMode(hallPin, INPUT);
Serial.begin(9600);
}
void loop() {
// Lecture de l'état du capteur Hall
hallState = digitalRead(hallPin);
if (hallState == LOW) {
digitalWrite(led, HIGH);
Serial.println("Magnet detected");
} else {
digitalWrite(led, LOW);
Serial.println("No magnet");
}
delay(100);
}
Required: Arduino Uno, SS41F sensor and jumper wires.
- Set the LED and sensor pins as outputs/inputs.
- Read the sensor state with
digitalRead(). - Turn the LED on when the reading is LOW and report the state.
Source wiring labels: VCC → 5V, GND → GND and output → D3. Add a pull-up resistor from the output to 5V, as required for an open-collector output.
Arduino example with I2C LCD
This version also displays the detected state on a 16×2 I2C LCD.
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
const int led = 13;
const int hallPin = 3;
int hallState;
void setup() {
lcd.begin();
lcd.backlight();
pinMode(led, OUTPUT);
pinMode(hallPin, INPUT);
Serial.begin(9600);
}
void loop() {
hallState = digitalRead(hallPin);
if (hallState == LOW) {
digitalWrite(led, HIGH);
lcd.setCursor(0, 0);
lcd.print("Magnetic: YES ");
Serial.println("Magnet detected");
} else {
digitalWrite(led, LOW);
lcd.setCursor(0, 0);
lcd.print("Magnetic: NO ");
Serial.println("No magnet");
}
delay(100);
}
Required: Arduino Uno, SS41F sensor, 1602 I2C LCD and jumper wires.
- Sensor VCC → 5V; GND → GND; output → D3 with a pull-up to 5V
- LCD VCC → 5V; GND → GND; SCL → A5; SDA → A4
Install a compatible LiquidCrystal I2C library in the Arduino IDE Library Manager. Verify the LCD’s I2C address and sensor lead order against their documentation.
See the SS41F datasheet and Honeywell SS41-family datasheet.









