Arduino UNO-Based Smart Home Automation System with Wi-Fi and Real-Time Clock
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with various components including an LCD screen, RTC module, ultrasonic sensor, micro servo, and an ESP-8266 controller. The circuit is designed to perform various tasks such as displaying information on the LCD, keeping track of time, measuring distance, controlling a servo motor, and enabling Wi-Fi communication.
Component List
Arduino UNO
- Description: A 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
Micro servo 9G
- Description: A small servo motor used for precise control of angular position.
- Pins: GND, +5V, PWM
RTC DS3231
- Description: A real-time clock module with an I2C interface.
- Pins: 32K, SQW, SCL, SDA, VCC, GND
LCD screen 16x2 I2C
- Description: A 16x2 character LCD display with an I2C interface.
- Pins: SCL, SDA, VCC, GND
ESP-8266 Controller
- Description: A Wi-Fi module used for wireless communication.
- Pins: A0, RSV, SD3, SD5, SD1, CMD, D0, D1, D2, D3, D4, 3V3, GND, D5, D6, SD0, CLK, RST, EN, D7, D8, RX, TX, Vin, 5V
Ultrasonic Sensor
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
Wiring Details
Arduino UNO
- A4: Connected to SDA of LCD screen and RTC DS3231
- A5: Connected to SCL of LCD screen and RTC DS3231
- 5V: Connected to +VCC of Ultrasonic Sensor, VCC of RTC DS3231, VCC of LCD screen, and +5V of Micro servo
- GND: Connected to GND of Ultrasonic Sensor, GND of RTC DS3231, GND of LCD screen, GND of Micro servo, and GND of ESP-8266 Controller
- 3.3V: Connected to 3V3 of ESP-8266 Controller
- D9: Connected to PWM of Micro servo
- D7: Connected to Trigger of Ultrasonic Sensor
- D6: Connected to Echo of Ultrasonic Sensor
- D1: Connected to RX of ESP-8266 Controller
- D0: Connected to TX of ESP-8266 Controller
Micro servo 9G
- GND: Connected to GND of Arduino UNO
- +5V: Connected to 5V of Arduino UNO
- PWM: Connected to D9 of Arduino UNO
RTC DS3231
- SDA: Connected to A4 of Arduino UNO
- SCL: Connected to A5 of Arduino UNO
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
LCD screen 16x2 I2C
- SDA: Connected to A4 of Arduino UNO
- SCL: Connected to A5 of Arduino UNO
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
ESP-8266 Controller
- 3V3: Connected to 3.3V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- RX: Connected to D1 of Arduino UNO
- TX: Connected to D0 of Arduino UNO
Ultrasonic Sensor
- +VCC: Connected to 5V of Arduino UNO
- Trigger: Connected to D7 of Arduino UNO
- Echo: Connected to D6 of Arduino UNO
- GND: Connected to GND of Arduino UNO
Documented 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 documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.