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

Arduino UNO Controlled Smart Lighting System with Relay and Micro Switches

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Smart Lighting System with Relay and Micro Switches

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller controlling a 4-channel relay module, which in turn controls four bulbs. The circuit also includes micro switches for manual control. The power supply for the circuit is provided by a 220V source.

Component List

  1. 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
  2. Relay 4 Channel 5V

    • Description: A relay module that allows the Arduino to control high voltage devices.
    • Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
  3. BULB

    • Description: A standard light bulb.
    • Pins: +, -
  4. Power 220V

    • Description: A 220V AC power source.
    • Pins: hot wire, neutral wire
  5. Micro Switch

    • Description: A small switch used for manual control.
    • Pins: COM, NO, NC
  6. Vcc

    • Description: Power supply pin.
    • Pins: Vcc
  7. GND

    • Description: Ground pin.
    • Pins: GND

Wiring Details

Arduino UNO

Relay 4 Channel 5V

BULB

Power 220V

Micro Switch

Code Documentation

Arduino UNO Code

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

}

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

}

This code is a basic template for the Arduino UNO. The setup() function is where you initialize your settings, and the loop() function is where you place the code that you want to run continuously. Currently, both functions are empty and need to be filled with the appropriate logic to control the relay module and bulbs.