This project is a hybrid of analog and digital timekeeping, using a 555 timer circuit to generate 1 Hz pulses, which are then counted by an Arduino Uno. The project includes a dual-display system: one that directly reflects raw pulse count from the 555 timer, and another that maintains and displays a formatted 24-hour clock.
🔧 Main Components:
-
555 Timer Circuit:
-
Generates a 1 Hz square wave signal, representing one second per pulse.
-
-
Arduino Uno:
-
Uses edge detection (rising edge only) to reliably count seconds.
-
Converts pulse counts into a human-readable 24-hour time format.
-
-
Primary Display (e.g., 7-segment):
-
Displays the raw pulse count directly—essentially acting as a digital pulse counter.
-
-
Secondary Display (0.96" OLED via I2C):
-
Displays the formatted time in HH:MM:SS format.
-
Updated in real time by the Arduino.
-
🔘 Manual Time Adjustment (Buttons):
-
3 pushbuttons are connected to ground and read as
LOWwhen pressed.-
Hour Button: Increments hours (rolls over at 24).
-
Minute Button: Increments minutes (rolls over at 60).
-
Second Button: Resets seconds to zero—useful for syncing.
-
-
Buttons are debounced in code using a 50ms delay and simple polling logic.
🧠 Key Features:
-
Edge Detection:
-
Prevents multiple counts per pulse due to signal bounce or noise.
-
Ensures one-second accuracy per 555 pulse.
-
-
User Time Sync:
-
Allows manual adjustment like vintage Casio or GE clocks.
-
-
No RTC Used:
-
All timing is derived from the 555 pulse and edge detection—hardware based, not software simulated.
-
-
OLED Feedback:
-
Makes it easy to read time, even if the raw counter is being used for testing or calibration.
-
✅ Results:
-
Achieves remarkable accuracy, drifting only ~0.5 seconds due to initial setting—not the 555 or code.
-
Demonstrates how simple hardware like a 555 timer can reliably drive digital timekeeping when paired with good software techniques.
-
A blend of analog precision and digital flexibility.
Josh
kmatch98
zst123
mircemk