StefDrums
Newbie
Offline
Posts: 20
Thank You
-Given: 22
-Receive: 4
|
|
« on: December 08, 2017, 11:15:58 11:15 » |
|
Hello to all, I would like to share with you a difficulty which I have been struggling with for days: I'm developing a circuit that controls a 3x6 led matrix display via microcontroller, here are some data: - the LEDs are 20 mA @ 2.1 V - the PINs of the uC provide a maximum of 1.5 mA - 3x6 LED matrix - the circuit must have a low power consumption - power supply voltage: I can choose it from 2.2 V to 3.0 V (but low consumes less)
I initially thought to connect them in this way (picture attached), but I have freedom to overturn the circuit.
For the control, since the microcontroller does not supply enough current, I thought of 3 different alternatives: - use a shift register for "Control K" and 3 P-MOS for "Control A" - use a buffer (or a hex-inverter) for "Control K" and 3 P-MOS for "Control A" - use a driver LED for "Control K" and 3 P-MOS for "Control A" all 3 possibilities unfortunately lead me to a dead end, because I can not find components that can work at voltages of 2.3V and source 20 mA per channel (with a total Icc of at least 120 mA).
I've run out of ideas, I'm giving up, but I'm sure some of you will be able to suggest a brilliant solution! Thank you!
|
|
|
Logged
|
|
|
|
PICker
Active Member
Offline
Posts: 162
Thank You
-Given: 207
-Receive: 110
|
|
« Reply #1 on: December 08, 2017, 12:27:58 12:27 » |
|
You can think about a LED Driver IC. MAX6958/MAX6959, for example (I²C-compatible 2-wire serial interface), can drive up to 36 individual LEDs with a power voltage between 3 and 5V: https://datasheets.maximintegrated.com/en/ds/MAX6958-MAX6959.pdf
|
|
|
Logged
|
|
|
|
bogdantk
Active Member
Offline
Posts: 100
Thank You
-Given: 40
-Receive: 18
|
|
« Reply #2 on: December 08, 2017, 12:42:36 12:42 » |
|
|
|
|
Logged
|
|
|
|
vern
V.I.P
Active Member
Offline
Posts: 146
Thank You
-Given: 7
-Receive: 42
|
|
« Reply #3 on: December 08, 2017, 04:40:47 16:40 » |
|
What do you want to display, multiple LED's with multiplexing or only one led at a time?
|
|
|
Logged
|
|
|
|
StefDrums
Newbie
Offline
Posts: 20
Thank You
-Given: 22
-Receive: 4
|
|
« Reply #4 on: December 08, 2017, 05:05:00 17:05 » |
|
Hello, I have to display multiple LED's with multiplexing. I think I have to use the lower Vdd I can because of series resistor power consumption.
|
|
|
Logged
|
|
|
|
vern
V.I.P
Active Member
Offline
Posts: 146
Thank You
-Given: 7
-Receive: 42
|
|
« Reply #5 on: December 08, 2017, 05:36:45 17:36 » |
|
if you are multiplexing your drivers need to handle higher current, because the LEDs need probably more than 20mA since they are on only 1/18th of the time. You can use a TPL7407L on the low side and and 3x FDC6331 or similar on the high side, they are both 2V compatible
|
|
|
Logged
|
|
|
|
StefDrums
Newbie
Offline
Posts: 20
Thank You
-Given: 22
-Receive: 4
|
|
« Reply #6 on: December 10, 2017, 10:53:28 10:53 » |
|
Thank you vern, so I think that with low side and high side driver my circuit will be something like this (attached picture)
Can I have some problem in switching when both low side and high side driver are turned off?
|
|
|
Logged
|
|
|
|
Signal
Active Member
Offline
Posts: 200
Thank You
-Given: 113
-Receive: 81
|
|
« Reply #7 on: December 10, 2017, 03:33:41 15:33 » |
|
... since they are on only 1/18th of the time.
I'd say 1/3d - the circuit must have a low power consumption
If you are not stuck with certain 6x3 LED matrix device consider new generation of LEDs - they are much effective than ones from XX century, and thus at 1 mA are brighter than old ones at 20 mA. That could be a useful option for low power consumption - to begin from choosing energy efficient device.
|
|
|
Logged
|
Give a right name to a right game and play it right
|
|
|
PICker
Active Member
Offline
Posts: 162
Thank You
-Given: 207
-Receive: 110
|
|
« Reply #8 on: December 10, 2017, 05:27:22 17:27 » |
|
StefDrums defined a specific Power Supply: - power supply voltage: I can choose it from 2.2 V to 3.0 V (but low consumes less) in the datasheet of the MAX7219/MAX7221 you can read: "For applications requiring 3V operation or segment blinking, refer to the MAX6951 data sheet." https://datasheets.maximintegrated.com/en/ds/MAX6950-MAX6951.pdfthese device are similar to MAX6958/MAX6959.
|
|
|
Logged
|
|
|
|
vern
V.I.P
Active Member
Offline
Posts: 146
Thank You
-Given: 7
-Receive: 42
|
|
« Reply #9 on: December 10, 2017, 07:56:57 19:56 » |
|
Signal: I'd say 1/3d of course you are right, what was I thinking PICker: although I had a recommendation for drivers for multiplexig I would try another solution for a led count of 18 if you are free to connect them in a different way: I would use 3 8 bit shift registers like for example 74HC595 and and not a matrix. The advantage is static display, low current for diving the LEDs and very simple programming. You can even control the LED Brightness with the output enble input via PWM. And it runs with 2V.
|
|
|
Logged
|
|
|
|
Signal
Active Member
Offline
Posts: 200
Thank You
-Given: 113
-Receive: 81
|
|
« Reply #10 on: December 10, 2017, 08:33:47 20:33 » |
|
Just to make things fun
|
|
|
Logged
|
Give a right name to a right game and play it right
|
|
|
PICker
Active Member
Offline
Posts: 162
Thank You
-Given: 207
-Receive: 110
|
|
« Reply #11 on: December 11, 2017, 05:53:22 05:53 » |
|
vern: I understand (and agree with) your solution. See this similar approach with Arduino: https://diyhacking.com/arduino-led-matrix/My last post was just about the differences between MAX7219 (proposed by bogdantk) and MAX6951 (with a lower power supply voltage).
|
|
« Last Edit: December 11, 2017, 05:58:44 05:58 by PICker »
|
Logged
|
|
|
|
StefDrums
Newbie
Offline
Posts: 20
Thank You
-Given: 22
-Receive: 4
|
|
« Reply #12 on: December 11, 2017, 05:33:34 17:33 » |
|
I read the 74HC595 datasheet and i saw that the maximum Icc current is 70 mA, so I can't drive 6 LEDs toghether @ 20mA. I didn't found any shift register that can source or sink more than 75 mA total. I think that I'm going to destroy the 74HC595 with 120 mA continuos current.
|
|
|
Logged
|
|
|
|
|
Wilksey
Cracking Team
Senior Member
Offline
Posts: 413
Thank You
-Given: 161
-Receive: 2549
|
|
« Reply #14 on: December 12, 2017, 12:58:03 00:58 » |
|
Don't drive them direct with a shift register then! Use the shift register to drive a transistor for example.
|
|
|
Logged
|
|
|
|
vern
V.I.P
Active Member
Offline
Posts: 146
Thank You
-Given: 7
-Receive: 42
|
|
« Reply #15 on: December 12, 2017, 08:12:13 08:12 » |
|
Of course you have to use drivers, the 74HC595 will run with 2V but will not be able to sink 20mA. Recommendation by TI is 5.2mA per output. You should use transistors or mosfets with a low gate voltage. But in my experience 5mA is plenty with modern LED's, most of the time even to much.
|
|
|
Logged
|
|
|
|
Signal
Active Member
Offline
Posts: 200
Thank You
-Given: 113
-Receive: 81
|
|
« Reply #16 on: December 12, 2017, 03:38:43 15:38 » |
|
Important note. One can not rely only on absolute maximum ratings regarding output current. V OL and V OH significantly depends on power supply voltage especially at current levels near to maximum and supply voltage near to minimum. It could end with current significantly lower than expected and/or V OL significantly higher than expected. Reducing supply voltage to leave less for current limiting resistor can cause this resistor to be ineffective in his job of handling changes of supply voltages, temperature, variation of parameters.
|
|
|
Logged
|
Give a right name to a right game and play it right
|
|
|
HackAndCrack
Senior Member
Offline
Posts: 294
Thank You
-Given: 175
-Receive: 803
|
|
« Reply #17 on: January 01, 2020, 11:05:47 23:05 » |
|
Any one can upload link pixel led matrix scroling board hex file for atmega328.thank you
How many pixel LEDs strip's .hex file do you want?
|
|
|
Logged
|
|
|
|
|