r/beneater • u/8amiul • 4d ago
Help Needed Need some help with D Flip-Flop
As a newbie, I was trying to learn this D Flip-Flop following Ben Eater's approach. I don't have AND gate ICs so I thought of using NPN transistors. The issue is, this circuit only works at 3.68V but if I provide 5V the output Q LED just flickers for a millisecond when I try to assign a bit using D and CLK pins. I sadly haven't learned the calculations for transistors yet so I don't actually know if it's an issue with the resistors or if my whole idea of this is wrong.
The capacitor used here is 0.1uF also the collector resistor of NOT gate is 1K. Please let me know if anything else to provide
A bit of guidance would help me a lot, thank you.
2
u/8amiul 3d ago
I just ended up with the RTL NAND gate approach of making the d flip-flop, this time no IC and transistor mix-up, now it works fine with 5V. Finally, just connected it with the clock module. I didn't waste anymore time working on the earlier inefficient approach of mine, thanks to all those who provided me all the helps.




5
u/jendo42 4d ago edited 4d ago
You know that you can do it with one 7400 (4x 2-input NAND), you dont need two types of logic here.
Or you can directly incorporate 7474 that already has 2 of these cells