A speed controller, also known as a motor controller or electronic speed controller (ESC), regulates the speed and direction of an electric motor. It does this by adjusting the voltage and current supplied to the motor, allowing for precise control of its rotational speed.