Arduino UNO-Based Real-Time Clock and Data Logging System with I2C LCD Display
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, an I2C module, a 16x2 I2C LCD, a DS1302 RTC, multiple push switches, an SD module, and a buzzer. The circuit is designed to interface various components with the Arduino UNO to perform specific tasks as defined in the embedded code.
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
I2C Module
- Description: A module used for I2C communication.
- Pins: SCL, SDA, VCC, GND
16x2 I2C LCD
- Description: A 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
DS1302 RTC
- Description: A real-time clock module.
- Pins: VCC, GND, CLK, DATA, RST
2Pin Push Switch
- Description: A simple push-button switch.
- Pins: Input +, Output +
SD Module
- Description: A module for interfacing with SD cards.
- Pins: CS, SCK, MOSI, MISO, VCC, GND
Buzzer
- Description: An electronic device that emits sound.
- Pins: PIN, GND
Comment
- Description: A placeholder for comments in the circuit.
- Pins: None
Wiring Details
Arduino UNO
- A5: Connected to I2C module SCL
- A4: Connected to I2C module SDA
- 5V: Connected to I2C module VCC, DS1302 RTC VCC, SD module VCC
- GND: Connected to I2C module GND, DS1302 RTC GND, SD module GND, Push Switch Input + (all instances), Buzzer GND
- D2: Connected to Push Switch Output + (instance 1)
- D3: Connected to Push Switch Output + (instance 2)
- D4: Connected to SD module CS
- D5: Connected to Push Switch Output + (instance 3)
- D6: Connected to DS1302 RTC CLK
- D7: Connected to DS1302 RTC DATA
- D8: Connected to DS1302 RTC RST
- D9: Connected to Buzzer PIN
- D11: Connected to SD module MOSI
- D12: Connected to SD module MISO
- D13: Connected to SD module SCK
I2C Module
- SCL: Connected to Arduino UNO A5
- SDA: Connected to Arduino UNO A4
- VCC: Connected to Arduino UNO 5V
- GND: Connected to Arduino UNO GND
16x2 I2C LCD
- GND: Not connected
- VCC: Not connected
- SDA: Not connected
- SCL: Not connected
DS1302 RTC
- VCC: Connected to Arduino UNO 5V
- GND: Connected to Arduino UNO GND
- CLK: Connected to Arduino UNO D6
- DATA: Connected to Arduino UNO D7
- RST: Connected to Arduino UNO D8
2Pin Push Switch (instance 1)
- Input +: Connected to Arduino UNO GND
- Output +: Connected to Arduino UNO D2
2Pin Push Switch (instance 2)
- Input +: Connected to Arduino UNO GND
- Output +: Connected to Arduino UNO D3
2Pin Push Switch (instance 3)
- Input +: Connected to Arduino UNO GND
- Output +: Connected to Arduino UNO D5
SD Module
- CS: Connected to Arduino UNO D4
- SCK: Connected to Arduino UNO D13
- MOSI: Connected to Arduino UNO D11
- MISO: Connected to Arduino UNO D12
- VCC: Connected to Arduino UNO 5V
- GND: Connected to Arduino UNO GND
Buzzer
- PIN: Connected to Arduino UNO D9
- GND: Connected to Arduino UNO GND
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and the embedded code for the Arduino UNO microcontroller.