I have not worked with transistor much, and therefore need some guidance in deriving the base resistor and pull-up resistor values.
I have the following circuit and I want to calculate base resistor R1, and the R2 resistor, which I am using to pull up the PNP base to 3.3V to prevent it from false turn ON when the GPIO pin is in the high impedance state.
As per the BC857C datasheet, the minimum current gain is 420, Vbe(sat) is -700mV, and Vce(sat-max) is -300mV.
With the following circuit, I intend to enable/disable the 1.5K resistor as pull-up to the load. So basically I want to use the transistor as a switch with 1 (3.3V) from GPIO putting it in the cut-off and 0 (0V) from GPIO putting it in saturation.
Could anyone please help me with the calculations?