NOT gate with an NPN (2N3904) transistor not working

digital-logicinverternpn

I have the book Getting Started In Electronics, by Forrest M. Mims III, and it has an RTL NOT gate schematic that looks pretty much the same as this:

RTL Not Gate
(source: electronics-tutorials.ws)

About a month or two ago, I was starting to get into RTL logic (had already done logic in video games like Portal 2 (2-bit adder I built using laser logic) and Minecraft (lots of little redstone things, some 8-bit like an 8-bit ALU)). Anyways, a while back ago, with RTL I got a NOT gate working, and even an AND gate using 3 not gates and some sort of OR gate (can't remember how I built any of them). Recently I peered into my book, built the gate, then connected my battery pack that I got from RadioShack (two AAs, 3 volts total in the pack) aaand…nothing. The red LED did not light up, even if I switched on the input.

Yes, the batteries are working and contain plenty of charge, as I changed them and then connected a plain LED and a resistor to test them and the LED lit up as expected.

The resistors I used were 10k ohm, and the transistor an NPN 2N3904. Can someone direct me maybe what I did wrong (maybe a clear picture or video of this on a breadboard)? I am highly confused.

EDIT: I figured it out! Don't really know what I was doing wrong at first (probably grounded something wrong) but it is working now.

Best Answer

A 10 K ohm resistor, as a collector resistor, with a 0.7 Volt drop VCE, with a 3.0 Volt source, will result in a 230 microamp flow, aka 0.23 milliamps. With a hfe gain of 100 as ideal, that's 2.3 milliamps at best VCE. But a 10 K ohm resistor as R2 would only allow a few micro amps through a led, not lighting it up. Try replacing both R and R2 with larger resistors and it will work. Try 470 to 1000 ohm.