Pulse Width Modulation motor control
Digital electronics: Logic gates
All about reed switches