Am I missing something here?
I have an NPN transistor (2N2222) with a 10K resistor from collector to Vcc.
Also a 10K resistor from base to input signal. Emitter is grounded.
The base input is alternately connected to Vcc for saturation (Vce close to zero volts) and connected to ground for shutoff (Vce equal to Vcc).
The circuit works fine if VCC is less that 7 volts. Above that when the base input is grounded Vce does not increase above 7 volts. I have increased the value of Vcc to 15 volts and Vce is still 7 volts.
I want to have the transistor operate as a switch with Vcc at 12 volts, but it will not shut off. I have used several NPN transistors and they all show the same characteristic with a max Vce of 7 to 8 volts.
Is there a workaround for this?