Making logic gates from transistors

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 1.9K

  • @roryhemmings7860
    @roryhemmings7860 6 ปีที่แล้ว +4841

    the best thing about this guys videos is that he dosent waste time at the begining of the video, he just gets right into it

    • @BillAnt
      @BillAnt 5 ปีที่แล้ว +121

      Gosh I hate those fancy intro graphics a lot of TH-camrs are using nowadays... Ben just cuts to the chase, it's like a delicious ice cream cone without a stupid wrapper. :)

    • @muhammadosama3358
      @muhammadosama3358 5 ปีที่แล้ว +12

      Exactly.

    • @jetlinux
      @jetlinux 5 ปีที่แล้ว +36

      The best thing is his explanations that make it fun and easy, but yeah, love that he doesn't waste time.

    • @efai
      @efai 5 ปีที่แล้ว +10

      @@BillAnt ​ Gary Ford yeah, he really doesn't waste the time, except he did (7:38 - 8:17), that looks like wasting time to me and explaniation of "XOR" was kinda bad..

    • @BillAnt
      @BillAnt 5 ปีที่แล้ว +29

      @Efai < Well that minute was obviously an editing mistake (or maybe intentional to give us time to grab a snack;), should have deleted it from the final cut. But it's all good in the Ben Eater hood. ;D

  • @aedanyates2612
    @aedanyates2612 5 ปีที่แล้ว +723

    Your paper moving skills are off the chart

    • @glitch349
      @glitch349 4 ปีที่แล้ว +3

      69 likes... nice

    • @dramforever
      @dramforever 4 ปีที่แล้ว +9

      Probably just moved the chart

    • @HelloKittyFanMan.
      @HelloKittyFanMan. 4 ปีที่แล้ว +1

      @@glitch349: No more, heh....

    • @johnwick5901
      @johnwick5901 4 ปีที่แล้ว +6

      It's actually on the Chart.

    • @HelloKittyFanMan.
      @HelloKittyFanMan. 4 ปีที่แล้ว +1

      HA, @@johnwick5901!

  • @can_uysal
    @can_uysal 5 ปีที่แล้ว +2346

    that unedited part at 7:38, pure chill.

    • @gongal6
      @gongal6 5 ปีที่แล้ว +600

      Is like when the teaches ends his explanation, and waits for the students to copy what are in the board

    • @bertkutoob
      @bertkutoob 5 ปีที่แล้ว +83

      @@gongal6
      Or for you to do a screen grab...

    • @firmman4505
      @firmman4505 5 ปีที่แล้ว +3

      ?

    • @VerticalWit
      @VerticalWit 5 ปีที่แล้ว

    • @purboyy
      @purboyy 4 ปีที่แล้ว +9

      He was grabbing something

  • @mutalibgozalov7208
    @mutalibgozalov7208 5 ปีที่แล้ว +1587

    0:00 - basic transistor
    2:25 - inverter
    4:14 - and gate
    6:08 - or gate
    7:38 - *NO* gate😀
    8:29 - xor gate
    11:50 - whole list

  • @higigls
    @higigls 5 ปีที่แล้ว +1089

    Till date the best explanation of logic gates using transistors. I wish I had got this 18 years back

    • @HelloKittyFanMan.
      @HelloKittyFanMan. 4 ปีที่แล้ว +13

      Yeah, not even ITT Tech taught me this! It would've been nice! My parents blew about $20K on that joint!

    • @MarkusBurrer
      @MarkusBurrer 3 ปีที่แล้ว +4

      18? 30 years

    • @brudamonas8208
      @brudamonas8208 3 ปีที่แล้ว

      There’s a video that explains it very well too, i think the channel is called “the organic chemistry tutor”

    • @knight-errantservices1121
      @knight-errantservices1121 3 ปีที่แล้ว

      I did forty years ago from McGraw-Hill. Serendipity: I got into Ben's videos looking to recreate that logic-gates-from-transistors experience.

    • @justinjames3028
      @justinjames3028 3 ปีที่แล้ว +10

      @@MarkusBurrer I was about 30 years ago too. Had a professor who was probably a great engineer but not a good teacher. He often said partial credit is why the space shuttle blew up and the Hubble telescope didn't work at first. He would also stare down any student who walked in late to the point where if you thought you were going to be a minute late you would just skip.
      Crazy the difference between a guy like that and someone who actually motivated the students to learn.

  • @LogikalMindset
    @LogikalMindset ปีที่แล้ว +15

    15 years experience as a control systems engineer ( specifically PLC's)and now I finally get it ...Ty!!!

  • @cfopeter102
    @cfopeter102 3 ปีที่แล้ว +107

    Discovering your channel is the best thing that has happened to me in a long time. As an EE student who just got started on learning basic digital logic and circuit design, this has my mind blown. Thank you for your videos!

  • @stuffoflardohfortheloveof
    @stuffoflardohfortheloveof 2 ปีที่แล้ว +13

    Just came across this vid by complete accident. Absolutely brilliant. I’m in my 50’s now and learnt logic gates almost 40yrs ago during computer studies BUT was never shown how to use them in practise with electronics so I never made the connection between 0 and 5v etc. Electronics ended up as a bit of a dead end subject for me and I went in a completely different occupational direction. I’m now retired and really enjoying getting back into electronics and have thought about trying to work these logic gates out for myself. You’ve not only beaten me to it but explained it really well. Thanks very much! 👍🙂🏴󠁧󠁢󠁷󠁬󠁳󠁿

  • @lucaguitarplayer
    @lucaguitarplayer 6 ปีที่แล้ว +98

    If you are still not a professor please... Became It! Best lesson of transistor i ever heard!

  • @TheDJRiffin
    @TheDJRiffin 4 ปีที่แล้ว +8

    I loved the silence around 8 minutes.
    It felt as though he was giving us time for it to sink in.
    Brilliant!

  • @moiquiregardevideo
    @moiquiregardevideo 6 ปีที่แล้ว +857

    Resistors used on base: 1k
    Resistors used on collectors: 100 ohm
    Transistor model:2N2222
    Led: green at 1.2 volt
    You can use white led at 3 volt
    The modern silicium transistors have an incredible dynamic range. When OFF, the collector/emittor appear like a very high resistor of more than 50 Meg ohm.
    When ON, the same two pins act like a low value resistor of about 0.1 ohm.
    The expression 'semi conductor" is misleading. The material conduct as good as the best metal, copper, in the ON state and act as an excellent insulator when off.
    The first transistor made with germanium were not as good. In the off state, there was a current leaking from collector to emitter equivalent to about 10 k. When the transistor was warm, it leaked like if it was a 1 K resistor. The OFF state was not that strong neither, cold or hot.
    About the NOT gate:
    The explanation is as follow:
    When the transistor conduct, it is able to act like a very low shunt resistor of approximately 0.1 ohm. It can force the voltage to go as low as 0.2 volt, which is much lower than the usual voltage drop of a diode, 0.7 volt.
    If you take a voltmeter, you will measure:
    Emitter = 0 volt
    Base = 0.7 volt
    Collector = 0.2 volt
    The base/emitter pins of a transistor are simply a diode with the usual voltge drop of 0.7 volt.
    A green LED need about 1.0 volt to turn ON. If you apply 0.8 volt, you get no light at all, not even a feint glow. So, since the transistor can lower the voltage to 0.2 volt, the LED is off. However, if you replaced the LED by an incandescent light bulb, you would see a feint red glow when the logic state is "0".

    • @jacksonmandle4774
      @jacksonmandle4774 5 ปีที่แล้ว +22

      Thanks

    • @BillAnt
      @BillAnt 5 ปีที่แล้ว +21

      It should work just fine even with +/- 10% variations, the tolerances are not super critical.

    • @connorwatson7162
      @connorwatson7162 5 ปีที่แล้ว +10

      Is it safe to leave a transistor (im using a mosfet) active for a long period of time?

    • @Pedritox0953
      @Pedritox0953 5 ปีที่แล้ว +4

      Best explanation so far... is better wwy see semiconductors lke dynamic or active resistane than the usual way

    • @istvanszabo5745
      @istvanszabo5745 5 ปีที่แล้ว +32

      The 0 level in a logic circuit is actually not 0 Volts, just close to it.

  • @bertkutoob
    @bertkutoob 5 ปีที่แล้ว +194

    And that, my friends, is how computers work!
    Now that I know this, my next challenge is how to get 1,5 billion transistors into a cellphone...
    Could be a bit tricky....
    Jokes aside, as a retired Civil Engineer dabbling for the first time in electronics as a new hobby, this video and style of teaching cannot be overpraised.
    Well done Sir!
    Much appreciated!

    • @kerem54545454
      @kerem54545454 4 ปีที่แล้ว +2

      bertkutoob my challenge is how computer monitor is able to show us the output on the screen

    • @radeklew1
      @radeklew1 4 ปีที่แล้ว +17

      @@kerem54545454 Good news! This channel has two videos in which he makes a graphics card!

    • @jeffreyogodogun285
      @jeffreyogodogun285 4 ปีที่แล้ว +1

      Yes. Now it's time to figure out how billions of transistors in smartphones work!

    • @ms-dosguy6630
      @ms-dosguy6630 4 ปีที่แล้ว +1

      @@jeffreyogodogun285 Its called integrated circuits

    • @bertkutoob
      @bertkutoob 4 ปีที่แล้ว +2

      @Joe Black
      That, I understand is how it's done...
      Clever people, these computer scientists...

  • @susiesan
    @susiesan 5 ปีที่แล้ว +73

    I took a computer hardware architecture class in college and we briefly discussed and/or/not gates which I kinda got - your explanation totally cleared it up for me. I definitely had an A-HA! moment watching this video.

  • @NineInchFailz
    @NineInchFailz 4 ปีที่แล้ว +18

    dude your videos are perfect. You show the schematics, boolean truth tables, and physical breadboards to prove it all right there.

  • @MamoonSyed
    @MamoonSyed 7 ปีที่แล้ว +18

    This is the simplest and most intuitive explanation of a transistor I have ever seen. Very good work.

  • @TheLeAlan
    @TheLeAlan 5 ปีที่แล้ว +143

    Finally a video where I could clearly understand what transistors actually do and why are they so important. Thank you!

    • @lookupverazhou8599
      @lookupverazhou8599 ปีที่แล้ว +1

      I didn't know they were just switches until a few days ago. My mind blew clear open. Boolean logic in a miniature device simply would never have existed if it weren't for these things.

    • @herrbonk3635
      @herrbonk3635 ปีที่แล้ว +1

      @@lookupverazhou8599 They aren't switches really. Physically, bipolar transistors are continous (exponential) current amplifiers. Using them as binary non mechanical on/off switches is just a special case abstraction.
      Their primary usage were/are in various forms of (often audio) amplifiers, oscillators, comparators, etc. Such as for radio receivers, tape recorders, TVs, instrumentation, and so forth.

    • @lookupverazhou8599
      @lookupverazhou8599 ปีที่แล้ว

      @@herrbonk3635 Why do they amplify, but an additional junction doesn't?

    • @herrbonk3635
      @herrbonk3635 ปีที่แล้ว

      @@lookupverazhou8599 Additional junction? A transistor has two junctions, the base-emitter and base-collector. It is like two diodes with a common anode or cathode (pnp or npn). In these bipolar transistors the amplification is a result of a pretty complex interaction between minority versus majority charge carriers (holes and electrons) forming and drifting in (and due to) the electric fields applied. Hence the name, bipolar.
      It's easier to explain a field effect transistor though, because it works very much in analogy with an electron tube. By applying a voltage at the gate, the resulting electric field forms a thin region (more or less) depleted of carriers. This adjust the amount of current that can flow from source to drain at a certain source-drain voltage. So a field effect transistor is more like a voltage controlled resistance, while a bipolar transistor acts more like a current source or "generator", controlled by a much smaller base-current.

  • @simong1666
    @simong1666 3 ปีที่แล้ว +68

    I love these videos. Ben has a special talent for being able to speak very quick and clearly at the same time. It's like speed reading interesting content

    • @koolv6210
      @koolv6210 ปีที่แล้ว

      13min- see the diagram & circuit connection is same?
      Diagram & circuit connection same? Diagram looks like incomplete 😅

    • @masterkamen371
      @masterkamen371 10 หลายเดือนก่อน

      ​@@koolv6210I don't see how any of the shown diagrams are incomplete?

  • @mikeshane2048
    @mikeshane2048 7 ปีที่แล้ว +283

    I wonder why isn't this channel popular, This channel deserve more than this

    • @dg-hughes
      @dg-hughes 5 ปีที่แล้ว +4

      Rename it SuperZap or some fancy name so people can brag about watching the SuperZap channel.

    • @bitterlemonboy
      @bitterlemonboy 5 ปีที่แล้ว +6

      Anything in universe has what it deserves. Maybe he has to work a little bit harder? Stop making stupid comments like this. Everything has what it deserves. It's called Natural Equality.

    • @fadithedog
      @fadithedog 5 ปีที่แล้ว +10

      FurkanSE are you dumb?

    • @rzul
      @rzul 5 ปีที่แล้ว +1

      @@fadithedog are you dumb?

    • @rzul
      @rzul 5 ปีที่แล้ว +1

      @@littlerussianmax5831 Congrats, you're starting to grasp it

  • @farziverse4209
    @farziverse4209 8 หลายเดือนก่อน +1

    This was really brilliant and simple. I am thankful, guys like you are on the internet

  • @cesarrodriguez-tw9bp
    @cesarrodriguez-tw9bp 7 ปีที่แล้ว +13

    I've seen only two of your videos, and it feels like a complete ILLUMINATION !! Now I understand how logic gates are made with transistors, the way they look physically, and how they are inside the DIP IC's ... thank you SO much. I had lost the interest on the subject but it rose again now that I'm watching your videos because now I understand. Your videos are clean, brief, on point and very detailed. THANK God you are making these videos! YOU HAVE the talent of teaching, God BLESS YOU MAN!! for real!!

  • @robertwilsoniii2048
    @robertwilsoniii2048 2 ปีที่แล้ว

    What makes this so dope is you include both analogue and digital circuits at the same time for a complete picture of how everything works with no deception or gaslighting involved. Often digital logic is taught by saying 'you don't need to know the implementation' or 'it's not my job to explain analogue circuits.' And analogue circuits are taught by saying 'it's not my job to build logic gates, it's to show the science of transistors.' etc. So people end up with a huge hole in understanding that is exactly this video. You do it the right way, providing the analogue circuit as the primary foundation with its truth table as a tertiary feature.

  • @absurd_derpeta1993
    @absurd_derpeta1993 3 ปีที่แล้ว +8

    6 years late, but this video really helped me understand how transistors work in logic gates! Thank you so much :)

  • @wajideus4591
    @wajideus4591 4 ปีที่แล้ว +8

    For those who are interested, his explanation of how a transistor works is based on conventional current; which is the reverse of the actual electron current. You can imagine the electrons building up on the emitter with nowhere to go because of the depletion zone between the emitter and collector. when the circuit between the base and the positive terminal of the power source is closed, the electrons move from the emitter through the base to the positive terminal and in the process are also able to cross the depletion zone to the collector.

  • @scoopasoop6052
    @scoopasoop6052 4 ปีที่แล้ว +18

    I love how consice he is, his understanding, and his presentation, is this guy a professional teacher or something?

    • @southernkatrina8161
      @southernkatrina8161 4 ปีที่แล้ว +4

      He used to make videos and write math exercises for Khan academy. There's a vid of him being interviewed about it.

  • @darrylbartlett2713
    @darrylbartlett2713 7 หลายเดือนก่อน +2

    In the military I worked on 60's era launch control system. All of the logic was built like this on postage stamp sized boards.

  • @VirginiaGreco_Scrapbooking
    @VirginiaGreco_Scrapbooking 2 ปีที่แล้ว +9

    I studied all this at the University (I am an electronic engineer), but I am still really enjoying watching these videos of yours because you explain very clearly. Better than many of my professors of the times. Congrats! :)

    • @taipo101
      @taipo101 10 หลายเดือนก่อน

      Totally agree. Got my electronics degree in 1975 Bolton UK. This guy is so chilled unbelievably makes everything super simple and excellent voice too

  • @muhammadamirkhan3779
    @muhammadamirkhan3779 ปีที่แล้ว +1

    Excellent presentation/demonstration to easily understand logic gates

  • @HaloWolf102
    @HaloWolf102 4 ปีที่แล้ว +5

    Everything up till this video, we covered in my Digital Electronics class, but this is something that was NOT covered, and it a very important in understanding how all the gates work.
    PLTW has failed me as a student, or the teacher did not follow the course right. Either way, it's taken me 5 years to finally learn the truth on how these work. Thank you education system, you sure did me a great service.

    • @ms-dosguy6630
      @ms-dosguy6630 4 ปีที่แล้ว

      That's is quite unheard of. Surprised they *didn't* go over this.

  • @amatoriorupertleiman4154
    @amatoriorupertleiman4154 ปีที่แล้ว +5

    I just learned what a basic transistor is in just 2 minutes, like veryyyyyy clear and concise, compared to when I was in out online class.

  • @JacobPlays136
    @JacobPlays136 4 ปีที่แล้ว +4

    I’ve been trying to understand transistors and logic gates for months. This video just did it in 13 minutes. Great video!

  • @Replied_ByMeatr1der5
    @Replied_ByMeatr1der5 2 ปีที่แล้ว +1

    You sir are my saviour. Finally someone EXPLAINED how this thing really works instead of giving me false, useless and over"simplified" examples of how the gates work

  • @mohammedal-alaw6249
    @mohammedal-alaw6249 6 ปีที่แล้ว +96

    this is actually called RTL logic it was shortly replaced by TTL gates because of the high current consumption!

    • @moiquiregardevideo
      @moiquiregardevideo 4 ปีที่แล้ว +24

      Actually, the main problem of RTL is low signal. Each time a binary value defined as binary 0 for 0 volt and binary 1 for 5 volt go thru a RTL chip, the designer need to recondition the output with external amplification.
      TTL simply add transistors on the chip, thus making the output as strong as the input.

    • @orppranator5230
      @orppranator5230 3 ปีที่แล้ว +1

      Christian Gingras So, semantics?

    • @a-rod6336
      @a-rod6336 3 ปีที่แล้ว +2

      @@orppranator5230 Yep, meaning matters. Shocking stuff.

    • @supernova5434
      @supernova5434 3 ปีที่แล้ว +3

      And then being replaced by CMOS eventually

    • @ArneChristianRosenfeldt
      @ArneChristianRosenfeldt ปีที่แล้ว

      Looks more like transistors, resistor logic to me because the inputs are not connected to a resistor. Also in an IC a resistor is much more expensive than a diode or even a transistor.

  • @JohnVance
    @JohnVance ปีที่แล้ว +21

    I don’t have the cash or time right now, but I’m going to buy and build all of your kits, this is addicting

    • @Enderbro3300
      @Enderbro3300 ปีที่แล้ว +1

      Not to take away from him but you can also just like, buy a pack of 100 transistors off Amazon for like 5 bucks. But then you also need the breadboard and wires etc which I'm sure his kit has. But if you wanna expand electronics is one of the cheapest hobbies I have XD

    • @adbrooks95
      @adbrooks95 ปีที่แล้ว

      Roughly $45 and you can get an Elegoo kit with a breadboard, arduino uno r3 and components and jumpers including a couple transistors. I just got one and it's great so far!

    • @lookupverazhou8599
      @lookupverazhou8599 ปีที่แล้ว +1

      ​@@Enderbro3300 I just spend over $400 on a bunch of electronics stuff, huhu.

  • @basztarek
    @basztarek 9 ปีที่แล้ว +15

    So far this is the best video explaining logic gates. I appreciate the explanation, the schematics, as well as that you have the gates built on a breadboard, so the users can pause the video and try to rebuild it by themselves.
    Thank you!
    EDIT: I think you had something wrong with the OR gate, mine didn't work that smooth, didn't know why. I worked it over with another video and it works though. While these gates are good for demonstration purposes, the wiring could be optimized by linking the transistors without jumpers.

  • @johndeluca230
    @johndeluca230 4 ปีที่แล้ว +2

    Flashback to building these in an undergrad Computer Logic course I attended back in 1985...
    Thanks for sharing! I enjoyed it!

  • @Pozydrive
    @Pozydrive 5 ปีที่แล้ว +34

    THANK GOD, I FINALLY GET IT! I've been trying to learn this for a few months already, you showing the schematics as well as demonstrating it made it click for me!

  • @Mayank-mf7xr
    @Mayank-mf7xr 5 ปีที่แล้ว +1

    these premade neat models are the key to completely understanding this . even if i myself dont have such circuit made for me as i study , i see it working as it is intended and the circuit diagram confirms this .
    so great . your effort is phenomenal . thanking you from the bottom of my heart . thanks

  • @DELLISTX
    @DELLISTX 4 ปีที่แล้ว +7

    I don't think you know just how GOOD this video is, as I been thinking about all the circuits I could do, and I can just see it.It was just an excellent way to teach it. I have been thinking about this for hours. I am very good at electronics and you just did a super job. You could change some kids life, by just waking them up, making them think, opening a whole new world! WELL DONE!!

  • @xqqqme
    @xqqqme 4 ปีที่แล้ว

    Almost 5 years after this video was uploaded I stumble upon it during the process of trying to learn about transistors, microprocessors and how computers work...and this video manages to get this basic gate info across to me even better than the fabled book "But How Do It Know?" which had me glassy-eyed by page 36! Well done, sir!

  • @michaelthebeast6555
    @michaelthebeast6555 4 ปีที่แล้ว +158

    He’s so good at explaining I’m only 11 and I understand

  • @kworgz
    @kworgz 11 หลายเดือนก่อน +1

    Just watched many intro to logic gate videos.....Logic concepts are as simple as they can be but their purpose didn't click until I saw a physical representation of them like you've done here. Thank you!

  • @jyotiraina7682
    @jyotiraina7682 9 ปีที่แล้ว +16

    Your video is just amazing. The explaination so crystal clear. Thanks as it helped me built my physics project on logic gates.

    • @Engineer9736
      @Engineer9736 5 ปีที่แล้ว

      I don’t think electronics is the same study as physics. Physics is about the behavior of physical matter. Electronics is a complete different area.

    • @prezadent1
      @prezadent1 5 ปีที่แล้ว +3

      @@Engineer9736 Shut yo' mouth foo'

    • @Jupiter__001_
      @Jupiter__001_ 5 ปีที่แล้ว +1

      @@Engineer9736 Wrong. Electronics is a subset of physics, and originates from physics. We had to study electronics as a part of the electricity topics in physics all through secondary school.

  • @guyconiglio8223
    @guyconiglio8223 ปีที่แล้ว +1

    I've been looking for someone to explain these gates forever - this is so helpful.

  • @herbertotto4725
    @herbertotto4725 3 ปีที่แล้ว +4

    About 50 years ago - Vietnam War era. We had several books of circuit diagrams and others with logic diagrams built with basic gates like these. Hawk Missile guidance control systems. All "Top Secret" back then. It would all fit on a grain of sand now. But back then it was big stuff - actually useful when we could keep it running. Lots of breakdowns. That's where I came in. (smile).
    After service, I used to keep a small breadboard of logic circuits on my desk to remind me of those times. I'm 75 years old now - still breathing.

  • @scott7695
    @scott7695 2 ปีที่แล้ว

    I wish you taught me my first year of electrical engineering school 🙂 So much time spent working formulas calculating all kinds of stuff and zero time spent just telling you how the components work and what you could do with them....love the practical explanation!

  • @EriAirlangga
    @EriAirlangga 7 ปีที่แล้ว +23

    Finally, a minimal TTL diagram that really works! Thank you!

    • @0MoTheG
      @0MoTheG 4 ปีที่แล้ว +1

      There was no TTL in the entire video.

    • @silviam.7195
      @silviam.7195 4 ปีที่แล้ว +1

      This is RTL - Logic. :-)
      Because there no Multi-base Transistor in use...but the gates working nice using a normal light bulb and the npn Transistors 2N3055 to realize the switches, because more current in flowing through collector-emitter circuits.

    • @gman76utube
      @gman76utube ปีที่แล้ว +1

      WTF is everyone talking about, TTL and RTL were logic gates from the 1970’s and 80’s. Virtually all logic gates produced today are CMOS which is much simpler to explain than bipolar transistors.

    • @ArneChristianRosenfeldt
      @ArneChristianRosenfeldt ปีที่แล้ว

      @@gman76utubethe symbols in the video are for bipolar transistor, not MOS

    • @ArneChristianRosenfeldt
      @ArneChristianRosenfeldt ปีที่แล้ว +1

      @@silviam.7195doesn’t TTL use multi-emitter. Each input goes through a common base amplifier. Common only means that the lead of the transistor is connected to a common wire. The semiconductor does not need to connect them in a monolithic fashion ( like the base connects emitter and collector ).

  • @TheDeepshock
    @TheDeepshock 3 ปีที่แล้ว +1

    I have to leave a comment here. I have been looking for an intuitive explanation on how XOR gate works at circuit level for very long time as I have not electronics background. I finally get it today. The sense of understanding is great. Thank you Ben.

  • @bakshiism
    @bakshiism 6 หลายเดือนก่อน +3

    I barely turned 13 years old and this really helped me clear things on how to make gates and what the hell a transistor is. Thank you so much. please continue this work

    • @bakshiism
      @bakshiism 6 หลายเดือนก่อน +2

      I also am making a binary calculator with this, if you can, please look into how I can use this to make one.

    • @DefaultFlame
      @DefaultFlame 6 หลายเดือนก่อน

      @@bakshiism Watch his homemade 8-bit breadboard computer series, specifically the parts on the ALU (arithmetic logic unit) and the registers.
      Actually, I'd suggest just watching all of it, because it's great, and then the rest of his videos. He's the perfect teacher when it comes to low-level computer engineering.

  • @davidrosset4457
    @davidrosset4457 3 ปีที่แล้ว +1

    I was finally able to make the XOR gate through your video. Such an elegant design. Thank you.

  • @sevfx
    @sevfx 7 ปีที่แล้ว +680

    You got a pretty long silent part from 7:40 - 8:17 I think you forgot to make a cut ;)

    • @pyromen321
      @pyromen321 6 ปีที่แล้ว +108

      Severin I was laughing through that whole goofy section

    • @mattshu
      @mattshu 6 ปีที่แล้ว +67

      I came to comment the same thing :P It really broke the fourth wall for half a minute

    • @draco5991rep
      @draco5991rep 6 ปีที่แล้ว +52

      It was kinda akward and unsettling :'D

    • @GoatOfTheWoods
      @GoatOfTheWoods 6 ปีที่แล้ว +141

      i actually liked it, it's like listening to a teacher who at some moment browses his files to look for what to talk about next

    • @nicolasnicolas5238
      @nicolasnicolas5238 6 ปีที่แล้ว +52

      I liked it too, I felt it was some kind of asmr

  • @EmptyGlass99
    @EmptyGlass99 5 ปีที่แล้ว +2

    By far the best explanation of how transistors work I've ever seen. I wish I could 'like' it more than once. The XOR gate in particular was a eureka moment for me. Thank you.

    • @0MoTheG
      @0MoTheG 4 ปีที่แล้ว

      He never did explain how a transistor works.

  • @jamesarmstrong3000
    @jamesarmstrong3000 4 ปีที่แล้ว +38

    I had a difficult time with transistors, cuz I'm a beginner. After watching your video, I have at least vaguely understood them.

    • @aidanc4719
      @aidanc4719 4 ปีที่แล้ว +2

      learn.sparkfun.com/tutorials/transistors/all
      I found this article really helpful :)

    • @ricj9594
      @ricj9594 4 ปีที่แล้ว +1

      @@aidanc4719 thnak you! hugs from são paulo, brazil

    • @yaroslavpanych2067
      @yaroslavpanych2067 4 ปีที่แล้ว +2

      Speaking the truth, he showed only half of functionality transistors provide - their saturated and cut-off states. Primarily transistors are current amplification devices, and cutoff and saturated are just edge-cases of that process. "Funny" part comes when we stop talking about DC and start talking about AC and here we meet several more dozens of characteristics diagrams for transistors.

  • @TinyMaths
    @TinyMaths ปีที่แล้ว

    This explanation of transistors and how to use them to form logic gates gave me a much more intuitive understanding of truth tables.

  • @matchileon6102
    @matchileon6102 5 ปีที่แล้ว +74

    This is more helpful than my stupid college lecture.

  • @normantyson5314
    @normantyson5314 ปีที่แล้ว +1

    It is fairly easy to design circuits w/ logic gates, but it is interesting to see simple designs that are necessary to build your own logic. All are straight forward until reaching the exclusive or gate. Left on my own, I would have a working design w/ 7 transistors, but your clever design does it in 5. Again, you are the master.

  • @Thereadingmusiclover
    @Thereadingmusiclover 5 ปีที่แล้ว +4

    I'm pretty sure that I've learned more from you about electronics than both my electronics and microprocessor class in college combined! You're very good at explaining how it all works! Keep it up!

  • @jayc8040
    @jayc8040 2 ปีที่แล้ว

    I’m in my 3rd year as an electronic engineer student. Your videos are so helpful and you make it so much easier to understand. Thanks you!

    • @schmetterling4477
      @schmetterling4477 2 ปีที่แล้ว

      In other words... you are lying about your education. ;-)

    • @Chris-jd9wg
      @Chris-jd9wg 2 ปีที่แล้ว

      @@schmetterling4477 “The secret of education lies in respecting the pupil. It is not for you to choose what he shall know, what he shall do. It is chosen and foreordained and he only holds the key to his own secret.”

    • @schmetterling4477
      @schmetterling4477 2 ปีที่แล้ว

      @@Chris-jd9wg Dude, I knew these things when I was twelve years old. If he is in his 3rd year and doesn't, then he is studying cosmetology and not electrical engineering. ;-)

    • @Chris-jd9wg
      @Chris-jd9wg 2 ปีที่แล้ว

      @@schmetterling4477 Wow! At twelve? I don't know how old you are, but even if you're only in your 20s I can't imagine what you probably know now!
      Believe it or not, a lot of people in their second, third, and even fourth years studying electrical engineering don't get a solid grasp of the material. It is SO dry. The textbooks were mostly all written in the 70s; it is utterly brutal to try and keep up with it, especially if you don't have a good instructor. The best electrical engineers I have worked with have almost universally learned electronics at a VERY young age (like you). Some people just get it, while others struggle badly.
      This Ben Eater guy explains things so well that you almost feel stupid after watching his videos. I would rethink my life if I was studying electrical engineering.

    • @schmetterling4477
      @schmetterling4477 2 ปีที่แล้ว

      @@Chris-jd9wg Today I am old and I know how to build large particle physics detectors. So do thousands of other people. Big deal. What I don't do is to pretend that I know how to coach American football, which is what the majority of folks on the internet are doing in one form or another.
      I know what they teach in EE. I have been sitting in some of those lectures when I was a student. But here is the deal: you are not restricted in university to learn only whatever material the professor presents. You can know more, way more and way, way more. If you haven't surpassed this level of material in your third year in EE, then you simply don't belong in the field. Electronics is exceedingly easy to learn as a teenager. That's how I learned it. I may not have known 4-pole theory but I sure as heck could build working circuits, both digital and analog. I even had the data path of a 64 bit CPU design in TTL running at 32MHz on breadboards by the time I finished high school. I never finished the instruction set and the microcode sequencer, though. I didn't have the necessary books on computer science to understand that level of architecture. After that I had to serve in the military and I began studying physics, so I lost interest in these things.
      All I am saying is that this here is not third year EE. It's kindergarten electronics.

  • @swedensy
    @swedensy 5 ปีที่แล้ว +9

    Second schematic uses voltage devider. There is still voltage across diode, just not enough to light shit up.

    • @derikbates961
      @derikbates961 3 ปีที่แล้ว

      Thank you for explaining this. I was wondering why it "wasn't" getting voltage.

    • @boyuan588
      @boyuan588 5 หลายเดือนก่อน

      This is a good point. I think the video made a misleading post by that the circuit is not complete when both A/B is on but this is actually not the case

  • @aashiqurrahman329
    @aashiqurrahman329 หลายเดือนก่อน

    First time I understand the logic gate, I used to memorise all the value in my college😢. Thanks to you man❤

  • @FutureAIDev2015
    @FutureAIDev2015 8 ปีที่แล้ว +5

    I have an idea for the XOR gate. To save power, you should put a transistor in series with the two transistors that basically make a NAND gate. Then, connect the base of that transistor directly to both inputs. This ensures that if A or B is on, the circuit is on, but if neither A nor B is on, no current flows at all.

    • @FutureAIDev2015
      @FutureAIDev2015 8 ปีที่แล้ว

      Put the transistor mentioned before between the positive rail and the first transistor of the NAND gate.

    • @FutureAIDev2015
      @FutureAIDev2015 8 ปีที่แล้ว

      +Matthew Ferrie Before the resistor.

    • @andrewrobertson1473
      @andrewrobertson1473 5 ปีที่แล้ว +2

      My apologies for responding to a two-year-old comment, but for anyone reading this now:
      Tying both inputs to the base of a transistor would not work as you've now shorted the two inputs in question. If the inputs are driven by opposing logic levels (ie, one high and one low), you've short-circuited 5V, and the circuit could get very hot very fast. Or just cause your microcontroller to force shutdown to avoid cooking itself. In general, I wouldn't recommend it.

  • @beno2782
    @beno2782 ปีที่แล้ว +1

    What i didn't get in school in several hours, I get it here in few minutes, thank you very much! 😊

  • @JimKinkade
    @JimKinkade 8 ปีที่แล้ว +363

    Thank you. I'm using this information to totally rewire my computer.

    • @Calvinatorzcraft
      @Calvinatorzcraft 8 ปีที่แล้ว +46

      That's nearly impossible

    • @FutureAIDev2015
      @FutureAIDev2015 8 ปีที่แล้ว +14

      😮 You have WAY more patience than me!

    • @abdelrahmangamalmahdy
      @abdelrahmangamalmahdy 7 ปีที่แล้ว +41

      Jimmy Kinkade
      LMAO You gotta have an electron microscope to get to see the inner wiring of your CPU

    • @KuraIthys
      @KuraIthys 7 ปีที่แล้ว +55

      You're working on the assumption that he's talking about an off the shelf computer that consists mostly of Integrated circuits.
      If he means a homemade computer created using discrete logic or any of a number of techniques to create custom circuitry (many of which are described on this channel) then it's a perfectly reasonable thing to do.
      You can make your own CPU using anything from transistors, to logic gate IC's to memory chips (memory can replicate any function it has enough pins for. Something with 8 data lines and 8 address lines can replicate any discrete logic function that has 8 inputs and 8 outputs. You can even theoretically build an entire processor using this alone.), and of course you could use an FPGA if you need very high performance and complexity and something that's practical for frequent use.
      Did you know the Amiga's custom chipset was made in prototype form using discrete logic and stuff like this? A bunch of massive circuit boards full of components, which in the final thing reduces to just 3 integrated circuits. Nevertheless the prototype was made of discrete components, and it worked the same as the final thing, though it was more failure prone.

    • @abdelrahmangamalmahdy
      @abdelrahmangamalmahdy 7 ปีที่แล้ว +9

      KuraIthys, with respect.. nobody makes a computer using discrete transistors, it would take thousands of transistors to make a simple 8 bit computer.. also, how can you expect this video is helpful for someone who has already made a homemade computer with discrete transistors !!

  • @johnwight6041
    @johnwight6041 19 วันที่ผ่านมา

    Wow I thought logic gates would be more complicated for some reason. Amazing explanation, great circuit diagrams and breadboard demos! Awesome!

  • @axeldaguerre8838
    @axeldaguerre8838 4 ปีที่แล้ว +5

    What you do is exactly what i want to learn, i will definitely pay on patreon if i see you are consistent (it is my first video from you)

  • @Kylefassbinderful
    @Kylefassbinderful 7 หลายเดือนก่อน +1

    What I've noticed in the XOR gate diagram that you made is that it's two gates that work together. An OR gate and an AND gate. The OR gate is the primary gate while the AND gate is more of a secondary. The AND gate just adds more functionality to the OR gate.

  • @srduke
    @srduke 5 ปีที่แล้ว +8

    It was at that moment that I actually learned how a computer really works!

  • @426F6F
    @426F6F ปีที่แล้ว

    This is such a fantastic, concise demonstration of the concept of logic gates using transistors! Thanks so much, Ben!

  • @ThatGuyDownInThe
    @ThatGuyDownInThe 4 ปีที่แล้ว +10

    my mind is truly blown on so many levels. Man I love this stuff so much.

  • @andrewshirley3260
    @andrewshirley3260 3 ปีที่แล้ว

    I like your easy-to-get explanations of transistors as logic gates. Thank you.

  • @hercion
    @hercion 5 ปีที่แล้ว +5

    A minimal transistor-count Toggle Flip Flop would be very interesting !

  • @kotachan6784
    @kotachan6784 3 ปีที่แล้ว

    I'm 19 now.. A medical student, but Always had curiosity for circuits, processing, computing and transmission of information.. Gosh, electronics left me awestruck! Back then TH-cam wasn't how like it's now.. Not to mention I got my mobile phone last year.
    When I was a kid, I never had the proper exposure regarding these things, as I'll be the first member for my family to receive a degree.
    I think, it's not too late to explore the field

  • @mannycalavera121
    @mannycalavera121 4 ปีที่แล้ว +3

    I loved electronics as a child, I was always disassembling broken electronic for components, making things, but never had mentor or support and this was pre internet (too poor to buy a computer anyway) pre maker space days so outside local library I was out of luck.
    Now as an adult with young children of my own I'm picking back up these hobbies in the hopes that if my son's so choose, I can perhaps help them I whatever interests of endeavours they choose.
    Guess thats my long winded way of thanks for making these videos.

  • @worldofelectronicsandprogr1128
    @worldofelectronicsandprogr1128 2 ปีที่แล้ว +2

    Hello! I was really seeking for this kind of tutorial cause I wanted to make logic gates only from transistors and I found something on the net, but it wasn't very clear to me. So this tutorial was perfect for me since I understood the concepts of how the transistors function and how a logic gate actually work in practice. Only the XOR gate didn't work for me, because I didn't understand exactly the idea of two A and B inputs and how are they connected to the switches. Otherwise, A+ for the tutorial! 👏👏👏👏

  • @dowskivisionmagicaloracle8593
    @dowskivisionmagicaloracle8593 5 ปีที่แล้ว +18

    Incredible! This is the knowledge gap I've had when it comes to ICT.

  • @english_albanian_translator
    @english_albanian_translator 5 ปีที่แล้ว +1

    Amazing explanations! If you are a professor, your students must thank God every day to have you as their professor.

  • @privatefactory1173
    @privatefactory1173 6 ปีที่แล้ว +7

    One of the best videos on the web. But I keep wondering why everybody in every video and tutorial keeps repeating that when transistor is on all the all current flows through it and because of that the potential difference between collector and emitter drops to 0, effectively meaning that both of LED's legs are connected to positive side. That's not correct, transistor is not a superconductor, it still has a resistance when it's on, current does still flow through LED, the reason why LED turns off is because current becomes way way too small which is not enough to light up the LED.

    • @southernkatrina8161
      @southernkatrina8161 4 ปีที่แล้ว

      It needs 0.7v to light up.

    • @derikbates961
      @derikbates961 3 ปีที่แล้ว

      Thank you for explaining this. I was wondering why it "wasn't" getting voltage.

  • @johneagle4384
    @johneagle4384 11 หลายเดือนก่อน +1

    Thank you. For a newbie like me, these videos are gold.

  • @Zahlenteufel1
    @Zahlenteufel1 7 ปีที่แล้ว +35

    his videos are so low-tech but so good

  • @sakshamchhatkuli271
    @sakshamchhatkuli271 2 ปีที่แล้ว +1

    Holy shit , I finally understood all the concept behind the logical gates.

  • @geneirwin645
    @geneirwin645 2 ปีที่แล้ว +3

    The and gate is really a nand gate because you are referencing the output with vcc not ground.

  • @cmichael40
    @cmichael40 ปีที่แล้ว +1

    Well said and well illustrated.

  • @mericet39
    @mericet39 3 ปีที่แล้ว +3

    I wasn't much good at electronics at school. If I'd had Ben Eater as a teacher, things might have been very different.

  • @mike.lisenko
    @mike.lisenko ปีที่แล้ว

    Certainly one of the more accessible explanations suited for younger learners Great job!

  • @Quizzingisfun
    @Quizzingisfun 4 ปีที่แล้ว +8

    I was laying in bed, thinking about precisely this, and i find it on my raccomandation 5 minutes after. Damn

  • @georgemorgan8683
    @georgemorgan8683 3 ปีที่แล้ว

    Best explanation of how to use transistors to make logic gates on TH-cam.

  • @atenakitabi3769
    @atenakitabi3769 5 ปีที่แล้ว +5

    Oh God wish I had found this video 2 years ago

  • @Magneto994
    @Magneto994 3 ปีที่แล้ว

    Thas was an excelet explanation --Thanks a bunch!!! I'm a venezuelan guy very intersted in electronic issues because right now i'm working in repairing electrical devices such as whashing machine, refrigerator but the problem is i dont have as much knowledment in electronic topic as to solve most of the problems. thanks again for your channel.

  • @Rynstick
    @Rynstick 4 ปีที่แล้ว +14

    realy unclear i ended up making a intel family gpu

  • @nealmaxwell790
    @nealmaxwell790 3 ปีที่แล้ว

    Taking both Intro to Semiconductors and Logic Systems, and this one video taught me more than both of those classes. Higher education at its finest people!!!!

  • @eliastafese3790
    @eliastafese3790 8 ปีที่แล้ว +15

    YOU ARE THE BEST! Vefy nice EXPLANATION

  • @erobertt3
    @erobertt3 3 ปีที่แล้ว +1

    It's so amazing to me to think that this thing that I'm typing on right now and sending to thousands of people is all working based on these basic circuits. Humans really are capable of incredible things.

  • @risingmermo
    @risingmermo 3 ปีที่แล้ว +10

    duuuuuudeeeee, i was stuck for sooooo long on the very first circuit. (literallly for like 2 hours).turns out i had the transistor the wrong way round

  • @tuncaykilic7099
    @tuncaykilic7099 3 ปีที่แล้ว

    I was watching the 8 bit computer on breadboard, and wanted to know how the logic gates actually worked. after some video's where they don't really get in to the circuits i found this video. This channel has everything i ever needed hahaha

  • @bfhaha
    @bfhaha 8 ปีที่แล้ว +4

    4:18 You had better draw a resistor in front of the transistor in the schematic of the AND gate.

  • @sakshamchhatkuli271
    @sakshamchhatkuli271 2 ปีที่แล้ว

    Best explanation in this whole world. Superb teaching skills.

  • @MarkRMichaels
    @MarkRMichaels 8 ปีที่แล้ว +19

    The part at around 3:45 about differentials is a little confusing to an amateur. It seems like a current would be flowing through both paths and the light would still be on.
    Maybe that could be clarified better?
    Great video nonetheless. Thank you!

    • @1280-user
      @1280-user 8 ปีที่แล้ว +9

      perhaps it's a matter of resistance. if transistor's resistance is too small compared to led's resistance then almost no electricity will move through the led

    • @1280-user
      @1280-user 7 ปีที่แล้ว

      kaliKoder yes you can, just make sure that the resistance in transistor's path will be still too small 'Compared' to the led's one.

    • @linuxBlob
      @linuxBlob 7 ปีที่แล้ว +1

      You can think of a transistor as kind of splitting a circuit in two. One side on the collector side and one side on the emitter side. Voltage is the difference between two points. When the button isn't pushed, on the collector side, with respect to ground is +5V (minus some for resistance), that is because there is no flow on the emitter side.
      When the button is pressed, there is flow from the collector to the emitter. Thus the energy is on both sides of the transistor. Since there is no *difference* between the collector side and the emitter side, the point on the collector side leading to the LED is 0V with respect to ground.
      You are correct in thinking that it looks like a parallel circuit, but because of the transistor, you don't actually have a parallel circuit, you instead have the part of the circuit on the collector side of the transistor and the side of the circuit on the collector side of the transistor. You can try this yourself, if you build the circuit as shown and then measure the anode side of the LED vs ground (or negative on your battery), you will measure zero volts. If you measure the emitter and collector sides of the transistor you will find +5V (minus some for resistance).
      This is just one of those counter intuitive parts of digital circuits.

    • @alexandersuvorov2002
      @alexandersuvorov2002 7 ปีที่แล้ว

      What about 0V on the LED end because the current which flows into it isn't sufficient to pass its resistance? Have you checked the input current of the LED when the transistor is on?

    • @levih9293
      @levih9293 7 ปีที่แล้ว

      If anyone is still curious about this, check out my answer above.

  • @100vg
    @100vg ปีที่แล้ว

    Excellent on building Logic Gates with NPN BJTs. Very clear and precise. Thank you!

  • @burakerdem9758
    @burakerdem9758 3 ปีที่แล้ว +6

    Hello, thanks for the video. I have a question in mind about the circuit at 3:20.
    So, we're saying that there is no voltage difference between the two sides of the transistor, and I guess that's because the resistance of the transistor is negligibly small. But does electricity still flow through the LED, albeit with no effect visible such as light? And does that, in a larger scale like in CPUs where there are many transistors, affect the system?

    • @burnstick1380
      @burnstick1380 2 ปีที่แล้ว

      Electricity always flows, even when a transistor is turned off. But the voltage and amps are so minimal that they are neglect-able. Most processor or logic devices have a minimum voltage threshold (before they activate). This is good because it smoothes out minor leakage and reduces the risp of EMI (electromagnetic interference)

  • @dahlavibez5726
    @dahlavibez5726 2 ปีที่แล้ว +1

    Master Ben, your a true guru in these videos man, I'm able to expand my projects after your straight forward teachings . Bless you sir

  • @mattt2684
    @mattt2684 6 ปีที่แล้ว +6

    Remember:
    -Emitter(left), Base(middle), and Collector(right)
    -Current to base allows current to flow from Collector to emitter

    • @Engineer9736
      @Engineer9736 5 ปีที่แล้ว +5

      I advice not to remember this. Not all packages are the same. Some transistors have the gate on one of the outer pins. Just open the datasheet and take a look.

    • @andrewrobertson1473
      @andrewrobertson1473 5 ปีที่แล้ว

      Yes. Always read the datasheet thoroughly. I once spent over a week trying to fix a problem with an 8 channel ADC driver I wrote only to realize that the 3-bit channel address was not simply the channel number in binary. There was a table in the datasheet that showed the mappings. I assume the odd design was used to make the physical layout more efficient and keep the analog input pins in order of the channel number.