Arduino UNO-Based Smart Clock with RTC, Servo, LCD Display, and Buzzer
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with several components: an RTC DS3231 module, a 16x2 I2C LCD, a Servo motor, and a Piezo Buzzer. The Arduino UNO serves as the central controller, providing power and control signals to the connected components.
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
RTC DS3231
- Description: A real-time clock module with an I2C interface.
- Pins: 32K, SQW, SCL, SDA, VCC, GND
Servo
- Description: A servo motor for precise control of angular position.
- Pins: GND, VCC, PWM
16x2 I2C LCD
- Description: A 16x2 character LCD with an I2C interface.
- Pins: GND, VCC, SDA, SCL
Piezo Buzzer
- Description: A piezoelectric buzzer for generating sound.
- Pins: pin 1, pin 2
Wiring Details
Arduino UNO
5V connected to:
- 16x2 I2C LCD (VCC)
- RTC DS3231 (VCC)
- Servo (VCC)
GND connected to:
- 16x2 I2C LCD (GND)
- RTC DS3231 (GND)
- Servo (GND)
- Piezo Buzzer (pin 2)
A4 connected to:
- 16x2 I2C LCD (SDA)
A5 connected to:
- 16x2 I2C LCD (SCL)
SCL connected to:
- RTC DS3231 (SCL)
SDA connected to:
- RTC DS3231 (SDA)
D12 connected to:
- Piezo Buzzer (pin 1)
D7 connected to:
- Servo (PWM)
RTC DS3231
VCC connected to:
- Arduino UNO (5V)
GND connected to:
- Arduino UNO (GND)
SCL connected to:
- Arduino UNO (SCL)
SDA connected to:
- Arduino UNO (SDA)
Servo
VCC connected to:
- Arduino UNO (5V)
GND connected to:
- Arduino UNO (GND)
PWM connected to:
- Arduino UNO (D7)
16x2 I2C LCD
VCC connected to:
- Arduino UNO (5V)
GND connected to:
- Arduino UNO (GND)
SDA connected to:
- Arduino UNO (A4)
SCL connected to:
- Arduino UNO (A5)
Piezo Buzzer
pin 1 connected to:
- Arduino UNO (D12)
pin 2 connected to:
- Arduino UNO (GND)
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 the main logic of your program runs repeatedly.