Can someone tell me if there is any potential issues with my layout?
I have a superbright 7 segment LED display. I want to do a dual brightness via transistors and want to make sure that I don't blow out the transistors some how or ruin the PIC. I figure this is the least burdensome on the PIC itself. The PNP transistors are 2N3906s. I didn't note it on the schematic.
The 7 segment is a common anode, so I send a 0 to the respective PORTB port to light it up on that segment. The 7 segment LED can take up to 160ma.
Not going to get much light with a 470 and the 220 your limiting it to
7.2 Millamps and the 3 k will lower to 1.5 millamps
I would leave the 3 K off and test with different values for the 470 resistor
I didn't see Bills post but till mine but he has the right idea
I modified it and put a 200 ohm resistor directly off of PORTA,6 and between PORTA, 7, I put a 4k resistor to the Base of the transistor and removed the 3k resistor. I simply switch between the two and have the perfect bright and dim situation.
Works like a charm without a big software change. Its not that I have anything against PWM, I just don't want to go through the hassle for 2 stage brightness.
you will not have the same brightness with a 1 as you do with an 8, the current that flows through the trany resistor will be devided between each segment.
and don't forget the LED voltage drop, you will never even get to 7ma
I get 84ma with 6 of them lit. I have a 39 ohm resistor on each segment. It is working very well so far. I'm getting the results I'm looking for anyway.
I get 84ma with 6 of them lit. I have a 39 ohm resistor on each segment. It is working very well so far. I'm getting the results I'm looking for anyway.
most of that is the pics current or something else, unless you ALSO changed the 470ohm resistor you could not possibly have more than about 6mA even with the 200ohm resistors changed to 39ohm
Error on my schematic which should be corrected. I do believe when PORTA,6 is set to Input it will only sink ~25ma.
Instead of using that 200 ohm resistor, can I simply add another 2n3906 to PORTA,6? That should elminate any issue with too much current going to or from the PIC.