I'm trying out transistor logic for the first time using PN2222 transistors that came in a kit that I got from Amazon. I've been running into some problems with making a basic NOT Gate (as shown in the schematic below) and I haven't been able to complete it.
I believe that I have faulty transistors, but so far I've tried them all (as well as troubleshooting with a meter, checking for continuity, and changing all components for new ones) and have come to the same outcome every time.
When I put my LED on the collector-side of my BJT with a resistor hooked to +5V without anything attached to the BJT's base or emitter I get what I expect, the LED lights up as the rest of the BJT has nothing to do with that LED circuit. However the moment I attach the emitter to ground, the LED shuts off. Applying any kind of input (logic high or low) provides no change.
I tried to connect an LED from the emitter pin to ground, replacing the wire I had used previously, and I found that the collector LED stays lit and the emitter LED is on, but barely.
I can provide pictures of my breadboard circuit if need be. Any help and advice is appreciated as I did say this is the first time I've messed around with REAL transistors, not ideal or simulated ones!
R = 1k ohm, R2 = 220 ohm
Here are some pictures of my circuit:
(sorry for the bad quality, my camera is terrible and the LED is quite bright)
The top two photos are of the emitter being directly grounded, the next two are with an LED connecting the emitter to ground. The first picture of both sets are with the switch off, then the second pics of both sets are with the switch pressed.
Notice that the LED connected to the emitter and ground lights up a little bit.