Hall effect sensor is very popular in magnetic field detection. This sensor module comes with the basic circuitry to help you get started. Simply power it with 5VDC and the hall sensor will ready to detect magnetic field. There are two output, digital and analog. Compatible with most of microcontroller such as Arduino/Genuino UNO, Mega, CT-UNO, CT-ARM, Raspberry Pi, and more.
- Input Power: 5VDC
- Based on Allegro 3144 Hall Effect Sensor.
- Two LED indicator, one for power and another for digital output.
- Simple interface: VCC, GND, DO, AO
- Dimension: 2.7cm x 1.4cm
Step 1: Material Preparation
For this tutorial, the items needed to run this project are:
- Arduino Uno
- USB Cable Type A to B
- Female to male jumper wire
- Male to male jumper wire
- Resistor (220 ohm)
Step 2: Hardware Installation
Diagram above shows the simple connection between Hall Effect Sensor and Arduino Uno:
- Vcc > 5V
- GND > GND
- D0 > D2
- A0 > A0
Connection between LED and Arduino Uno:
- LED > D8
After completing the connection, connect the Arduino Uno to power supply with a USB cable.
Step 3: Insert Source Code
- Download the test code and open it by using Arduino software or IDE.
- Make sure that you have choose the right board and the corresponding port (In this tutorial, Arduino Uno is used).
- Then, upload the test code into your Arduino Uno.
Step 4: Results
When a magnet approaches the sensor of hall sensor module, the LED will be lighted up.