How can a computer switch on an indicator without anyone pressing a button?
The doors on a DART train are ready to open, and an indicator lights up. How could a control circuit turn on a light like that without anyone touching a switch?
Start at the five volt supply and follow the circuit through the resistor and the indicator to the hand switch. The resistor limits the current. With the switch closed, you have a complete loop, so current flows and the indicator lights.
The control terminal, called the gate, is at zero volts relative to the source. Keep the supply, resistor and indicator. Replace the hand switch with a MOSFET. The open switch symbol models its non-conducting path from drain to source, so the indicator stays dark.
The indicator went dark with a low control signal. Now suppose you leave the five volt supply connected and keep the control low. What happens to the indicator? Pick the answer that explains why.
Now the gate voltage rises to five volts above the source. The MOSFET in this circuit is chosen to turn on at that level. The switch symbol now shows a closed path from drain to source. Current flows through the indicator and it lights up.
Use an LED as the indicator. Model the conducting transistor with zero voltage drop and take the LED drop as two volts. Subtract both drops from the five volt supply to get three volts across the resistor. Divide by three hundred ohms to get ten milliamps through the LED.
Keep the control high and the supply at five volts. In the same model, the conducting transistor has zero voltage drop and the LED drop stays at two volts. If you swap in a six hundred ohm resistor, what current flows through the LED? Pick an answer.
It's easy to see the indicator light up and think the transistor is the program. The transistor is hardware that switches in response to the control voltage. If software is involved, the processor runs the program's instructions, which can tell the output hardware when to change the signal.
A systems question might ask, ‘Explain how this circuit represents two states.’ A low signal leaves the transistor path open. A high signal closes it. The indicator is off with the path open and on with it closed. You can assign zero to off and one to on.