I have used single NPN transistor as shunt. Output is connected to a LED through a resistance of 220 ohms.Ģ.
For AND gate I have used 2 NPN Transistor (BC548) in series whose each base is driven by separate switch and resistance. Resistance 100 Ohms, 220 Ohms, 1K one each.ġ. 3V power supply is enough for the circuit. LED's as indicator used to show output level high(1) or low(0). We have made three basic logic gate using Diode and NPN Transistor. Logic gates are primarily implemented using diodes or transistors acting as electronic switches.