Gorgeous Clock, And Not A Line Of Code In Sight

[Harry] dropped us a note to let us know about his completed CMOS clock project, and we’re delighted that he did because it’s gorgeous. It’s a digital clock satisfyingly assembled entirely from hardware logic, without a single line of code. There are three main parts to this kind of digital clock: ensuring a stable time base, allowing for setting the time, and turning the counter outputs into a numerical display.

Keeping accurate time is done with a 32.768 kHz crystal, and using CMOS logic to divide that down to a 1 Hz square wave. From there, keeping track of hours and minutes and seconds is mostly a matter of having counters reset and carry at the appropriate times. Setting the clock is done by diverting the 1 Hz signal so that it directly increments either the hours or minutes counter. The counter values are always shown “live” on six 7-segment displays, which makes it all human-readable.

The whole thing is tastefully enclosed in a glass dome which looks great, but [Harry] helpfully warns prospective makers that such things have an unfortunate side effect of being a fingerprint magnet. Schematics and design files are provided for those who want a closer look.

This clock uses a crystal and divider, but there’s another method for keeping accurate time and that’s to base it off the alternating current frequency of power from the grid. Not a bad method, albeit one that depends on being plugged into the wall.

41 thoughts on “Gorgeous Clock, And Not A Line Of Code In Sight

  1. I understand that “To each one his taste” (translated from french), but I fail to see where this is “gorgeous”? How is a black pcb with all that silkscreen, ugly looking parts like the transformer, rainbow colored cables, fuse holder , stand offs and the rest of the components “gorgeous” ?

    1. I’m not sure you do understand “to each their own”. You already said you don’t find it gorgeous, so I’m not sure what answer you could be expecting other than “to you, it isn’t”

      I certainly find it very nice looking (but you are not me ;) – the back pcb color doesn’t ‘jump’ and try to take attention, as default green or any fancier color would (except maybe white)
      The symmetry of layout and components looks great, at least from the front. Even the transformer seems fitting to have the spot it does, although that did make me presume it used the AC frequency as part of its task.
      The back pcb isn’t nearly as nice to look at to me with the same reasons, but no doubt that’s why it is tucked in the back!

    2. Oh yes, this is gorgeous… Unlike humans, with their exposed layer of ugly epidermis and varying levels of visible melanin. And what’s with them adorning them with textiles and trying to enhance them with pigments? I mean seriously, don’t they realize what a fail that is?

      1. It already has 52 blue LEDs (6*7+6*decimalpoint+2 colons consisting of 2 LEDs each), please do not add more.

        But regarding beauty, it is in the eye of the beholder. Personally I see the beauty not in the way it looks, but in the way it is made, how it works. Good to see a project that uses the old-skool style and has the balls to show it with pride. Cool project.

  2. Regular boring CMOS logic? No Arduino? No Frameworks? No IoT?

    If a project doesn’t need at least 3 different “lightweight” frameworks, running on a Quad Core PC with 16GB of RAM to communicate to an arudino, it’s just a trivial project.

    Where is the web page to set the time?

    Where is the web page to set an alarm?

    Where are the frameworks? back-end servers, IoT?

    Seriously, a nice change on HaD.

  3. Building such things with TTL logic was quite the norm in “Introduction to Electronics” (101 or 201) courses in the late 70’s. So this falls under the proverbial, “everything old is new again”. A worthwhile effort, congrats on the outcome.

    1. I only got into electronics a few years ago, and only because microcontrollers let me move much of the complexity from hardware to software. Doing something like might be old, but it boggles the mind of this 45 year old hack!

      The idea of making an accurate clock with a display, all in hardware, would literally tie my brain in knots!

      1. It is pretty boring: each digits have counter configured for different ranges (6/10/12) + display decoders. As soon as you want additional features, their complexity just blows up in a discrete design. You have a bit of flexibility with a microcontroller.

      2. It’s surprisingly modular. There are discrete IC’s for “Binary coded decimal counters”, and then the counter output goes into a “Binary to 7 Seg decoder” IC. The only slightly tricky part is having the some of the counters reset/overflow at the right digit, which you can do with AND/NOT logic gates.

        1. Sorry, should have read:

          “The idea of making an accurate clock with a display, all in hardware, would literally tie my brain in knots!”

          It’s called “a clock”.

          Don’t hurt me, I’m old. I’ll be good.

  4. Aesthetically pleasing. 7 segment red LED displays would have been more likely for time period where cost of discrete logic was cheaper than a MCU/ASIC. Assumption to attempt of making appear as antique by glass/wood enclosure. That and blue is irritatingly overused-abused.
    Friendly suggestion: Avoid idiota masquerading as authority. Leave it at home and avoid airports/schools.

    1. Single chip clock (e.g. MM5316 in PMOS) arrived in the 70’s and they make it to the $10 digital clock, clock radio. They pack quite a bit of additional functions than you would be able to build with discrete logic chips: alarm + snooze, min/sec display, sleep timer. The period LED was the red and they weren’t as efficient as the ones these days.

      1. The chip made it to 10$ LED clock eventually. VFD was cheaper and brighter but still not 10$. Though the chip itself may have been around that price in one-off 1970s dollars- does seem high. More to 6-8$. MM5314 was more prevalent. No radio supplement on that chip either. If you put it next to your radio it did make some cool Music- of sorts.
        For perspective-
        Backyard search:
        https://hackaday.com/tag/mm5316/
        Bad example being Heathkit so naturally more money for the kit. VFD $50 -1977. You have to do a value with your favourite conversion but some where ~200$ todays value (2020).

      1. Yes it was the kid (Ahmed) that blew up the non existent bomb, and the situation. No.
        That particular situation did get excessive coverage media perversion style due to ethnicity
        Sadly it is not an isolated incident.

  5. As to the 60 Hz from the wall… The home I just built is totally PV solar. The clock on the kitchen range loses a couple of minutes per day from the inaccuracies in the pure sine inverter(s).

      1. Also…
        Engineer1: “Do you think we should design extra temperature stability into a device that heats up from room temperature to 200C and drops back again when turned off?”
        Engineer2: “Nah.”

      2. I have a 1940s big General Electric wall clock and it’s insanely accurate off of wall current. It has a mechanical indicator to show if the power was lost at any time, I’ve had 1 power outage in the last year that lasted 3 hours according to this clock.

      3. Tell me about that one. The stove clock keeps really perfect time on the power line, but you are right, the slightest little glitch in the line and that one is blinking 12:00. It is a new stove too. I wonder if they have figured out they can use much smaller filter caps and are doing so now. My old microwave rides through the glitches much better. Anybody have a new digital microwave care to comment on how it holds up through power glitches?

        1. The stove is a White-Westinghouse. I have a fairly recent RCA microwave, but never set the time on it, because it’s subject to unplugging if we need to run something else high drain at that end of the kitchen. I would guess though it only resets about a third as often as the stove does.

  6. 30+ years I have done it with a 16MHz osc, divided clock rate with a LS93, 5x LS90, feeding 1Hz to bank of 4566 (and a 4011) feed to 4 HP5082-7300 for display. All on 2 piece of breadboard!

  7. My first ever project was like this.
    32khz clock crystal to a divider to create a 2hz signal that would go to a binary counter (ignoring the first bit to get 1hz). Using a couple AND gates to handle time logic.

    I didn’t go for the extra step of converting to 7-segment though. Just kept it in BCD with leds to make a Binary Clock.

    1. A truly hard core type would just have it blink the LED and stand there and count the blinks. As long as we are talking about clocks that take active user input to read…

Leave a Reply to DonCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.