กลับไปหน้ารวมไฟล์
monitoring-door-via-blynk-2b1376-en.md

Smart Entrances: The IOT Door Monitor

The Monitoring Door via Blynk project is a clean and effective entry point into Home Automation. Instead of bulky, expensive commercial security sets, this project uses the compact Wemos D1 R2 to create a custom notification system. Whether you want to know if a child has opened a restricted cabinet or if a delivery person has left your front door ajar, this device provides a silent, wireless eyes-on-the-ground solution.

Hardware Focus: The ESP8266 and Reed Switch

The technical heart of the system rests on two simple principles:

  1. WiFi Connectivity: The Wemos D1 R2 utilizes the ESP8266 chip. Unlike a standard Arduino Uno, this board has native WiFi capability, allowing it to connect to your home router without additional shields.
  2. Magnetic Sensing: The project uses a Reed Switch. This is a tiny sensor that contains two flexible metal reeds. When a magnet (placed on the door) comes close to the sensor (placed on the frame), the reeds touch and complete the circuit. If the door opens, the magnetic field disappears, the circuit breaks, and the Wemos instantly triggers a signal.

The Software Layer: Blynk and IOT Cloud

What makes this project "Smart" is the integration with the Blynk IOT Platform.

  • No-Code Mobile Dashboard: Using the Blynk app on Android or iOS, the user creates a visual interface with "Virtual LEDs" or text notifications.
  • Real-Time Data: When the D1 R2 detects a state change, it pushes a data packet to the Blynk server. Your phone then vibrates or displays a "DOOR OPENED" message anywhere in the world.
  • Visual Debugging: The included physical Red and Green LEDs on the breadboard serve as a "Local Dashboard," allowing you to verify the system's status at a glance without checking your phone.

Implementation Guide

The project includes a comprehensive walkthrough for setting up the Blynk Environment:

  • Library Management: Instructions on how to add the ESP8266 board definitions to the Arduino IDE.
  • Auth Tokens: Explaining the secure authentication tokens required to pair your specific hardware to your personal Blynk account.

This monitor is the perfect building block for a larger Smart Home Ecosystem. Once mastered, you can add water sensors, temperature monitors, or even remote-controlled locks to the same single app interface.

In this project, I used the Wemos D1 R2 with ESP8266 WiFi support to build a simple but powerful door monitor. By using the Blynk dashboard, you can see if your door is open or closed in real-time. It's affordable, easy to wire up, and provides that extra peace of mind for your home.

Library

  • And then install Blynk and WiFi Manager in the library manager according to the instructions below.

How to Install the Blynk Applications

  • You need to install Blynk in your android smartphone according to the instructions below.
  • Don't forget to activate internet connection on smartphone and wi-fi connected to microcontroller

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

apps:
  - "1x Blynk App (iOS/Android)"
  - "1x Arduino IDE"
author: "irfan_project888"
category: "Home & Automation"
components:
  - "1x Wemos D1 R2 (ESP8266)"
  - "1x Reed Switch (Magnetic Door Sensor)"
  - "1x Magnet (for Reed Switch)"
  - "1x Green 5mm LED"
  - "1x Red 5mm LED"
  - "2x 330 Ohm Resistors"
  - "1x Breadboard & Jumper Wire Set"
  - "1x Micro-USB Power Cable"
description: "A lightweight, WiFi-enabled home security system that sends real-time door status alerts to your smartphone using the ESP8266 and Blynk IoT platform."
difficulty: "Easy"
documentationLinks:
  - "http://arduino.esp8266.com/stable/package_esp8266com_index.json"
downloadableFiles:
  - "https://projects.arduinocontent.cc/34da2c53-b00c-45a6-8c4e-34cf0b81a651.ino"
encryptedPayload: "U2FsdGVkX1/wtJheoCb9GXgsQCFzvADm3yJgrzljw1IMm0yMcmzDdJ0kXRwVi01nurVnmd+DKufgSX9mn2lWijIj9Mmac2lx36DEG6b1wQIf3s7RPu27RpUXQVANAFCa"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/monitoring-door-via-blynk-2b1376_cover.jpg"
lang: "en"
likes: 0
passwordHash: "9910b4a4e8c3024068d1781af343141e839d4d25813c8f395f0a4457c6250e66"
price: 1299
seoDescription: "Build a DIY WiFi Door Monitor with Blynk. Learn how to use a magnetic reed switch and Wemos D1 R2 to track entrance status on your phone."
tags:
  - "iot"
  - "blynk"
  - "home-security"
  - "esp8266"
  - "smart-home"
title: "Monitoring Door via Blynk"
tools: []
videoLinks:
  - "https://www.youtube.com/embed/ntxVx2ViCfQ"
views: 1027