Electronic Basics #5: How to Multiplex

Поделиться
HTML-код
  • Опубликовано: 30 июл 2024
  • 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)
  • НаукаНаука

Комментарии • 279

  • @philips170t
    @philips170t 4 года назад +98

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

  • @abcnishant007
    @abcnishant007 2 месяца назад +3

    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!

  • @FrancescoCositore
    @FrancescoCositore 9 лет назад +138

    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.

  • @jackseley4084
    @jackseley4084 7 лет назад +5

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

  • @wontmk
    @wontmk 9 лет назад +3

    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.

  • @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.

  • @modx5534
    @modx5534 3 года назад

    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
    @gavinpeters9531 3 года назад

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

  • @nathanial7249
    @nathanial7249 4 года назад

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

  • @andymouse
    @andymouse 8 лет назад +2

    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!

  • @kjamesirwin3316
    @kjamesirwin3316 3 года назад

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

  • @sandwichchef5042
    @sandwichchef5042 5 лет назад

    high quality video with actual explanations. good video

  • @richardwilliamjohnson8566
    @richardwilliamjohnson8566 5 лет назад +1

    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

  • @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

  • @GreyDeathVaccine
    @GreyDeathVaccine 3 года назад

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

  • @Khujandiho
    @Khujandiho 2 года назад

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

  • @dChandrahas
    @dChandrahas 3 года назад

    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?

  • @World_Theory
    @World_Theory 5 лет назад +3

    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.)

  • @bloodyMind4
    @bloodyMind4 5 лет назад +1

    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

  • @jonathanborden4856
    @jonathanborden4856 9 лет назад

    Great explanation! Thanks for this video.

  • @KiR_3d
    @KiR_3d 6 лет назад

    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

  • @1337Shockwav3
    @1337Shockwav3 5 лет назад

    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.

  • @kaldislp7241
    @kaldislp7241 6 лет назад

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

  • @benwinkel
    @benwinkel 8 лет назад +5

    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 лет назад +3

      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

  • @andrewlushington1219
    @andrewlushington1219 6 лет назад

    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 .

  • @padmalayarawal3091
    @padmalayarawal3091 4 года назад +1

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

  • @jo31b
    @jo31b 7 лет назад +1

    Great job brining electronics to the masses. Thank you.

  • @banli8262
    @banli8262 9 лет назад

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

  • @alurihariharan5082
    @alurihariharan5082 7 лет назад

    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

  • @VspaceKSP
    @VspaceKSP 4 года назад +1

    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

  • @Team98
    @Team98 7 лет назад

    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
    @priyanshubhagat6002 2 года назад

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

  • @HaLo2FrEeEk
    @HaLo2FrEeEk 7 лет назад

    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!

  • @ranasaad7456
    @ranasaad7456 7 лет назад

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

  • @smokesmoker4301
    @smokesmoker4301 4 года назад

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

  • @gpmscosta
    @gpmscosta 4 года назад

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

  • @bloodyMind4
    @bloodyMind4 5 лет назад

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

  • @ajsiemers
    @ajsiemers 7 лет назад

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

  • @andreasj.3404
    @andreasj.3404 7 лет назад

    Nice Work!

  • @Etrehumain123
    @Etrehumain123 Год назад

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

  • @shashanka8344
    @shashanka8344 5 лет назад

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

  • @ncofab46
    @ncofab46 5 лет назад

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

  • @boinaomayengbam3683
    @boinaomayengbam3683 7 лет назад

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

  • @roopakleaprobots5825
    @roopakleaprobots5825 5 лет назад

    Scott u are really great

  • @PraveenMax
    @PraveenMax 2 года назад

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

  • @firstlast8252
    @firstlast8252 3 года назад

    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

  • @saikalyanmishra21
    @saikalyanmishra21 3 года назад

    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?

  • @risingmermo
    @risingmermo 3 года назад

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

  • @vidanatural_oficial
    @vidanatural_oficial 7 лет назад

    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?

  • @asajjventress69
    @asajjventress69 5 лет назад +1

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

  • @zameerkhan5807
    @zameerkhan5807 3 года назад

    Awesome bro❤️ loved from INDIA 🇮🇳

  • @chatchaisi1
    @chatchaisi1 8 лет назад

    i like this video . thank you for this

  • @easyelectronics4364
    @easyelectronics4364 6 лет назад +1

    Great scott #salute 😍

  • @captainMony
    @captainMony 2 месяца назад

    I love that this is just the Basics

  • @jonaskorte6873
    @jonaskorte6873 7 лет назад

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

  • @anujamerwade3179
    @anujamerwade3179 7 лет назад

    Where can I download your arduino code for multiplex from?

  • @Cheburashka_420
    @Cheburashka_420 9 дней назад

    The cube is so freaking cool man wow. Now I have a new goal after I figure out a power supply from scratch.

  • @netsurfer10000
    @netsurfer10000 8 лет назад

    That's so simple and brilliant.

    • @netsurfer10000
      @netsurfer10000 8 лет назад

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

  • @santoroma17
    @santoroma17 8 лет назад +6

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

  • @XXTraumfabrikXX
    @XXTraumfabrikXX 5 лет назад

    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.

  • @ionkinetic
    @ionkinetic 10 лет назад

    Great video

  • @vigitronicsvighneshganage7952
    @vigitronicsvighneshganage7952 7 лет назад

    can this some how be made into a LED Oscilloscope

  • @vishalmayannache5389
    @vishalmayannache5389 7 лет назад

    best great scott

  • @xbox466
    @xbox466 9 лет назад +1

    Good tutorial

  • @fenrir0435
    @fenrir0435 7 лет назад

    Hi, where do you buy the original resistors?

  • @chamikahirushan6549
    @chamikahirushan6549 6 лет назад

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

  • @Rainbow__cookie
    @Rainbow__cookie 4 года назад

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

  • @NeoAnthony
    @NeoAnthony 8 лет назад

    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 лет назад +2

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

  • @kitkat224
    @kitkat224 6 лет назад

    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? :)

  • @yasinend7751
    @yasinend7751 5 лет назад

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

  • @demm7777
    @demm7777 4 года назад +1

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

    • @thesabre8458
      @thesabre8458 4 года назад +1

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

  • @ExtcWorld
    @ExtcWorld 4 года назад

    Sir i want to design vaccum Fluroscent Display based audio spectrum analyzer using this led driver with additional output transistor circuit to drive the grids and segment with high volts, it will be 5band 10seg per band analyzer , but dont know how to write program for it can you please help me with the program m having the arduino uno. The vf display is from old car radio system.
    Or can you make a video on vfd display spectrum analyzer using dedicated vfd chips pt6311 and vfd, as vfd's are great electronics stuff, looking forward for your reply, thank you☺️🙌

  • @WestSenecaValleyRailroad
    @WestSenecaValleyRailroad 7 лет назад

    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.

  • @alibehrouz9833
    @alibehrouz9833 7 лет назад +1

    very good thanks

  • @BogotaBolo
    @BogotaBolo 5 лет назад

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

  • @matheusgoncalves6274
    @matheusgoncalves6274 8 лет назад

    which datasheet integrated that you used?

  • @johnacsyen
    @johnacsyen 6 лет назад +2

    @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 :)

  • @superchered58chevy
    @superchered58chevy 3 года назад

    How do i figure out how many LED drivers i need for 8x8x8

  • @kyleritchart223
    @kyleritchart223 6 лет назад

    Does it matter what kind of mosfet is used?

  • @jlucasound
    @jlucasound 2 года назад

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

  • @andrewzarb4241
    @andrewzarb4241 7 лет назад +6

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

    • @peksn
      @peksn 6 лет назад +2

      Of course xD

    • @iProgramInCpp
      @iProgramInCpp 6 лет назад +2

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

  • @rs45888
    @rs45888 7 лет назад

    So from where can the codes be downloaded?

  • @petersamy3970
    @petersamy3970 6 лет назад

    Can u plz make basics video about semiconductors

  • @nehmeeladem
    @nehmeeladem 7 лет назад

    i can't download the code and the schematics how can i get them ?

  • @ashleyroy7131
    @ashleyroy7131 3 года назад

    I am having problems from changing it from the sign wave, could someone please help me?

  • @sunraygroup
    @sunraygroup 5 лет назад

    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

  • @artjomvartanyan5765
    @artjomvartanyan5765 4 года назад

    How can one connect a rtc to it to show the time, can someone help

  • @LogicalLokesh
    @LogicalLokesh 6 лет назад

    Which software you use to edit videos.

  • @rocketdudes1040
    @rocketdudes1040 10 лет назад

    now i understand! how cubes work

  • @Assassinscreed_in
    @Assassinscreed_in 5 лет назад

    Suggest me any project for my college mini project

  • @7Zocker1997
    @7Zocker1997 8 лет назад

    Whats the programm wich do you use ?

  • @joewell6435
    @joewell6435 9 лет назад +4

    how could I do 30x30? if one pin is taken up per row and column, 30 + 30 = 60 more than the arduino mega.

    • @skyfighter_64
      @skyfighter_64 7 лет назад +2

      Joe Well
      I think you could use the IC 74HC595

    • @skyfighter_64
      @skyfighter_64 7 лет назад

      Joe Well
      I think you could use the IC 74HC595

    • @shadowwingsketcher
      @shadowwingsketcher 7 лет назад +1

      Joe Well multiplex a multiplex XD

    • @peksn
      @peksn 6 лет назад

      Exactly lol

    • @DarkSlayer-xk3fb
      @DarkSlayer-xk3fb 6 лет назад

      Multiplex a multiplex multiplexing a multiplex

  • @ragingcow
    @ragingcow 6 лет назад

    good video

  • @nekrutnikolai
    @nekrutnikolai 8 лет назад

    How can you open the Arduino Code+Schematic mediafire download on Mac OSX, it is a .rar file for windows ?

  • @jmdharis
    @jmdharis 9 лет назад

    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 : ]

  • @abdullahnasir8535
    @abdullahnasir8535 4 года назад +5

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

  • @SwapnilV
    @SwapnilV 6 лет назад

    Please do a video explaining analog multiplexer

  • @commoncure3335
    @commoncure3335 3 года назад

    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.

  • @Driv3r96
    @Driv3r96 4 года назад

    I'm a bit confused on the wiring of the 1K resistors

  • @mazrimchj
    @mazrimchj 8 лет назад

    Possible with RGB LEDs controlled by 4 legs (R,G,B,cathode)?