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

Arduino UNO Smart Motion-Activated Light with Photocell and PIR Sensor

View and Edit Project In Cirkit DesignerImage of Arduino UNO Smart Motion-Activated Light with Photocell and PIR Sensor

Circuit Documentation

Summary

This circuit is designed to detect motion using a PIR sensor and measure light intensity using a photocell (LDR). The circuit includes an Arduino UNO microcontroller, which processes the sensor inputs and controls an LED indicator. The LED lights up based on the sensor inputs.

Component List

  1. LED: Two Pin (red)

    • Description: A red LED used as an indicator.
    • Pins: Cathode, Anode
  2. Resistor (220 Ohms)

    • Description: A resistor with a resistance of 220 Ohms.
    • Pins: Pin1, Pin2
  3. Photocell (LDR)

    • Description: A light-dependent resistor used to measure light intensity.
    • Pins: Pin 0, Pin 1
  4. Resistor (10k Ohms)

    • Description: A resistor with a resistance of 10k Ohms.
    • Pins: Pin1, Pin2
  5. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • 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
  6. HC-SR501 PIR Motion Sensor

    • Description: A passive infrared sensor used to detect motion.
    • Pins: Output, Ground, Power Supply

Wiring Details

LED: Two Pin (red)

Resistor (220 Ohms)

Photocell (LDR)

Resistor (10k Ohms)

Arduino UNO

HC-SR501 PIR Motion Sensor

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

This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the microcontroller.