Mc 38 Wired Door Window Sensor Magnetic Switch Home Alarm System
Rs. 33.00 Rs. 40.00
- Product Code: SEN-LOCK
- SKU -
- Availability: In Stock
- For Bulk Order
9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS: | |
Model | MC38 |
Material | Plastic |
Color | White |
Contact Capacity(Max. Switch Current) | 0.5A |
Voltage | 100V |
Rated Power (W) | 10W |
Actuation Distance (mm) | 15 ~ 25 |
Connecting cable length (cm) | 30 |
OVERVIEW:
-Actuation Distance : 15 – 25 mm;
-Connecting cable length: 30 cm.
-Magnetic sensor alarm, control the switch of the circuit via the built-in magnet
-Alarm when someone intrudes into your places
-Can be used in places like apartment, hotel, office, etc.
PACKAGE INCLUDES:
1 PCS x Mc 38 Wired Door Window Sensor Magnetic Switch Home Alarm System
//SOURCE CODE TAKEN FROM BELOW LINK
//https://electropeak.com/learn/interfacing-mc-38-magnetic-reed-switch-with-arduino/
/*
MC-38 Magnetic Sensor Anti-Theft Alarm
modified on 26 Sep 2020
by Mohammad Reza Akbari @ Electropeak
https://electropeak.com/learn/
*/
const int magnet_switch = 2; // Magnet switch
const int ledPin = 13; // LED pin
void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(magnet_switch, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
if (digitalRead(magnet_switch) == LOW) {
Serial.println("Switch Closed");
digitalWrite(ledPin, HIGH);
while (digitalRead(magnet_switch) == LOW) {}
}
else {
digitalWrite(ledPin, LOW);
}
}
15 days