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

Arduino Nano-Based Smart Home Automation System with Motion and IR Sensors

View and Edit Project In Cirkit DesignerImage of Arduino Nano-Based Smart Home Automation System with Motion and IR Sensors

Circuit Documentation

Summary

This circuit integrates various sensors, actuators, and display components controlled by an Arduino Nano. The circuit includes a servo motor, a relay module, a PIR motion sensor, an IR sensor, an LCD screen, a voltmeter, a passive buzzer, and pilot lamps. The power supply is managed by an AC-DC PSU board converting 220V AC to 5V and 12V DC.

Component List

  1. Servo

    • Pins: GND, VCC, PWM
    • Description: A motor that can be controlled to move to a specific position.
    • Purpose: Used for precise control of angular position.
  2. 12V SINGLE CHANNEL RELAY

    • Pins: NC, COM, NO, IN, GND, VCC
    • Description: A relay module for switching high voltage devices.
    • Purpose: Used to control high voltage devices with low voltage signals.
  3. HC-SR501 PIR motion sensor

    • Pins: Output, Ground, Power Supply
    • Description: A sensor that detects motion by measuring infrared light.
    • Purpose: Used for motion detection.
  4. IR Sensor

    • Pins: out, gnd, vcc
    • Description: An infrared sensor for detecting objects.
    • Purpose: Used for object detection.
  5. AC-DC PSU board 220V-5V&12V

    • Pins: AC-N, AC-L, +5V, GND, +12V
    • Description: A power supply unit converting 220V AC to 5V and 12V DC.
    • Purpose: Provides power to the circuit components.
  6. Power 220V

    • Pins: hot wire, neutral wire
    • Description: Standard 220V AC power source.
    • Purpose: Supplies AC power to the PSU board.
  7. LCD screen 16x2 I2C

    • Pins: SCL, SDA, VCC, GND
    • Description: A 16x2 character LCD display with I2C interface.
    • Purpose: Used for displaying information.
  8. Arduino Nano

    • Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
    • Description: A small, complete, and breadboard-friendly microcontroller board.
    • Purpose: Controls the circuit components.
  9. 7-Segment Panel Voltmeter

    • Pins: V+, V-
    • Description: A voltmeter for measuring voltage.
    • Purpose: Displays the voltage level.
  10. 7805

    • Pins: Vin, Gnd, Vout
    • Description: A voltage regulator that outputs 5V.
    • Purpose: Provides a stable 5V output.
  11. Passive Buzzer

    • Pins: S output signal, +VCC, GND
    • Description: A buzzer that produces sound when a signal is applied.
    • Purpose: Used for audio alerts.
  12. Pilot Lamp Green

    • Pins: X1, X2
    • Description: A green indicator lamp.
    • Purpose: Indicates status.
  13. Pilot LED Yellow

    • Pins: G, +
    • Description: A yellow LED indicator.
    • Purpose: Indicates status.
  14. Pilot Lamp Red

    • Pins: X1, X2
    • Description: A red indicator lamp.
    • Purpose: Indicates status.

Wiring Details

Servo

12V SINGLE CHANNEL RELAY

HC-SR501 PIR motion sensor

IR Sensor

AC-DC PSU board 220V-5V&12V

Power 220V

LCD screen 16x2 I2C

Arduino Nano

7-Segment Panel Voltmeter

7805

Passive Buzzer

Pilot Lamp Green

Pilot LED Yellow

Pilot Lamp Red

Documented Code

Arduino Nano Code

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

}

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

}

Servo Code

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

}

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

}

This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and documented code for the microcontrollers.