Smart Motion Detection Adapter With Blynk IoT and ESP8266

by N-08 Labs in Circuits > Electronics

722 Views, 10 Favorites, 0 Comments

Smart Motion Detection Adapter With Blynk IoT and ESP8266

Annotation 81.png
WhatsApp Image 2025-01-17 at 9.33.12 AM.jpeg
how to make intrusion detection system
WhatsApp Image 2025-01-17 at 9.33.12 AM (2).jpeg
WhatsApp Image 2025-01-17 at 9.33.12 AM (1).jpeg
WhatsApp Image 2025-01-17 at 9.33.12 AM.jpeg

This project is a smart motion detection system using an ESP8266, an RCWL-0516 microwave radar sensor, and Blynk IoT, all enclosed inside an adapter case. The system detects motion and updates the Blynk IoT app by turning on an LED widget in the dashboard. An automation is created in Blynk to send a notification when motion is detected. Additionally, a physical LED is connected to the ESP8266, which blinks when connected to Wi-Fi.


https://youtu.be/LwFUjJAT_88



For More details(Arduino code and Circuit) Visit My GitHub https://github.com/N-08Labs/Microwave-Radar-based-Security-Device

Visit My YouTube channel for more such amazing Projects http://www.youtube.com/@N08labs

Supplies

Electronics Components:

  1. ESP8266 (NodeMCU / Wemos D1 Mini)
  2. RCWL-0516 Microwave Radar Sensor
  3. Hi-Link 5V Power Module
  4. LED (for Wi-Fi connection indicator)
  5. 220Ω Resistor (for LED)
  6. Jumper wires / Soldering wires

Tools & Enclosure:

  1. Adapter Enclosure (any suitable size)
  2. Soldering Kit
  3. Insulation tape
  4. Glue Gun (for enclosure fitting)

Software & Apps:

  1. Arduino IDE (for coding)
  2. Blynk IoT App (available for Android & iOS)
  3. Fritzing or EasyEDA (for circuit design - optional)

Working Principle

Working Principle


  1. The RCWL-0516 sensor detects motion using microwave signals.
  2. When motion is detected, the ESP8266 sends a signal to Blynk IoT, lighting up the LED widget in the app.
  3. In Blynk, we create an automation to send a notification when the LED widget is triggered.
  4. The physical LED on the ESP8266 blinks when the device is successfully connected to Wi-Fi.

Code and Circuit Diagram

MicroWave security project.png

Connections:

  1. RCWL-0516 Sensor
  2. VCC → 3.3V (ESP8266)
  3. GND → GND (ESP8266)
  4. OUT → D6 (ESP8266)
  5. Wi-Fi Status LED
  6. Anode (+) → D5 (ESP8266)
  7. Cathode (-) → GND (ESP8266)
  8. 220Ω Resistor in series with LED
  9. Power Supply (Hi-Link 5V)
  10. AC Input → Power Source
  11. DC Output (5V, GND) → ESP8266 Vin & GND


Replace this lines of code with your own details Wi-Fi and Auth token

char ssid[] = "N-08 Labs";
char pass[] = "n08labs";


#define BLYNK_TEMPLATE_ID "TMPL3jtyhgf74EeA"
#define BLYNK_TEMPLATE_NAME "Security"
#define BLYNK_AUTH_TOKEN "Jk5uWu9bCiatygfgygabcgaygyg7fhg3"


Visit My GitHub for the Arduino code and Circuit https://github.com/N-08Labs/Microwave-Radar-based-Security-Device

Blynk Dashboard Setup

WhatsApp Image 2025-02-17 at 6.12.03 PM (1).jpeg
WhatsApp Image 2025-02-17 at 6.12.03 PM (2).jpeg
WhatsApp Image 2025-02-17 at 6.12.04 PM.jpeg
WhatsApp Image 2025-02-17 at 6.12.02 PM.jpeg
WhatsApp Image 2025-02-17 at 6.12.02 PM (1).jpeg
WhatsApp Image 2025-02-17 at 6.12.03 PM.jpeg

Install the Blynk IoT App on your smartphone.

Create a new project and select ESP8266 as the device.

Add a LED Widget:

  1. Pin: V1
  2. Color: Any

Create an Automation:

  1. Trigger: When V1 (LED widget) is ON
  2. Action: Send a Notification

Copy the Auth Token and paste it into the Arduino code.


If you're not sure on how to creating blynk IoT dashboards then please watch some videos on youtube there are plenty of them https://youtu.be/LwFUjJAT_88

Blynk IoT Website

Annotation 2025-02-17 180925.png
Annotation 2025-02-17 181004.png
Annotation 2025-02-17 181018.png
Annotation 2025-02-17 180851.png

Building the Hardware

WhatsApp Image 2025-02-17 at 5.51.10 PM (1).jpeg
WhatsApp Image 2025-02-17 at 5.51.10 PM (2).jpeg
WhatsApp Image 2025-02-17 at 5.51.10 PM.jpeg
WhatsApp Image 2025-02-17 at 5.51.11 PM.jpeg
WhatsApp Image 2025-02-17 at 5.51.07 PM (1).jpeg
WhatsApp Image 2025-02-17 at 5.51.07 PM.jpeg
how to make intrusion detection system
how to make intrusion detection system

Blynk IoT https://blynk.io/




If you're a beginner then you might get confused

so, I would suggest watching my YouTube video


https://youtu.be/LwFUjJAT_88

Final Working/Output

WhatsApp Image 2025-02-17 at 6.41.12 PM (1).jpeg
WhatsApp Image 2025-02-17 at 6.41.12 PM (2).jpeg

When some is walking near this(360 degrees and upto max 7meters distance) device then this device will send a notification to the mobile phone


This Project might not be presented in a well organised way, so please feel free to comment any questions or doubts regarding this Project


Thank You