D flip-flop

Building on the D latch from the previous video ( • D latch ), the D flip-flop has a "clock" input instead of an "enable" input and stores data just on the rising edge of the clock.
Support me on Patreon: / beneater
You can get all the components used in this video from any online electronic components distributor for a few dollars.
Complete parts list (everything in this video):
1x 74LS02 (Quad two-input NOR gate)
1x 74LS08 (Quad two-input AND gate)
2x 330Ω resistor
1x 1kΩ resistor
1x 0.1µF capacitor
2x Momentary "Microtivity 6mm tact switch"
4x LEDs
Solderless breadboard(s)
22 gauge wire
USB charger and cable or some other 5v power source

Пікірлер: 504

  • @laius6047
    @laius60477 жыл бұрын

    it amazes me that at some point people had to invent these things

  • @zoefowler7002

    @zoefowler7002

    6 жыл бұрын

    It is even more amazing when you consider the complex series of steps we had to take to even be ready to invent these. Harnessing electricity, generating electricity, resistors, capacitors, inductors, vacuum tubes and even wire. All had to be invented so to put 3 scientist in a position to make the transistor.

  • @andrewpersaud4144

    @andrewpersaud4144

    6 жыл бұрын

    You are using "people" very casually. Fact is, it is usually a select few every so often that are blessed with genetics to see things in a way others can't. 99 percent of population from current living to deceased can't invent complex things like this. They can only take what's already found and innovate. Any useful innovations are usually limited to a select few as well.

  • @ohaRega

    @ohaRega

    6 жыл бұрын

    It's not necessarily the smarts, or the "ability to see things in a way others can't". Yes, that helps, but they weren't the only smart people around. The most important factor is being born into the right socioeconomic environment where you're given the chance to study in good universities (and not have to herd the cattle or do labor to stay alive), and even be born with the right *gender* to be taken seriously - which eliminates 50% of all potential geniuses - if we're talking pre-20th century.

  • @trey6093

    @trey6093

    6 жыл бұрын

    *Touching guys, really... this got me right in the feels xD

  • @fasligand7034

    @fasligand7034

    6 жыл бұрын

    I am feeling enlightened just by listening to this guy explaining, I can't even imagine how it feels to invent it by yourself :D

  • @NotMassLucks
    @NotMassLucks Жыл бұрын

    14:45 I am still amazed at how coordinated you are doing three separate things at once: moving the pen at a constant speed and pressing two different buttons at different times in different combinations.

  • @SpringySpring04

    @SpringySpring04

    4 ай бұрын

    It's almost like playing music. The coordination ability required is crazy

  • @kei_otake
    @kei_otake2 жыл бұрын

    Having watched 5 videos previous to this, from transistor logic gates to the D latch, the use of the inverter delay in the edge detection circuit blew my mind to pieces. Biggest crossover event in cinematic history

  • @audiodood

    @audiodood

    2 жыл бұрын

    compuedtr

  • @JohnVance

    @JohnVance

    Жыл бұрын

    Dude me too holy shit, I'm like you can't do that, that's illegal.

  • @eldarshamukhamedov4521

    @eldarshamukhamedov4521

    Жыл бұрын

    @@JohnVance for sure, circuit diagrams as a mental model are so useful, it's easy to forget that they are mere approximations

  • @DJayDiamond
    @DJayDiamond5 жыл бұрын

    After 3 months of nonsense lectures at uni it take me about 20 minutes of watching your videos on latches and flip flops to completely understand it! Thank you so much for making these :D

  • @nd685

    @nd685

    4 жыл бұрын

    Same here!!

  • @gsilos

    @gsilos

    3 жыл бұрын

    im watching this today, when im 40. and this kind of video makes me to think that sometimes the purpose of a uni is not to teach us, but just to take our money and time. :( but im not sure about this feeling... maybe I changed a lot since my uni times... maybe, back in that time, when I was younger, I was not ready to listen. but I will never know, because I never saw someone teaching eletronics like Ben does in my whole life. even in the uni times. maybe, back In my uni times, I could not listen because I didnt see teachers like Ben. His energy to teach us is magic.

  • @iljadenisovs4659

    @iljadenisovs4659

    3 жыл бұрын

    Same here!

  • @lucasramirez320

    @lucasramirez320

    2 жыл бұрын

    Ben explains Better than my Prof who has a Phd

  • @andy982183

    @andy982183

    Жыл бұрын

    ​@@gsilos Same here, I feel we need a good mentor in our life to show us path.

  • @p1nesap
    @p1nesap8 жыл бұрын

    man that breadboard time machine is crazy!

  • @high_runner
    @high_runner3 жыл бұрын

    Using propagation delay of gates to build an edge detection circuit always reminds me of the quote, "when life gives u lemon, make lemonade out of it"

  • @usersn300

    @usersn300

    2 жыл бұрын

    Nicely put!

  • @ElectroProjects

    @ElectroProjects

    2 жыл бұрын

    @@usersn300 really

  • @chitlitlah

    @chitlitlah

    Жыл бұрын

    @@ElectroProjects Indubitably.

  • @whannabi

    @whannabi

    Жыл бұрын

    I hope these gates are powered by lemon too then.

  • @TerrisLeonis

    @TerrisLeonis

    Жыл бұрын

    I know I've been doing too much redstone circuitry in Minecraft when I think "oh yeah, 1 tick inverter delay, that makes perfect sense"

  • @iLikeKittens
    @iLikeKittens7 жыл бұрын

    You are every nerd's dream teacher

  • @sunflower4031

    @sunflower4031

    3 жыл бұрын

    i'm a nerd and you have a point

  • @Amir_Plays_non_stop

    @Amir_Plays_non_stop

    3 жыл бұрын

    @@sunflower4031 Nerds don't play among us...

  • @gatedrat6382

    @gatedrat6382

    3 жыл бұрын

    @@Amir_Plays_non_stop ??? huh

  • @Amir_Plays_non_stop

    @Amir_Plays_non_stop

    3 жыл бұрын

    @@gatedrat6382 dont huh me its true nerds just study no time for among us

  • @DrewWalton

    @DrewWalton

    2 жыл бұрын

    @lupo "flipping true" I see what you did there.

  • @aidanstanford6742
    @aidanstanford67425 жыл бұрын

    It feels like I learn more from these videos than from school, imagine that!

  • @kubatrojanowski1187

    @kubatrojanowski1187

    3 жыл бұрын

    My thoughts exactly

  • @dakotahrivers6640
    @dakotahrivers66403 жыл бұрын

    the edge detector is so clever. Never would have thought to exploit the delay in an inverter to create a quick pulse.

  • @okiedokie9430
    @okiedokie94302 жыл бұрын

    Amazing how you explain all these things step by step! I wish you were my teacher years ago. If they explained electronics the way like you do then my country would probably be on Mars already.

  • @silverbladeii
    @silverbladeii3 жыл бұрын

    what amazes me is that Redstone is so similar to all this. The first flip flop I learned in bedrock edition is a d flip-flop

  • @yerriswamyk.m6530
    @yerriswamyk.m65308 жыл бұрын

    You are wonderful teacher , keep posting videos and make us educate, can you make a video on pull up and pull down resistors.

  • @tberry7348

    @tberry7348

    6 жыл бұрын

    yerriswamy k.m he discussed that pretty thurally in previous videos in the play list.

  • @gokuvegeta9500

    @gokuvegeta9500

    3 жыл бұрын

    @@tberry7348 I couldn't find it

  • @zrt3128

    @zrt3128

    3 жыл бұрын

    @@gokuvegeta9500 basically, in a logic circuit you need to have either a 1 or a 0, you can't just disconect a wire, cuz that'll make it go to a random state. the pulldown resistor is conected to ground, so by default, the value is 0,but when the 1 comes in it will take 1 as the value it'll work with because of the resistor

  • @ElectroProjects

    @ElectroProjects

    2 жыл бұрын

    .

  • @ElectroProjects

    @ElectroProjects

    2 жыл бұрын

    .

  • @WhitEagle7
    @WhitEagle76 жыл бұрын

    dude I kid you not I left computer engineering in favor of physics because my instructor couldn't explain this well enough! in 3 videos that took me about 30 minutes to watch I got it all!

  • @antonnym214
    @antonnym2148 жыл бұрын

    Very nice explanation of the flip-flop! I enjoyed learning about the delay which causes the true condition on the AND gate output. Very cool!

  • @amirdaniali4065
    @amirdaniali40654 жыл бұрын

    Thank you Ben for making these amazing set of videos available for anybody on the internet who just wishes to learn. I can't describe how much this means to me. THANK YOU.

  • @burhanuddin127
    @burhanuddin1272 жыл бұрын

    This guy is so so so so so underrated.... I challenge no one is explaining this kinda topics currently on the you tube.

  • @electra.academy
    @electra.academy Жыл бұрын

    Gee - and I always thought that D-Latch and D-FLipFlop were identical and were just German/English terms. Thanks a lot!!! very well done video. I immediately corrected my simulator....

  • @ThePenguinsRpurple
    @ThePenguinsRpurple5 жыл бұрын

    This is SUPER helpful. I'm taking a computer architecture class online and didn't understand the book. This cleared it up for me.

  • @nilupulperera
    @nilupulperera5 жыл бұрын

    Excellent! Everybody studying computer science must watch these video series. Thank you so much for your effort and time. Kindly think about to do more related to this topic. You are an extraordinary teacher.Thank you again Ben.

  • @Mate-mate
    @Mate-mate4 жыл бұрын

    This is a wonderful explanation of D flip flop. As a computer science student, I salute to you for this amazing video!

  • @himprakashdas4482
    @himprakashdas44825 жыл бұрын

    You make things so much simple with those circuits. Thank you so much.

  • @JonathasPatrick
    @JonathasPatrick5 жыл бұрын

    Man that was helpful AF, your explanation helped me to build a d flip-flop that transitions from 1 to 0 instead of 0 to 1, just replace the "And" gate with an "XNOR" gate

  • @canofsoda
    @canofsoda6 ай бұрын

    I just got an electronic kit and ive been binging these videos. Ben Eater is definitely to 50 people ever. like everyone else who's commented on his videos has said, everything just makes sense. he doesn't tend to explain things that don't need to be explained, and the things that do need to be explained are explained at the right speed, at the right time. i wish i could be in his class

  • @christianmiranda331
    @christianmiranda331 Жыл бұрын

    Beautifully explained! Makes me shiver how it was explained so simply.

  • @francoisguyot9770
    @francoisguyot97702 жыл бұрын

    You'rte a great teacher, Ben. I love the way you evolve from the SR to the D flip-flop by incrementally adding complexity to the circuit showing the evolution of design techniques.

  • @hightttech
    @hightttech4 жыл бұрын

    VERY WELL DONE! Needed a little refresher during troubleshooting, and this video was perfect.

  • @kunwarfk
    @kunwarfk7 жыл бұрын

    You are such an awesome teacher!!! I am so grateful for this video.

  • @ucantSQ
    @ucantSQ5 жыл бұрын

    Does anybody else feel the excitement building as the pieces come together?

  • @Mayank-mf7xr

    @Mayank-mf7xr

    5 жыл бұрын

    surely

  • @Rotorbladesus
    @Rotorbladesus7 жыл бұрын

    Thank you for posting this! This is exactly what I need to further expound on a circuit I'm building. I will post a link to a video of the circuit if/when I get it functioning. Thank you.

  • @sachitdalwadi
    @sachitdalwadi2 жыл бұрын

    You have no idea how helpful your videos to me thanks

  • @johndoe-bq1xt
    @johndoe-bq1xt5 жыл бұрын

    Your videos are great because they're bringing me back "To - The - Days". In my COMPE270 Logic Design Class, we did all our designs on LogicWorks software. Then we did the real circuits next semester in the COMPE470L Lab. I remember my fried fried the logic chip network and a few capacitors by accidentally connecting the network up to the 15v supply instead of the 5v supply. The electrolytic caps all smelled like baked bread! Oh the GooD times......

  • @walshrd
    @walshrd4 жыл бұрын

    Excellent video. This guy knows exactly how to teach electronics. None better.

  • @asdfplkjh5541
    @asdfplkjh5541 Жыл бұрын

    You are the god of digital design much better tha my professor explains nothing on hour long classes lol

  • @eliphusmeko9263
    @eliphusmeko92637 жыл бұрын

    thanks for your support towards my understanding Mr Ben

  • @AaronLin721
    @AaronLin7212 жыл бұрын

    Absolutely amazing. You make EE fun to learn. Thank you so much.

  • @josedominguez2021
    @josedominguez20217 жыл бұрын

    Explain this is not easy, u do so clear. Thanks. I love Relays.

  • @alvinasef
    @alvinasef5 жыл бұрын

    Thank you for the detail explanation. Keep up the great work !!

  • @rosshiscock8317
    @rosshiscock83177 жыл бұрын

    You're an excellent teacher, thank you very much for taking the time to make these videos.

  • @Galluxi
    @Galluxi7 жыл бұрын

    What is the point of the resistor there?

  • @GloomEmbraced

    @GloomEmbraced

    7 жыл бұрын

    From the video, the pulse width is proportional to the resistance and the capacitance, roughly t = R x C. The lower the resistance, the faster the pulse. The resistance of the wire alone possibly results in a pulse so quick that the logic gates don't see it. The other way to do it would be to put a bigger capacitor there, but resistance is easier.

  • @shantonudutta9726
    @shantonudutta972613 күн бұрын

    The delay of NOT gate switching its state being used for edge detector reminds me of "It's not a bug, it's a feauture"

  • @harry_rotter
    @harry_rotter Жыл бұрын

    omg, thank you so much! It´s the night before my computer architecture exam and you saving me right now.

  • @naveenkakada
    @naveenkakada4 жыл бұрын

    It's amazing to see it practically on breadboard

  • @thehighscore6218
    @thehighscore62182 жыл бұрын

    Wow, its amazing how easy it was to learn this because to a clear and able to show it using your circuts. If only you were my electrical professor.

  • @nonamex3052
    @nonamex30526 ай бұрын

    Love you ben(no homo). Just the way you explain things i can understand instantly without having to rewind most of the time. Your way of teaching needs to be studied

  • @Bestcuriosity_1
    @Bestcuriosity_16 жыл бұрын

    Love your all tutorial sir, Your way of teaching with practical approach is fabulous We would love to see more videos of electronic and communication. Thank you

  • @ObiWanBillKenobi
    @ObiWanBillKenobi Жыл бұрын

    Reminds me of Doc's 1885 refrigerator in BTTF3. 😊

  • @paoarsu2363
    @paoarsu23636 жыл бұрын

    Ben Eater is the best thank you so much and keep teaching please!

  • @pressgreen
    @pressgreen5 жыл бұрын

    This is the best thing I have ever seen. You should get an award or something for these videos.

  • @emberleona6671

    @emberleona6671

    3 жыл бұрын

    Yes. I agree I wish I had a non profit openinvent.club website and I would give ben eater a commendation.

  • @vuquanghuy55
    @vuquanghuy552 жыл бұрын

    your video was well prepared and has a best quality

  • @RyanAndersonTechnical
    @RyanAndersonTechnical3 жыл бұрын

    superb content - thank you for making this so consumable for the next generation(s)

  • @jackardis3797
    @jackardis37975 жыл бұрын

    yet more proof that capacitors are magic and anyone who understands them is a wizard. I couldn't make any sense of that edge detector thing.

  • @napoleon3242
    @napoleon32423 жыл бұрын

    these videos are a must-watch for anyone interested in electronics.

  • @anmolpurty2416
    @anmolpurty24163 жыл бұрын

    Very nice explanation. It leaves no room for any doubt. Great work Sir.

  • @user-rr7xc9ih3r
    @user-rr7xc9ih3r Жыл бұрын

    i literally hated electrical coz of the way it was taught in our uni, you just made it so damn interesting, tysm

  • @Dynamik100
    @Dynamik1004 жыл бұрын

    the best explanation ever, congratulations!

  • @AshWeber-Campbell
    @AshWeber-Campbell Жыл бұрын

    Thank you so much! I got covid and missed my lectures going over this, and your videos helped a lot. thank you

  • @dkfactotum
    @dkfactotum4 жыл бұрын

    What a coordination! I'm pretty sure it would take me tens of tries to follow those signals at the same time XD

  • @jonesstefan
    @jonesstefan4 жыл бұрын

    goddamn bro I learnt faster and better from your videos about latches and flip flops than the lectures of my drunk teacher xD thank you!

  • @arth1723
    @arth17232 жыл бұрын

    You made a great job please don't stop share videos

  • @weststarr2046
    @weststarr20467 жыл бұрын

    Marvelous way of teaching....blessings friend!

  • @jamesmccoy8568
    @jamesmccoy85683 жыл бұрын

    Thanks for explaining how the clock edges are detected, that was a mystery to me

  • @cindypangs4173
    @cindypangs417310 ай бұрын

    This makes so much more sense than whatever my professor was trying to do...if i pass it is all due to your videos!

  • @streamindegenerate4339
    @streamindegenerate43395 жыл бұрын

    Another great video, 'events happening on the rising edge of the clock input/pulse' should make sense to usual programmers

  • @WhoWantsToKnow81
    @WhoWantsToKnow814 жыл бұрын

    I love the fact that Ben's explaining how a major component in a 8-bit shift register works. ;)

  • @saarike
    @saarike3 жыл бұрын

    Excellent information about interesting circuits! I learned something new. My humble thanks.

  • @nagadasarivenkatesh9669
    @nagadasarivenkatesh96694 жыл бұрын

    Wonderful sir! really amazing explanation!

  • @divyapatel4498
    @divyapatel44985 жыл бұрын

    very good explanation. Thank you very much. Keep Sharing your knowledge

  • @ReplicateReality
    @ReplicateReality4 жыл бұрын

    that edge detector blows my mind.

  • @danser_theplayer01
    @danser_theplayer01 Жыл бұрын

    10:00 I build it in a game with logic gates that have a speed of 40 "ticks" fancy word for hertz. When I press a button it takes 1 tick to activate the AND and to activate the NAND/NOR fed into AND then another 1 tick to deactivate AND because NAND changed to 0, which results in a 1 tick pulse and complete ignore afterwards unless you stop pressing the button and press it again. It's the only way to do that because the game doesn't have voltages or wires or current etc. It's either on or off, and connections are wireless (very convenient).

  • @theankushjain
    @theankushjain7 жыл бұрын

    please make more and more videos that explain how a computer works internally. Your videos are really helping me in my MCA. Also make video on how different types of registers work.

  • @bavishkasathyanjana1384
    @bavishkasathyanjana13842 жыл бұрын

    wow and wow... your teaching skill is amazing sir

  • @konozbinrashid7774
    @konozbinrashid77744 жыл бұрын

    Brilliant as always.

  • @BrendaEM
    @BrendaEM Жыл бұрын

    Rewatching these videos. Thanks Ben! It's probably not necessary, but the output could be put through a comparitor for a square pulse, though a Shmitdt trigger would be better, yet, I will try to use a an Op-amp to make a comparitor.

  • @aamirbangash985
    @aamirbangash9854 жыл бұрын

    You made my Day Ben!

  • @yuwuxiong1165
    @yuwuxiong11652 жыл бұрын

    Wonderful lecture! Thanks!

  • @YuriccAmorim
    @YuriccAmorim2 жыл бұрын

    amazing very good studying digital electronics watching these support videos helps a lot in learning

  • @MantisRay861
    @MantisRay8618 жыл бұрын

    nice tutorial, starting to make sense!

  • @RobUttley
    @RobUttley4 жыл бұрын

    I feel like a little light went on there (no pun intended). I wish this had been explained to me this way in the past. Thank you, I really appreciate that. Great explanation.

  • @F3udF1st
    @F3udF1st4 жыл бұрын

    T-flipflops are very useful for counters!

  • @Gotenham
    @Gotenham4 жыл бұрын

    fantastic explanation thank you

  • @chinasfs
    @chinasfs Жыл бұрын

    a great explanation ... thumbs up!

  • @PhilipBlignaut
    @PhilipBlignaut6 жыл бұрын

    Wonderful tutorials!!

  • @valizeth4073
    @valizeth4073 Жыл бұрын

    Really appreciate these videos, our professors lectures are a bit hit or miss and some areas are difficult to understand. But your videos are excellent in quality!

  • @tombrady7390
    @tombrady73904 жыл бұрын

    Ur soo passionate about science

  • @PutinGayTwin
    @PutinGayTwin6 жыл бұрын

    damn yo! better than the prof and the teaching assistant that i have. Subscribed!!!!

  • @IceFromTheSun
    @IceFromTheSun3 жыл бұрын

    Here we go again, Ben Eater inspiring hundreds of thousands of people and a new whole generation of self-taught engineers...

  • @TheMechatronicEngineer
    @TheMechatronicEngineer5 жыл бұрын

    At 3:08 I nearly fell off my chair! Way to go, man!

  • @Amir_Plays_non_stop

    @Amir_Plays_non_stop

    3 жыл бұрын

    HAHAHAHAHAHA same bro. If u know it is a full microcontroller, and when I saw it I got scared don't ask me why XD

  • @NickiRusin

    @NickiRusin

    3 жыл бұрын

    it's a powerful moment, for sure

  • @fifaham
    @fifaham2 жыл бұрын

    @10:59 >>> this method of pulse creation is used in one of the security systems to detect the signature of the acousto-magnetic pulse signature - so by controlling the width of the generated pulses (via a variable cap controlled by an MCU) and taking iterated measurements (Assembly code is used as C code is not fast enough) the wave signature of the system can be detected and an alarm will be issued once the signature is matched to the pattern stored in the EEPROM of the chip. Digital-CAPs are available from vendors that can generate variable cap values through the SPI or UART port.

  • @Uniquelife_17
    @Uniquelife_175 жыл бұрын

    you are great man god bless you!!! i am big fan of you from india

  • @nd685
    @nd6854 жыл бұрын

    Can't thank you enough!!!!!!! Amazing amazing videos!!!!!

  • @TannerCh
    @TannerCh3 жыл бұрын

    Super video! I applauded for $10.00 👏👏👏

  • @TannerCh

    @TannerCh

    3 жыл бұрын

    I would submit that there is not a better tutorial on this topic throughout all of youtube! Thank you so much!

  • @FandCCD
    @FandCCD7 жыл бұрын

    Ben, thank you so much for this video. this video was exactly what I needed to begin building my "atomic clock" (WWVB Receiver/Decoder). I'm documenting my project here on KZread. I'd love for you to take a look and let me know what you think. Thanks again for sharing your knowledge thru all your great videos!

  • @jonathanlu9579
    @jonathanlu95793 жыл бұрын

    Wow this video is awesome.

  • @QDWhite
    @QDWhite4 жыл бұрын

    Interesting note, the RC edge detector is effectively a high pass filter which lets the high frequency components of the square wave across. It could also be viewed as a circuit that takes the derivative of the square wave. At steady low state, the derivative is zero. When a rising edge hits, the rate of change is high but then quickly goes back to zero with the steady high state.

  • @emberleona6671

    @emberleona6671

    3 жыл бұрын

    In music is this called the envelope. Or a triangle wave.

  • @shreya_sinha.
    @shreya_sinha.6 жыл бұрын

    very well explained ! thankyou

  • @minhtam5051
    @minhtam50513 жыл бұрын

    Your video does make sense!

  • @TheLunaLockhart
    @TheLunaLockhart5 жыл бұрын

    Logisim broke when trying to make a DFF in this configuration, so I emulated the function by running 7-off, 1-on with the clock component at 8hz, could be 16 if I wanted to get even closer to instantaneous ticking. Anyway, thanks for the work you do! It's really helping me understand all this crazy stuff that goes on in computers and the embedded solutions (usually SOC) found in many devices we don't think of as computers

  • @TheLunaLockhart

    @TheLunaLockhart

    5 жыл бұрын

    (yes, I know there's a DFF module, but building it is an important part of learning its function)

  • @emberleona6671

    @emberleona6671

    3 жыл бұрын

    @@TheLunaLockhart did you try the logic gates edge detector instead of the resistor capacitor version of edge detection. Also lower the clock speed in the sim. Electronics workbench ??

  • @ReplicateReality
    @ReplicateReality4 жыл бұрын

    amazing video

  • @saiganeshbuchireddy
    @saiganeshbuchireddy3 жыл бұрын

    great job!

  • @Skiddla
    @Skiddla4 жыл бұрын

    really easy to edge my rising clock pulse to this video