gaubar
Newbie level 4
- Joined
- Jul 2, 2013
- Messages
- 6
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 3
- Activity points
- 65
I want to control a led matrix consisting of "pixels" with 9 leds each. These "pixels" will have to be driven by a 24volt line. I need a circuit that can be controlled from a microcontroller.
My thought was that i could use two transistors on each side of the pixels to control it. One transistor is for the row, the other for the column. So to turn on one pixel, you would have to turn on the column and row transistor of that pixel.
So I want to send 24 volt through the anode of the pixel from one transistor, and ground it through the other transistor. How can I do this? The transistor would be turned on and off by shift registers, but thats not my problem, it could just as well be controlled directly from the microcontroller.
Here is where ive gotten so far:
The pixel would get 24 volt when the top transistor is switched off, and it would get zero when the transistor is switched on. Also no current will flow until the bottom transistor is switched on. So to turn the led on, the top transistor has to be switched off, and the bottom one on. My problem is when I switch the top transistor on, all the current will have to go through the resistor on the top (R2). This will cause it to break. How can i avoid this? Is there another way to do this?
My thought was that i could use two transistors on each side of the pixels to control it. One transistor is for the row, the other for the column. So to turn on one pixel, you would have to turn on the column and row transistor of that pixel.
So I want to send 24 volt through the anode of the pixel from one transistor, and ground it through the other transistor. How can I do this? The transistor would be turned on and off by shift registers, but thats not my problem, it could just as well be controlled directly from the microcontroller.
Here is where ive gotten so far:
The pixel would get 24 volt when the top transistor is switched off, and it would get zero when the transistor is switched on. Also no current will flow until the bottom transistor is switched on. So to turn the led on, the top transistor has to be switched off, and the bottom one on. My problem is when I switch the top transistor on, all the current will have to go through the resistor on the top (R2). This will cause it to break. How can i avoid this? Is there another way to do this?