0.5A 100V 10W High Sensitive White Set Door Window Contact Magnetic Reed Sensor COM45

Fr3,500

A normally-closed reed switch is closed when it is not near a magnet; as a magnet is brought close to it, a normally-closed switch will open.

2 in stock

SKU: 7580VAR Category:

Description

A normally-closed reed switch is closed when it is not near a magnet; as a magnet is brought close to it, a normally-closed switch will open.

Output : Switching Transducer
Type : Vibration Sensor
Usage : Reed Sensor Switch
Dimensions: 27(mm)X14(mm)X8(mm)
Switch pattern: N/O normally open, alarm-on-broken
Contact capacity: Maximum switch current: 0.5Amp
Voltage: 200 VDC
Rated power:10W
Actuation distance:20-25mm
Wire lead: 22 Awg, About 350mm long
Mounting method: SMD (by screws or double-sided tapes)
Recommendations in application: wooden door, window

Easy installation
Reliable performance
Good characteristic of abrasion-proof
Best Choice for you to protect family
There are two types of reed switches: “normally open” reed switches and “normally closed” reed switches.
The metal reeds on a normally open switch stay open when there is no magnet near the switch.
In the presence of a magnetic field, the contacts of a normally-open reed switch will close.
A normally-closed reed switch is closed when it is not near a magnet; as a magnet is brought close to it, a normally-closed switch will open.

Getting started with the High Sensitive White Set Door Window Contact Magnetic Reed Sensor

This tutorial demonstrates how to use a magnetic reed switch. I’ll do a quick overview on how it works and show a project example using an Arduino.

Description

A magnetic contact switch is basically a reed switch encased in a plastic shell so that you can easily apply them in a door, a window or a drawer to detect if the door is open or closed.

The switch that we are going to use has two parts: the switch itself, that usually comes opened, and the magnet. When you buy this switch, it also comes with 4 screws, so that you can attach it to your door.

How does it work?

It’s very very simple.

The electrical circuit is closed when a magnet is near the switch (less than 13 mm (0.5’’) away). When the magnet is far away from the switch, the circuit is open. See the figure below.

Project Example

In this example, we will turn on a red LED if your door is open and a green LED if your door is closed.

Hardware required

Connecting the Hardware

Here’s the schematics for this example.

Uploading Sketch

For this example, upload the following code:

int ledOpen=8;
int ledClose=10;
int switchReed=6;

void setup(){
pinMode(ledOpen, OUTPUT);
pinMode(ledClose, OUTPUT);
pinMode(switchReed, INPUT);
Serial.begin(9600);
}

void loop(){

if (digitalRead(switchReed)==HIGH){
digitalWrite(ledOpen, LOW);
digitalWrite(ledClose, HIGH);
Serial.println(“Your Door is Closed”);
}
else {
digitalWrite(ledOpen, HIGH);
digitalWrite(ledClose, LOW);
Serial.println(“Your Door is Open”);
}
delay(1);
}

NOTE: IF you  get stray ‘223’ errors The problem is with your “and ”  characters. Replace them with ordinary quotes, ” , and you should be fine.

Demonstration

In this example, we will turn on a red LED if your door is open and a green LED if your door is closed.