multiplexing LEDs how do I keep the LEDs bright shining?
StefanL38
Posts: 2,292
Hi,
A friend of mine wnats to build a 6x6x6 LED-cube. To keep the number of IO-Pins smaller we try to realise the concept of multiplexing the LEDs.
Switching On/Off columms and rows of the LEDs. Now this means the ON-time of the LED is just a fraction of 100%. As there are a lot of rows and columms
the voltage must be increased to get an averaged current that still makes the LED shining bright.
Is my conclusion right if the multiplexing should stop accidentically a much too high current would destroy the LED?
So one idea to overcome this is to add a transistor and a RC-component to each channel. the multiplexing refreshes the energy stored in the capacitor
to keep the transistor "switched on" until the next refreshing pulse comes in. This means the transistor would stay switched on all the time as long as refreshing pulses come in.
This means the voltage and current can be set to the continous operation and then if the multiplexing of the matrix stops accidently the opposite will happen.
The energy of the capacitor will go down to zero switching off the transistor and the current through the LED.
What do you think about this solution? will this work? Are there better solutions with less effort?
Please comment on this idea.
best regards
Stefan
A friend of mine wnats to build a 6x6x6 LED-cube. To keep the number of IO-Pins smaller we try to realise the concept of multiplexing the LEDs.
Switching On/Off columms and rows of the LEDs. Now this means the ON-time of the LED is just a fraction of 100%. As there are a lot of rows and columms
the voltage must be increased to get an averaged current that still makes the LED shining bright.
Is my conclusion right if the multiplexing should stop accidentically a much too high current would destroy the LED?
So one idea to overcome this is to add a transistor and a RC-component to each channel. the multiplexing refreshes the energy stored in the capacitor
to keep the transistor "switched on" until the next refreshing pulse comes in. This means the transistor would stay switched on all the time as long as refreshing pulses come in.
This means the voltage and current can be set to the continous operation and then if the multiplexing of the matrix stops accidently the opposite will happen.
The energy of the capacitor will go down to zero switching off the transistor and the current through the LED.
What do you think about this solution? will this work? Are there better solutions with less effort?
Please comment on this idea.
best regards
Stefan
Comments
but while playing around with code it stops multiplexing, you could burn something.
Could use higher resistor values temporary until code is done,
or go with many 595 ICs that eliminates the need to multiplex.
Yes.
What you describe is a local watch dog, and they are quite common.
You can make one from a Monostable, or a charge pump which needs a certain clock-rate to overcome some discharge.
You can do it on every channel, but often just a presence of clock/Data is decided as 'I have scan', and then the OK is given to drive.
Usually you can gate in some common way, so can avoid adding a lot of components to implement this.