Different Switches
Instead of mechanical switches, we can also use electronic switches:
 A normally open (n.o.) switch is closed when pressed. A normally close (n.c.) switch is open when pressedExample of setting up a LED and a switch
U
A
B
21 3 F
GND
GND
R
R
F=1  LED on
F=0  LED offVccSwitch open  F=1
Switch closed  F=0Note: Typically R=1 k Ω is used.N
-
V
+
When Current Flows the
Relay opensSpring
contactRelay as n.c.
GateSourceDrainBaseEmitterCollectorPMOS FET as n.c.
Négative Channel Métal
Oxide SemiconductorField Effect TransistorPNP BJT as n.c.
Bipolar Junction
TransistorsN
-
V
+
When Current Flows the Relay
closesSpringcontactRelay as n.o.
NMOS FET as n.o.
Positive Channel Metal Oxide
SemiconductorField Effect TransistorNPN BJT as n.o.
Bipolar Junction TransistorsGateDrainSourceBaseCollectorEmitter