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

ESP32-Controlled Lighting and Ventilation System

View and Edit Project In Cirkit DesignerImage of ESP32-Controlled Lighting and Ventilation System

Circuit Documentation

Summary

This circuit is designed to control multiple AC and DC loads using an ESP32 microcontroller and a 5V 8-channel relay module. The ESP32 is responsible for triggering the relays, which in turn control the connected devices, including LED bulbs and fans. The circuit also includes multiple rocker switches (SPST) to manually control the state of the GPIO pins on the ESP32. A 5V adapter is used to power the relay module and the ESP32, while a 240V power source is used to supply power to the AC loads.

Component List

ESP32 (30 pin)

5V 8-Channel Relay

Rocker Switch (SPST)

5V Adapter

LED bulb AC / Bombillo AC

240V Power Source

Fan

Wiring Details

ESP32 (30 pin)

5V 8-Channel Relay

Rocker Switch (SPST)

5V Adapter

LED bulb AC / Bombillo AC

240V Power Source

Fan

Documented Code

No code has been provided for the microcontrollers in the circuit. The ESP32 would typically be programmed to control the state of the GPIO pins based on the input from the rocker switches or other sensors, which in turn would control the relay module to switch the connected loads. The code would include setup routines for configuring the GPIO pins as outputs, and loop routines for reading the switch states and setting the relay states accordingly.