This document shows a circuit diagram for controlling the direction of a motor. The motor controller provides logic signals to the motor driver, which then supplies voltage from the power supply to the motor. When the controller outputs a logic 1, the driver applies voltage to the motor in one direction, causing clockwise rotation. When the controller outputs a logic 0, the driver applies voltage to the motor in the opposite direction, causing counterclockwise rotation.