Stufin
Home Quick Cart Profile

MC-38 Wired Magnetic House Security Alarm Sensor for Door and Windows

Buy Now on Stufin

Component Name

MC-38 Wired Magnetic House Security Alarm Sensor for Door and Windows

Overview

The MC-38 is a wired magnetic sensor designed for house security systems to monitor doors and windows. It provides reliable detection of opening and closing events, triggering alarm notifications to ensure home safety and security.

Functionality

The MC-38 sensor consists of two main componentsa magnet and a sensor. The magnet is attached to the moving part of the door or window, while the sensor is fixed to the frame. When the door or window is closed, the magnet is in close proximity to the sensor, creating a magnetic field that signals the sensor to send a "closed" status to the security panel. When the door or window is opened, the magnet moves away from the sensor, breaking the magnetic field and triggering an "open" signal.

Key Features

  • Reliable Detection: The MC-38 sensor provides accurate and reliable detection of door and window opening and closing events, ensuring timely alarm notifications.
  • Wired Connectivity: The sensor features a wired connection, providing a stable and interference-free signal transmission to the security panel.
  • Easy Installation: The MC-38 is easy to install, with a simple and compact design that facilitates mounting on various door and window types.
  • Adjustable Sensitivity: The sensor's sensitivity can be adjusted to accommodate different door and window types, ensuring optimal performance in various environments.
  • Weather Resistance: The sensor is designed to withstand various environmental conditions, including temperature fluctuations, humidity, and weather exposure.
  • Compact Size: The MC-38 sensor is compact and discreet, allowing it to be installed in tight spaces without compromising its performance.
  • Low Power Consumption: The sensor operates at a low power consumption level, reducing the strain on the security system's power supply.
  • Compatible with Various Security Panels: The MC-38 is compatible with a range of security panels, making it a versatile and widely applicable solution.

Operating Voltage

12V DC 10%

Current Consumption

10mA

Sensitivity Adjustment

1mm

Operating Temperature

-20C to 50C (-4F to 122F)

Storage Temperature

-30C to 70C (-22F to 158F)

Humidity

5% to 95% RH (non-condensing)

Cable Length

1 meter (3.3 feet)

Compatibility

Works with most security panels that support wired sensors

Certifications and Compliance

CE certified

FCC compliant

RoHS compliant

UL certified (optional)

Warranty and Support

1-year limited warranty

Dedicated customer support team for technical assistance and troubleshooting

Comprehensive documentation and installation guides available for download

Pin Configuration

  • MC-38 Wired Magnetic House Security Alarm Sensor for Door and Windows: Pinout Explanation
  • The MC-38 Wired Magnetic House Security Alarm Sensor is a widely used component in IoT-based home security systems. It is designed to detect the opening and closing of doors and windows, providing a secure and reliable way to monitor and alert users of any potential breaches. The sensor has a simple and easy-to-use interface, making it an ideal choice for both technical professionals and informed hobbyists.
  • Pinout Explanation:
  • The MC-38 sensor has a total of 3 pins, which are explained below:
  • 1. VCC (Power Supply) Pin
  • Pin Number: 1
  • Function: Supplies power to the sensor
  • Voltage Range: 5V to 12V DC
  • Description: This pin is used to connect the power supply to the sensor. A stable voltage supply within the specified range is required for the sensor to function correctly.
  • 2. GND (Ground) Pin
  • Pin Number: 2
  • Function: Provides a ground reference for the sensor
  • Description: This pin is used to connect the ground reference of the power supply to the sensor. A stable ground connection is essential for the proper functioning of the sensor.
  • 3. OUT (Output) Pin
  • Pin Number: 3
  • Function: Provides the output signal when the sensor is triggered
  • Signal Type: Dry Contact Switching Output ( Normally Closed - NC)
  • Description: This pin provides a dry contact switching output when the sensor is triggered. When the door or window is closed, the output is in a normally closed (NC) state, and when the door or window is opened, the output switches to a normally open (NO) state.
  • Connection Structure:
  • To connect the MC-38 sensor to a microcontroller or other devices, follow the below structure:
  • Connect the VCC pin (Pin 1) to the positive terminal of the power supply (5V to 12V DC).
  • Connect the GND pin (Pin 2) to the negative terminal of the power supply (Ground).
  • Connect the OUT pin (Pin 3) to the input pin of the microcontroller or other devices.
  • Note:
  • Make sure to use a stable power supply within the specified voltage range to avoid any damage to the sensor.
  • Use a suitable cable or wire to connect the sensor to the microcontroller or other devices, ensuring that the connections are secure and reliable.
  • When connecting the sensor to a microcontroller, ensure that the input pin is configured to read the switching output of the sensor correctly.
  • By following the above pinout explanation and connection structure, you can successfully integrate the MC-38 Wired Magnetic House Security Alarm Sensor into your IoT-based home security system.

Code Examples

MC-38 Wired Magnetic House Security Alarm Sensor for Door and Windows
Overview
The MC-38 Wired Magnetic House Security Alarm Sensor is a reliable and compact sensor designed to detect open or closed states of doors and windows. It provides a wired connection to a security system or microcontroller, emitting a digital signal when the magnetic sensor is triggered. This sensor is ideal for home automation, security systems, and DIY projects.
Technical Specifications
Operating Voltage: 5V - 12V DC
 Operating Current: 10mA
 Output Signal: Digital (0V or VCC)
 Detection Range: Up to 1.5 cm (0.6 inches)
 Cable Length: 1.5 meters (4.9 feet)
 Dimensions: 43 x 25 x 13 mm (1.7 x 1 x 0.5 inches)
Example 1: Arduino-based Security System
In this example, we'll connect the MC-38 sensor to an Arduino board to create a basic security system that triggers an alarm when a door or window is opened.
```c
const int sensorPin = 2;  // MC-38 sensor connected to digital pin 2
const int alarmPin =  13;  // Alarm output connected to digital pin 13
void setup() {
  pinMode(sensorPin, INPUT);
  pinMode(alarmPin, OUTPUT);
}
void loop() {
  int sensorState = digitalRead(sensorPin);
  if (sensorState == LOW) {  // Sensor triggered (door/window open)
    digitalWrite(alarmPin, HIGH);  // Trigger alarm
  } else {
    digitalWrite(alarmPin, LOW);  // Alarm off
  }
  delay(50);
}
```
Example 2: Raspberry Pi-based Home Automation
In this example, we'll connect the MC-38 sensor to a Raspberry Pi to integrate it with a home automation system.
```python
import RPi.GPIO as GPIO
# Set up GPIO pins
GPIO.setmode(GPIO.BCM)
sensor_pin = 17  # MC-38 sensor connected to GPIO 17
GPIO.setup(sensor_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
def sensor_callback(channel):
  if GPIO.input(sensor_pin) == GPIO.LOW:  # Sensor triggered (door/window open)
    print("Door/Window Opened!")
    # Send notification to home automation system or take further action
GPIO.add_event_detect(sensor_pin, GPIO.FALLING, callback=sensor_callback, bouncetime=200)
while True:
  # Monitor sensor state
  pass
```
Example 3: Microchip PIC Microcontroller-based Security System
In this example, we'll connect the MC-38 sensor to a Microchip PIC microcontroller to create a custom security system.
```c
#include <pic.h>
#define Sensor_PIN  RB0  // MC-38 sensor connected to RB0
#define Alarm_PIN  RB1  // Alarm output connected to RB1
void main() {
  TRISB = 0x01;  // Set RB0 as input, RB1 as output
  while (1) {
    if (!Sensor_PIN) {  // Sensor triggered (door/window open)
      Alarm_PIN = 1;  // Trigger alarm
    } else {
      Alarm_PIN = 0;  // Alarm off
    }
    __delay_ms(50);
  }
}
```
These examples demonstrate how to connect and use the MC-38 Wired Magnetic House Security Alarm Sensor in various contexts. By adapting these code examples, you can integrate this sensor into your own IoT projects, such as home automation systems, security systems, or DIY projects.