09293690454 0437407566
Batangas City
SENSOR MODULE – ****OG HALL MAGNETIC
We are one of the largest free online selling communities with thousands of active sellers.
Do you have something to sell? Your next sale might be just a few clicks away.
Based from 899 member feedbacks. We value your suggestions and use it.
his module is a magnetic switch. If no magnetic field is present, the signal line of the sensor is HIGH (3.5 V). If a magnetic field is presented to the sensor, the signal line goes LOW, at the same time the LED on the sensor lights up. The polarity of the magnetic field is of influence to the switching action. The front side of the sensor needs the opposite polarity as the back of the sensor to switch on.
Connections:
Pin – = GND, connect to GND of the Arduino
Pin (middle pin) +5 v, connect to Arduino +5
Pin S signal, connect to Arduino pin 10
Power consumption, 3 mA in rest, 8 mA when switched on
Sample Code:
Use the LED of digital 13, and connect the Hall magnetic field sensor to digital pin 3,
and when there is magnetic shield present, the LED will turn on, otherwise, it will
turn off.
int Led=13;
int SENSOR=3;
int val;
void setup()
{
pinMode(Led,OUTPUT);
pinMode SENSOR,INPUT);
}
void loop()
{
val=digitalRead(SENSOR);
if(val==HIGH)
{
digitalWrite(Led, HIGH);
}
Else
{
digitalWrite(Led, LOW);
}
}
This seller has been a member since: Nov. 24, 2015
Member Location:
Total Classifieds: 1021
Why seller feedback is important?
Transact with most credible & reputable sellers
Know the seller you are going to deal with
Claim warranty long after purchasing the item
Warn you and other buyers against scams
Motivates sellers to provide good service