Hall Sensor Tutorial

by mybotic in Circuits > Arduino

9530 Views, 9 Favorites, 0 Comments

Hall Sensor Tutorial

im131122015_8.jpg

Description:

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.

Features:

  • 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

Material Preparation

F9MRNX2J30T09F8.LARGE.jpg
FT9G6NLJ30T09F9.LARGE.jpg
FFO7NXZJ26F2VJF.LARGE.jpg

For this tutorial, the items needed to run this project are:

  1. Arduino Uno
  2. USB Cable Type A to B
  3. Female to male jumper wire
  4. Male to male jumper wire
  5. LED
  6. Magnet
  7. Resistor (220 ohm)

Hardware Installation

download.jpg
36916318_1834404756603335_618530008507351040_n.jpg

Diagram above shows the simple connection between Hall Effect Sensor and Arduino Uno:

  1. Vcc > 5V
  2. GND > GND
  3. D0 > D2
  4. A0 > A0

Connection between LED and Arduino Uno:

  1. LED > D8

After completing the connection, connect the Arduino Uno to power supply with a USB cable.

Insert Source Code

  1. Download the test code and open it by using Arduino software or IDE.
  2. Make sure that you have choose the right board and the corresponding port (In this tutorial, Arduino Uno is used).
  3. Then, upload the test code into your Arduino Uno.

Downloads

Results

36897109_1834424906601320_1041331566992687104_n.jpg

When a magnet approaches the sensor of hall sensor module, the LED will be lighted up.

Video

Hall sensor