Collection: Magnetic, Hall & Angle Sensors
Magnetic sensors detect magnets. That makes them good for measuring position and rotation, counting wheel turns, and noticing when a door or lid opens.
- A Hall effect sensor switches or changes its output when a magnet comes close. It is used in speedometers, contactless switches and position detectors.
- A reed switch, or a ready-made magnetic door sensor such as the MC-38, closes when a magnet is near. It is the simplest way to know whether a door, fridge, letterbox or pill-box lid is open.
- The AS5600 goes further. It reads the angle of a magnet spinning above it as a 12-bit value over I2C (address 0x36), so you can measure knob position or motor angle without contact.
How to choose:
- Pick a reed or door sensor for open/closed.
- Pick a Hall sensor for counting or proximity.
- Pick an AS5600 for precise angle.
All of these work with Arduino and ESP32. The AS5600 wires to SDA and SCL. On an ESP32, use GPIO21 and GPIO22, and tie DIR to GND to set the direction.
Magnet strength and distance matter. Test with your real magnet before fixing the mounting.
Frequently asked questions
Hall sensor or reed switch?
Either detects a magnet. A Hall sensor is solid-state and suits fast counting; a reed switch is simplest for open/closed.
How does the AS5600 measure angle?
It reads the direction of a magnet spinning above the chip and reports a 12-bit angle over I2C.
What address does the AS5600 use?
0x36.
How do I detect a door opening?
Use a magnetic door sensor (reed switch). It changes state when the magnet moves away.
Guides
- AS5600 + ESP32: Pinout, Wiring Diagram and Working Code
- How Does a Hall Effect Sensor Work?
- Idea to Build: An ESP32 Letterbox Notifier That Tells Your Phone "You've Got Post"
Reference pages on soldr.ai
Describe your build on Soldr and it picks the parts, writes and compiles the code, and shows how to wire them. Sign in and get 100 credits free.
-
MC-38 Magnetic Door/Window Sensor Switch for Alarm Systems | Compoden
Regular price Rs. 40.00 INRRegular priceSale price Rs. 40.00 INR -
QMC5883L Compass Module – 3-Axis Magnetic Sensor I2C for Arduino
Regular price Rs. 410.00 INRRegular priceSale price Rs. 410.00 INR -
A3144 Hall Effect Sensor Module – Unipolar Magnetic Switch
Regular price Rs. 35.00 INRRegular priceSale price Rs. 35.00 INR -
Reed Switch Sensor Module - Magnetic Detection Switch for DIY Electronics
Regular price Rs. 45.00 INRRegular priceSale price Rs. 45.00 INR -
Reed Switch Sensor - Normally Open Magnetic Switch
Regular price Rs. 20.00 INRRegular priceSale price Rs. 20.00 INR -
KY-003 Hall Effect Magnetic Sensor Module - Compoden
Regular price Rs. 25.00 INRRegular priceSale price Rs. 25.00 INR -
WitBlox Magnet Sensor Kit - 6 Projects, Hall Effect Switch Module
Regular price Rs. 1,750.00 INRRegular priceSale price Rs. 1,750.00 INR -
A3144 Hall Effect Sensor – Unipolar Switch for Magnetic Sensing
Regular price Rs. 10.00 INRRegular priceSale price Rs. 10.00 INR -
KY-035 Hall Magnetic Sensor Module - Analog & Digital Output
Regular price Rs. 35.00 INRRegular priceSale price Rs. 35.00 INR -
KY-024 Linear Magnetic Hall Sensor Module | Compoden
Regular price Rs. 40.00 INRRegular priceSale price Rs. 40.00 INR -
AS5600 Magnetic Encoder Module – 12-bit I2C/PWM Sensor
Regular price Rs. 140.00 INRRegular priceSale price Rs. 140.00 INR