tinkering with charlieplexing

  Рет қаралды 3,340

pileofstuff

pileofstuff

Күн бұрын

Charlieplexing is a cool little method of controlling lots of LEDs from far less than lots of microcontroller pins.
It's not a new thing, but its something I never really got around to playing with - until now.
references:
circuitdigest....
www.instructab...
en.wikipedia.o...
-----
My tip jar: / pileofstuff
If you are OK with me getting a commission on your e-bay purchases, feel free to use my affiliate link: ebay.to/33IF7PA
-----
This isn't the only way to do it.
It's probably not the best way to do it.
But it's how I do it.

Пікірлер: 37
@AnotherMaker
@AnotherMaker 4 жыл бұрын
Seriously one of the best explanations that I've seen. Great video.
@tomgeorge3726
@tomgeorge3726 4 жыл бұрын
Nice video, I have some charlieplex pcbs that I got ages ago on Aliexpress. Good fun to play with and produce a nice LED array display.👍👍👍
@richfiles
@richfiles 4 жыл бұрын
I've been aware of charlieplexing for ages, but this is the first time I'd seen the technique used to drive optocouplers. Very nifty idea indeed!
@davidv1289
@davidv1289 4 жыл бұрын
Thanks for an interesting video. It is a well documented but little known fact that Arduino pins programmed as inputs are high impedance. This allows them to be used with tri-state logic such as a data bus - I use this to allow an Arduino to emulate RAM, ROM, and EEPROMs in microprocessor controlled test equipment for troubleshooting purposes.
@SouperDaveCDN
@SouperDaveCDN 4 жыл бұрын
An internet salute: o7 from a fellow Canadian. Keep up the good work and casual teaching and learning. Cheers
@sdgelectronics
@sdgelectronics 4 жыл бұрын
I seem to recall it originating in a Maxim app note, back when they posted them out monthly. I had it working on a parallel port on a PC in the absence of no microcontroller hardware
@pileofstuff
@pileofstuff 4 жыл бұрын
That sounds like a fun hack.
@MarcRidders
@MarcRidders 4 жыл бұрын
Congrats, 6k+ subscribers.
@KARLLARK100
@KARLLARK100 4 жыл бұрын
as always love your vids,.//., going to try this later ta for the input,.//.,
@AndyCallaway
@AndyCallaway 4 жыл бұрын
This is relevant to my interests.
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist 4 жыл бұрын
I just think of it as keyboard scanning in reverse. Nice looking beer.
@ClaudioRay
@ClaudioRay 4 жыл бұрын
How did you still achieve the tri-state using the optocoupler and the 2n2222?
@pileofstuff
@pileofstuff 4 жыл бұрын
The tri-state happens in the microcontroller. The LED section of the optocoupler acts like a normal LED and lights or not based on that.
@ClaudioRay
@ClaudioRay 4 жыл бұрын
@@pileofstuff hey! Thanks for your answer. I more or less get how the tri-state work on the microcontroller pins, however I still cant understand how are you able to drive those more power demanding leds still using charlieplexing (which requires those three states) and given the higher voltages you are no directly using the uC pins.
@pileofstuff
@pileofstuff 4 жыл бұрын
@@ClaudioRay the LED side of the optocoupler makes use of the tri-state capability of the microcontroller pins, just like any LED. That's where the "magic" ends. After that, the photo-transistor output of the the optocoupler acts like a normal switch, and anything beyond that assumes that it's just being switched by a normal transistor.
@ClaudioRay
@ClaudioRay 4 жыл бұрын
@@pileofstuff Yeah... sadly is very tough to maintain the tri-state logic and drive high-voltage GPIOS. I have been struggling to drive high voltage LEDs under charlieplex configuration with no luck so far. If you get an idea on how to, please drop me an answer.
@celtisafricana4984
@celtisafricana4984 4 жыл бұрын
An a analogue shift register (without latching)? I have an unhealthy love for shift registers on my arduino
@JasonSimpson1966
@JasonSimpson1966 4 жыл бұрын
Unless you are running two independent and separate power supplies, an optocoupler CANNOT be completely isolated between the input and output sides.
@pileofstuff
@pileofstuff 4 жыл бұрын
That's correct, thanks for reminding people. It is what I was doing, but I didn't really mention it specifically. . One power supply is the little black power bank that the Digispark is plugged into, and the other is partially visible in the lower left (in the segment after 12:47 you can see it's current display changing as the various LEDs go on and off).
@JasonSimpson1966
@JasonSimpson1966 4 жыл бұрын
@@pileofstuff In all fairness, though, and also for clarification, opto-couplers are often used in single supply circuits. In these instances, though, there is generally a transformer in use which physically isolates the two sides of the circuit.
@pileofstuff
@pileofstuff 4 жыл бұрын
I used to find them commonly in stage lighting dimmers to isolate the control side from the high power side.
@markfergerson2145
@markfergerson2145 4 жыл бұрын
Cool video. Long ago when I worked at a systems integrator we used Charlieplexing driven by PLC outputs in some commercial equipment. By the way- did I miss something? What happened to Mailbag Monday this week?
@pileofstuff
@pileofstuff 4 жыл бұрын
Mailbag Monday is every second week. I'd go broke doing it every week (even with my patreons helping me)
@markfergerson2145
@markfergerson2145 4 жыл бұрын
@@pileofstuff Figures. We're sill sort of n lockdown here in Lower B.C. (Washington state) and those silly numbers on the calendar have been running togehter the last couple of months.
@adam850
@adam850 4 жыл бұрын
Good idea with the optoisolators. I have a 100-pack of some Sharp optoisolator in a bin somewhere... I suspect that the other commenter has these too. The PC817C.
@SidneyCritic
@SidneyCritic 4 жыл бұрын
That reminds me, I have to chase up my Sharp opto's I ordered 160 days ago - lol -.
@SteveRobillard
@SteveRobillard 4 жыл бұрын
Congrats on making hackaday's links.
@North49Radio
@North49Radio 4 жыл бұрын
Pretty cool. hackaday.com/2020/06/14/hackaday-links-june-14-2020/
@MrMaxeemum
@MrMaxeemum 4 жыл бұрын
Christmas lights also use this technique.
@noggin73
@noggin73 4 жыл бұрын
Nice. My (super cheap) optocouplers have 4 pins though.
@pileofstuff
@pileofstuff 4 жыл бұрын
That's also common. They simply don't have the base broken out to a separate pin - just the collector and emitter, plus the LED anode and cathode.
@adam850
@adam850 4 жыл бұрын
Sometimes two out of six of the pins of an optoisolator are N/C anyway.
@GnuReligion
@GnuReligion 4 жыл бұрын
These devices come in so many flavors. Like others here, I only have PC817's. Perhaps there are applications where a fixed current gain is not adequate, so the gate needs a pin.
@sidharthap
@sidharthap 4 жыл бұрын
Blinking LEDs are good n all... scroll down to the end of this www.pcbheaven.com/wikipages/Charlieplexing/ article and try Charlieplexing switches!
@bollie9752
@bollie9752 4 жыл бұрын
Today It feels like monday....
@AJB2K3
@AJB2K3 4 жыл бұрын
I found charlieplexing used on rechargeable battery packs
tinkering with solenoids: can they make music?
18:07
pileofstuff
Рет қаралды 3,1 М.
Driving DC Motors with Microcontrollers
1:04:32
DroneBot Workshop
Рет қаралды 744 М.
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
КОНЦЕРТЫ:  2 сезон | 1 выпуск | Камызяки
46:36
ТНТ Смотри еще!
Рет қаралды 3,7 МЛН
-5+3은 뭔가요? 📚 #shorts
0:19
5 분 Tricks
Рет қаралды 13 МЛН
A quick look at Charlieplexing
6:42
Brian Lough
Рет қаралды 11 М.
Modifying a confusing LED string
14:15
pileofstuff
Рет қаралды 4,5 М.
Photolithography on Silicon with PCB Chemicals
25:31
ProjectsInFlight
Рет қаралды 64 М.
From blink to DIY Mini Game - Charlieplexing explained
15:12
bitluni
Рет қаралды 127 М.
December kit builds: DIY electronics calculator
29:54
pileofstuff
Рет қаралды 4,6 М.
MOSFETs and Transistors with Arduino
40:50
DroneBot Workshop
Рет қаралды 1,1 МЛН
Idle Hands & A Tormek!
29:57
This Old Tony
Рет қаралды 424 М.
Mailbag Monday 210
15:27
pileofstuff
Рет қаралды 4,6 М.
December kit builds: LED clock
30:51
pileofstuff
Рет қаралды 6 М.