Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Wi-Fi Enabled Motion-Activated Lighting System with Radar Sensor

Image of Wi-Fi Enabled Motion-Activated Lighting System with Radar Sensor

Circuit Documentation

Summary

The circuit described is an AC-powered system with a motion-activated LED bulb, interfaced with an ESP8266 NodeMCU microcontroller. The system uses a 220V AC power source, an infrared motion sensor to detect presence, a two-channel relay to control the power to the LED bulb, and a converter to step down the voltage for the microcontroller and sensors. Additionally, an MMWave radar sensor is included, interfaced with the microcontroller for further detection capabilities.

Component List

LED Bulb AC / Bombillo AC

  • Description: An AC-powered light-emitting diode bulb.
  • Pins: +, -

Power 220V

  • Description: The main AC power source for the circuit.
  • Pins: hot wire, neutral wire

Infrared Motion Sensor

  • Description: A sensor that detects motion based on infrared signals.
  • Pins: L, A, N

Two Channel Relay 5V

  • Description: A relay module with two channels that can control high power devices.
  • Pins: VCC, IN2, IN1, GND, NC2, C2, NO2, NC1, C1, NO1

Converter

  • Description: A device that converts AC power to a lower voltage suitable for the microcontroller and sensors.
  • Pins: A, B, L, N

ESP8266 NodeMCU

  • Description: A microcontroller with Wi-Fi capabilities.
  • Pins: D0, D1, D2, D3, D4, 3V3, GND, D5, D6, D7, D8, RX, TX, A0, RSV, SD3, SD2, SD1, CMD, SD0, CLK, EN, RST, VIN

MMWave Radar Sensor

  • Description: A sensor that uses millimeter-wave radar to detect objects and motion.
  • Pins: TX, RX, IO1, IO2, GND, VGG

Wiring Details

LED Bulb AC / Bombillo AC

  • + connected to the neutral wire of the power source, the N pin of the Converter, and the N pin of the Infrared Motion Sensor.
  • - connected to the C1 pin of the Two Channel Relay 5V.

Power 220V

  • hot wire connected to the NC1 pin of the Two Channel Relay 5V and the L pin of the Infrared Motion Sensor.
  • neutral wire connected to the + pin of the LED Bulb AC / Bombillo AC.

Infrared Motion Sensor

  • L connected to the hot wire of the power source.
  • A connected to the L pin of the Converter.
  • N connected to the + pin of the LED Bulb AC / Bombillo AC.

Two Channel Relay 5V

  • VCC connected to the VGG pin of the MMWave Radar Sensor and the VIN pin of the ESP8266 NodeMCU.
  • IN1 connected to the D0 pin of the ESP8266 NodeMCU.
  • GND connected to the GND pin of the ESP8266 NodeMCU.
  • NC1 connected to the hot wire of the power source.
  • C1 connected to the - pin of the LED Bulb AC / Bombillo AC.

Converter

  • A connected to the VGG pin of the MMWave Radar Sensor and the VIN pin of the ESP8266 NodeMCU.
  • B connected to the D1 pin of the ESP8266 NodeMCU.
  • L connected to the A pin of the Infrared Motion Sensor.
  • N connected to the + pin of the LED Bulb AC / Bombillo AC.

ESP8266 NodeMCU

  • D0 connected to the IN1 pin of the Two Channel Relay 5V.
  • D1 connected to the B pin of the Converter.
  • D3 connected to the TX pin of the MMWave Radar Sensor.
  • D4 connected to the RX pin of the MMWave Radar Sensor.
  • GND connected to the GND pin of the Two Channel Relay 5V and the GND pin of the MMWave Radar Sensor.
  • VIN connected to the VGG pin of the MMWave Radar Sensor and the A pin of the Converter.

MMWave Radar Sensor

  • TX connected to the D3 pin of the ESP8266 NodeMCU.
  • RX connected to the D4 pin of the ESP8266 NodeMCU.
  • GND connected to the GND pin of the ESP8266 NodeMCU.
  • VGG connected to the VCC pin of the Two Channel Relay 5V and the A pin of the Converter.

Documented Code

No code was provided for the microcontroller or any other programmable components in the circuit. If code is later provided, it should be documented here with explanations of how it interacts with the hardware components and implements the desired functionality of the circuit.