กลับไปหน้ารวมไฟล์
digital-clock-using-arduino-uno-e48d06.md

โปรเจกต์นี้ใช้โมดูลนาฬิกา DS1302 และหน้าจอ LCD การเชื่อมต่อสายไฟเป็นดังนี้:

สายไฟของ DS1302 เชื่อมต่อกับ:

RST_pin 2 // -> Arduino Digital 2

DATA_pin 3 // -> Arduino Digital 3

CLK_pin 4 //-> Arduino Digital 4

VCC_pin 3.3V

GND_PIN GND PIN บน ARDUINO

สายไฟของ LCD เชื่อมต่อกับ:

VSS_PIN // –> GND Arduino

VDP_PIN // –> 5V Arduino

VO_PIN // –> เอาต์พุตของ potentiometer (potentiometer VCC -> 5V Arduino, potentiometer GND -> Arduino GND).

RS_PIN 12 // –> pin 12 Arduino

RW_PIN // –> GND Arduino

E_PIN 11 // –> pin 11 Arduino

D4_PIN 5 // –> pin 5 Arduino

D5_PIN 6 // –> pin 6 Arduino

D6_PIN 7 // –> pin 7 Arduino

D7_PIN 8 // –> pin 8 Arduino

A_PIN // –> GND บน breadboard

K_PIN // –> GND Arduino

รายละเอียดทางเทคนิคเพิ่มเติม

กรอบการทำงานของนาฬิกาตั้งโต๊ะ

คู่มือฉบับสมบูรณ์สำหรับการสร้างนาฬิกาดิจิทัลที่เสถียรและแม่นยำโดยใช้แพลตฟอร์ม Arduino Uno

  • DS1307 / DS3231 I2C Handshake: Arduino สร้างการเชื่อมต่อ I2C ความถี่ 100kHz กับโมดูล Real-Time Clock เฟิร์มแวร์จะดึงข้อมูลเวลา/วันที่/ปี ทุก 1 วินาที และจัดรูปแบบเพื่อแสดงผล
  • Multi-Digit 7-Segment Multiplexing: หากใช้จอแสดงผลแบบ 4 หลัก, Arduino จะทำการ "Multiplexing" ความเร็วสูง โดยจะสลับการแสดงผลระหว่างหลักต่างๆ อย่างรวดเร็วจนตาเปล่ามองไม่ทัน เพื่อให้มั่นใจว่าตัวเลขทั้งสี่หลักปรากฏสว่างพร้อมกัน

ประสิทธิภาพ

  • Sub-Second Persistence: มีแบตเตอรี่แบบถ่านกระดุมสำรองอยู่ในโมดูล RTC; นาฬิกาจะรักษาเวลาที่ถูกต้องไว้ได้แม้ว่า Arduino Uno จะถูกถอดสายไฟออกหรือไฟดับ

ข้อมูล Frontmatter ดั้งเดิม

title: "Digital clock USING ARDUINO UNO"
description: "It is a simple digital clock made using ds1302 clock module and a LCD screen."
author: "sarveshsupe"
category: ""
tags:
  - "clocks"
views: 11865
likes: 2
price: 1120
difficulty: "Easy"
components:
  - "1x LCD SCREEN"
  - "1x Female/Female Jumper Wires"
  - "1x Rotary potentiometer (generic)"
  - "1x Soldering iron (generic)"
  - "1x Jumper wires (generic)"
  - "1x Real Time Clock (RTC)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "301441711fd0ec35a4a016271873c9834d2287089ee864c4beb7df862a725c5b"
encryptedPayload: "U2FsdGVkX185nFhPQ277tvsI16Af6k7NBDlYY2uUrToazCJI7a4Kcv2nXLYWddThfqcEHzXt6d8fGB5rkZ2T8ZoMnVowCK/V8QgA4qXkAk0="
seoDescription: "Build a simple Digital clock using ARDUINO UNO, ds1302 clock module, and LCD. A perfect DIY guide for beginners."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/digital-clock-using-arduino-uno-e48d06_cover.jpg"
lang: "th"