Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Motion-Activated Smart Light with Relay Control

View and Edit Project In Cirkit DesignerImage of Arduino UNO Motion-Activated Smart Light with Relay Control

Circuit Documentation

Summary

This circuit is designed to control a bulb using a motion sensor and a relay, all managed by an Arduino UNO. When motion is detected by the HC-SR501 motion sensor, the Arduino UNO triggers the 5V relay to turn on the bulb. The circuit is powered by an AC source.

Component List

  1. AC Source

    • Description: Provides AC power to the circuit.
    • Pins: +, -
  2. 5V Relay

    • Description: Acts as a switch to control the bulb based on the signal from the Arduino.
    • Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
  3. HC-SR501 Motion Sensor

    • Description: Detects motion and sends a signal to the Arduino.
    • Pins: GND, OUT, VCC
  4. Bulb

    • Description: The load that is controlled by the relay.
    • Pins: GND, power
  5. Arduino UNO

    • Description: Microcontroller that processes the signal from the motion sensor and controls the relay.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0

Wiring Details

AC Source

5V Relay

HC-SR501 Motion Sensor

Bulb

Arduino UNO

Documented Code

sketch.ino

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

documentation.txt