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

ESP8266 NodeMCU Controlled Lighting System with LDR and Adjustable Voltage

View and Edit Project In Cirkit DesignerImage of ESP8266 NodeMCU Controlled Lighting System with LDR and Adjustable Voltage

Circuit Documentation

Summary

The circuit is designed to control multiple bulbs using an ESP8266 NodeMCU microcontroller in conjunction with several 5V relays. Light-dependent resistors (LDRs) are used to provide input to the microcontroller, which then decides whether to activate the relays and turn the bulbs on or off. A Step Up Boost Power Converter is used to adjust the voltage levels appropriate for the relays.

Component List

ESP8266 NodeMCU

Step Up Boost Power Converter, Adjustable Voltage Regulator

Bulbs

LDR (Light-Dependent Resistor)

5V Relay

Wiring Details

ESP8266 NodeMCU

Step Up Boost Power Converter, Adjustable Voltage Regulator

Bulbs

LDRs

5V Relays

Documented Code

No code was provided for the microcontroller. The expected behavior, based on the wiring, would be for the ESP8266 NodeMCU to read the analog values from the LDRs and control the state of the relays accordingly, thus turning the bulbs on or off based on ambient light levels. The code would likely involve setting up the GPIO pins as inputs for the LDRs and outputs for the relays, reading the LDR values, and using conditional logic to control the relay states.