Electronic Basics #5: How to Multiplex

Поділитися
Вставка
  • Опубліковано 23 лип 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)
  • Наука та технологія

КОМЕНТАРІ • 280

  • @philips170t
    @philips170t 4 роки тому +97

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

  • @abcnishant007
    @abcnishant007 Місяць тому +2

    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 років тому +139

    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.

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

  • @oddjobbob8742
    @oddjobbob8742 2 роки тому

    Your UA-cams are just amazing. Thank you for all the time you take producing them.

  • @jackseley4084
    @jackseley4084 7 років тому +5

    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.

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

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

  • @sandwichchef5042
    @sandwichchef5042 5 років тому

    high quality video with actual explanations. good video

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

  • @Khujandiho
    @Khujandiho 2 роки тому

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

  • @GreyDeathVaccine
    @GreyDeathVaccine 3 роки тому

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

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

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

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

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

  • @jo31b
    @jo31b 7 років тому +1

    Great job brining electronics to the masses. Thank you.

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

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

  • @smokesmoker4301
    @smokesmoker4301 4 роки тому

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

  • @captainMony
    @captainMony 2 місяці тому

    I love that this is just the Basics

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

  • @ncofab46
    @ncofab46 4 роки тому

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

  • @banli8262
    @banli8262 9 років тому

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

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

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

  • @zameerkhan5807
    @zameerkhan5807 3 роки тому

    Awesome bro❤️ loved from INDIA 🇮🇳

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

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

  • @PraveenMax
    @PraveenMax 2 роки тому

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

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

  • @boinaomayengbam3683
    @boinaomayengbam3683 7 років тому

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

  • @ranasaad7456
    @ranasaad7456 7 років тому

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

  • @priyanshubhagat6002
    @priyanshubhagat6002 2 роки тому

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

  • @shashanka8344
    @shashanka8344 5 років тому

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

  • @asajjventress69
    @asajjventress69 5 років тому +1

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

  • @anujamerwade3179
    @anujamerwade3179 7 років тому

    Where can I download your arduino code for multiplex from?

  • @risingmermo
    @risingmermo 3 роки тому

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

  • @fenrir0435
    @fenrir0435 7 років тому

    Hi, where do you buy the original resistors?

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

  • @chamikahirushan6549
    @chamikahirushan6549 6 років тому

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

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

  • @easyelectronics4364
    @easyelectronics4364 6 років тому +1

    Great scott #salute 😍

  • @vigitronicsvighneshganage7952
    @vigitronicsvighneshganage7952 7 років тому

    can this some how be made into a LED Oscilloscope

  • @jonaskorte6873
    @jonaskorte6873 7 років тому

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

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

  • @yasinend7751
    @yasinend7751 5 років тому

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

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

  • @matheusgoncalves6274
    @matheusgoncalves6274 8 років тому

    which datasheet integrated that you used?

  • @roopakleaprobots5825
    @roopakleaprobots5825 5 років тому

    Scott u are really great

  • @petersamy3970
    @petersamy3970 5 років тому

    Can u plz make basics video about semiconductors

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

  • @santoroma17
    @santoroma17 8 років тому +6

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

  • @vishalmayannache5389
    @vishalmayannache5389 7 років тому

    best great scott

  • @chatchaisi1
    @chatchaisi1 8 років тому

    i like this video . thank you for this

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

  • @7Zocker1997
    @7Zocker1997 8 років тому

    Whats the programm wich do you use ?

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

  • @Cheburashka_420
    @Cheburashka_420 2 дні тому

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

  • @LogicalLokesh
    @LogicalLokesh 6 років тому

    Which software you use to edit videos.

  • @rs45888
    @rs45888 7 років тому

    So from where can the codes be downloaded?

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

  • @Assassinscreed_in
    @Assassinscreed_in 5 років тому

    Suggest me any project for my college mini project

  • @ionkinetic
    @ionkinetic 10 років тому

    Great video

  • @Rainbow__cookie
    @Rainbow__cookie 4 роки тому

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

  • @BogotaBolo
    @BogotaBolo 5 років тому

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

  • @SwapnilV
    @SwapnilV 6 років тому

    Please do a video explaining analog multiplexer

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

  • @kyleritchart223
    @kyleritchart223 6 років тому

    Does it matter what kind of mosfet is used?

  • @xbox466
    @xbox466 9 років тому +1

    Good tutorial

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

  • @nehmeeladem
    @nehmeeladem 7 років тому

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

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

  • @alibehrouz9833
    @alibehrouz9833 7 років тому +1

    very good thanks

  • @jlucasound
    @jlucasound 2 роки тому

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

  • @rocketdudes1040
    @rocketdudes1040 10 років тому

    now i understand! how cubes work

  • @superchered58chevy
    @superchered58chevy 3 роки тому

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

  • @artjomvartanyan5765
    @artjomvartanyan5765 4 роки тому

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

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

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

  • @nekrutnikolai
    @nekrutnikolai 8 років тому

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

  • @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☺️🙌

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

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

  • @prathamgoyal297
    @prathamgoyal297 4 роки тому

    Can you give a tutorial about Tlc5940

  • @ashleyroy7131
    @ashleyroy7131 3 роки тому

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

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

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

  • @km5405
    @km5405 5 років тому +1

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