Electronic Basics #5: How to Multiplex

Ғылым және технология

Twitter: / greatscottlab
Facebook: / greatscottlab
Previous video: • Build your own RGB LED...
Arduino Code+Schematic: www.mediafire.com/download/asi...
In this video i am going to show you how to control a huge amount of LEDs inside a matrix or a cube with only a few I/O pins of your Arduino.
Music:
Killing Time, Kevin MacLeod (incompetech.com)

Пікірлер: 278

  • @philips170t
    @philips170t4 жыл бұрын

    “I hope you learn something today”... I do, I really do. Thank you.

  • @abcnishant007
    @abcnishant007Ай бұрын

    Finally a video which explains the basics of multiple LED and then quickly builds up the complexity while maintaining the necessary abstraction - the rest one can just google up how to use find the right component. Oh and I forgot to mention - finally one that doesn’t have the really terrible background music, instead an amazing voiceover!

  • @wontmk
    @wontmk9 жыл бұрын

    Great videos! Thank you and keep them coming. I'm and ME student at the University of Minnesota and an electronics enthusiast and I just wanted to let you know I think you do a great job with your builds. Keeping it interesting while still including theory.

  • @oddjobbob8742
    @oddjobbob87422 жыл бұрын

    Your KZreads are just amazing. Thank you for all the time you take producing them.

  • @FrancescoCositore
    @FrancescoCositore9 жыл бұрын

    Thank you very much for your amazing/great/fantastic/brillant/unique tutorials! They are so helpfull for me and you speak slowly and clear so I can understand what you say (I don't speak a lot of English). I am learning a lot of things from you. Again, thank! Kind regards. Francesco.

  • @greatscottlab

    @greatscottlab

    9 жыл бұрын

    Francesco Cositore Thanks! That is why I do this!

  • @bratasundarghosh4677

    @bratasundarghosh4677

    6 жыл бұрын

    Where is the circuit diagram? I need it?

  • @jackseley4084
    @jackseley40847 жыл бұрын

    I made this, and it helps me alot with graphing coordanitates. Thank you Great Scott!

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

    Excellent tutorial. Very easy to understand and lots of fun. Thank you for making your videos, I reference them quite often for my projects.

  • @nathanial7249
    @nathanial72494 жыл бұрын

    Thank you Scott, that makes it 100% easier to understand

  • @modx5534
    @modx55343 жыл бұрын

    Great video! I have always asked myself how it is possible to control so many leds with just a few outputs. With you video I at least understood the principle or trick behind this method. Thank you very much!

  • @gavinpeters9531
    @gavinpeters95313 жыл бұрын

    Thanks for this. Im just starting to build something with a matrix and this really helped understanding.

  • @sandwichchef5042
    @sandwichchef50425 жыл бұрын

    high quality video with actual explanations. good video

  • @richardwilliamjohnson8566
    @richardwilliamjohnson85665 жыл бұрын

    i was wracking my brain trying to think how a multiplexer could POSSIBLY be useful... until i saw this video, and learned that they operate at a high frequency! thanks great scott

  • @GreyDeathVaccine
    @GreyDeathVaccine3 жыл бұрын

    Intro is AWESOME! :D I started watching channel from new episodes (2020) and I prefer this techno intro.

  • @Khujandiho
    @Khujandiho2 жыл бұрын

    You just fixed the problem that I was thinking for years. Thank you

  • @kjamesirwin3316
    @kjamesirwin33163 жыл бұрын

    Wow. Nice! You helped me solve a big problem with my 50 LED display. Many thanks

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

    Am trying to teach myself with all this. Its hard to find exactly the right info. Was easy to understand and will be perfect in the future for referance. Thankyou for youre time

  • @andymouse
    @andymouse8 жыл бұрын

    great work you have inspired me a great deal, I some times wonder does it get frustrating to get questions like " where can I get breadboard ?" hell if ya cant work that out then ya don't stand a bloody chance! anyway good stuff sir!

  • @jonathanborden4856
    @jonathanborden48569 жыл бұрын

    Great explanation! Thanks for this video.

  • @smokesmoker4301
    @smokesmoker43014 жыл бұрын

    Alter du bist der Chef überhaupt! Krasser scheiß. Hut ab! Danke für die geilen Videos! Bitte weitermachen!!!

  • @jo31b
    @jo31b7 жыл бұрын

    Great job brining electronics to the masses. Thank you.

  • @kaldislp7241
    @kaldislp72416 жыл бұрын

    very useful thing i have learned from this video is using of mosfet for common cathode RGB led strip

  • @captainMony
    @captainMony2 ай бұрын

    I love that this is just the Basics

  • @zameerkhan5807
    @zameerkhan58073 жыл бұрын

    Awesome bro❤️ loved from INDIA 🇮🇳

  • @netsurfer10000
    @netsurfer100008 жыл бұрын

    That's so simple and brilliant.

  • @netsurfer10000

    @netsurfer10000

    8 жыл бұрын

    also the code. holy crap. this is so simple. thank you for this series.

  • @World_Theory
    @World_Theory5 жыл бұрын

    If you replace the LEDs with sensors, like linear-motion spring loaded potentiometers for example; can I find the location of a ball on the grid, as it rolls across the sliding pieces of the potentiometers sticking up? My hope is that I can get analog signals from the grid to very accurately locate the center of something on the grid, without needing the stuff for timing. (I actually have a different sensor in mind, but the linear potentiometer is useful for the example.)

  • @risingmermo
    @risingmermo3 жыл бұрын

    Although I didn't completely understand how it works I have a somewhat better understanding than before so thank you

  • @vishalmayannache5389
    @vishalmayannache53897 жыл бұрын

    best great scott

  • @vishalmayannache5389

    @vishalmayannache5389

    7 жыл бұрын

    making the project easyer and faster............ great

  • @andreasj.3404
    @andreasj.34047 жыл бұрын

    Nice Work!

  • @easyelectronics4364
    @easyelectronics43646 жыл бұрын

    Great scott #salute 😍

  • @bloodyMind4
    @bloodyMind45 жыл бұрын

    Thanks for the amazing videos, amazon links don't load anymore, can you fix them or post the items being used for this project! looks exciting

  • @HaLo2FrEeEk
    @HaLo2FrEeEk6 жыл бұрын

    Thank you for this, I'm gonna use the ideas here to build a binary clock that multiplexes through the digits. I probably won't use the LED driver, just a few transistors for now since the clock will be 4 tall x 6 wide, and not every column will have all 4 LEDs. Even if an entire row is lit, that's only 120mA max, so a transistor should be able to handle that. Anyways, thank you again!

  • @roopakleaprobots5825
    @roopakleaprobots58255 жыл бұрын

    Scott u are really great

  • @benwinkel
    @benwinkel8 жыл бұрын

    Great stuff! I was wondering if i can do the same with sound. I have built a 555 synthesizer. Its a voltage controlled oscillator. I want to be able to play it polyphonic, not one note at a time. Could i use multiplexing for that?

  • @boydmaduro9563

    @boydmaduro9563

    6 жыл бұрын

    Ben Winkel you got a 555 to generate your wave for each note. If you want to play multiple notes at the same time then you will need to use a 555 timer to generate each note and combine those afterwards. One extra advantage of this system is that you can tune each note seperatly

  • @chatchaisi1
    @chatchaisi18 жыл бұрын

    i like this video . thank you for this

  • @dChandrahas
    @dChandrahas3 жыл бұрын

    Hi @GreatScott! , Thanks for the great tutorial. I tried this on my custom made 4 digit 7 segment display with LEDs. It works fine, except for one issue. I could see residue lights on non-lit segments of some digits due to multiplexing. For example, 12 looks like 22 due to the residue lights. I tried fine-tuning the update interval but always ended up in either flickering or residue light. Is there a way to avoid it?

  • @jlucasound
    @jlucasound2 жыл бұрын

    "...and I will see you next time." My, how that statement has evolved!! :-)

  • @padmalayarawal3091
    @padmalayarawal30914 жыл бұрын

    Awesome tutorials 👍 Can you please tell that is it possible to get the arduino code which is uploaded on our board to our laptop ?

  • @ionkinetic
    @ionkinetic10 жыл бұрын

    Great video

  • @KiR_3d
    @KiR_3d6 жыл бұрын

    Great, Scott! :) I've searched for something much much simpler... Please, how to use CD4052 to create a 2-channel switch? I need this for my future analog synth (to avoid using rotating switches). Do I need some other chips to create constant 0 - 1 states? I've thought about CD4017 but not sure how to use it here... Or can it be done better with some other additional ICs

  • @ncofab46
    @ncofab464 жыл бұрын

    Amazing tutorial. Have you considered a charlieplexing it's similar ish

  • @xbox466
    @xbox4669 жыл бұрын

    Good tutorial

  • @asajjventress69
    @asajjventress695 жыл бұрын

    hey Scott , what is the software you are using for the schematics in the videos?

  • @VspaceKSP
    @VspaceKSP4 жыл бұрын

    Hi greatscott i have a dummy question for you. :) what the material you use for make jumper line on your circuit. What metal or allow. i use some and never he lead stick on it. BTW sorry for my bad English im from Quebec in Canada HA-HA

  • @andrewlushington1219
    @andrewlushington12196 жыл бұрын

    so is the gate going to the D pins of the arduino? the schematic is a little confusing. It looks like both gate and source are going to 5V while drain is going to anode, D pins of arduino and the 1K resistor. Sorry new to reading circuit diagrams so having trouble understanding .

  • @1337Shockwav3
    @1337Shockwav35 жыл бұрын

    Any rule of thumb regarding duty cycles and refresh rates or points to get started? I'm currently designing a nibble display for an 8bit cpu, why is meant to use 7 7-segment displays. Multiplexing is done by switching the common anode. There's a 4-12MHz clock signal I could easily use (Adding a 555 at a lower rate shouldn't be a problem) and I'd see myself ending up with a duty cycle of ~15% - would that work? I'm aware the segments might show junk while running code on the CPU at full speed. It's meant as a debug aid when putting the CPU into single step mode.

  • @rocketdudes1040
    @rocketdudes104010 жыл бұрын

    now i understand! how cubes work

  • @santoroma17
    @santoroma178 жыл бұрын

    I would love to see a video on charlieplexing :P i would love to see how you implement it

  • @banli8262
    @banli82629 жыл бұрын

    Hi , can I ask is this arduino sketch can control individual LED fade in and out ?

  • @alibehrouz9833
    @alibehrouz98337 жыл бұрын

    very good thanks

  • @gpmscosta
    @gpmscosta4 жыл бұрын

    Is there another multiplexer close enough to the TLC5940 that can be used in case this multiplexer isn't available? Thanks in advance, Scott

  • @Team98
    @Team987 жыл бұрын

    sorry I'm new to all this but will a atmel chip be fine (like the atmega8) instead of the tlc because the only ones available to me are ones by atmel (and some by pic)

  • @priyanshubhagat6002
    @priyanshubhagat60022 жыл бұрын

    Sir, Is there any way to light up the LED cube in different patterns without coding and using just discrete components?

  • @PraveenMax
    @PraveenMax2 жыл бұрын

    Nice video. What will happen if I am not using MOSFET to power up LEDs?

  • @alurihariharan5082
    @alurihariharan50827 жыл бұрын

    hey scott thanks for ur videos, thing is how the ic tlc5940 manages to eliminate the Aa and Aj error and how to texting takes place if ur using a row manipulation through the ic i mean if u turn on entire row even faster still u'll get the Aa ,Aj error.......i think the better one is to use the clock for anode and cathode ...........anyway if can please reply me and thanks for videos again

  • @kitkat224
    @kitkat2246 жыл бұрын

    i know this is an old video, but i caught a glimpse of a ST STM8S DISCOVERY micro controller, maybe a topic for another video? :)

  • @ajsiemers
    @ajsiemers7 жыл бұрын

    how do you figure out what kind of mosfet you need to use? there seem to be so many choices

  • @ranasaad7456
    @ranasaad74567 жыл бұрын

    Hy GreatScott will you like to tell me about analog relays that able to control electric fan speed please

  • @jonaskorte6873
    @jonaskorte68737 жыл бұрын

    Is the speed used to multiplex also a monitor refresh rate?

  • @bloodyMind4
    @bloodyMind45 жыл бұрын

    How does this compares to an analog multiplexer like, 74HC4051n DIP-16 ? trying to wrap my head around understanding the logic behind multiplexing

  • @boinaomayengbam3683
    @boinaomayengbam36837 жыл бұрын

    i have build 6x6 led matrix which multipeler ic do i need?

  • @shashanka8344
    @shashanka83445 жыл бұрын

    hey i am not able to find TLC5940 LED driver are there any replacements for it?

  • @SwapnilV
    @SwapnilV6 жыл бұрын

    Please do a video explaining analog multiplexer

  • @abdullahnasir8535
    @abdullahnasir85354 жыл бұрын

    And that's the moment you realize you are screwed.. The way he says that defines my entire life 👀

  • @demm7777
    @demm77774 жыл бұрын

    Will adding a small capasitor to each led make multiplexing smoother? (For displaying static pictures)

  • @thesabre8458

    @thesabre8458

    4 жыл бұрын

    Pls dont put in series, putting in parallel will probably create a delay proportional to capacitance(long time since i did electronics, not expert

  • @XXTraumfabrikXX
    @XXTraumfabrikXX5 жыл бұрын

    Hallo Scott ;) Sag mal sich das Schieberegister ? oder haben die noch eine andere Funktion? So wurde es uns in der Schule erklärt. Ein Byte bit für bit rein schieben und dann ins Ausgaberegister übertragen. Das dann pro Bildwiederholung. Liebe Grüße aus dem Münsterland.

  • @ragingcow
    @ragingcow6 жыл бұрын

    good video

  • @fenrir0435
    @fenrir04357 жыл бұрын

    Hi, where do you buy the original resistors?

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

    Hello, what is the minimum frequency to make it looks instant? I want to build it without worrying to go over 1Mhz

  • @saikalyanmishra21
    @saikalyanmishra213 жыл бұрын

    I have 50 addressable (3led x one driver with one data pin ) led strips of 5 meters each, a total of 250 meters. Is it possible to operate as a matrix?

  • @firstlast8252
    @firstlast82523 жыл бұрын

    Is it possible to set up three different phrases on this. We have a shed where we do most of our work. My sister does her jewellery making which we call it the she shed. I do my electronics which we call it the man cave. Then my brother and I also reload our ammo in which we call the war room. If I could get three buttons to choose between the three signs that would be cool

  • @WestSenecaValleyRailroad
    @WestSenecaValleyRailroad7 жыл бұрын

    What type of wire do you use to connect the cathodes and anodes? Is it a spool of wire or can you buy it in straight sections, and what material / gauge?

  • @WestSenecaValleyRailroad

    @WestSenecaValleyRailroad

    7 жыл бұрын

    David Schwaerzle thank you, David. I'm guessing 22 AWG bus wire would suffice.

  • @matheusgoncalves6274
    @matheusgoncalves62748 жыл бұрын

    which datasheet integrated that you used?

  • @anujamerwade3179
    @anujamerwade31797 жыл бұрын

    Where can I download your arduino code for multiplex from?

  • @notyourpersonsperson1380
    @notyourpersonsperson13805 жыл бұрын

    Thanks!

  • @petersamy3970
    @petersamy39705 жыл бұрын

    Can u plz make basics video about semiconductors

  • @FurEngel
    @FurEngel8 жыл бұрын

    Another way to do this, is to use a shift register(s) (such as 74LS595) to turn three I/O pins into 8/16/24 pins etc. The advantage of this, is that it uses only a tiny bit of code to use, and the LEDs do not flicker (they stay on constant).

  • @HeiwaAsobi

    @HeiwaAsobi

    8 жыл бұрын

    Then of course the only disadvantage is that 74HC/LS595 cannot output in PWM. So they will always be at full brightness. Though that's only really a problem if you're using RGB leds and trying color mixing.

  • @davidroberts5090

    @davidroberts5090

    2 жыл бұрын

    @@HeiwaAsobi I am about to try this with the shift register used to select which LED is operating and the power supply is then PWM.

  • @chamikahirushan6549
    @chamikahirushan65496 жыл бұрын

    please can you do tutorial for how use Oscilloscope and etc.

  • @vigitronicsvighneshganage7952
    @vigitronicsvighneshganage79527 жыл бұрын

    can this some how be made into a LED Oscilloscope

  • @vidanatural_oficial
    @vidanatural_oficial7 жыл бұрын

    hello friend, after one hour studying, I´m sick, I don't understand your reasons yet, I can't look to the project the same way as you did. If only one led will be played each time, and everything will be controled by software, catode can be controled by IO port and anode by another IO and 2n7000 N-channel mosfet (for exemple), just need a 100 to 220 R resitor in catode. Did I undertand anything wrong?

  • @LogicalLokesh
    @LogicalLokesh6 жыл бұрын

    Which software you use to edit videos.

  • @mrfoodcart16
    @mrfoodcart168 жыл бұрын

    I didn't understand a thing but it looks cool

  • @manpreetsinghparmar3847

    @manpreetsinghparmar3847

    6 жыл бұрын

    Hehehe 😅✌ Nice one

  • @Kantaros

    @Kantaros

    6 жыл бұрын

    Eh, electronics isn't really something you can learn in theory. The only way to learn properly is getting to it and building circuits.

  • @Rainbow__cookie

    @Rainbow__cookie

    4 жыл бұрын

    @@Kantaros im into electronics i understand a bit but not that much

  • @andrewzarb4241
    @andrewzarb42417 жыл бұрын

    is it possible to program a clock on the matrix? btw I love ur vids

  • @peksn

    @peksn

    6 жыл бұрын

    Of course xD

  • @iProgramInCpp

    @iProgramInCpp

    6 жыл бұрын

    Yes it can! But you will need more LED's to achieve this.

  • @NeoAnthony
    @NeoAnthony8 жыл бұрын

    What would happen if I use a different type of MOSFET? I am new to this kind of things. I have a bunch of TIP 31C MOSFETs but I am not sure if it will work.

  • @pesho9971

    @pesho9971

    8 жыл бұрын

    +TheNeoAnthony tip 31c is a bipolar transistor not a fet

  • @Rainbow__cookie
    @Rainbow__cookie4 жыл бұрын

    Gate output Sours in 5v Drain ground Is it that the Pinout of a Transistor

  • @sunraygroup
    @sunraygroup5 жыл бұрын

    Hello. I would really like to ask, why you have pull-up resistor with gate and 5v? Isn't the code wrote like: LOW (active) ?

  • @ttoo1830

    @ttoo1830

    3 жыл бұрын

    2021 now, and i have the same question XD

  • @kyleritchart223
    @kyleritchart2236 жыл бұрын

    Does it matter what kind of mosfet is used?

  • @yasinend7751
    @yasinend77515 жыл бұрын

    it is great how i contact with you to get other information

  • @johnacsyen
    @johnacsyen6 жыл бұрын

    @1:14, where to buy the straight wire that bridges the LEDs? Thanjs

  • @domotdow

    @domotdow

    6 жыл бұрын

    It's called Buss Wire, it is used in application like these.

  • @paintfree1

    @paintfree1

    5 жыл бұрын

    you can just use the core of a solid copper wire :)

  • @7Zocker1997
    @7Zocker19978 жыл бұрын

    Whats the programm wich do you use ?

  • @Minecraftgamer-lk4do
    @Minecraftgamer-lk4do4 жыл бұрын

    That's great

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

    very cool :)

  • @rs45888
    @rs458887 жыл бұрын

    So from where can the codes be downloaded?

  • @MHUPSTOCK
    @MHUPSTOCK5 жыл бұрын

    Sir is there any channel for learning Arduino programming and electronic PCB schematic designing on paper and practically execution... Please sir help ....we wanna learn basics .....Indian professor don't know basics that's why our basics are very weak .....if you gonna teaches then we will fully support you

  • @meepk633

    @meepk633

    5 жыл бұрын

    If you want to learn schematics, try building circuits in Falstad simulator and then creating schematics in EasyEDA. Both are free and you can find them on google. Falstad has many prebuilt circuits you can browse to get an idea of how things work. Then you can take those building blocks and create your own circuits. EasyEDA is more complex, but it gives you all you need to draw schematics. After you make a few, you'll be able to draw them on paper. For Arduino coding, there are so many tutorials on KZread and elsewhere. But my suggestion is just to start a beginners project, copy the code word for word, and you will eventually start picking up knowledge along the way. In general, just fake it till you make it. Copy other people's work and things will start to make sense as you become more familiar. Any questions you might have are probably already answered on the Arduino forums, Stackexchange or Reddit.

  • @Assassinscreed_in
    @Assassinscreed_in5 жыл бұрын

    Suggest me any project for my college mini project

  • @commoncure3335
    @commoncure33353 жыл бұрын

    how did you fit the mosfets into the breadboard? did you hammer them in??

  • @davidstech1445

    @davidstech1445

    3 жыл бұрын

    The breadboards have holes in them 2.54mm large. The MOSFET leads are the same size, so they simply push in. They can be removed and re-used with no difficulty.

  • @km5405
    @km54055 жыл бұрын

    that's a lot of pins!.......how about using shift registers though? :-)

  • @jmdharis
    @jmdharis9 жыл бұрын

    can you use an arduino uno instead ? and how things will change when i will use rgb leds ?

  • @user-qo4qe5py3v

    @user-qo4qe5py3v

    9 жыл бұрын

    im pretty sure you can use Arduino Uno since you got the IO pins. And i dont thing there is any change since you use the same pins : ]

  • @theobellash6440
    @theobellash64403 жыл бұрын

    Niiiiiice!!!

  • @souravmahanty7025
    @souravmahanty70258 жыл бұрын

    A much simpler way to multiplex is to use the MAX7219 chip. You can buy cheap LED matrix modules off of ebay (around 98 cents). Just putting that out there.

  • @nextstorming3908

    @nextstorming3908

    8 жыл бұрын

    I was yelling at the screen trying to tell him to use the max chip

  • @BogotaBolo
    @BogotaBolo5 жыл бұрын

    Can you maybe explain mosfeets in another video? i dont get it.

Келесі