Disclosure of Invention
The invention aims to provide an electric bicycle braking force distribution system, which overcomes potential safety hazards existing in the prior art when an electric bicycle is braked, realizes braking of the brake, and improves the safety during braking under the condition of obtaining the shortest braking distance.
In order to achieve the above object, the present invention provides an electric bicycle braking force distribution system including: the device comprises a microprocessor, a speed sensor, a driving circuit, a hub motor, a pressure sensor and a six-axis gyroscope; the driving circuit is connected to the hub motor so as to adjust the running speed of the electric bicycle by controlling the rotating speed and the steering direction of the hub motor; the speed sensor is connected to the hub motor to acquire the current running speed of the electric bicycle; the pressure sensor collects the pressure of the rider; the six-axis gyroscope acquires the running gradient of the electric bicycle; the controller is connected to the speed sensor, the pressure sensor, the six-axis gyroscope and the driving circuit, and is used for adjusting the running speed of the electric bicycle according to the pressure of a rider, the running gradient of the electric bicycle and the current running speed of the electric bicycle so that the slip ratio of the electric bicycle is lower than a preset value.
Preferably, the electric bicycle braking force distribution system further includes: the power supply is electrically connected to the driving circuit to provide power to the driving circuit so as to drive the rotation of the hub motor.
Preferably, the pressure sensor is electrically connected to the microprocessor through an analog-to-digital converter.
Preferably, the six-axis gyroscope is a six-axis gyroscope of model MPU 6050.
Preferably, the microprocessor is a single chip microcomputer of model STM32F103RCT 6.
Preferably, the motor is a three-phase brushless dc motor.
Preferably, the speed sensor is a hall encoder.
Through the technical scheme, when a rider presses the hand brake, the input module connected with the microprocessor is triggered, and the microprocessor is used for controlling the electric bicycle according to the friction coefficient mu (k-1) of the ground and the total mass m of the rider and the electric bicycletCalculating the current parameter K of the PID controller through fuzzy reasoningp(k)、Ki(k)、Kd(k) To obtain the best performance of the governor system. And controlling the real-time rotating speed r omega (k) of the wheel to be 0.8v (k), so that the slip rate of the tire is close to 0.2 in the running process of the vehicle, and the maximum adhesive force and the shortest braking distance are obtained.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
In the present invention, unless otherwise specified, the terms of orientation such as "upper, lower, left, right" used herein generally refer to the upper, lower, left, and right directions as shown in fig. 2. "inner and outer" refer to the inner and outer portions of a particular contour. "distal and proximal" refer to distal and proximal relative to a component.
The present invention provides an electric bicycle braking force distribution system, including: the device comprises a microprocessor, a speed sensor, a driving circuit, a hub motor, a pressure sensor and a six-axis gyroscope; the driving circuit is connected to the hub motor so as to adjust the running speed of the electric bicycle by controlling the rotating speed and the steering direction of the hub motor; the speed sensor is connected to the hub motor to acquire the current running speed of the electric bicycle; the pressure sensor collects the pressure of the rider; the six-axis gyroscope acquires the running gradient of the electric bicycle; the controller is connected to the speed sensor, the pressure sensor, the six-axis gyroscope and the driving circuit, and is used for adjusting the running speed of the electric bicycle according to the pressure of a rider, the running gradient of the electric bicycle and the current running speed of the electric bicycle so that the slip ratio of the electric bicycle is stabilized to be 0.2.
By measuring the friction coefficient mu (k-1) between the wheel and the ground and the total mass m of the rider and the electric bicycle
tReal-time adjusting PID controller parameter K by fuzzy reasoning
p(k)、K
i(k)、K
d(k) The slip ratio between the tire of the electric bicycle and the ground is controlled to be 0.2, the maximum adhesive force and the shortest braking distance are obtained, and the running safety of the bicycle is improved. In the formula
S (k) is the slip ratio of the electric bicycle; r ω (k) is the speed at which the electric bicycle wheel rotates, and v (k) is the actual speed of the electric bicycle body.
In one embodiment of the present invention, the electric bicycle braking force distribution system further includes: the power supply is electrically connected to the driving circuit to provide power to the driving circuit so as to drive the rotation of the hub motor.
In one embodiment of the present invention, the pressure sensor is electrically connected to the microprocessor through an analog-to-digital converter.
In one embodiment of the invention, the six-axis gyroscope is a six-axis gyroscope of model MPU 6050.
In a specific embodiment of the invention, the microprocessor is a single chip microcomputer of model number STM32F103RCT 6.
In one embodiment of the invention, the motor is a three-phase brushless dc motor.
In one embodiment of the present invention, the speed sensor is a hall encoder.
In a preferred embodiment of the present invention, the electric bicycle braking force distribution system of the present invention comprises a microprocessor, a power supply, a driving circuit, a hub motor, an encoder, a pressure sensor, an a/D converter, an input module, and an MPU6050 six-axis gyroscope. The power supply is directly connected with the hub motor through the motor driving circuit, the microprocessor is connected with the motor driving circuit, and the PWM control signal is sent out to control the rotating speed and the rotating direction of the motor. The speed sensor is connected with the motor, converts a rotating speed signal of the motor into a pulse signal and sends the pulse signal to the processor. The pressure sensor is electrically coupled to the microprocessor through an A/D converter. The MPU6050 six-axis gyroscope is electrically coupled to the microprocessor.
Where the gradient of the road on which the vehicle travels is θ, θ can be measured by the MPU 6050. Wherein the grain size is-60 °<θ<60 degrees, when theta is less than or equal to 60 degrees<When the angle is 0 degrees, the electric bicycle goes up the slope; when 0 degree<When theta is less than or equal to 60 degrees, the electric bicycle descends, and when theta is 0 degrees, the electric bicycle runs on a horizontal road surface. Self mass m of electric bicyclevThe mass m of the rider is acquired by the pressure sensorpThe total mass of the rider and the electric bicycle is mt=mv+mp. The single chip microcomputer drives the motor in a PWM control mode, under the current single chip microcomputer driving signal, the traction force output by the motor shaft is F (k), and then in the running process of the electric bicycle, the friction coefficient of a tire and a road surface at the k moment is mu (k), which can be known from a graph 2:
F(k)+mgsinθ-μ(k)mgcosθ=mta(k);
at the kth moment of braking of the electric bicycle, the wheel slip ratio is as follows:
in the formula, ω (k) is an angular velocity of the wheel of the electric vehicle, which is measured by a velocity sensor.
v (k) is the speed of the electric bicycle body, which can be measured by an MPU6050 chip, the acceleration of the electric bicycle body in the advancing direction at the moment k is a (k), the sampling period of the microprocessor is T, and the following steps are provided:
v(k)=v(k-1)+a(k-1)T;
expectation of
Then r ω (k) is 0.8v (k).
Therefore, the invention adopts a method of adjusting the wheel rotating speed to control the slip ratio of the electric bicycle. As shown in FIG. 3, a fuzzy PID controller is designed based on a microprocessor, and a closed loop speed regulating system is constructed. When the rider presses the hand brake, an input module connected with a microprocessor is triggered, and the microprocessor is used for controlling the motor-driven bicycle according to the friction coefficient mu (k-1) of the ground and the total mass m of the rider and the electric bicycletCalculating the current parameter K of the PID controller through fuzzy reasoningp(k)、Ki(k)、Kd(k) To obtain the best performance of the governor system. And controlling the real-time rotating speed r omega (k) of the wheel to be 0.8v (k), so that the slip rate of the tire is close to 0.2 in the running process of the vehicle, and the maximum adhesive force and the shortest braking distance are obtained.
The invention has simple structure and low cost.
By measuring the friction coefficient mu (k-1) between the wheel and the ground and the total mass m of the rider and the electric bicycletReal-time adjusting PID controller parameter K by fuzzy reasoningp(k)、Ki(k)、Kd(k) Controlling the slip ratio between the electric bicycle tire and the ground to be 0.2 to obtain the maximum adhesive force andthe shortest braking distance improves the running safety of the vehicle.
The preferred embodiments of the present invention have been described in detail with reference to the accompanying drawings, however, the present invention is not limited to the specific details of the above embodiments, and various simple modifications can be made to the technical solution of the present invention within the technical idea of the present invention, and these simple modifications are within the protective scope of the present invention.
It should be noted that the various technical features described in the above embodiments can be combined in any suitable manner without contradiction, and the invention is not described in any way for the possible combinations in order to avoid unnecessary repetition.
In addition, any combination of the various embodiments of the present invention is also possible, and the same should be considered as the disclosure of the present invention as long as it does not depart from the spirit of the present invention.