They have to be wired up that way. The machine probably contains a microcontroller – or several – which is a small computer designed for this purpose. The microcontroller has a bunch of spare wires which the machine designer can use for any purpose, and the microcontroller’s software can tell it to turn them on or off.
So, “pin A3” may be connected to a circuit that makes the elevator go up. When the microcontroller gets to an instruction that says “turn on pin A3” then it does that and the elevator goes up.
Keyword: GPIO = General Purpose Input/Output
Latest Answers