This site uses hands-on experiments to show the basics of how real things in the real world are controlled with computers.
Controlling The Real World With Computers
This site is also for anyone who is the least bit curious about monitoring and controlling such things as motors, lights and switches, or recording and playing everything from sound to the arm position on a robot.
Experiment 7 – Bi-directional Control Of Motors And The H-Bridge
It would be useful to be able to run a motor in either direction. That’s simple with a motor of the type that’s been used in the experiments thus far. Reverse the DC power connections on such a motor and its shaft will rotate in the opposite direction. One way to control direction is to use switches arranged in the following manner: