Electronic – A transistor AND gate outputs a small current when one of the inputs is HIGH. Why does this happen

digital-logictransistors

I built a simple transistor AND gate as specified by the following schematic:

http://hyperphysics.phy-astr.gsu.edu/hbase/electronic/trangate.html#c1

Schematic

It works very well, however it outputs a small amount of current when input B is HIGH, enough to illuminate a standard 3mm LED. Why does this happen? How can it be prevented? Ultimately I would like this circuit to illuminate the LED only when both inputs are set to HIGH.

Best Answer

This is because of the base current. The current comes from the signal source.

Also, note that the demonstrated schematic is simply wrong. The proper AND gate has to amplify the signal, so with similar technique you can only build NAND element. If you need AND - simply make one NAND and then invert the output signal once more.

schematic

simulate this circuit – Schematic created using CircuitLab