Most electric bicycles have a microcontroller in the motor controller to calculate input cadence or torque, adjust amperage, control the motors and send the display screen information. Often cyclists can select the level of power assist provided using the computer. The computer also monitors the speed and can deactivate the motor for braking or if required by law (for example, in many countries pedelec bikes cannot use motor assist above 25 km/h).
