In this illustration we will going to wire the 3144 Hall Effect Sensor Module. Hall Effect Sensor are designed to respond in a wide range of positive or negative magnetic field.
Linear Sensor are critical to the performance to their sensitivity and linearity over their specified operating temperature range and immune to most environmental disturbance that may affect optical or mechanical devices, such as vibration, moisture, dirt or oil films, ambient, lightning, etc.
Linear Hall Effect Sensor are commonly used in current sensing, power sensing (watt-hour-metering), current trip-point detection, strain gauge, biased (magnetically) sensing applications, Ferrous metal detection, proximity sensing, Joy-Stick with intermediate positions sensing, liquid-level sensing, temperature / pressure / vacuum sensing, throttle or air valve positions sensing, non-contact potentiometers, etc.
Required Components
- UNO / MEGA / NANO / PRO / DUE / RPI / ESP8266 / STM
- Hall Effect Sensor Module
- Solder Less Bread Board
- Jumper Wires / DuPont Wires
Wiring Guide
Source Code / Sketch Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
/* 14CORE Test Code for: HAll EFFECT SENSOR .:+osysso++:` `+yhs/-` `-+s+` `:/+++++++++` .:/++ooo++/-` .ooooooooooo+: :///////////- `odh/` `:y+` /ddhsooooooo+ /hddhsooooydddh sdddoooooosdddy` `////////////` -hds` `sy. +ddy` .ddd: sddy.dddo +ddd- .-----------` `hds :sssss/ -ossssso-yy` `hdd: oddy `ddd/oddd:......+dddo .++++++++++++ +dd` :sdddh` :ydddddddo +y/ .ddd+........ `hddy:.....:yddy.hdddddddddddy+. ```````````` ydy .hddd/+hdddhydddh/.+yo /hdddddddddd. :shddddddddhs/`+ddd:````-yddy- :ooooooooooo+ odh` sdddooyyyyyhddddyy.sy+ ` `......... ``.... ....` ```...` ` `` `` ` -dd+`::::` .:::- /yy. -oos+:-oos+--oos+: /o `+y o/: o:+/ h:`yos /+-`/+/+ s:y/y. /dd/ `+yy: +//+ +/:+ +/:+ -. `/ -:o.:/:`//+- + +:- :`-+:`://: +`o`+. -yds. `/yys- .`-.. .``` ```` .`` ` ` ``` ``-..` ` :ydy/.`````.-/oyhs: `+++oo+oo+:.+-++/-/ooo+o +:o/oo///:+/ .:oyhhhhhhhso:` `. ``` */ int LedOutput = 12;// Define as LED Output Pin 12 you can change this to 13 if you dont what pin 12 as output indictor int SensorPin = 2; // Define as Sensor Pin Input int Value;// Define as variable void setup() { pinMode(LedOutput,OUTPUT);//Set as LED output pinMode(SensorPin,INPUT);//Set as photo interrupter sensor output interface } void loop() { Value=digitalRead(SensorPin);// Set as sensor read SensorPin if(Value==HIGH) //If value is equal to HIGH estate then turn LED output = high { digitalWrite(LedOutput,HIGH); // Set ledoutput to HIGH or ON } else { digitalWrite(LedOutput,LOW); // Set landoutput to LOW or OFF } } |
Downloads
Download A3141, A3142, A3143, A143 Hall Effect Sensor Datasheet | PDF