A quick look at Charlieplexing

  Рет қаралды 11,667

Brian Lough

Brian Lough

Күн бұрын

Пікірлер: 57
@BrianLough
@BrianLough 6 жыл бұрын
Happy New year! I hope it will be a good one for everyone
@UnexpectedMaker
@UnexpectedMaker 6 жыл бұрын
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!
@Davedarko
@Davedarko 6 жыл бұрын
it's not called Daveplexing for a reason though :p
@Hasitier
@Hasitier 6 жыл бұрын
Unexpected Maker unexpected solution? 😀
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist 6 жыл бұрын
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
@ChunkySteveo
@ChunkySteveo 6 жыл бұрын
Brilliant write up on how it all works, especially what happens with the "not connected" pin as being an input, great!
@arunlaljayaraman1554
@arunlaljayaraman1554 3 жыл бұрын
It was a new concept for me, and you explained it beautifully through an actual project
@lynnwilliam
@lynnwilliam 5 жыл бұрын
Great video, glad to see people from Eire making videos
@MrOO-ix5qr
@MrOO-ix5qr 2 жыл бұрын
thanks Brian for detailed explanation of logic and code to execute it.
@johnacsyen
@johnacsyen 23 күн бұрын
6 years late but thanks. Was using ws2812b for addressing 4 leds. Now I will try to charlieplex 4 regular leds with 3 lines
@Davedarko
@Davedarko 6 жыл бұрын
Really enjoyed the video and thanks a lot for the shoutout :)
@HariWiguna
@HariWiguna 6 жыл бұрын
Hi Brian! Fantastic explanation. I bet animating the graphics was a lot of work, but it really helps illustrating the various paths. Great job!
@BrianLough
@BrianLough 6 жыл бұрын
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!
@electroquests
@electroquests 2 жыл бұрын
Thank you for the explanation. You explained it very well!
@JeremyCook
@JeremyCook 4 жыл бұрын
Thanks for the video! Good reference, and well produced :-)
@gregclare
@gregclare 6 жыл бұрын
Best wishes for the New Year Brian. An awesome, well explained, and concise instructional video to kick-off 2019. :)
@jasonhernandez6291
@jasonhernandez6291 4 жыл бұрын
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-Smoke
@Magic-Smoke 6 жыл бұрын
Very clear explanation thanks Brian!
@jims408
@jims408 6 жыл бұрын
Really clear explanation; many thanks!
@morgulbrut
@morgulbrut 6 жыл бұрын
Thanks mate. This is a super useful tutorial...
@ThomasHumphries1337
@ThomasHumphries1337 3 жыл бұрын
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.
@DEXTOROR
@DEXTOROR 4 жыл бұрын
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-musharraf9242
@ahmedal-musharraf9242 6 жыл бұрын
Thanks for the great video Brian.
@beebz666
@beebz666 5 жыл бұрын
Charlie would be proud.
@TheTinkerDad
@TheTinkerDad 6 жыл бұрын
Excellent video Brian!
@GrimWreeper1
@GrimWreeper1 6 жыл бұрын
Great concise video. I was wondering how the DC was dealt with, Tri-state FTW.
@TheRealBobHickman
@TheRealBobHickman 6 жыл бұрын
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 :)
@Davedarko
@Davedarko 6 жыл бұрын
Good solution, if you don't necessarily need to be able to press buttons simultaneously.
@Korni0816
@Korni0816 6 жыл бұрын
Great concept for controlling many LEDs! Next project could be a 3x3x3 LED cube controlled by an Attiny85
@Davedarko
@Davedarko 6 жыл бұрын
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.
@willwahlberg1890
@willwahlberg1890 3 жыл бұрын
Does this only work with LED's?
@SianaGearz
@SianaGearz 6 жыл бұрын
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.
@Davedarko
@Davedarko 6 жыл бұрын
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.
@MichaelSwan101
@MichaelSwan101 6 жыл бұрын
can't believe I've only just realized why its called PBC3
@BrianLough
@BrianLough 6 жыл бұрын
Sure an Irish lad like you you'd never know 😂
@frankmcalinden3699
@frankmcalinden3699 3 жыл бұрын
@@amosba I thought it was version 3 of the board LOL!!!
@UndernetSystems
@UndernetSystems 6 жыл бұрын
Very interesting video
@Hasitier
@Hasitier 6 жыл бұрын
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.
@farrukh4303
@farrukh4303 6 жыл бұрын
Thanks, really amazing. Is there some Arduino library for it?
@crocoduckprancy9970
@crocoduckprancy9970 6 жыл бұрын
Yes, he told that in the video
@SkottTomas
@SkottTomas 6 жыл бұрын
This could be a really great tutorial, but the audio seems to switch on and off all teh time on my ipad :-(
@TMS5100
@TMS5100 6 жыл бұрын
good old esp8266 pin hell.
@Davedarko
@Davedarko 6 жыл бұрын
It's a war zone..
@andymouse
@andymouse 6 жыл бұрын
useful vid...….have a great new year !
@BrianLough
@BrianLough 6 жыл бұрын
Thanks Andy, many happy returns!
@euehshsysdue
@euehshsysdue 6 жыл бұрын
Nice to see a short, usefull video. Most of your video's are long live streams, those are to long for me to watch.
@BrianLough
@BrianLough 6 жыл бұрын
Thanks, I'll be stepping away from the streams this year so hopefully I'll get more short videos out.
@manray8513
@manray8513 4 жыл бұрын
bro, can I use this method for switches?
@BrianLough
@BrianLough 4 жыл бұрын
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
@manray8513
@manray8513 4 жыл бұрын
@@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
@mamidivasudev5988
@mamidivasudev5988 4 жыл бұрын
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
@squalazzo
@squalazzo 6 жыл бұрын
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???
@BrianLough
@BrianLough 6 жыл бұрын
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 😂
@Davedarko
@Davedarko 6 жыл бұрын
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.
@bornach
@bornach 6 жыл бұрын
@@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.
@Davedarko
@Davedarko 6 жыл бұрын
@@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
@kokodin5895
@kokodin5895 6 жыл бұрын
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
From blink to DIY Mini Game - Charlieplexing explained
15:12
bitluni
Рет қаралды 127 М.
Look Mum No Wires - This will blow your mind
5:16
atomic14
Рет қаралды 1,9 МЛН
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Charlieplexing Buttons and LEDs at the Same Time - How Hard Can It Be?
16:28
Reverse Mounted LEDs (Diffusing LEDs through the PCB material)
15:42
Charlieplexing Using A Microcontroller  / Arduino
7:14
0033mer
Рет қаралды 5 М.
The simplest LED driver I've ever used
8:03
LeftyMaker
Рет қаралды 12 М.
tinkering with charlieplexing
14:05
pileofstuff
Рет қаралды 3,3 М.
Build Your Own Retro 2-Player Game!
6:33
The Wrench
Рет қаралды 23 М.
How Charlieplexing Works
6:11
Hammes Hacks
Рет қаралды 20 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,4 МЛН
How to Charlieplex LEDs with an Arduino
10:07
learnelectronics
Рет қаралды 9 М.