Disclosure of Invention
The present invention provides an electric bicycle with energy recovery function, aiming at the above problems and technical requirements, and the technical scheme of the invention is as follows:
an electric bicycle with an energy recovery function comprises a main control chip, a gyroscope chip, a brake signal acquisition circuit, a storage battery residual electric quantity acquisition circuit, a motor output electric quantity acquisition circuit, a speed regulation handle signal acquisition circuit, a speed acquisition circuit and a power supply circuit, wherein the gyroscope chip, the brake signal acquisition circuit, the storage battery residual electric quantity acquisition circuit, the motor output electric quantity acquisition circuit, the speed regulation handle signal acquisition circuit and the speed acquisition circuit are connected to the main control chip, and the power supply circuit supplies power to each circuit and each chip;
the main control chip acquires gradient information through the gyroscope chip;
when the gradient information indicates that the electric bicycle runs downhill or on a flat ground, and the main control chip acquires brake pedal output brake information through a brake signal acquisition circuit, if the running speed of the electric bicycle acquired through the speed acquisition circuit is higher than a preset speed, the main control chip acquires motor output electric quantity and storage battery residual electric quantity through the motor output electric quantity acquisition circuit and the storage battery residual electric quantity acquisition circuit respectively, and energy recovery is performed according to the motor output electric quantity and the storage battery residual electric quantity;
when the gradient information indicates that the electric bicycle runs downhill and the main control chip does not receive the signal of the brake signal acquisition circuit, if the running speed of the electric bicycle acquired by the speed acquisition circuit is higher than a preset speed, the main control chip acquires the speed adjusting handle information by the speed adjusting handle signal acquisition circuit and performs energy recovery according to the speed adjusting handle information;
when the gradient information indicates that the electric bicycle goes uphill, the main control chip controls the electric bicycle to run at the original speed.
The further technical scheme is that the energy recovery of the information according to the speed regulation comprises the following steps:
when the speed regulating handle information is not output with acceleration information, the main control chip respectively acquires the output electric quantity of the motor and the residual electric quantity of the storage battery through the output electric quantity acquisition circuit of the motor and the residual electric quantity acquisition circuit of the storage battery, and energy recovery is carried out according to the output electric quantity of the motor and the residual electric quantity of the storage battery.
The further technical scheme is that the energy recovery is carried out according to the output electric quantity of the motor and the residual electric quantity of the storage battery, and the energy recovery method comprises the following steps:
and when the output electric quantity of the motor is greater than the residual electric quantity of the storage battery, the main control chip drives the motor to charge the storage battery.
The further technical proposal is that the brake signal acquisition circuit comprises a plurality of resistors, a first triode and a first diode, one end of the first resistor is respectively connected with one end of the second resistor and a brake pedal of the electric bicycle, the other end of the first resistor is connected to one end of a fifth resistor, the other end of the second resistor is connected to the cathode of the first diode, the anode of the first diode is connected to one end of the third resistor and one end of the fourth resistor respectively, one end of the third resistor is connected to the power circuit, the other end of the fourth resistor is connected to a brake signal end of the main control chip, the other end of the fifth resistor is respectively connected to one end of a sixth resistor and the base of the first triode, the collector of the first triode is connected to the anode of the first diode, and the emitter of the first triode and the other end of the sixth resistor are grounded.
The further technical scheme is that the storage battery residual capacity acquisition circuit comprises a plurality of resistors and a first capacitor, one end of a seventh resistor is connected to the storage battery capacity acquisition end of the main control chip, the other end of the seventh resistor is connected to one end of an eighth resistor, one end of a ninth resistor and one end of the first capacitor, the other end of the eighth resistor is used for being connected to the storage battery of the electric bicycle, and the other end of the ninth resistor and the other end of the first capacitor are grounded.
The further technical scheme is that the motor output electric quantity acquisition circuit comprises three motor output electric quantity acquisition branches, each motor output electric quantity acquisition branch comprises two output electric quantity branch resistors, one end of each first output electric quantity branch resistor is connected to a signal output end of a motor of the electric bicycle, and the other end of each first output electric quantity branch resistor is connected to a motor electric quantity acquisition end of the main control chip and is grounded through a second output electric quantity branch resistor.
The further technical proposal is that the speed-regulating signal acquisition circuit comprises a plurality of resistors, a second diode and a second capacitor, one end of a tenth resistor and the anode of the second diode are connected with the power circuit, the other end of the tenth resistor and the cathode of the second diode are connected to the anode of a speed regulating handle of the electric bicycle, one end of the eleventh resistor is connected to the acquisition end of the speed regulating handle of the main control chip, the other end of the eleventh resistor and one end of the twelfth resistor are used for being connected to a signal pole of a speed regulating handle of the electric bicycle, the other end of the twelfth resistor is connected to one end of the thirteenth resistor and one end of the second capacitor, the other end of the twelfth resistor is also connected with the ground, and the other end of the thirteenth resistor and the other end of the second capacitor are connected to the acquisition end of the speed regulation handle of the main control chip.
The further technical scheme is that the speed acquisition circuit comprises three speed acquisition branches, each speed acquisition branch comprises two speed branch resistors and a speed branch capacitor, one end of the first speed branch resistor is connected to the power circuit, the other end of the first speed branch resistor is connected to one end of the second speed branch resistor and one Hall output end of a wheel of the electric bicycle, the other end of the second speed branch resistor is connected to one speed acquisition end of the main control chip and one end of the speed branch capacitor, and the other end of the speed branch capacitor is grounded.
According to a further technical scheme, the energy recovery circuit further comprises an instrument signal output circuit, the instrument signal output circuit comprises a fourteenth resistor, one end of the fourteenth resistor is connected to an instrument signal end of the main control chip, the other end of the fourteenth resistor is used for being connected to an instrument of the electric bicycle, and the main control chip displays energy recovery information on the instrument through the instrument signal output circuit.
The further technical scheme is that the type of the gyroscope chip is MPU 6050.
The beneficial technical effects of the invention are as follows: through the energy recovery circuit of this application, can be when guaranteeing the travelling comfort that the vehicle was taken when moving, the energy that can maximize recovery simultaneously reduces the energy consumption of vehicle operation, reduces the running cost, has prolonged the life and the maintenance cost of battery, has solved the shorter problem of electric bicycle continuation of the journey mileage, has realized the high-efficient utilization of the energy.
Detailed Description
The following further describes the embodiments of the present invention with reference to the drawings.
A flow chart of a processing method of an electric bicycle with an energy recovery function is shown in fig. 1, a main control chip MCU obtains gradient information of the electric bicycle through a gyroscope chip, and the gradient information indicates that the electric bicycle runs on a downhill, an uphill and a flat ground.
When the gradient information indicates that the electric bicycle runs downhill or on a flat ground, and the main control chip acquires the output brake information of the brake pedal through the brake signal acquisition circuit, if the brake pedal is not stepped on, the electric bicycle runs at the original speed, if the running speed of the electric bicycle acquired through the speed acquisition circuit is greater than the preset speed, the main control chip acquires the output electric quantity of the motor and the residual electric quantity of the storage battery through the output electric quantity acquisition circuit of the motor and the residual electric quantity acquisition circuit of the storage battery respectively, and performs energy recovery according to the output electric quantity of the motor and the residual electric quantity of the storage battery, namely when the output electric quantity of the motor is greater than the residual electric quantity of the storage battery, the motor charges the storage battery, and when the running speed is less than or equal to the preset speed, the electric bicycle runs at the original speed.
When the gradient information indicates that the electric bicycle runs downhill and the main control chip does not receive a signal of the brake signal acquisition circuit, if the running speed of the electric bicycle acquired through the speed acquisition circuit is higher than a preset speed, the main control chip acquires speed regulation handle information through the speed regulation handle signal acquisition circuit and performs energy recovery according to the speed regulation handle information, when the speed regulation handle outputs acceleration information, energy recovery is not performed at the moment, and when the running speed is lower than or equal to the preset speed, the electric bicycle runs at the original speed.
When the gradient information indicates that the electric bicycle goes up a slope, the main control chip controls the electric bicycle to run at the original speed.
Specifically, the present application exemplifies one of the embodiments:
firstly, when the gradient information is downhill:
(1) if the brake pedal is braking, the main control chip acquires the braking information and acquires the current running speed of the electric bicycle, the preset speed is set to be 15km/h only when the running speed is higher than the preset speed, the main control chip can perform subsequent energy recovery steps, therefore, the electric bicycle is guaranteed not to stop running due to energy recovery when running at low speed, when the electric bicycle is higher than 15km/h, the main control chip can acquire the residual electric quantity SOC1 of the storage battery and the output electric quantity SOC2 of the motor, and only when the SOC2 is higher than the SOC1, the motor charges the storage battery.
(2) If the brake pedal is not braked, the main control chip MCU acquires the information of the speed regulating handle, only when the speed regulating handle does not output the information and the driving speed is more than 15km/h, the main control chip acquires the residual electric quantity SOC1 of the storage battery and the output electric quantity SOC2 of the motor, and only when the SOC2 is more than the SOC1, the motor charges the storage battery.
(3) If the brake pedal does not brake and the speed regulating handle outputs information, the energy recovery is not carried out at the moment.
Secondly, when the gradient information is flat land:
if the brake pedal is braking, the main control chip acquires the braking information and acquires the current running speed of the electric bicycle, when the electric bicycle is more than 15km/h, the main control chip acquires the residual electric quantity SOC1 of the storage battery and the output electric quantity SOC2 of the motor, and only when the SOC2 is more than the SOC1, the motor charges the storage battery.
Thirdly, when the gradient information is an ascending slope:
the main control chip controls the electric bicycle to run at the original speed, and energy recovery is not carried out at the moment.
The energy recovery circuit comprises a main control chip MCU, a brake signal acquisition circuit, a gyroscope chip, a motor output electric quantity acquisition circuit, a storage battery residual electric quantity acquisition circuit, a speed regulation signal acquisition circuit, a speed acquisition circuit and a power supply circuit, wherein the brake signal acquisition circuit, the motor output electric quantity acquisition circuit, the storage battery residual electric quantity acquisition circuit, the speed regulation signal acquisition circuit, the gyroscope chip and the speed acquisition circuit are connected to the main control chip, and the power supply circuit supplies power for each circuit and each chip.
As shown in fig. 3, the model of the gyroscope chip is MPU6050, the first signal output terminal SDA of the gyroscope chip is connected to the first signal acquisition terminal SDA of the main control chip MCU, the second signal output terminal SCL of the gyroscope chip is connected to the second signal acquisition terminal SCL of the main control chip MCU, and the slope information of the current electric bicycle is determined by the gyroscope chip, so that it is determined whether the electric bicycle is traveling on an uphill slope, a downhill slope, or a flat ground.
As shown in fig. 4, the brake signal collecting circuit includes a plurality of resistors, a first transistor Q1 and a first diode D1, the first transistor Q1 is an NPN type transistor, one end of the first resistor R1 is connected to one end of a second resistor R2 and a brake pedal SEO of the electric bicycle, the other end of the first resistor R1 is connected to one end of a fifth resistor R5, the other end of the second resistor R2 is connected to a cathode of the first diode D1, an anode of a first diode D1 is connected to one end of a third resistor R3 and one end of a fourth resistor R4, one end of the third resistor R3 is connected to the power circuit, the other end of the fourth resistor R4 is connected to the brake signal terminal S of the main control chip MCU, the other end of the fifth resistor is connected to one end of a sixth resistor R6 and a base of the first transistor Q1, a collector of the first transistor Q1 is connected to the anode of the first diode D1, an emitter of the first transistor Q1 and the other end of the sixth resistor R6 are grounded, when the brake pedal is trampled by a user, the brake signal acquisition circuit acquires the brake information of the brake pedal of the electric bicycle and transmits the brake information to the main control chip MCU.
As shown in fig. 5, the remaining battery power acquiring circuit includes a plurality of resistors and a first capacitor, one end of a seventh resistor R7 is connected to the battery power acquiring terminal LV of the main control chip, the other end of the seventh resistor R7 is connected to one end of an eighth resistor R8, one end of a ninth resistor R9 and one end of a first capacitor C1, the other end of the eighth resistor R8 is used for being connected to the battery of the electric bicycle, the other end of the ninth resistor R9 and the other end of the first capacitor C1 are grounded, and the remaining battery power acquiring circuit acquires the remaining battery SOC1 of the battery of the electric bicycle.
As shown in fig. 6, the electric motor output electric quantity acquisition circuit includes three electric motor output electric quantity acquisition branches, and the three electric motor output electric quantity acquisition branches are connected to three signal output ends CX, BX, AX of the electric bicycle's motor respectively, and these three branches are connected to three electric motor electric quantity ends SU, SV, SW of the main control chip MCU simultaneously, and the embodiment of one of the electric motor output electric quantity acquisition branches is given out: first motor output electric quantity collection branch road includes two output electric quantity branch road resistances, and the one end of first output electric quantity branch road resistance R21 is connected to a signal output part CX of motor, the other end is connected to a motor electric quantity collection end SU of main control chip MCU and through second output electric quantity branch road resistance R22 ground connection, gathers the output electric quantity SOC2 of electric bicycle's motor through motor output electric quantity collection circuit.
As shown in fig. 7, the throttle grip signal acquisition circuit includes a plurality of resistors, one end of a tenth resistor R10 and the anode of the second diode D2 are connected to a power circuit, the other end of the tenth resistor R10 and the cathode of the second diode D2 are connected to the anode S5VO of the electric bicycle speed-adjusting handle, one end of an eleventh resistor R11 is connected to the TSO of the speed-adjusting handle collecting end of the main control chip, the other end of an eleventh resistor R11 and one end of a twelfth resistor R12 are used for being connected to the signal pole of the electric bicycle speed-adjusting handle, the other end of a twelfth resistor R12 is connected to one end of a thirteenth resistor R13 and one end of a second capacitor C2, the other end of a twelfth resistor R12 is also connected to the ground, the other end of the thirteenth resistor R13 and the other end of the second capacitor C2 are connected to the TS of the speed-adjusting handle collecting end of the main control chip, and the speed-adjusting handle information collecting circuit is used for collecting information of the electric bicycle speed-adjusting handle.
As shown in fig. 8, the speed acquisition circuit includes three speed acquisition branches, the three speed acquisition branches are connected to three hall output ends HWO, HVO, HUO of electric bicycle's wheel respectively, and simultaneously, the three speed acquisition branches are also connected to main control MCU's speed acquisition end HW, HV, HU respectively, and each speed acquisition branch includes two speed branch resistances and a speed branch capacitance, gives an example of one of the speed acquisition branches: one end of the first speed branch resistance R31 is connected to the power supply circuit, the other end is connected to one end of the second speed branch resistance R32 and a signal output end of the wheel, the other end of the second speed branch resistance R32 is connected to one end of a speed acquisition end HW and a speed branch capacitance C31 of the main control chip MCU, the other end of the speed branch capacitance C31 is grounded, the electric bicycle senses the rotating speed of the wheel through the Hall sensor, and relevant information is transmitted to the main control chip MCU, and therefore the main control chip MCU can acquire the speed of the current electric bicycle.
As shown in fig. 9, the energy recovery circuit further includes an instrument signal output circuit, the instrument signal output circuit includes a fourteenth resistor R14, one end of the fourteenth resistor R14 is connected to an instrument signal terminal MT of the main control chip MCU, and the other end is used for being connected to an instrument MTO of the electric bicycle, and the energy recovery information of the storage battery can be transmitted to the instrument through the instrument signal output circuit, so that a riding user can conveniently know the current battery information.
What has been described above is only a preferred embodiment of the present application, and the present invention is not limited to the above embodiment. It is to be understood that other modifications and variations directly derivable or suggested by those skilled in the art without departing from the spirit and concept of the present invention are to be considered as included within the scope of the present invention.