This week's lab covered DC motor control with an H-bridge, an IC that allows to control a motor's direction. Applying power to C1 sends power through the motor in one direction, while power to C2 sends power through the other way. Setting both C1 and C2 to high will have a braking effect on the motor.
I added a potentiometer to the lab's circuit to allow speed control. The pot controlled a PWM signal going to the H-bridge's enable pin. Power to the motor came courtesy of a 9V wall wart.