Summary of the invention
The object of the present invention is to provide a kind of electric bicycle braking force distribution system, the electric bicycle braking force distributions
There are security risks when system overcomes electric bicycle braking in the prior art, realize the braking of brake, are obtaining most
In the case where short braking distance, safety when brake is improved.
To achieve the goals above, the present invention provides a kind of electric bicycle braking force distribution system, the electric bicycle
Braking force distribution system includes: microprocessor, velocity sensor, driving circuit, hub motor, pressure sensor and six axis gyros
Instrument;Wherein, the driving circuit is connected to the hub motor, to pass through the revolving speed for controlling the hub motor and steering adjustment
The travel speed of electric bicycle;The velocity sensor is connected to the hub motor, to acquire current electric bicycle
Travel speed;The pressure of the pressure sensor acquisition bicyclist;The traveling slope of the six axis gyroscope acquisition electric bicycle
Degree;The controller is connected to the velocity sensor, pressure sensor, six axis gyroscopes and driving circuit, is ridden with basis
The travel speed of the pressure of person, the running gradient of electric bicycle and current electric bicycle adjusts the electric bicycle
Travel speed make the slip rate of electric bicycle lower than preset value.
Preferably, electric bicycle braking force distribution system further include: power supply, the power electric connection is in the driving
Circuit, to provide power supply to the driving circuit to drive the rotation of the hub motor.
Preferably, the pressure sensor is electrically connected to the microprocessor by analog-digital converter.
Preferably, the six axis gyroscope is the six axis gyroscopes of model MPU6050.
Preferably, the microprocessor is the single-chip microcontroller of model STM32F103RCT6.
Preferably, the motor is three-phase brushless dc motor.
Preferably, the velocity sensor is Hall encoder.
Through the above technical solutions, triggering the input module being connected with microprocessor, micro process when bicyclist presses parking brake
Device is according to the friction coefficient μ (k-1) on ground and bicyclist and electric bicycle gross mass mt, calculated and worked as by fuzzy reasoning
The parameter K of preceding PID controllerp(k)、Ki(k)、Kd(k), to obtain the optimum performance of speed-regulating system.And control the real-time of wheel
Revolving speed r ω (k)=0.8v (k) makes the slip rate of tire in vehicle travel process near 0.2, obtain maximum adhesive force with
Shortest braking distance.
Other features and advantages of the present invention will the following detailed description will be given in the detailed implementation section.
Specific embodiment
Below in conjunction with attached drawing, detailed description of the preferred embodiments.It should be understood that this place is retouched
The specific embodiment stated is merely to illustrate and explain the present invention, and is not intended to restrict the invention.
In the present invention, in the absence of explanation to the contrary, the noun of locality used such as " upper and lower, left and right " typically refers to
It is as shown in Figure 2 up and down." inside and outside " refer in specific profile it is interior with it is outer." remote, close " refers to relative to some component
Far and closely.
The present invention provides a kind of electric bicycle braking force distribution system, the electric bicycle braking force distribution system packet
It includes: microprocessor, velocity sensor, driving circuit, hub motor, pressure sensor and six axis gyroscopes;Wherein, the driving
Circuit connection is in the hub motor, to pass through the traveling of the revolving speed for controlling the hub motor and steering adjustment electric bicycle
Speed;The velocity sensor is connected to the hub motor, to acquire the travel speed of current electric bicycle;The pressure
The pressure of sensor acquisition bicyclist;The running gradient of the six axis gyroscope acquisition electric bicycle;The controller connection
In the velocity sensor, pressure sensor, six axis gyroscopes and driving circuit, according to the pressure of bicyclist, electrical salf-walking
The travel speed of the running gradient of vehicle and current electric bicycle makes electricity to adjust the travel speed of the electric bicycle
The slip rate of dynamic bicycle is stable at preset value 0.2.
Pass through the friction coefficient μ (k-1) and bicyclist and electric bicycle gross mass m on measurement wheel and groundt, warp
Fuzzy reasoning is crossed, adjusts the parameter K of PID controller in real timep(k)、Ki(k)、Kd(k), control electric bicycle tire and ground it
Between slip rate be 0.2, obtain maximum adhesive force and shortest braking distance, improve the safety of vehicle driving.In public affairs
FormulaIn, s (k) is the slip rate of electric bicycle;R ω (k) is the speed of electric bicycle wheel rotation, v
It (k) is the actual speed of electric bicycle vehicle body.
In a kind of specific embodiment of the invention, the electric bicycle braking force distribution system further include: power supply, institute
Power electric connection is stated in the driving circuit, to provide power supply to the driving circuit to drive the rotation of the hub motor.
In a kind of specific embodiment of the invention, the pressure sensor is electrically connected to described by analog-digital converter
Microprocessor.
In a kind of specific embodiment of the invention, the six axis gyroscope is the six axis gyroscopes of model MPU6050.
In a kind of specific embodiment of the invention, the microprocessor is the single-chip microcontroller of model STM32F103RCT6.
In a kind of specific embodiment of the invention, the motor is three-phase brushless dc motor.
In a kind of specific embodiment of the invention, the velocity sensor is Hall encoder.
In the preferred embodiment of the present invention, electric bicycle braking force distribution system of the invention includes micro- place
Manage device, power supply, driving circuit, hub motor, encoder, pressure sensor, A/D converter, input module and MPU6050 six
Axis gyroscope composition.Wherein power supply is connected directly by motor-drive circuit and hub motor, micro process and motor-drive circuit
It is connected, issue pwm control signal control motor speed and turns to.The velocity sensor is connected to the motor, by the revolving speed of motor
Signal is converted into pulse signal and is sent to processor.Pressure sensor passes through A/D converter and microprocessor phase Electricity Federation.
Six axis gyroscope of MPU6050 and microprocessor phase Electricity Federation.
It is θ in the gradient of vehicle driving road, θ can be measured by MPU6050.Wherein, -60 ° < θ < 60 °, when -60 °≤θ < 0 °
When, electric bicycle goes up a slope;The electric bicycle descending when 0 ° < θ≤60 °, when θ=0 °, electric bicycle is in level road row
It sails.Electric bicycle sole mass mv, pressure sensor collects the quality m of bicyclistp, then bicyclist and electric bicycle
Gross mass is mt=mv+mp.Single-chip microcontroller uses PWM control mode driving motor, and under current monolithic machine driving signal, motor shaft is defeated
Tractive force out is F (k), then in electric bicycle driving process, the coefficient of friction at the k moment on tire and road surface is μ (k),
As shown in Figure 2:
F (k)+mgsin θ-μ (k) mgcos θ=mta(k);
The kth moment of electric bicycle braking, wheel slip are as follows:
In formula, ω (k) is the angular speed of electric car wheel, is measured by velocity sensor.
V (k) is electric bicycle vehicle body speed, can be measured by MPU6050 chip, k moment vehicle body is in direction of advance
Acceleration be a (k), sampling period of microprocessor is T, then have:
V (k)=v (k-1)+a (k-1) T;
It is expected thatR ω (k)=0.8v (k) must then be met.
Therefore the invention patent controls the slip rate of electric bicycle using the method for adjusting vehicle wheel rotational speed.As shown in figure 3,
Based on microprocessor Design fuzzy controller, and construct Closed-Loop Speed Governing System.When bicyclist presses parking brake, triggering and micro- place
The connected input module of device is managed, microprocessor is according to the friction coefficient μ (k-1) on ground and bicyclist and the total matter of electric bicycle
Measure mt, the parameter K of current PID controller is calculated by fuzzy reasoningp(k)、Ki(k)、Kd(k), to obtain speed-regulating system
Optimum performance.And real-time revolving speed r ω (k)=0.8v (k) of wheel is controlled, so that the slip rate of tire in vehicle travel process is existed
Near 0.2, maximum adhesive force and shortest braking distance are obtained.
The invention patent, structure is simple, low in cost.
Pass through the friction coefficient μ (k-1) and bicyclist and electric bicycle gross mass m on measurement wheel and groundt, warp
Fuzzy reasoning is crossed, adjusts the parameter K of PID controller in real timep(k)、Ki(k)、Kd(k), control electric bicycle tire and ground it
Between slip rate be 0.2, obtain maximum adhesive force and shortest braking distance, improve the safety of vehicle driving.
It is described the prefered embodiments of the present invention in detail above in conjunction with attached drawing, still, the present invention is not limited to above-mentioned realities
The detail in mode is applied, within the scope of the technical concept of the present invention, a variety of letters can be carried out to technical solution of the present invention
Monotropic type, these simple variants all belong to the scope of protection of the present invention.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, can be combined in any appropriate way, in order to avoid unnecessary repetition, the present invention to it is various can
No further explanation will be given for the combination of energy.
In addition, various embodiments of the present invention can be combined randomly, as long as it is without prejudice to originally
The thought of invention, it should also be regarded as the disclosure of the present invention.