Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I'm driving 9V common Anode seven segments.I need TO220 package transistors specially high speed ones.
For the record Q1 isn't even needed. Remove it and tie R1 directly to RA0.
Jon,
For the record, that is wrong.
Doing that Q2 will never turn OFF.
E.
You are correct. I failed to see that he was driving the anode from a 12V supply.
However...I would also add a collector resistor between Q1's collector and the 12V supply to keep the base of Q2 from floating when Q1's base is pulled low.
The 4k7 base resistor will allow only ~2.3mA so Q2 will not be in saturation, use a 1K5 base resistor, also its good practice to connect a resistor from Base to Emitter of Q2, this provides a leakage current path.