Arduino Mega 2560 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 an Arduino Mega 2560, LCD Display, LEDs, resistors, a rotary potentiometer, pushbuttons, a stepper motor, a DC motor, a real-time clock module, a humidity and temperature sensor, and a water level sensor. The circuit is designed to interface these components with the Arduino Mega 2560, allowing for various functionalities such as display control, motor control, and sensor data acquisition.
Component List
Arduino Mega 2560
- Description: A microcontroller board based on the ATmega2560.
- Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D0-D53, SDA, SCL, AREF
LCD Display (16 pin)
- Description: A 16x2 character LCD display.
- Pins: VSS, VDD, VO, RS, R_W, E, DB0-DB7, A, K
Rotary Potentiometer
- Description: A variable resistor used to adjust voltage.
- Pins: leg1, wiper, leg2
- Properties: Resistance: 10k Ohms
Pushbutton
- Description: A simple pushbutton switch.
- Pins: Pin 1, Pin 2, Pin 3, Pin 4
Resistor
- Description: A passive electrical component that implements electrical resistance.
- Pins: pin1, pin2
- Properties: Resistance: 1k Ohms
LED: Two Pin (blue)
- Description: A blue light-emitting diode.
- Pins: cathode, anode
LED: Two Pin (red)
- Description: A red light-emitting diode.
- Pins: cathode, anode
LED: Two Pin (yellow)
- Description: A yellow light-emitting diode.
- Pins: cathode, anode
LED: Two Pin (green)
- Description: A green light-emitting diode.
- Pins: cathode, anode
28BYJ-48 Stepper Motor
- Description: A small stepper motor.
- Pins: BLUE, PINK, YELLOW, ORANGE, RED
ULN2003A breakout board
- Description: A Darlington transistor array used to drive the stepper motor.
- Pins: In 1-In 7, 0V, +5V, ON/OFF jumper switch, BLUE wire, PINK wire, YELLOW wire, ORANGE wire, RED wire
Power mb V2
- Description: A power supply module.
- Pins: -, +, DC-ln
DHT11 Humidity and Temperature Sensor
- Description: A sensor for measuring humidity and temperature.
- Pins: VDD, DATA, NULL, GND
L293D
- Description: A quadruple high-current half-H driver.
- Pins: Enable 1,2, Input 1, Output 1, GND, Output 2, Input 2, VCC2, VCC1, Input 4, Output 4, Output 3, Input 3, Enable 3,4
DC Motor
- Description: A simple DC motor.
- Pins: pin 1, pin 2
Water Level Sensor
- Description: A sensor for detecting water levels.
- Pins: SIG, VCC, GND
Real Time Clock Module - DS1307 RTC Breakout Board
- Description: A real-time clock module.
- Pins: 5V, GND, SQW, SCL, SDA
9V Battery
- Description: A 9V battery for power supply.
- Pins: -, +
Wiring Details
Arduino Mega 2560
- 5V: Connected to VDD of LCD Display, 5V of Real Time Clock Module, leg2 of Rotary Potentiometer, Pin 2 of Pushbutton, +5V of ULN2003A breakout board
- GND: Connected to VSS of LCD Display, GND of Real Time Clock Module, pin2 of Resistor, pin1 of Resistor, leg1 of Rotary Potentiometer, cathode of blue LED, cathode of red LED, cathode of yellow LED, cathode of green LED, 0V of ULN2003A breakout board, GND of Water Level Sensor
- D3 PWM: Connected to DB7 of LCD Display
- D4 PWM: Connected to DB6 of LCD Display
- D5 PWM: Connected to DB5 of LCD Display
- D6 PWM: Connected to DB4 of LCD Display
- D7 PWM: Connected to E of LCD Display
- D8 PWM: Connected to RS of LCD Display
- A0: Connected to Input 1 of L293D
- A1: Connected to Input 2 of L293D
- A2: Connected to VCC of Water Level Sensor
- A3: Connected to SIG of Water Level Sensor
- A4: Connected to Enable 1,2 of L293D
- A8: Connected to pin2 of Resistor
- A9: Connected to pin2 of Resistor
- A10: Connected to pin2 of Resistor
- A11: Connected to pin2 of Resistor
- A12: Connected to Pin 4 of Pushbutton
- A13: Not connected
- A14: Connected to Pin 4 of Pushbutton
- D2 PWM: Connected to DATA of DHT11 Humidity and Temperature Sensor
- D21/SCL: Connected to SCL of Real Time Clock Module
- D20/SDA: Connected to SDA of Real Time Clock Module
- D52: Connected to In 1 of ULN2003A breakout board
- D50: Connected to In 2 of ULN2003A breakout board
- D48: Connected to In 3 of ULN2003A breakout board
- D46: Connected to In 4 of ULN2003A breakout board
LCD Display (16 pin)
- VSS: Connected to GND of Arduino Mega 2560
- VDD: Connected to 5V of Arduino Mega 2560
- VO: Connected to wiper of Rotary Potentiometer
- RS: Connected to D8 PWM of Arduino Mega 2560
- R_W: Connected to pin2 of Resistor
- E: Connected to D7 PWM of Arduino Mega 2560
- DB4: Connected to D6 PWM of Arduino Mega 2560
- DB5: Connected to D5 PWM of Arduino Mega 2560
- DB6: Connected to D4 PWM of Arduino Mega 2560
- DB7: Connected to D3 PWM of Arduino Mega 2560
- A: Connected to VDD
- K: Connected to pin1 of Resistor
Rotary Potentiometer
- leg1: Connected to GND of Arduino Mega 2560
- wiper: Connected to VO of LCD Display
- leg2: Connected to 5V of Arduino Mega 2560
Pushbutton
- Pin 2: Connected to 5V of Arduino Mega 2560
- Pin 4: Connected to A12 and A14 of Arduino Mega 2560
- Pin 3: Connected to pin2 of Resistor
Resistor
- pin1: Connected to R_W of LCD Display, K of LCD Display, anode of blue LED, anode of red LED, anode of yellow LED, anode of green LED
- pin2: Connected to GND of Arduino Mega 2560, pin2 of Pushbutton, A8, A9, A10, A11 of Arduino Mega 2560
LED: Two Pin (blue)
- cathode: Connected to GND of Arduino Mega 2560
- anode: Connected to pin1 of Resistor
LED: Two Pin (red)
- cathode: Connected to GND of Arduino Mega 2560
- anode: Connected to pin1 of Resistor
LED: Two Pin (yellow)
- cathode: Connected to GND of Arduino Mega 2560
- anode: Connected to pin1 of Resistor
LED: Two Pin (green)
- cathode: Connected to GND of Arduino Mega 2560
- anode: Connected to pin1 of Resistor
28BYJ-48 Stepper Motor
- BLUE: Connected to BLUE wire of ULN2003A breakout board
- PINK: Connected to PINK wire of ULN2003A breakout board
- YELLOW: Connected to YELLOW wire of ULN2003A breakout board
- ORANGE: Connected to ORANGE wire of ULN2003A breakout board
- RED: Connected to RED wire of ULN2003A breakout board
ULN2003A breakout board
- In 1: Connected to D52 of Arduino Mega 2560
- **In