https://github.com/egezenn/desk-clock
Desk clock for a school project
https://github.com/egezenn/desk-clock
c embedded
Last synced: 10 months ago
JSON representation
Desk clock for a school project
- Host: GitHub
- URL: https://github.com/egezenn/desk-clock
- Owner: Egezenn
- License: mit
- Created: 2025-03-15T14:48:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-16T17:21:46.000Z (about 1 year ago)
- Last Synced: 2025-04-17T01:54:29.549Z (about 1 year ago)
- Topics: c, embedded
- Language: C
- Homepage:
- Size: 75.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Desk Clock
Simple desk clock that displays date&time.
## Software
### KiCad
Designed with DIY PCB production methods in mind. Has DS1302 symbol&footprint that I could've just used pin headers, didn't, ¯\\\_(ツ)\_/¯.
### Proteus
To test, link the compiled hex file to PIC16F877A component.
### CCS C Compiler
Compile contents of [src](src) with the compiler.
## Components
- PIC16F877a
- 1602 LCD
- DS1302
- 4mHz crystal oscillator (only one that was in stock, shouldn't matter all that much)
- 4x buttons (dual, because I already had them)
- 2x 22pF ceramic disc capacitor
- 6x 10k ohm resistors
- 5V power source
- CR2032 lithium battery (for DS1302)
## Acknowledgements of stuff that could've been better section
- Usage of a more reliable RTC module like DS1307
- A smaller & cheaper PIC, PIC16F877A is a bit of an overkill here (school project ¯\\\_(ツ)\_/¯)
- Interrupt section of the C source file could've been condensed via functions and whatnot
- `day_in_week` could also be displayed, there's space for it in the LCD