Hall Effect Magnetic Sensor Arduino Compatible
ARD2-2203
$2.95
QTY | Price |
---|---|
1 | $2.95 |
Description
This Hall Effect Magnetic sensor detects the strength of a magnetic field. It can be used to build a simple circuit that flashes an LED when a magnet is detected.
Test Code
int Led = 13; // define LED Interface
int SENSOR = 3; // define the Hall magnetic sensor interface
int val; // define numeric variables val
void setup () {
pinMode(Led, OUTPUT); // define LED as output interface
pinMode(SENSOR, INPUT); // define the Hall magnetic sensor output interface
}
void loop () {
val = digitalRead(SENSOR); // read digital interface is assigned a value of 3 val
// When the shock sensor detects a signal, LED lights
if (val == HIGH) {
digitalWrite(Led, HIGH);
}
else {
digitalWrite(Led, LOW);
}
}
Features
- Detect magnetic fields
- Digital switch output (0 & 1)
Specifications
Operating Voltage
4.5V - 48VDC
Output
Schmitt Trigger (Digital) Active Low
Activation Threshold
30 Gauss
Deactivation Threshold
10 Gauss
Board Colour
Black
Material
PCB
Dimensions
Length (mm)
20
Width (mm)
15
Height (mm)
3
Resources
You Might Also Like
All prices are in Australian Dollars and include GST. GST will be removed from your order if you are ordering from outside Australia.
Products may differ from pictured.
All trademarks and trade names are the properties of their respective owners. Wiltronics disclaims any proprietary interest in trademarks and trade names other than its own.