กลับไปหน้ารวมไฟล์
motion-detection-alarm-ab3ce8-en.md

In this project we’ll modify a commercial motion sensor (powered with mains voltage) with an ESP8266 to log data whenever motion is detected. The data will be sent to Node-RED using MQTT communication protocol. The ESP8266 will be powered through the motion sensor phase out wire using the HLK-PM03 AC/DC converter.

Prerequisites

Before continuing with this project, we recommend taking a look at the following resources:

Parts Required:

Here’s a list of the parts needed for this project:

  • Fuse Slow Blow (200mA)

EXPANDED TECHNICAL DETAILS

Thermal Signature Sensing

The alarm relies on the HC-SR501 PIR (Passive Infrared) sensor. Unlike ultrasonic sensors, it detects the movement of heat-emitting objects (like humans or pets).

  • Fresnel Lens: The plastic dome focuses infrared energy onto the pyroelectric sensor. The sensor outputs a digital HIGH signal when a moving heat source is detected within its 7-meter, 110-degree field of view.

Alert Logic & Security

  • Delay Control: The Arduino allows for a software-defined "Arming Delay," giving the user time to leave the room before the alarm becomes active.
  • Feedback: Upon detection, it triggers a 110dB Piezo Siren and high-intensity flashing LEDs. For added security, the system can be expanded with an RTC to only "Arm" itself during specific nighttime hours.

ข้อมูล Frontmatter ดั้งเดิม

title: "Motion Detection Alarm"
description: "Motion triggered alarm and message system with arduino"
author: "the_electro_artist"
category: ""
tags:
  - "alarm system"
  - "security system"
  - "motion detector"
views: 1206
likes: 0
price: 2450
difficulty: "Intermediate"
components:
  - "1x Terminal Block Interface, Screw Type 8 Position Terminal Block"
  - "1x Relay (generic)"
  - "1x Resistor 1k ohm"
  - "1x Solder Flux, Soldering"
  - "1x Soldering iron (generic)"
  - "1x Multitool, Screwdriver"
  - "1x Capacitor 220 µF"
  - "1x Solder Wire, Lead Free"
  - "1x Machine Screw, M2"
  - "1x Fuse Accessory, Fuseholder Body"
  - "1x Arduino UNO"
  - "1x Resistor 220 ohm"
  - "1x DC Power Connector, Jack"
  - "1x ESP8266 ESP-01"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "046060723358a1275ffe4078c933224a7c532a9b97100f74df2b6cd487ae763b"
encryptedPayload: "U2FsdGVkX18fdE/TLKZ9V9JQtFAcfT91J57Y6afFaRug+na2Z+fC53YwUu/j3VUyEU8RwNjj9yIXtUvEw9hSsJQdGs8OcT4cMoXNkNGIclI="
seoDescription: "Build a Motion Detection Alarm and messaging system with Arduino. A simple DIY security project for beginners."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/motion-detection-alarm-ab3ce8_cover.jpg"
lang: "en"