Arduino Mega 2560-Based Smart Home Automation System with LCD Display and Sensor Integration
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as LEDs, resistors, a 16x2 LCD, an Arduino Mega 2560, sensors, and motor drivers. The circuit is designed to interface with multiple sensors and actuators, displaying information on an LCD and controlling motors and LEDs based on sensor inputs.
Component List
16X2 LCD
- Description: A 16x2 character LCD display.
- Pins: VSS, VDD, V0, RS, RW, E, D1, D0, D2, D3, D4, D6, D5, D7, A, K
MB102 Breadboard Power Supply Module 3.3V/5V
- Description: A power supply module for breadboards, providing 3.3V and 5V outputs.
- Pins: GND, 3.3V, 5V
Arduino Mega 2560
- Description: A microcontroller board based on the ATmega2560.
- Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D0-D53, AREF, SDA, SCL
Rotary Potentiometer
- Description: A variable resistor used to adjust voltage.
- Pins: leg1, wiper, leg2
- Properties: Resistance: 10k Ohms
Resistor (330 Ohms)
- Description: A resistor with a resistance of 330 Ohms.
- Pins: pin1, pin2
Resistor (200 Ohms)
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
LED: Two Pin (Red)
- Description: A red LED.
- Pins: cathode, anode
LED: Two Pin (Green)
- Description: A green LED.
- Pins: cathode, anode
LED: Two Pin (Orange)
- Description: An orange LED.
- Pins: cathode, anode
LED: Two Pin (Blue)
- Description: A blue LED.
- Pins: cathode, anode
DHT11
- Description: A digital temperature and humidity sensor.
- Pins: DATA, GND, VCC
Water Level Sensor
- Description: A sensor to measure water level.
- Pins: SIG, VCC, GND
RTC DS3231
- Description: A real-time clock module.
- Pins: 32K, SQW, SCL, SDA, VCC, GND
L293D Motor Driver
- Description: A motor driver IC.
- Pins: enable 1, input 1, output 1, gnd, output 2, input 2, vs, vss, input 4, output 4, output 3, input 3, enable 2
DC Motor
- Description: A DC motor.
- Pins: pin 1, pin 2
ULN 2003
- Description: A Darlington transistor array.
- Pins: IN1-IN7, GND, +, COIL1-COIL5
28BYJ-48 Stepper Motor
- Description: A stepper motor.
- Pins: BLUE, PINK, YELLOW, ORANGE, RED
Pushbutton
- Description: A pushbutton switch.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
Wiring Details
16X2 LCD
- VSS: Connected to GND
- VDD: Connected to 5V
- V0: Connected to wiper of Rotary Potentiometer
- RS: Connected to D11 PWM of Arduino Mega 2560
- RW: Connected to GND
- E: Connected to D12 PWM of Arduino Mega 2560
- D4: Connected to D2 PWM of Arduino Mega 2560
- D5: Connected to D3 PWM of Arduino Mega 2560
- D6: Connected to D4 PWM of Arduino Mega 2560
- D7: Connected to D5 PWM of Arduino Mega 2560
- A: Connected to pin2 of 330 Ohms Resistor
- K: Connected to GND
MB102 Breadboard Power Supply Module 3.3V/5V
- 5V: Connected to vs of L293D Motor Driver and + of ULN 2003
- GND: Connected to GND of L293D Motor Driver and GND of ULN 2003
Arduino Mega 2560
- GND: Connected to GND
- 5V: Connected to VCC of DHT11, RTC DS3231, Water Level Sensor, and pin1 of 330 Ohms Resistor
- D6 PWM: Connected to pin1 of 330 Ohms Resistor
- D7 PWM: Connected to pin1 of 330 Ohms Resistor
- D8 PWM: Connected to pin2 of 330 Ohms Resistor
- D9 PWM: Connected to pin2 of 330 Ohms Resistor
- D10 PWM: Connected to DATA of DHT11
- D11 PWM: Connected to RS of 16X2 LCD
- D12 PWM: Connected to E of 16X2 LCD
- D13 PWM: Connected to Pin 4 (out) of Pushbutton
- D19/RX1: Connected to Pin 4 (out) of Pushbutton
- D20/SDA: Connected to SDA of RTC DS3231
- D21/SCL: Connected to SCL of RTC DS3231
- D30: Connected to IN1 of ULN 2003
- D31: Connected to IN2 of ULN 2003
- D32: Connected to IN3 of ULN 2003
- D33: Connected to IN4 of ULN 2003
- D34: Connected to Pin 4 (out) of Pushbutton
- D35: Connected to Pin 4 (out) of Pushbutton
- D36: Connected to enable 1 of L293D Motor Driver
- D37: Connected to input 1 of L293D Motor Driver
- D38: Connected to input 2 of L293D Motor Driver
- A0: Connected to SIG of Water Level Sensor
Rotary Potentiometer
- leg2: Connected to GND
- wiper: Connected to V0 of 16X2 LCD
Resistor (330 Ohms)
- pin1: Connected to D6 PWM of Arduino Mega 2560
- pin2: Connected to anode of Red LED
Resistor (330 Ohms)
- pin1: Connected to D7 PWM of Arduino Mega 2560
- pin2: Connected to anode of Orange LED
Resistor (330 Ohms)
- pin1: Connected to D8 PWM of Arduino Mega 2560
- pin2: Connected to anode of Green LED
Resistor (330 Ohms)
- pin1: Connected to D9 PWM of Arduino Mega 2560
- pin2: Connected to anode of Blue LED
Resistor (330 Ohms)
- pin1: Connected to Pin 3 (out) of Pushbutton
- pin2: Connected to GND
Resistor (200 Ohms)
- pin1: Connected to Pin 3 (out) of Pushbutton
- pin2: Connected to GND
LED: Two Pin (Red)
- cathode: Connected to GND
- anode: Connected to pin2 of 330 Ohms Resistor
LED: Two Pin (Green)
- cathode: Connected to GND
- anode: Connected to pin1 of 330 Ohms Resistor
LED: Two Pin (Orange)
- cathode: Connected to GND
- anode: Connected to pin2 of 330 Ohms Resistor
LED: Two Pin (Blue)
- cathode: Connected to GND
- anode: Connected to pin1 of 330 Ohms Resistor
DHT11
- DATA: Connected to D10 PWM of Arduino Mega 2560
- GND: Connected to GND
- VCC: Connected to 5V
Water Level Sensor
- SIG: Connected to A0 of Arduino Mega 2560
- GND: Connected to GND
- VCC: Connected to 5V
RTC DS3231
- SCL: Connected to D21/SCL of Arduino Mega 2560
- SDA: Connected to D20/SDA of Arduino Mega 2560
- GND: Connected to GND
- VCC: Connected to 5V
L293D Motor Driver
- enable 1: Connected to D36 of Arduino Mega 2560