I have the following circuit below. One of the restrictions I have is that I need to drive 4 LEDs using 9V. (sorry I forgot why 9V is not enough for all 4 LEDs in series so there's a drop voltage after the PNP and the LEDs Vf is not exactly 2V, maybe 2.1v or 2.2V which is normal based on the datasheet range of vf= 2v-2.4v), so I connected the 4 LEDs in parallel. Each LED has a Vf about 2V and operates at 20-23mA. I have one NPN and PNP transistor to drive the LEDs.
I know this might not be the best design, but I'll like to try this design in the best possible way. The 5V / 0V at Q2 is coming from the GPIO in the microcontroller. Connecting the LEDs in parallel Ic at Q1 needs to be at least 40mA output. In the circuit below I have R3 = 1k thus Ib at Q2 is about 4mA, and using a 10 gain Q2 Ic = 40mA, and using another R1 = 1k will decrease the Q2 Ib current to about 8mA and this becomes Ib at Q1 which will turn Q1 Ic to about 80mA twice as much the current needed to drive the LEDs at 20-23mA. I'm using a NPN 2n2222(2N2222 Datasheet and PNP 2N29072N2907 Datasheet.
I just wanted to know if the circuit below with the values I used is good enough to work? based on my calculations above. I calculated the values based on a 10 gain, is that correct to use based on the datasheets. What other resistor values could work to get at least 50ma at Ic of Q1