|
|
2
|
Applications
- Current Sensing applications
- Speed detection
- Positioning
- Proximity Switching
- RPM Counting
|
|
3
|
Hall Effect Sensor
- A Hall effect device produces a voltage
when placed in a magnetic field perpendicular to the flow of current.
- When the South pole of a magnet is near the
sensor the output pin is set LOW.
- When the North pole or no magnet is near the sensor the output pin is set HIGH.
Click the button to buy one
Go to Shop
|
|
4
|
Connect shield to SPDuino
Plug the shield on top of the SPDuino Board. Make sure that all the pins are plugged correctly.
|
|
5
|
Auton Shield On-board Peripherals
Auton Shield On-board Peripherals

|
|
6
|
Interfacing LED and Hall Sensor - Pin Connection
- Auton Shield has many Sensor ports with 3 pins (5v, GND, D or D/A (output)). Any Digital or analog sensor can be connected to these ports.
- A 3V LED should be connected with a 220Ω resistor to any pin (example: pin 13) and its negative pin should be connected to gnd.
|
|
7
|
interfacing LED and Hall sensor - Without Magnet
When there is no magnetic field or movement of magnetic flux the sensor is in OFF state and LED does not glow.

|
|
8
|
Interfacing LED and Hall Sensor - With Magnet
Condition
1: When South Pole is perpendicular to the sensor Hall Sensor output is LOW. LED turns to "ON" state. Condition
2: When North Pole is perpendicular to the sensor Hall Sensor output is High and LED turns to "OFF" state.
Condition 1:

Condition 2:
|
|
9
|
Interfacing LED and Hall Sensor - Program Tips
- Since Hall Sensor is an
input device, set pin 7 as INPUT
- LED is an
output device, hence set pin 3 as
OUTPUT
- Read the input from the sensor, store it in a variable.
- If the value is LOW (South Pole), make
the
LED turn "ON"
- If it is HIGH (no magnet/north pole), make
the LED turn "OFF"
|
|
10
|
Sample Program
Below is the program for Hall effect sensor. click the button and upload it in SPDuino Board. For clarifications in program check out Programming basics module.
Download
|
|
|