I am trying to design my first LED Cube using STP16CPC26 LED drivers and an ATTINY85 microcontroller. I am using the TINY85 mostly because I have them and want to use them on something fun but I know it is not typical to use an 8 pin microcontroller in this type of application. My plan is that the first 5 bits sent from the microcontroller will specify the row of the cube to be turned on and the next 25 bits will specify the columns. If I am understanding the datasheet for the LED driver correctly it appears that they will sink current but not source current which (in my very limited understanding of electronics) suggests that I would need to drive PNP transistors with the LED Driver to light specific rows. I have included what I have so far in the attached schematic and Q1 through Q5 are the transistors in question.
The LEDs are driven at 20 mA based on a 1K resistor on R-EXT of the LED drivers which I think would mean that if all LED's in a row are lit that the transistor will have to supply 500 mA. I am horrible at reading transistor data sheets but it seems that all of the ones that I read show them sourcing closer to 10 mA at saturation so I am not sure how to get 500 mA. Can someone help me understand what I should be looking for to select an appropriate transistor for this application?
The LEDs are driven at 20 mA based on a 1K resistor on R-EXT of the LED drivers which I think would mean that if all LED's in a row are lit that the transistor will have to supply 500 mA. I am horrible at reading transistor data sheets but it seems that all of the ones that I read show them sourcing closer to 10 mA at saturation so I am not sure how to get 500 mA. Can someone help me understand what I should be looking for to select an appropriate transistor for this application?
Attachments
-
42.6 KB Views: 28