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

ESP8266 NodeMCU Controlled Relay System with Multi-Color LED Indicators and DC Motor

View and Edit Project In Cirkit DesignerImage of ESP8266 NodeMCU Controlled Relay System with Multi-Color LED Indicators and DC Motor

Circuit Documentation

Summary

The circuit is designed to control a DC motor and three LEDs (red, white, and yellow) using an ESP8266 NodeMCU microcontroller and a 4-channel 5V relay module. The ESP8266 NodeMCU is interfaced with the relay module to switch the motor and LEDs on and off. The motor and LEDs are powered by a 9V battery, with resistors in series with the LEDs to limit current. The circuit also includes four flush switches, which are connected to the ESP8266 NodeMCU for additional control inputs. The 5V DC source powers the ESP8266 NodeMCU and the relay module.

Component List

Wiring Details

ESP8266 NodeMCU

Relay 4 Channel 5V

DC Motor

LED: Two Pin (Red, White, Yellow)

Resistor (1k Ohms)

9V Battery

DC Source 5V

Flush Switch

Documented Code

No code has been provided for the ESP8266 NodeMCU. The code would typically include the initialization of the GPIO pins connected to the relay module, the setup of WiFi connectivity, and the logic to read the state of the flush switches and control the relays accordingly.