Happy New year! I hope it will be a good one for everyone
@UnexpectedMaker6 жыл бұрын
Finally! Great explanation.. I'd been wondering how you set the floating state of the "off" pin... it never occurred to me to make it an input! You guys are so clever!
@Davedarko6 жыл бұрын
it's not called Daveplexing for a reason though :p
@Hasitier6 жыл бұрын
Unexpected Maker unexpected solution? 😀
@TheEmbeddedHobbyist6 жыл бұрын
it's a good way to drive a 1-wire interface. set the port to low, set it to "output" to drive the pin low, set to "input" to let the pullup resistor pull it high. read state of pin while an "input" to read data back
@ChunkySteveo6 жыл бұрын
Brilliant write up on how it all works, especially what happens with the "not connected" pin as being an input, great!
@arunlaljayaraman15543 жыл бұрын
It was a new concept for me, and you explained it beautifully through an actual project
@lynnwilliam5 жыл бұрын
Great video, glad to see people from Eire making videos
@MrOO-ix5qr2 жыл бұрын
thanks Brian for detailed explanation of logic and code to execute it.
@johnacsyen23 күн бұрын
6 years late but thanks. Was using ws2812b for addressing 4 leds. Now I will try to charlieplex 4 regular leds with 3 lines
@Davedarko6 жыл бұрын
Really enjoyed the video and thanks a lot for the shoutout :)
@HariWiguna6 жыл бұрын
Hi Brian! Fantastic explanation. I bet animating the graphics was a lot of work, but it really helps illustrating the various paths. Great job!
@BrianLough6 жыл бұрын
Thanks Hari! The video editor I use actually makes that highlighting an animation stuff pretty easy, it's pretty much the main reason I use it!
@electroquests2 жыл бұрын
Thank you for the explanation. You explained it very well!
@JeremyCook4 жыл бұрын
Thanks for the video! Good reference, and well produced :-)
@gregclare6 жыл бұрын
Best wishes for the New Year Brian. An awesome, well explained, and concise instructional video to kick-off 2019. :)
@jasonhernandez62914 жыл бұрын
Good stuff .. I had a few questions on this process I'm goin to work with a 4 pin output and based on the formula I'm only limitd to 12 leds .. can there be an exception to put more? And how do u determine the value of the resistors to use? Is it similar as if they were runnin in series or parallel?
@Magic-Smoke6 жыл бұрын
Very clear explanation thanks Brian!
@jims4086 жыл бұрын
Really clear explanation; many thanks!
@morgulbrut6 жыл бұрын
Thanks mate. This is a super useful tutorial...
@ThomasHumphries13373 жыл бұрын
Hi there. Thank you very much for this. You have helped me in some questions. My only question is, could you do this for 4 rgb leds and 4 pins on d5 d6 d9 d10 pwm pins.
@DEXTOROR4 жыл бұрын
Hello, I would like to ask you something that happens to me in my circuit when I turn on 2 LEDs, a third lights up very little but it is only in a combination, what could it be?
@ahmedal-musharraf92426 жыл бұрын
Thanks for the great video Brian.
@beebz6665 жыл бұрын
Charlie would be proud.
@TheTinkerDad6 жыл бұрын
Excellent video Brian!
@GrimWreeper16 жыл бұрын
Great concise video. I was wondering how the DC was dealt with, Tri-state FTW.
@TheRealBobHickman6 жыл бұрын
Great video. You can also use the charlieplexing technique to multiplex inputs instead of driving outputs. Great if you want to scan a lot of buttons :)
@Davedarko6 жыл бұрын
Good solution, if you don't necessarily need to be able to press buttons simultaneously.
@Korni08166 жыл бұрын
Great concept for controlling many LEDs! Next project could be a 3x3x3 LED cube controlled by an Attiny85
@Davedarko6 жыл бұрын
That's 27 LEDs and technically you only have 5 pins for that technique. That would give you 5*4 Leds. Sadly the reset pin isn't as powerful as an IO pin, so even with setting the fuse to use it that way wouldn't help.
@willwahlberg18903 жыл бұрын
Does this only work with LED's?
@SianaGearz6 жыл бұрын
You can light more than one LED at a time, but only a handful and it gets pretty complex, and if you were aiming for consistent brightness no matter how many LEDs are operating, it becomes even more pointless rather than just running through every combination of pin values and having consistent delays between them.
@Davedarko6 жыл бұрын
I always wondered how you could match that with what you want to show. It would help with brightness if you have less frames to go through.
@MichaelSwan1016 жыл бұрын
can't believe I've only just realized why its called PBC3
@BrianLough6 жыл бұрын
Sure an Irish lad like you you'd never know 😂
@frankmcalinden36993 жыл бұрын
@@amosba I thought it was version 3 of the board LOL!!!
@UndernetSystems6 жыл бұрын
Very interesting video
@Hasitier6 жыл бұрын
You technically could also light 2 leds at a time (as your d3 pin shows nicely but a little dim) although you are limited in the choices which 2 you can light at one time. If you do bigger Charlieplexing matrixes you could even light up more at a time and have a bigger choice of which leds are lit together. But keep in mind the maximum current a pin can source or sink (as mentioned in other comments here). Not sure if it’s better to get each led it’s own resistor then if you would want to do this because of the brightness. But maybe I’ll try that out one day.
@farrukh43036 жыл бұрын
Thanks, really amazing. Is there some Arduino library for it?
@crocoduckprancy99706 жыл бұрын
Yes, he told that in the video
@SkottTomas6 жыл бұрын
This could be a really great tutorial, but the audio seems to switch on and off all teh time on my ipad :-(
@TMS51006 жыл бұрын
good old esp8266 pin hell.
@Davedarko6 жыл бұрын
It's a war zone..
@andymouse6 жыл бұрын
useful vid...….have a great new year !
@BrianLough6 жыл бұрын
Thanks Andy, many happy returns!
@euehshsysdue6 жыл бұрын
Nice to see a short, usefull video. Most of your video's are long live streams, those are to long for me to watch.
@BrianLough6 жыл бұрын
Thanks, I'll be stepping away from the streams this year so hopefully I'll get more short videos out.
@manray85134 жыл бұрын
bro, can I use this method for switches?
@BrianLough4 жыл бұрын
I'm not sure, matrixing switches is usually what people do to increase the amount of switches on lower number of pins. Or using a voltage ladder to get multiple on a single adc pin
@manray85134 жыл бұрын
@@BrianLough there's a guy using this method to use switches but he programed it using flashforth, i really don't know how this works kzbin.info/www/bejne/r2XJZHmufrlse6s
@mamidivasudev59884 жыл бұрын
Thanks for sharing this video sir .. sir can you please Send the link of the arduino code what you have explained in this video sir can you please
@squalazzo6 жыл бұрын
mmm... setting a pin LOW is actually equivalent to grounding it? Or how can current flow from a pin high to one low if the low one is not a real gnd???
@BrianLough6 жыл бұрын
Gpio pins can sink a small amount of current, normally the same as they can source. It's fine to do this for LEDs, but you couldn't run a motor off it 😂
@Davedarko6 жыл бұрын
yup. Low is zero is equivalent to GND. Ground is not always earth though. Ground is the 0 reference and everything else is measured in reference to that. You can also connect earth to ground. Then ground is referenced to earth.
@bornach6 жыл бұрын
@@BrianLough For Atmega328p each GPIO pin can source (when high) or sink (when low) 20 mA at VCC = 5 V, 10 mA at VCC = 3 V. However there are also limits to total current sourced or sinked of all the pins on the same port, as well as limits on total current for the whole microcontroller.
@Davedarko6 жыл бұрын
@@bornach since Charlieplexing often means having only one Led turned on at a time, the current would be kept under said total current anyway. With ultra bright LEDs and some resistors it's easy to go sub 20mA as well. My knight rider badfe runs at around 5 to 8 mA iirc
@kokodin58956 жыл бұрын
hello new year wishes of good fortune to all the smart kids to be honest it isn't led related, but more related to one of your older videos which intrigued me, and a little missed purchase i made recently. to the point after watching your video about hacking bluetooth modules into hid device controllers i begin to wonder, how much work would it be to build monster budule project from that, arduino nano, tp4056 and ... 3$ chinese dualshock 3 knokof gamepad. basically making it into pc compatybile wireless controller i made a bad decision during hollyday season by purchasing 3 colorfull "ps3 gamepads" from alliexpress i was mostly looking for a pink and yellow controllers and they were so cute and colorfull on the picture, but as it later turned out they are not compatybile with wireless ps3 connection pc even after installing reqired for oryginal ps3 pads drivers and programs butthe pas itself is solid, and easy to hack all buttons are triggered from separate membrane flex on a plasic bed, analogs can be desoldered and we get some bluetooth glue logic to probe,, 400mAh lion flat battery , 2 vibration motors, and a big empty shell to play with. i could hack it myself making it into normal hid pad on the wire, i done atmega 8 conversions to retro pads in the past, but this just asks for being pc wireless gamepad, so i am looking for some help, or guidence thanks for reading to the end