Author Topic: EEVblog #801 - How To Design A Digital Clock  (Read 89856 times)

0 Members and 1 Guest are viewing this topic.

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
EEVblog #801 - How To Design A Digital Clock
« on: September 24, 2015, 12:35:43 pm »
The next step for Ahmed Mohamed
How to design your own digital clock from 4000 series CMOS chips.
Dave reverse engineers a DIY clock he built back in the 1980's as a teenager (he lost the schematics, twice!)
Before the days of microcontrollers, cheap PCB's, and internet mail order parts, you built stuff on veroboard using discrete parts from your junk bin salvaged from old teardowns.
Does it use Texas Instruments chips from Radio Shack? :-D

Schematic: http://www.eevblog.com/files/DigitalClockSchematic.pdf

Datasheets of all your favourites:
https://www.fairchildsemi.com/datasheets/CD/CD4013BC.pdf
http://www.nxp.com/documents/data_sheet/HEF4040B.pdf
http://www.ti.com/lit/ds/symlink/cd4518b-mil.pdf
http://www.ti.com/lit/ds/symlink/cd4026b.pdf
http://www.ti.com/lit/ds/symlink/cd4511b.pdf

« Last Edit: September 24, 2015, 11:32:25 pm by EEVblog »
 

Offline Cliff Matthews

  • Supporter
  • ****
  • Posts: 1910
  • Country: ca
    • General Repair and Support
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #1 on: September 24, 2015, 12:43:36 pm »
Why was, or better put, who marked this as private?
 

Offline Delta

  • Super Contributor
  • ***
  • Posts: 1221
  • Country: gb
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #2 on: September 24, 2015, 12:52:07 pm »
Please sign in to see this video???
 

Offline AF6LJ

  • Supporter
  • ****
  • Posts: 2902
  • Country: us
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #3 on: September 24, 2015, 12:53:32 pm »
I built one in the 70's using TTL it was a fun project.
This is a good beginner's project for someone learning digital logic, you really don't need a schematic, it is dead simple.
Sue AF6LJ
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6190
  • Country: us
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #4 on: September 24, 2015, 12:53:53 pm »
Why was, or better put, who marked this as private?

The clock had a Y2K bug. Dave is fixing it right now.
 

Offline WN1X

  • Supporter
  • ****
  • Posts: 79
  • Country: us
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #5 on: September 24, 2015, 12:54:53 pm »
Why was, or better put, who marked this as private?

I guess Dave doesn't want us to know what time it is  :-//
- Jim
 

Offline Cliff Matthews

  • Supporter
  • ****
  • Posts: 1910
  • Country: ca
    • General Repair and Support
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #6 on: September 24, 2015, 01:01:28 pm »
Please sign in to see this video???
I am signed-in and looking at my "EEVblog just uploaded a video" email. I'd guess there's so much activity, they've put restrictions on anything with this young lads name in it...
Update: After being posted 35 minutes ago, I can now watch it (screen grab from just 10 minutes ago..) - Draw your own conclusions...
« Last Edit: September 24, 2015, 01:17:08 pm by Cliff Matthews »
 

Offline Barny

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: at
  • I'm from Austria, not Australia ;)
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #7 on: September 24, 2015, 01:02:54 pm »
One post on Twitter bevore he wrote that he shows his clock with many wires, he asked a company which uses explosives if he is allowed to visit them.

I think he have now some unwantet visitores which have many questions.  :-DD
« Last Edit: September 24, 2015, 01:04:52 pm by Barny »
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16276
  • Country: za
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #8 on: September 24, 2015, 01:13:38 pm »
Works for me, don't know about the rest of you.........

CMOS, because you could drive LED displays directly from them at 5V without much risk of blowing up displays.
 

Offline Barny

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: at
  • I'm from Austria, not Australia ;)
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #9 on: September 24, 2015, 01:15:05 pm »
Strange.

Now, its working for me too.
 

Offline han

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: 00
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #10 on: September 24, 2015, 01:18:46 pm »
Next step??


I found the frist step in youtube:
https://youtu.be/kHk_6Vh4Qeo
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #11 on: September 24, 2015, 01:18:55 pm »
Why was, or better put, who marked this as private?

No one has access to my account but me.
I set it private because people were going to bitch about the 360p only. Turns out more people bitched about it being private  :palm:
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 19465
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #12 on: September 24, 2015, 01:37:29 pm »
Dave reverse engineers a DIY clock he built back in the 1980's as a teenager (he lost the schematics, twice!)
Before the days of microcontrollers, cheap PCB's, and internet mail order parts, you built stuff on veroboard using discrete parts from your junk bin salvaged from old teardowns.

Here's my variant, from around 1973: https://entertaininghacks.wordpress.com/2015/02/21/a-40-year-old-hack-disinterred/ and construction techniques: https://entertaininghacks.wordpress.com/2015/02/21/vintage-hacking-or-the-past-is-a-foreign-country-they-do-things-differently-there/

A few years earlier I built a 8 bit counter from discrete resistors capacitors and transistors, all salvaged from other equipment since I didn't have enough money to do otherwise. I used it to turn my radio off after a preset time.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #13 on: September 24, 2015, 01:41:53 pm »
I am signed-in and looking at my "EEVblog just uploaded a video" email. I'd guess there's so much activity, they've put restrictions on anything with this young lads name in it...
Update: After being posted 35 minutes ago, I can now watch it (screen grab from just 10 minutes ago..) - Draw your own conclusions...

There is no mystery, there is no restrictions being put on things. I made it private because it hadn't finished processing yet.
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
 

Offline Delta

  • Super Contributor
  • ***
  • Posts: 1221
  • Country: gb
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #15 on: September 24, 2015, 02:02:23 pm »
Great video Dave.  I'm off upstairs to fire up the soldering iron! 😀
 

Offline Cliff Matthews

  • Supporter
  • ****
  • Posts: 1910
  • Country: ca
    • General Repair and Support
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #16 on: September 24, 2015, 02:06:09 pm »
Doesn't seem to be a 16-pin TTL version of the 4026, and the obsolete 24-pin 74143 would be pricey by now. Always loved the forward thinking of the 4000-series designs.
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16276
  • Country: za
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #17 on: September 24, 2015, 02:16:46 pm »
IIL clock chips are nice, just that they run hot enough to cook on, and if the power fails battery life ( off that 9V battery they support) is only good for a few hours before it dies. CMOS will run for weeks off a coin cell, and I did hack in a LCD clock mechanism ( used the 32Hz backplane signal as a stable cheap clock source and a germanium transistor level translator because of the 0.5V swing it had) on one I did. 4V8 NiCd pack for backup with the display blanked, and the watch board was supplied using a simple resistor divider to give it 1V5 at the 100uA it needed. Selected resistors on test to get voltage to 1V5, just to get the value high.

Tossed it out a few years ago in a move. Sometimes I regret things.......
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16276
  • Country: za
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #18 on: September 24, 2015, 02:19:20 pm »
Doesn't seem to be a 16-pin TTL version of the 4026, and the obsolete 24-pin 74143 would be pricey by now. Always loved the forward thinking of the 4000-series designs.

A lot of those designers were scratching their own itches, and designed stuff that solved problems they has come to experience, or that friends had experienced. That is why you had so many counters, especially the large number of ripple counters and the BCD dual ones.
 

Offline alexanderbrevig

  • Frequent Contributor
  • **
  • Posts: 700
  • Country: no
  • Musician, developer and EE hobbyist
    • alexanderbrevig.com
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #19 on: September 24, 2015, 02:27:51 pm »
I love this video! Makes me want to throw out the µCU and try to get my hands dirty with CMOS :)
 

Offline asgard

  • Regular Contributor
  • *
  • Posts: 124
  • Country: us
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #20 on: September 24, 2015, 02:38:10 pm »
All well and good, Dave.  Righteous clock design.  However, I must call bullshit on the Ahmed bandwagon.  Here are the updated facts and context:

1.  Ahmed did not design that "clock" from scratch.  It was an existing Radio Shack clock removed from its enclosure and remounted into a briefcase.
2.  The clock was altered into a countdown timer, rather than an RTC.
3.  Said clock/timer was executing an active countdown when the incident occurred.
4.  The entirety of the situation resembled nothing more than an improvised explosive detonator being taken into a public school.
5.  Ahmed Mohamed's father, instead of consulting with the school board (which is the legal and responsive authority on this matter), has contacted CAIR, which is in the process of manufacturing a racial incident out of this event.
6.  The same father, a known jihadist, has twice ran campaigns for the presidency of Sudan, which last I checked, is not known as a wellspring of democracy but is known for impressing children into suicide bombers, as part of President Bashir's policy of global jihad and arms supply to Hamas and Hizbullah.
« Last Edit: September 24, 2015, 02:42:08 pm by asgard »
Klaatu Barada Nikto!

J.R. Stoner Bifrost Development Group asgard@jeffnet.org
 

Offline AF6LJ

  • Supporter
  • ****
  • Posts: 2902
  • Country: us
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #21 on: September 24, 2015, 02:54:32 pm »
All well and good, Dave.  Righteous clock design.  However, I must call bullshit on the Ahmed bandwagon.  Here are the updated facts and context:

1.  Ahmed did not design that "clock" from scratch.  It was an existing Radio Shack clock removed from its enclosure and remounted into a briefcase.
2.  The clock was altered into a countdown timer, rather than an RTC.
3.  Said clock/timer was executing an active countdown when the incident occurred.
4.  The entirety of the situation resembled nothing more than an improvised explosive detonator being taken into a public school.
5.  Ahmed Mohamed's father, instead of consulting with the school board (which is the legal and responsive authority on this matter), has contacted CAIR, which is in the process of manufacturing a racial incident out of this event.
6.  The same father, a known jihadist, has twice ran campaigns for the presidency of Sudan, which last I checked, is not known as a wellspring of democracy but is known for impressing children into suicide bombers, as part of President Bashir's policy of global jihad and arms supply to Hamas and Hizbullah.
Good Job, all factual.
I love it when someone posts the truth in such a concise form.  :-+ :-+
Sue AF6LJ
 

Offline Delta

  • Super Contributor
  • ***
  • Posts: 1221
  • Country: gb
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #22 on: September 24, 2015, 02:56:40 pm »
Modified to be a countdown timer? Where did you read that?  From what I've seen, that sounds far above the young man's abilities...
 

Offline neotesla

  • Supporter
  • ****
  • Posts: 31
  • Country: au
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #23 on: September 24, 2015, 02:58:57 pm »
Get off of it, he's just a kid.

Geez... fighting the war on terror even here.
 

Offline Svuppe

  • Regular Contributor
  • *
  • Posts: 92
  • Country: dk
Re: EEVblog #801 - How To Design A Digital Clock
« Reply #24 on: September 24, 2015, 03:13:48 pm »
Ahh, that clock brings back memories.
I made one out of CD40192's back in my youth. They could count in both directions, and had a preset input so I could make it go from 00 to 59 when counting down (instead of 00 to 99).


 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf