Maker Pro
Maker Pro

NEED HELP WITH FLIP FLOP CIRCUIT

A

AZ2NV

Jan 1, 1970
0
I Think a D Flip Flop would be the easiest, but you let me know


I have to have 2 seprate sections 1 with 3 LEDS and another with 2
LEDS

I have to have a Push Button on each section so that each time its
pressed one LED is lit, then when pressed again it lights up the next
LED also.

The final thing is when like with the section with 3 LED's, when all 3
LED's are lit and I press the puttion again it clears both sections.
or when the section with 2 LED's fills up it clears everything to on
the next press of the button.


I've messed around with it for about a hour or two and quit get it to
work right.
 
B

Bob Stephens

Jan 1, 1970
0
I Think a D Flip Flop would be the easiest, but you let me know


I have to have 2 seprate sections 1 with 3 LEDS and another with 2
LEDS

I have to have a Push Button on each section so that each time its
pressed one LED is lit, then when pressed again it lights up the next
LED also.

The final thing is when like with the section with 3 LED's, when all 3
LED's are lit and I press the puttion again it clears both sections.
or when the section with 2 LED's fills up it clears everything to on
the next press of the button.


I've messed around with it for about a hour or two and quit get it to
work right.

One way to go is with two two-bit ripple counters with master clear and
some OR gates.
easy to implement in a small PAL.

LED1 = 1+2+3, LED2 = 2+3 LED3 = 3;
CLR = 4(0);

same thing for the 2 led section.

Bob
 
J

John Popelish

Jan 1, 1970
0
AZ2NV said:
I Think a D Flip Flop would be the easiest, but you let me know

I have to have 2 seprate sections 1 with 3 LEDS and another with 2
LEDS

I have to have a Push Button on each section so that each time its
pressed one LED is lit, then when pressed again it lights up the next
LED also.

The final thing is when like with the section with 3 LED's, when all 3
LED's are lit and I press the puttion again it clears both sections.
or when the section with 2 LED's fills up it clears everything to on
the next press of the button.

I've messed around with it for about a hour or two and quit get it to
work right.

Sounds like a shift register circuit, with 1s being shifted in and
stage N going back to force a reset. The first D connects to a logic
high, and each D down stream connects to the previous Q. You can use
the Qbar outputs to drive the LEDS (active low), so the load will not
affect the propagation of 1s to the D inputs. You may need to tweak
the last D to reset with some stages of buffering or other delay to
the last flip flop, to make sure it clears all flip flops before the
last one changes back.
 
C

Chris

Jan 1, 1970
0
I Think a D Flip Flop would be the easiest, but you let me know


I have to have 2 seprate sections 1 with 3 LEDS and another with 2
LEDS

I have to have a Push Button on each section so that each time its
pressed one LED is lit, then when pressed again it lights up the next
LED also.

The final thing is when like with the section with 3 LED's, when all 3
LED's are lit and I press the puttion again it clears both sections.
or when the section with 2 LED's fills up it clears everything to on
the next press of the button.


I've messed around with it for about a hour or two and quit get it to
work right.


Here's a circuit that will do the trick (view in fixed font such as
Courier or cut&paste to M$ Notepad):

VCC VCC
+ .-------. .-----. +
LED Counter w/ Reset | | 0 o | | LED X 5|
.-. | C | | | ___ |
|R| | D 1 o----o o-|R_3|-|<-o
|2| | 4 | | | ___ |
'-' 1/6 U1 | 0 2 o----o U o-|R_3|-|<-o
___ _/ | |\ | 1 | | L | ___ |
.-|R_1|--o/ o----o-----|H>o--oC 7 3 o----o N o-|R_3|-|<-o
| | |/ | | | 2 | |
=== C --- | 4 o-. | 0 | |
GND --- VCC | | | | 0 | |
| | | | V | 4 | |
R1 = 22 | .-. | | - | | |
R2 = 100K === |R| | U2 | | | | |
R3 = 560 GND |2| | | | | | |
C = .01uF '-' | R | | | | |
IC1 = 74C14 | '---o---' | | | |
IC2, 3 = CD4017 | | | | | |
IC4 = ULN2004 VCC .--o---------o-----. | | | VCC
D = 1N914/1N4148 + | | | | +
| | | | | |
.-. | .-------. | | | |
|R| | | 0 o | | | C |
|2| | | C | | | ___ | ---
'-' | 1/6 U1 | D 1 o----o o-|R_3|-|<-o ---
___ _/ | | |\ | 4 | | | ___ | |
.-|R_1|--o/ o---o--|--|H>o--oC 0 2 o----o o-|R_3|-|<-. |
| | | |/ | 1 | | | .-o
=== C --- | | 7 3 o--. | | .-' |
GND --- | | U3 | | | | | .-.
| | | R | V | U4 | | |R|
| | '---o---' - '-----' | |2|
=== | | | | '-'
GND '------------o------o----------|<------' |
by Andy´s ASCII-Circuit v1.24.140803 Beta www.tech-chat.de GND

Values for R3 assume a 12VDC power supply. Not included due to space
limitations are the pinouts for the IC inputs/outputs and all
power/GND IC connections. You can look up the pinouts.

By the way, the business with using the diodes as a "wired-OR" logic
gate was christened MML (for Mickey Mouse(TM) Logic) by Don Lancaster.

Post inquiries of this type to sci.electronics.basics

Good luck
Chris
 
C

CFoley1064

Jan 1, 1970
0
Here's a circuit that will do the trick

Sorry -- misread the question. Here's something that will light all 3/2
simultaneously, instead of one at a time.

LED Counter 2

VCC
|
.-.
R1| | VCC
| |1/6 74C14 .----------. .------. LED X 5|
C '-' | | | | ___ |
_/ || | |\ | Q0o-------------o |-|R 2|-|<-o
.-o/ o-||--o-----|H>O--oCLK | | | ___ |
| || |/ | Q1o-------------o |-|R 2|-|<-o
GND | 1/2 | | U | ___ |
| 4015 Q2o-------------o L |-|R 2|-|<-o
VCC | | D | N | |
| | Q3o-->|--. | 2 | |
'--oD | | | 0 | |
| | | | 0 | |
VCC | R | | | 3 | |
| '----o-----' | | | |
.-. | | | | |
R1| | '------------o | | |
| |1/6 74C14 .----------. | | | |
'-' | | | | | ___ |
_/ || | |\ | Q0o-------------o |-|R 2|-|<-o
.-o/ o-||--o-----|H>O--oCLK | | | | ___ |
| || |/ | 1/2 Q1o-------------o |-|R 2|-|<-o
GND | 4015 | D | | |
VCC | Q2o-->|--o '------'
| | | | C VCC
'--oD Q3| | D || |
| | o--.-|<-.-||--'
| R | | | | ||
R1 10K '----o-----' | .-. .-.
R2 560 | | | | | |
R3 33K '------------' | | | |
C .01uF R3'-' '-'R3
| |
GND GND


created by Andy´s ASCII-Circuit v1.24.140803 Beta www.tech-chat.de

The serial shift register (CD4015) is probably the easiest way to do this, with
M2L providing some glue logic again. This circuit assumes a 12VDC supply, all
IC power/GND pins not noted due to space limitations.

Good luck
Chris
 
Top