Wi-Fi Controlled Home Automation System with ESP8266 and Arduino UNO
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates an ESP8266 ESP-01 WiFi Module, an Arduino UNO, an LCD screen 16x2 I2C, a 12V Single Channel Relay, and an ESP32 CAM. The circuit is designed to facilitate communication between these components, with the Arduino UNO serving as the central microcontroller. The document includes a component list, wiring details, and the embedded code used in the Arduino UNO.
Component List
ESP8266 ESP-01 WiFi Module
- Description: WiFi module for wireless communication.
- Pins: TXD, CH_PD, RST, VCC, GND, GPIO_2, GPIO_0, RXD
Arduino UNO
- Description: Microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
LCD screen 16x2 I2C
- Description: 16x2 character LCD display with I2C interface.
- Pins: SCL, SDA, VCC, GND
12V Single Channel Relay
- Description: Relay module for switching high voltage devices.
- Pins: NC, COM, NO, IN, GND, VCC
ESP32 CAM
- Description: Camera module with WiFi and Bluetooth capabilities.
- Pins: 5V, GND, GPIO12, GPIO13, GPIO15, GPIO14, GPIO2, GPIO4, 3.3V, GPIO16, GPIO0, 3.3V / 5V / P_OUT, GPIO3 / RX, GPIO1 / TX
Power 220V
- Description: Power supply for the circuit.
- Pins: hot wire, neutral wire
Wiring Details
ESP8266 ESP-01 WiFi Module
- TXD connected to Arduino UNO D2
- VCC connected to Arduino UNO 5V, LCD screen 16x2 I2C VCC, 12V Single Channel Relay VCC
- GND connected to Arduino UNO GND
- RXD connected to Arduino UNO D3
Arduino UNO
- 5V connected to ESP8266 ESP-01 WiFi Module VCC, LCD screen 16x2 I2C VCC, 12V Single Channel Relay VCC
- GND connected to ESP8266 ESP-01 WiFi Module GND, LCD screen 16x2 I2C GND, 12V Single Channel Relay GND, ESP32 CAM GND
- 3.3V connected to ESP32 CAM 3.3V
- D2 connected to ESP8266 ESP-01 WiFi Module TXD
- D3 connected to ESP8266 ESP-01 WiFi Module RXD
- A4 connected to LCD screen 16x2 I2C SDA
- A5 connected to LCD screen 16x2 I2C SCL
- D5 connected to 12V Single Channel Relay IN
- D1 connected to ESP32 CAM GPIO3 / RX
- D0 connected to ESP32 CAM GPIO1 / TX
LCD screen 16x2 I2C
- VCC connected to Arduino UNO 5V, ESP8266 ESP-01 WiFi Module VCC, 12V Single Channel Relay VCC
- GND connected to Arduino UNO GND, 12V Single Channel Relay GND, ESP32 CAM GND
- SDA connected to Arduino UNO A4
- SCL connected to Arduino UNO A5
12V Single Channel Relay
- VCC connected to Arduino UNO 5V, ESP8266 ESP-01 WiFi Module VCC, LCD screen 16x2 I2C VCC
- GND connected to Arduino UNO GND, LCD screen 16x2 I2C GND, ESP32 CAM GND
- IN connected to Arduino UNO D5
- NC connected to NO and Power 220V neutral wire
- COM connected to Power 220V hot wire
ESP32 CAM
- 3.3V connected to Arduino UNO 3.3V
- GND connected to Arduino UNO GND, LCD screen 16x2 I2C GND, 12V Single Channel Relay GND
- GPIO3 / RX connected to Arduino UNO D1
- GPIO1 / TX connected to Arduino UNO D0
Power 220V
- hot wire connected to 12V Single Channel Relay COM
- neutral wire connected to 12V Single Channel Relay NC and NO
Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the embedded code for the Arduino UNO.