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

ESP8266 NodeMCU Controlled AC Light with Relay

View and Edit Project In Cirkit DesignerImage of ESP8266 NodeMCU Controlled AC Light with Relay

Circuit Documentation

Summary of the Circuit

The circuit described by the provided inputs consists of a 12V single-channel relay module controlled by an ESP8266 NodeMCU microcontroller. The relay module is used to switch a red light that operates at 220VAC. The ESP8266 NodeMCU is powered by a 5V DC source, which also supplies power to the relay module. The relay's control input (IN) is connected to one of the digital pins (D1) of the ESP8266 NodeMCU, allowing the microcontroller to control the state of the relay. The ground connections of the relay, microcontroller, and DC source are all tied together, forming a common ground for the circuit. The AC source provides the 220VAC needed for the red light and is connected to the common terminal (COM) of the relay, while the normally open (NO) terminal of the relay is connected to the red light. This setup allows the microcontroller to control the power to the red light via the relay.

Component List

12V Single Channel Relay

ESP8266 NodeMCU

DC Source 5V

Red Light 220VAC

AC Source

Wiring Details

12V Single Channel Relay

ESP8266 NodeMCU

DC Source 5V

Red Light 220VAC

AC Source

Documented Code

There is no code provided for the microcontroller in this circuit. If code is later provided, it should be documented here, including descriptions of what each section of the code is intended to do, any libraries used, and the logic behind the code's operation.