Method and system for controlling electric bicycle
A method and system for controlling an electric bicycle are provided. The method may comprise: driving the electric bicycle; generating a deceleration torque command of a driving motor based on a moving distance of a pedal if a driver rotates the pedal installed in the electric bicycle in a reverse direction while the electric bicycle is driving; controlling a current supplied to the driving motor according to the deceleration torque command; and generating a deceleration torque of the driving motor by the current control.
1 . A method for controlling an electric bicycle, comprising:
driving the electric bicycle;
generating a deceleration torque command of a driving motor based on a moving distance of a pedal in response to a driver rotating the pedal installed in the electric bicycle in a reverse direction while the electric bicycle is driving;
controlling a current supplied to the driving motor according to the deceleration torque command;
generating a deceleration torque of the driving motor; and
generating a deceleration pedal torque command of a pedal motor based on the generated deceleration torque of the driving motor.
2 . The method of claim 1 , wherein a magnitude of the deceleration torque of the driving motor is proportional to the moving distance of the pedal.
3 . The method of claim 1 , wherein in response to the driver rotating the pedal installed in the electric bicycle in the reverse direction, the driving motor generates electrical energy by regenerative braking and the current supplied to the driving motor is controlled by using the generated electrical energy.
4 . The method of claim 3 , wherein the electrical energy generated by the regenerative braking is charged in a battery mounted at the electric bicycle.
5 . The method of claim 1 , further comprising:
controlling a current supplied to the pedal motor according to the generated deceleration pedal torque command; and
generating a deceleration pedal torque to generate a pedal feeling by generating a pedal torque in a direction opposite to a rotational direction of the pedal by a current control.
6 . The method of claim 1 , wherein driving the electric bicycle comprises:
generating an acceleration torque command of the driving motor based on a rotating speed of the pedal and a gear ratio of a gearshift as the driver rotates the pedal in a forward direction.
7 . The method of claim 6 , wherein driving the electric bicycle further comprises:
controlling a current supplied to the driving motor according to the acceleration torque command; and
generating an acceleration torque of the driving motor by a current control.
8 . The method of claim 7 , wherein driving the electric bicycle further comprises:
generating an acceleration pedal torque command of a pedal motor based on the generated acceleration torque of the driving motor.
9 . The method of claim 8 , wherein driving the electric bicycle further comprises:
controlling a current supplied to the pedal motor according to the generated acceleration pedal torque command; and
generating an acceleration pedal torque to generate a pedal feeling by generating a pedal torque in a direction opposite to a rotational direction of the pedal by the current control.
10 . A system for controlling an electric bicycle, comprising:
a pedal motor comprising a pedal motor controller;
a driving motor comprising a driving motor controller; and
a system controller configured to control the system,
wherein the system controller comprises a deceleration torque command generation unit and a pedal torque command generation unit, and in response to a driver rotating a pedal installed in the electric bicycle in a reverse direction while the electric bicycle is driving, the deceleration torque command generation unit is configured to generate a deceleration torque command of the driving motor based on a moving distance of the pedal, and
wherein the driving motor controller is configured to control a current supplied to the driving motor according to the deceleration torque command to generate a deceleration torque of the driving motor, and the pedal torque command generation unit is configured to generate a deceleration pedal torque command of the pedal motor based on the generated deceleration torque of the driving motor.
11 . The system of claim 10 , wherein a magnitude of the generated deceleration torque of the driving motor is proportional to the moving distance of the pedal.
12 . The system of claim 10 , further comprising a battery configured to charge electrical energy,
wherein in response to the driver rotating the pedal installed in the electric bicycle in the reverse direction, the driving motor is configured to generate electrical energy by regenerative braking, and the generated electrical energy is charged in the battery.
13 . The system of claim 10 , wherein the pedal motor controller is configure to control a current supplied to the pedal motor according to the generated deceleration pedal torque command to generate a pedal torque in a direction opposite to a rotational direction of the pedal and generate a pedal feeling.
14 . The system of claim 10 , wherein the system controller comprises an acceleration torque command generation unit, and
the acceleration torque command generation unit generates an acceleration torque command of the driving motor based on a rotating speed of the pedal and a gear ratio of a gearshift when the driver rotates the pedal in a forward direction.
15 . The system of claim 14 , wherein the driving motor controller controls a current supplied to the driving motor according to the acceleration torque command, and an acceleration torque of the driving motor is generated by a current control.
16 . The system of claim 15 , wherein the system controller further comprises a pedal torque command generation unit, and
the pedal torque command generation unit generates an acceleration pedal torque command of the pedal motor based on the generated acceleration torque of the driving motor.
17 . The system of claim 16 , wherein the pedal motor controller is configured to control a current supplied to the pedal motor according to the generated acceleration pedal torque command to generate pedal torque in a direction opposite to a rotational direction of the pedal and generate a pedal feeling.
18 . The system of claim 14 , further comprising an interface comprising a display,
wherein in response to the driver operating a button on the interface, the gear ratio of the gearshift or a magnitude of a braking force is determined.