By using the microcontroller AVR,a new control system of electrical motorcycle is introduced and the hardware structure and the software design are also given.The controller controls the regenerated energy when the motor operates in regenerative braking mode.It has been improved in the test that the system is low cost but with high reliability.It is an applied control system of the brushless DC motor.