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
“I hope you learn something today”... I do, I really do. Thank you.
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!
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.
Your KZreads are just amazing. Thank you for all the time you take producing them.
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
9 жыл бұрын
Francesco Cositore Thanks! That is why I do this!
@bratasundarghosh4677
6 жыл бұрын
Where is the circuit diagram? I need it?
I made this, and it helps me alot with graphing coordanitates. Thank you Great Scott!
Excellent tutorial. Very easy to understand and lots of fun. Thank you for making your videos, I reference them quite often for my projects.
Thank you Scott, that makes it 100% easier to understand
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!
Thanks for this. Im just starting to build something with a matrix and this really helped understanding.
high quality video with actual explanations. good video
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
Intro is AWESOME! :D I started watching channel from new episodes (2020) and I prefer this techno intro.
You just fixed the problem that I was thinking for years. Thank you
Wow. Nice! You helped me solve a big problem with my 50 LED display. Many thanks
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
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!
Great explanation! Thanks for this video.
Alter du bist der Chef überhaupt! Krasser scheiß. Hut ab! Danke für die geilen Videos! Bitte weitermachen!!!
Great job brining electronics to the masses. Thank you.
very useful thing i have learned from this video is using of mosfet for common cathode RGB led strip
I love that this is just the Basics
Awesome bro❤️ loved from INDIA 🇮🇳
That's so simple and brilliant.
@netsurfer10000
8 жыл бұрын
also the code. holy crap. this is so simple. thank you for this series.
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.)
Although I didn't completely understand how it works I have a somewhat better understanding than before so thank you
best great scott
@vishalmayannache5389
7 жыл бұрын
making the project easyer and faster............ great
Nice Work!
Great scott #salute 😍
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
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!
Scott u are really great
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
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
i like this video . thank you for this
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?
"...and I will see you next time." My, how that statement has evolved!! :-)
Awesome tutorials 👍 Can you please tell that is it possible to get the arduino code which is uploaded on our board to our laptop ?
Great video
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
Amazing tutorial. Have you considered a charlieplexing it's similar ish
Good tutorial
hey Scott , what is the software you are using for the schematics in the videos?
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
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 .
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.
now i understand! how cubes work
I would love to see a video on charlieplexing :P i would love to see how you implement it
Hi , can I ask is this arduino sketch can control individual LED fade in and out ?
very good thanks
Is there another multiplexer close enough to the TLC5940 that can be used in case this multiplexer isn't available? Thanks in advance, Scott
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)
Sir, Is there any way to light up the LED cube in different patterns without coding and using just discrete components?
Nice video. What will happen if I am not using MOSFET to power up LEDs?
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
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? :)
how do you figure out what kind of mosfet you need to use? there seem to be so many choices
Hy GreatScott will you like to tell me about analog relays that able to control electric fan speed please
Is the speed used to multiplex also a monitor refresh rate?
How does this compares to an analog multiplexer like, 74HC4051n DIP-16 ? trying to wrap my head around understanding the logic behind multiplexing
i have build 6x6 led matrix which multipeler ic do i need?
hey i am not able to find TLC5940 LED driver are there any replacements for it?
Please do a video explaining analog multiplexer
And that's the moment you realize you are screwed.. The way he says that defines my entire life 👀
Will adding a small capasitor to each led make multiplexing smoother? (For displaying static pictures)
@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
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.
good video
Hi, where do you buy the original resistors?
Hello, what is the minimum frequency to make it looks instant? I want to build it without worrying to go over 1Mhz
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?
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
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
7 жыл бұрын
David Schwaerzle thank you, David. I'm guessing 22 AWG bus wire would suffice.
which datasheet integrated that you used?
Where can I download your arduino code for multiplex from?
Thanks!
Can u plz make basics video about semiconductors
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
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
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.
please can you do tutorial for how use Oscilloscope and etc.
can this some how be made into a LED Oscilloscope
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?
Which software you use to edit videos.
I didn't understand a thing but it looks cool
@manpreetsinghparmar3847
6 жыл бұрын
Hehehe 😅✌ Nice one
@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
4 жыл бұрын
@@Kantaros im into electronics i understand a bit but not that much
is it possible to program a clock on the matrix? btw I love ur vids
@peksn
6 жыл бұрын
Of course xD
@iProgramInCpp
6 жыл бұрын
Yes it can! But you will need more LED's to achieve this.
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
8 жыл бұрын
+TheNeoAnthony tip 31c is a bipolar transistor not a fet
Gate output Sours in 5v Drain ground Is it that the Pinout of a Transistor
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
3 жыл бұрын
2021 now, and i have the same question XD
Does it matter what kind of mosfet is used?
it is great how i contact with you to get other information
@1:14, where to buy the straight wire that bridges the LEDs? Thanjs
@domotdow
6 жыл бұрын
It's called Buss Wire, it is used in application like these.
@paintfree1
5 жыл бұрын
you can just use the core of a solid copper wire :)
Whats the programm wich do you use ?
That's great
very cool :)
So from where can the codes be downloaded?
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
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.
Suggest me any project for my college mini project
how did you fit the mosfets into the breadboard? did you hammer them in??
@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.
that's a lot of pins!.......how about using shift registers though? :-)
can you use an arduino uno instead ? and how things will change when i will use rgb leds ?
@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 : ]
Niiiiiice!!!
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
8 жыл бұрын
I was yelling at the screen trying to tell him to use the max chip
Can you maybe explain mosfeets in another video? i dont get it.