Hello!
I am currently working on the following project from scratch:
A circuit with JK flip flops which act as a 3-bit binary counter. The circuit has an RGB LED which is controlled by the 3 outputs from the flip flops. The counter counts from 0 to 7. The three outputs manipulate which colors are on in order to create different color combination. The circuit is advanced with a push button as the clock. Each push changes the RGB LED's color. I put in a switch after the LED to enable a 50 Hz clock pulse to blink the LED.
My question is this: How can I change my circuit to enable another function onto the single step clock and the blinking: a function that would, after the binary counter outputs a 111 and before going back to 000, cycle through the colors continuously at 50 Hz, until the push button is pushed again.
So, the circuit would do this:
push #1: Red
#2: Green
#3: Yellow
#4: Blue
#5: Magenta
#6: Cyan
#7: White
#8: Cycle through the colors
#9: Off
Would I need a 4-bit counter?
I attached a schematic.
I am currently working on the following project from scratch:
A circuit with JK flip flops which act as a 3-bit binary counter. The circuit has an RGB LED which is controlled by the 3 outputs from the flip flops. The counter counts from 0 to 7. The three outputs manipulate which colors are on in order to create different color combination. The circuit is advanced with a push button as the clock. Each push changes the RGB LED's color. I put in a switch after the LED to enable a 50 Hz clock pulse to blink the LED.
My question is this: How can I change my circuit to enable another function onto the single step clock and the blinking: a function that would, after the binary counter outputs a 111 and before going back to 000, cycle through the colors continuously at 50 Hz, until the push button is pushed again.
So, the circuit would do this:
push #1: Red
#2: Green
#3: Yellow
#4: Blue
#5: Magenta
#6: Cyan
#7: White
#8: Cycle through the colors
#9: Off
Would I need a 4-bit counter?
I attached a schematic.
Attachments
-
256.7 KB Views: 125