Arduino UNO-Based Smart Home Control System with LCD Display and Keypad
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, a 16x2 I2C LCD, a buzzer, a Tower Pro SG90 servo, and a 4x4 Keypad. The circuit is designed to interface these components with the Arduino UNO, allowing for various input and output operations.
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
16x2 I2C LCD
- Description: A 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
Buzzer
- Description: A simple piezoelectric buzzer.
- Pins: PIN, GND
Tower Pro SG90 Servo
- Description: A small servo motor used for precise control of angular position.
- Pins: Signal, +5V, GND
4x4 Keypad (Simulator)
- Description: A 4x4 matrix keypad used for user input.
- Pins: R1, C4, R2, C2, R3, R4, C1, C3
Wiring Details
Arduino UNO
- 5V: Connected to VCC of 16x2 I2C LCD and +5V of Tower Pro SG90 servo.
- GND: Connected to GND of 16x2 I2C LCD, GND of Tower Pro SG90 servo, and GND of buzzer.
- A4: Connected to SDA of 16x2 I2C LCD.
- A5: Connected to SCL of 16x2 I2C LCD.
- D11: Connected to PIN of buzzer.
- D10: Connected to Signal of Tower Pro SG90 servo.
- D9: Connected to R1 of 4x4 Keypad.
- D8: Connected to R2 of 4x4 Keypad.
- D7: Connected to R3 of 4x4 Keypad.
- D6: Connected to R4 of 4x4 Keypad.
- D5: Connected to C1 of 4x4 Keypad.
- D4: Connected to C2 of 4x4 Keypad.
- D3: Connected to C3 of 4x4 Keypad.
- D2: Connected to C4 of 4x4 Keypad.
16x2 I2C LCD
- VCC: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
- SDA: Connected to A4 of Arduino UNO.
- SCL: Connected to A5 of Arduino UNO.
Buzzer
- PIN: Connected to D11 of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
Tower Pro SG90 Servo
- Signal: Connected to D10 of Arduino UNO.
- +5V: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
4x4 Keypad (Simulator)
- R1: Connected to D9 of Arduino UNO.
- R2: Connected to D8 of Arduino UNO.
- R3: Connected to D7 of Arduino UNO.
- R4: Connected to D6 of Arduino UNO.
- C1: Connected to D5 of Arduino UNO.
- C2: Connected to D4 of Arduino UNO.
- C3: Connected to D3 of Arduino UNO.
- C4: Connected to D2 of Arduino UNO.
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components and settings, and the loop() function is where you place the main code that runs repeatedly.