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

Wi-Fi Controlled Smart Lighting System with ESP32 and Relay Module

View and Edit Project In Cirkit DesignerImage of Wi-Fi Controlled Smart Lighting System with ESP32 and Relay Module

Circuit Documentation

Summary

This circuit involves an ESP32 microcontroller controlling a 4-channel relay module, which in turn controls four bulbs. The circuit also includes an AC-DC power supply unit, a rocker switch, pushbuttons, and an RGB LED. The ESP32 is programmed to control the relays and read the state of the pushbuttons. The relays are used to switch the bulbs on and off. The RGB LED is used for visual feedback.

Component List

  1. Relay 4 Channel 5V

    • Description: A relay module with four channels, each capable of switching high voltage devices.
    • Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
  2. ESP32

    • Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities.
    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
  3. BULB

    • Description: Standard light bulbs.
    • Pins: +, -
  4. AC Source

    • Description: Provides AC power to the circuit.
    • Pins: +, -
  5. AC-DC PSU Board 220V-5V&12V

    • Description: Converts AC power to 5V and 12V DC power.
    • Pins: AC-N, AC-L, +5V, GND, +12V
  6. Rocker Switch (SPST)

    • Description: A single-pole single-throw switch.
    • Pins: 1, 2
  7. RGB LED (Wokwi compatible)

    • Description: An RGB LED for visual feedback.
    • Pins: R, COM, G, B
  8. Pushbutton

    • Description: Standard pushbuttons.
    • Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)

Wiring Details

Relay 4 Channel 5V

ESP32

BULB

AC Source

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

Rocker Switch (SPST)

RGB LED (Wokwi compatible)

Pushbutton

Code

No code provided.