Circuit Documentation
Summary
This circuit involves an ESP8266 NodeMCU microcontroller, a 5V relay, a 5V battery, a bulb, and a 220V power source. The ESP8266 NodeMCU controls the relay, which in turn controls the bulb connected to a 220V power source. The 5V battery powers the ESP8266 NodeMCU and the relay.
Component List
ESP8266 NodeMCU
- Description: A low-cost Wi-Fi microcontroller with GPIO, PWM, ADC, I2C, and 1-Wire capabilities.
- Pins: D0, D1, D2, D3, D4, 3V3, GND, D5, D6, D7, D8, RX, TX, A0, RSV, SD3, SD2, SD1, CMD, SD0, CLK, EN, RST, VIN
5V Relay
- Description: An electromechanical switch used to control high voltage devices with a low voltage signal.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
5V Battery
- Description: A power source providing 5V DC.
- Pins: Positive, Negative
Bulb
- Description: A light bulb that operates on 220V AC.
- Pins: GND, Power
220V Power Source
- Description: A standard 220V AC power source.
- Pins: Hot wire, Neutral wire
Wiring Details
ESP8266 NodeMCU
- D2: Connected to the In pin of the 5V relay.
- GND: Connected to the negative pin of the 5V battery and the GND pin of the 5V relay.
- VIN: Connected to the VCC pin of the 5V relay and the positive pin of the 5V battery.
5V Relay
- In: Connected to the D2 pin of the ESP8266 NodeMCU.
- GND: Connected to the GND pin of the ESP8266 NodeMCU.
- VCC: Connected to the VIN pin of the ESP8266 NodeMCU and the positive pin of the 5V battery.
- Normally Open: Connected to the power pin of the bulb.
- Common terminal: Connected to the hot wire of the 220V power source.
5V Battery
- Positive: Connected to the VIN pin of the ESP8266 NodeMCU and the VCC pin of the 5V relay.
- Negative: Connected to the GND pin of the ESP8266 NodeMCU.
Bulb
- Power: Connected to the Normally Open pin of the 5V relay.
- GND: Connected to the neutral wire of the 220V power source.
220V Power Source
- Hot wire: Connected to the Common terminal of the 5V relay.
- Neutral wire: Connected to the GND pin of the bulb.
Code
There is no code provided for this circuit.
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component descriptions, wiring details, and code documentation.
