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 circuit is designed using an Arduino Mega 2560 microcontroller to interface with various components including LEDs, pushbuttons, a rotary potentiometer, a DHT11 sensor, an LCD display, a water level sensor, a DS1307 RTC module, a stepper motor, a DC motor, and a motor driver. The circuit is powered using an MB102 Breadboard Power Supply Module.
Component List
MB102 Breadboard Power Supply Module 3.3V/5V
- Pins: VCC, GND, 3.3V, 5V
- Description: Provides regulated 3.3V and 5V power supply.
Arduino Mega 2560
- Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D0-D53, AREF, SDA, SCL
- Description: Microcontroller board based on the ATmega2560.
LCD Display (16 pin)
- Pins: VSS, VDD, VO, RS, R_W, E, DB0-DB7, A, K
- Description: 16x2 character LCD display.
Potentiometer
- Pins: GND, Output, VCC
- Description: Variable resistor used to adjust voltage.
Resistor (220 Ohms)
- Pins: pin1, pin2
- Description: Fixed resistor with 220 Ohms resistance.
Pushbutton
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
- Description: Momentary pushbutton switch.
Resistor (330 Ohms)
- Pins: pin1, pin2
- Description: Fixed resistor with 330 Ohms resistance.
LED: Two Pin (green)
- Pins: cathode, anode
- Description: Green LED.
LED: Two Pin (red)
- Pins: cathode, anode
- Description: Red LED.
LED: Two Pin (yellow)
- Pins: cathode, anode
- Description: Yellow LED.
LED: Two Pin (blue)
- Pins: cathode, anode
- Description: Blue LED.
Rotary Potentiometer
- Pins: leg1, wiper, leg2
- Description: 10k Ohms rotary potentiometer.
28BYJ-48 Stepper Motor
- Pins: BLUE, PINK, YELLOW, ORANGE, RED
- Description: 5V stepper motor.
Water Level Sensor
- Pins: SIG, VCC, GND
- Description: Water level detection sensor.
DS1307 RTC (Wokwi Compatible)
- Pins: GND, 5V, SDA, SCL, SQW
- Description: Real-time clock module.
DHT11
- Pins: DATA, GND, VCC
- Description: Temperature and humidity sensor.
l293d motor driver
- Pins: enable 1, input 1, output 1, gnd, output 2, input 2, vs, vss, input 4, output 4, output 3, input 3, enable 2
- Description: Dual H-Bridge motor driver IC.
DC Motor
- Pins: pin 1, pin 2
- Description: DC motor.
ULN 2003
- Pins: IN1-IN7, GND, +, COIL1-COIL5
- Description: Darlington transistor array.
Wiring Details
MB102 Breadboard Power Supply Module 3.3V/5V
- VCC: Connected to VCC of ULN 2003 and l293d motor driver.
- GND: Connected to GND of multiple components including Arduino Mega 2560, DHT11, DS1307 RTC, LCD Display, l293d motor driver, and others.
- 3.3V: Connected to GND of the same module.
- 5V: Connected to GND of the same module.
Arduino Mega 2560
- A0: Connected to wiper of Rotary Potentiometer.
- A1: Connected to SIG of Water Level Sensor.
- D2 PWM: Connected to DB6 of LCD Display.
- D3 PWM: Connected to Pin 2 (in) of a Pushbutton and pin2 of a Resistor.
- D4 PWM: Connected to DB5 of LCD Display.
- D7 PWM: Connected to DATA of DHT11.
- D8 PWM: Connected to DB7 of LCD Display.
- D11 PWM: Connected to E of LCD Display.
- D12 PWM: Connected to RS of LCD Display.
- D18/TX1: Connected to Pin 2 (in) of a Pushbutton and pin2 of a Resistor.
- D19/RX1: Connected to Pin 2 (in) of a Pushbutton and pin2 of a Resistor.
- D20/SDA: Connected to SDA of DS1307 RTC.
- D21/SCL: Connected to SCL of DS1307 RTC.
- D26: Connected to cathode of LED (yellow).
- D27: Connected to cathode of LED (green).
- D28: Connected to cathode of LED (blue).
- D29: Connected to cathode of LED (red).
- D30: Connected to input 1 of l293d motor driver.
- D31: Connected to input 2 of l293d motor driver.
- D32: Connected to IN1 of ULN 2003.
- D33: Connected to IN3 of ULN 2003.
- D34: Connected to IN2 of ULN 2003.
- D35: Connected to IN4 of ULN 2003.
- D36: Connected to VCC of Water Level Sensor.
- 5V: Connected to leg1 of Rotary Potentiometer, GND of multiple components, and VCC of Water Level Sensor.
- GND: Connected to GND of multiple components.
LCD Display (16 pin)
- VSS: Connected to VCC of Potentiometer.
- VDD: Connected to leg2 of Rotary Potentiometer.
- VO: Connected to Output of Potentiometer.
- RS: Connected to D12 PWM of Arduino Mega 2560.
- R_W: Connected to GND.
- E: Connected to D11 PWM of Arduino Mega 2560.
- DB5: Connected to D4 PWM of Arduino Mega 2560.
- DB6: Connected to D2 PWM of Arduino Mega 2560.
- DB7: Connected to D8 PWM of Arduino Mega 2560.
- A: Connected to pin1 of a Resistor.
- K: Connected to GND.
Potentiometer
- GND: Connected to GND.
- Output: Connected to VO of LCD Display.
- VCC: Connected to VSS of LCD Display.
Resistor (220 Ohms)
- pin1: Connected to A of LCD Display.
- pin2: Connected to GND.
Pushbutton
- Pin 3 (out): Connected to leg2 of Rotary Potentiometer.
- Pin 2 (in): Connected to D3 PWM, D18/TX1, and D19/RX1 of Arduino Mega 2560.
- Pin 1 (in): Not connected.
- Pin 4 (out): Not connected.
Resistor (330 Ohms)
- pin1: Connected to anode of LEDs (green, red, yellow, blue).
- pin2: Connected to GND and Pin 2 (in) of Pushbuttons.
LED: Two Pin (green)
- cathode: Connected to D27 of Arduino Mega 2560.
- anode: Connected to pin1 of a Resistor.
LED: Two Pin (red)
- cathode: Connected to D29 of Arduino Mega 2560.
- anode: Connected to pin1 of a Resistor.
LED: Two Pin (yellow)
- cathode: Connected to D26 of Arduino Mega 2560.
- anode: Connected to pin1 of a Resistor.
LED: Two Pin (blue)
- cathode: Connected to D28 of Arduino Mega 2560.
- anode: Connected to pin1 of a Resistor.