12 Hour Clock

Status
Not open for further replies.

Thread Starter

electrongod1

Joined Sep 8, 2018
39
Building a 12 hour clockcomprised of 60 rgb leds and I am having a tough time with the logic. The attached drawing shows only 12 led as i dont have enough real estate on my bench for all 60. To avoid confusion I am showing the leds as individual, not rgb. What I'm looking for is the blue leds cascade once per second with led #1 lit green. On the next cycle led #1 turns off and #2 turns green. through a full cycle all while blue keeps cycling. On cycle 3, led 2 turns off and led #3 turns green while the rest cycle blue. The cycle should continue through all 12 leds and then begin again from led #1. Right now I'm close with green leds avancing but skipping an led. Any help woul be appreciated.
 

Attachments

AnalogKid

Joined Aug 1, 2013
12,125
I'm scrambling now and won't be able to analyze your schematic until later, but . . .

Gold Star for a schematic that is clear, readable, has decent signal flow, power is up, GND is down, and just generally does *not* suck.

One nit - rotate the AND gates so they all point to the right.

ak
 

dl324

Joined Mar 30, 2015
18,322
Building a 12 hour clockcomprised of 60 rgb leds and I am having a tough time with the logic.
Why did you start another thread?
To avoid confusion I am showing the leds as individual, not rgb.
You still haven't said whether the LEDs are common anode or common cathode. I think that complication will make what you're trying to do difficult or impossible.
Right now I'm close with green leds avancing but skipping an led.
Which LED is being skipped?

The schematic is sort of readable, but the unnecessary connection dots are distracting. The LED labeling is also confusing. There are skipped numbers in the sequence and some designators are duplicated. At least you cut and pasted one set of counters, so it's obvious that the amount of circuitry that needs to be analyzed is reduced.

The minutes counter should be taking its clock from the seconds counter.

LED is an acronym for Light Emitting Diode and should be in all caps. Similarly, RGB is an acronym and should also be all caps.
 

Thread Starter

electrongod1

Joined Sep 8, 2018
39
Why did you start another thread?
You still haven't said whether the LEDs are common anode or common cathode. I think that complication will make what you're trying to do difficult or impossible.
Which LED is being skipped?

The schematic is sort of readable, but the unnecessary connection dots are distracting. The LED labeling is also confusing. There are skipped numbers in the sequence and some designators are duplicated. At least you cut and pasted one set of counters, so it's obvious that the amount of circuitry that needs to be analyzed is reduced.

The minutes counter should be taking its clock from the seconds counter.

LED is an acronym for Light Emitting Diode and should be in all caps. Similarly, RGB is an acronym and should also be all caps.
Common Cathode. So the cycle goes like this: Power up led1 is green, rest cycle blue, Cycle 2: 2 blinks green, 3 turns on, Cycle 3: 4, blinks, 5 turns on, Cycle 4: 6 blinks, 7 turns on, Cycle 5, 8 blinks, 9 turns on, cycle 6, 10, 11, 12 cascade with 1, 2, 3, whole process repeats. When i say blink and turn on I mean green. Blue cycles through the process and turns cyan when it should.
 

AnalogKid

Joined Aug 1, 2013
12,125
I've re-read your posts, and still have no clear image of what visual effect you are trying to achieve. Also, you are using the word "cycle" in at least two different contexts.

How many total LEDs are there, and what are their colors?

" Cycle 3: 4, blinks, 5 turns on, " What - ? Does this mean LED #4 blinks four times, or four LEDs blink once, or something else?

ak
 

dl324

Joined Mar 30, 2015
18,322
Right now I'm close with green leds avancing but skipping an led. Any help woul be appreciated.
Which LED is being skipped? The circuit you posted should correctly cycle through the 12 LEDs.
The attached drawing shows only 12 led as i dont have enough real estate on my bench for all 60.
Do you realize that you're going to need over a dozen CD4017's?
 
Last edited:
Status
Not open for further replies.
Top