Automatic control method, system, electronic device and storage medium for electric-assisted bicycle

By monitoring the speed, acceleration and inclination data of the electric-assisted bicycle, adjusting the motor power output, the problem of insufficient or excessive power in the ramped road conditions is solved, and the riding experience and safety is improved.

CN116215730BActive Publication Date: 2024-12-06SHENZHEN WEILE HI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310365392.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-03
Publication Date
2024-12-06
Estimated Expiration
2043-04-03

AI Technical Summary

Technical Problem

The power output of existing electric power bicycles does not match the user's wishes during ramp conditions, which may lead to insufficient or excessive power, affecting the riding experience and safety.

Method used

By monitoring the speed, acceleration and inclination sensor data of the electric-assisted bicycle, combined with preset thresholds, power control commands are generated to adjust the motor power output, ensure that the power output matches user needs, and avoid risks under ramped road conditions.

Benefits of technology

It achieves more precise acquisition of user power needs, improve cycling experience, and reduce power output under ramped road conditions to protect user safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116215730B_ABST
    Figure CN116215730B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide an automatic control method, system, electronic device and storage medium for an electric-assisted bicycle. The method includes: monitoring the speed in the state parameters obtained by a rotation speed sensor, monitoring the acceleration in the state parameters obtained by an acceleration sensor, and monitoring the forward tilt angle in the state parameters obtained by a tilt angle sensor; comparing the speed with a first speed threshold, and the forward tilt angle with a second angle threshold, to determine whether a warning condition is met in which the speed is greater than the first speed threshold or the forward tilt angle is greater than the second angle threshold; if any one of the warning conditions is met, weakening or stopping the power output of the electric-assisted bicycle; if the warning condition is not met, continuing to compare the acceleration with the first acceleration threshold, and the forward tilt angle with the first angle threshold; if the result of the continued comparison is that the forward tilt angle is greater than the first angle threshold and the acceleration is less than the first acceleration threshold in which the acceleration condition is met, increasing the power output of the electric-assisted bicycle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electric-assisted bicycles, and more specifically, to an automatic control method, system, electronic device and storage medium for electric-assisted bicycles. Background Art

[0002] Some existing electric-assisted bicycles have the function of automatically adjusting power output, but they still have certain defects when facing sloped road conditions. For example, when facing sloped road conditions, existing electric-assisted bicycles generally determine the power output of the electric-assisted bicycle motor by detecting the speed of the electric-assisted bicycle or the pedaling frequency of the user. Generally, when the speed or pedaling frequency is faster, it is believed that the user needs a faster speed, so the power output of the motor is increased. Conversely, when the speed or pedaling frequency slows down, the power output of the motor is reduced. However, the speed or pedaling frequency may not match the actual intention of the user. For example, the actual slowdown of the speed and the reduction of the pedaling frequency on a slope may be caused by the user's lack of physical strength, but this does not necessarily mean that the user does not want a greater power output. Summary of the invention

[0003] In view of this, embodiments of the present application provide an automatic control method, system, electronic device and storage medium for an electric assisted bicycle to at least partially solve the above problems.

[0004] According to a first aspect of an embodiment of the present application, there is provided an automatic control method for an electric-assisted bicycle, comprising: monitoring a rotation speed sensor of the electric-assisted bicycle through a controller of the electric-assisted bicycle to obtain a speed in a state parameter, monitoring an acceleration sensor of the electric-assisted bicycle to obtain an acceleration in a state parameter, and monitoring an inclination sensor of the electric-assisted bicycle to obtain a forward tilt angle in a state parameter, wherein the forward tilt angle is an angle between a forward direction of the electric-assisted bicycle and a horizontal plane; obtaining a preset first speed threshold, a first acceleration threshold, a first angle threshold, and a second angle threshold from a memory in the controller; comparing the speed with the first speed threshold, and the forward tilt angle with the second angle threshold to determine whether a warning condition is met. the speed is greater than the first speed threshold or the forward lean angle is greater than the second angle threshold; if any one of the warning conditions is met, a first power control instruction is generated to control the motor of the electric-assisted bicycle to reduce or stop the power output of the electric-assisted bicycle; if the warning condition is not met, the acceleration is continued to be compared with the first acceleration threshold, and the forward lean angle is continued to be compared with the first angle threshold to determine whether the acceleration condition that the forward lean angle is greater than the first angle threshold and the acceleration is less than the first acceleration threshold is met; if the result of continued comparison is that the acceleration condition that the forward lean angle is greater than the first angle threshold and the acceleration is less than the first acceleration threshold is met, a second power control instruction is generated to control the motor to increase the power output of the electric-assisted bicycle.

[0005] Optionally, in any embodiment of the present application, the state parameter further includes a roll angle of the electric-assisted bicycle, and the warning condition further includes: the roll angle is greater than a third angle threshold, wherein the third angle threshold is determined according to an angle when the electric-assisted bicycle is in a rollover state;

[0006] The method provided in this embodiment also includes:

[0007] Monitor the tilt sensor of the electric bicycle to obtain the roll angle in the state parameter;

[0008] Retrieve a preset third angle threshold from the memory;

[0009] Comparing the speed with the first speed threshold, and the forward tilt angle with the second angle threshold, to determine whether the speed is greater than the first speed threshold or the forward tilt angle is greater than the second angle threshold in the warning condition is met, including:

[0010] The speed is compared with the first speed threshold, the forward tilt angle is compared with the second angle threshold, and the roll angle is compared with the third angle threshold to determine whether the warning conditions are met, that is, the speed is greater than the first speed threshold, the forward tilt angle is greater than the second angle threshold, or the roll angle is greater than the third angle threshold.

[0011] Optionally, in any embodiment of the present application, the method further includes: when the duration of the roll angle being greater than the third angle threshold exceeds a preset time threshold, sending a warning message to a preset target.

[0012] Optionally, in any embodiment of the present application, the method also includes: obtaining a preset second acceleration threshold from the memory; comparing the acceleration with the second acceleration threshold; if the acceleration is less than the second acceleration threshold, generating a third control instruction to control the motor and stop the power output of the electric assisted bicycle.

[0013] Optionally, in any embodiment of the present application, increasing the power output of the electric-assisted bicycle includes: calculating the average value of the power output within a predetermined period when the lean angle is less than a first angle threshold to obtain a basic power value; multiplying the lean angle by a preset power output coefficient to obtain a power adjustment item; adding the basic power value to the power adjustment item to obtain an adjusted total power output value; and adjusting the power output of the electric-assisted bicycle according to the total power output value.

[0014] Optionally, in any embodiment of the present application, the state parameter further includes the pedaling force of the electric power-assisted bicycle pedal, and the acceleration condition further includes the pedaling force being greater than the force threshold. The method further includes:

[0015] The force sensor on the pedal of the electric power-assisted bicycle is monitored to obtain the pedaling force in the state parameter;

[0016] Retrieving a preset force threshold from a memory;

[0017] If the warning condition is not met, then continue to compare the acceleration with the first acceleration threshold, and the forward tilt angle with the first angle threshold, to determine whether the forward tilt angle is greater than the first angle threshold and the acceleration is less than the first acceleration threshold in the acceleration condition, including:

[0018] If the warning condition is not met, then continue to compare the acceleration with the first acceleration threshold, the forward tilt angle with the first angle threshold, and the pedaling force with the force threshold to determine whether the acceleration condition is met that the forward tilt angle is greater than the first angle threshold, the acceleration is less than the first acceleration threshold, and the pedaling force is greater than the force threshold; and

[0019] If the result of the continued comparison is that the forward tilt angle in the acceleration condition is greater than the first angle threshold and the acceleration is less than the first acceleration threshold, a second power control instruction is generated to control the motor to increase the power output of the electric-assisted bicycle, including:

[0020] If the result of continued comparison is that the acceleration conditions are met, such as the lean angle is greater than the first angle threshold, the acceleration is less than the first acceleration threshold, and the pedaling force is greater than the force threshold, a third power control instruction is generated to control the motor to increase the power output of the electric assisted bicycle until the pedaling force is less than the force threshold, and the pedaling force is at least inversely proportional to the speed.

[0021] According to a second aspect of an embodiment of the present application, an automatic control system for an electric-assisted bicycle is provided, comprising: a monitoring module, an acquisition module, a comparison module, and a control module, wherein:

[0022] A monitoring module is used to monitor the speed sensor of the electric-assisted bicycle to obtain the speed in the state parameter, monitor the acceleration sensor of the electric-assisted bicycle to obtain the acceleration in the state parameter, and monitor the inclination sensor of the electric-assisted bicycle to obtain the forward tilt angle in the state parameter, wherein the forward tilt angle is the angle between the forward direction of the electric-assisted bicycle and the horizontal plane;

[0023] An acquisition module, used for acquiring a preset first speed threshold, a first acceleration threshold, a first angle threshold, and a second angle threshold from a memory in the controller;

[0024] A comparison module is used to compare the speed with a first speed threshold, and the forward tilt angle with a second angle threshold, so as to determine whether the speed is greater than the first speed threshold or the forward tilt angle is greater than the second angle threshold in the early warning condition, and to compare the acceleration with the first acceleration threshold, and the forward tilt angle with the first angle threshold, so as to determine whether the forward tilt angle is greater than the first angle threshold and the acceleration is less than the first acceleration threshold in the acceleration condition;

[0025] A control module is used to control the power output of the electric-assisted bicycle according to the comparison result of the comparison module, wherein if the comparison result satisfies any one of the warning conditions, a first power control instruction is generated to control the motor of the electric-assisted bicycle to reduce or stop the power output of the electric-assisted bicycle; if the comparison result does not satisfy the warning condition but satisfies the acceleration condition in which the forward tilt angle is greater than a first angle threshold and the acceleration is less than a first acceleration threshold, a second power control instruction is generated to control the motor to increase the power output of the electric-assisted bicycle.

[0026] Optionally, in any embodiment of the present application, the state parameter also includes the roll angle of the electric assisted bicycle, and the warning condition also includes: the roll angle is greater than a third angle threshold; the monitoring module is also used to monitor the tilt sensor of the electric assisted bicycle to obtain the roll angle; the acquisition module is also used to obtain a preset third angle threshold from the memory; the comparison module is also used to compare the roll angle with the third angle threshold to determine whether the roll angle in the warning condition is greater than the third angle threshold.

[0027] According to the third aspect of an embodiment of the present application, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to any one of the above methods.

[0028] According to a fourth aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, any of the above methods is implemented.

[0029] The embodiment of the present application controls the power output of the electric-assisted bicycle according to the three factors of the forward tilt angle, acceleration and warning conditions of the electric-assisted bicycle, wherein the forward tilt angle can reflect whether the electric-assisted bicycle is in a slope road condition, and eliminates the interference of the road slope angle in the non-driving direction on the motion state judgment; the magnitude of the acceleration can reflect the magnitude of the resultant force on the electric-assisted bicycle, and the magnitude of the power required for the electric-assisted bicycle to move forward can be understood through the acceleration, and the user's demand for power can be obtained more accurately; further, by setting the power output of the electric-assisted bicycle to be weakened or stopped when the warning conditions such as the vehicle speed is greater than the first speed threshold and the forward tilt angle is greater than the second angle threshold are met, some risks of slope road conditions can be avoided, and the power output can be reduced when necessary, and even braking can be started to protect the safety of the user. In summary, the embodiment of the present application controls the power output of the electric-assisted bicycle according to the three factors of the forward tilt angle, acceleration and warning conditions, which can provide the user with the motor power output required by the user more accurately while avoiding some risks of slope road conditions, and comprehensively improve the user's riding experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0031] Figure 1 It is a flow chart of an automatic control method of an electric-assisted bicycle according to an embodiment of the present application;

[0032] Figure 2 is a circuit diagram of an electric-assisted bicycle according to an embodiment of the present application;

[0033] Figure 3 It is a schematic diagram of an automatic control method system of an electric-assisted bicycle according to an embodiment of the present application;

[0034] Figure 4 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.

[0036] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present application provides an automatic control method for an electric-assisted bicycle to at least partially solve the problem. Compared with the existing control method for an electric-assisted bicycle, the automatic control method for an electric-assisted bicycle provided in the embodiment of the present application can more accurately obtain the user's power demand, provide corresponding power output according to the demand, and avoid some risks of slope road conditions to protect the user's safety.

[0037] The embodiments described with reference to the accompanying drawings are exemplary. Figure 1 The embodiments of the present invention are described in detail.

[0038] like Figure 1 As shown, the automatic control method of the electric-assisted bicycle provided in the embodiment of the present application includes:

[0039] S102: Using the controller of the electric-assisted bicycle, the speed sensor of the electric-assisted bicycle is monitored to obtain the speed in the state parameter, the acceleration sensor of the electric-assisted bicycle is monitored to obtain the acceleration in the state parameter, and the inclination sensor of the electric-assisted bicycle is monitored to obtain the forward tilt angle in the state parameter, wherein the forward tilt angle is the angle between the forward direction of the electric-assisted bicycle and the horizontal plane.

[0040] The state parameters of the electric power-assisted bicycle are used to represent its motion state, and the state parameters include at least speed, acceleration, forward tilt angle, etc. The controller of the electric power-assisted bicycle is used to receive the signals input by each sensor, and has received data such as torque, speed, and pedaling frequency, and then obtains the output signal through calculation to control the various functions such as the running speed, start, and stop of the motor. The specific structure of the controller is not limited in this application. The speed sensor of the electric power-assisted bicycle can adopt the commonly used Hall sensor, or other suitable sensors. The speed sensor can be set in the motor, or on the wheel or frame, or at other suitable positions on the electric power-assisted bicycle. The acceleration sensor and the inclination sensor can adopt the commonly used acceleration sensors in the art, for example, the commonly used six-axis acceleration sensor can be used as the acceleration sensor and the inclination sensor to measure the acceleration and the inclination at the same time. Among them, the magnitude of the acceleration can reflect the magnitude of the resultant force on the electric power-assisted bicycle and the increase or decrease of the speed. The magnitude of the power required for the electric power-assisted bicycle to move forward can be understood through the acceleration. It should be understood that the acceleration used in this application refers to the acceleration in the forward direction of the electric power-assisted bicycle. The tilt angle can indicate the slope of the road on which the electric-assisted bicycle is traveling in the direction of its travel. The tilt angle can be used to eliminate the interference of the slope angle of the road in the non-travel direction on the judgment of the motion state.

[0041] S104: Obtaining a preset first speed threshold, a first acceleration threshold, a first angle threshold, and a second angle threshold from a memory in the controller.

[0042] The memory storing the first speed threshold, the first acceleration threshold, the first angle threshold and the second angle threshold may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, which is not limited in the present application.

[0043] S106: Compare the speed with the first speed threshold, and the forward tilt angle with the second angle threshold to determine whether the warning condition is satisfied that the speed is greater than the first speed threshold or the forward tilt angle is greater than the second angle threshold.

[0044] The early warning condition in the embodiment of the present application is used to indicate the transition state between the electric power-assisted bicycle from normal driving to overturning. The consequences of the dangers such as overturning and hitting obstacles on the ramp of the electric power-assisted bicycle are often more serious than on flat ground. Since the above consequences will be aggravated at a higher speed, the early warning condition in the embodiment of the present application at least includes the speed reaching the first speed threshold, which can be set to 25km / h with reference to the new national standard speed upper limit, or can be set according to the reaction speed of the person, so that the user is about to face enough reaction time. Of course, the first speed threshold can also be determined by other suitable methods. In addition, the early warning condition of the embodiment of the present application also includes the second angle threshold value representing the upper limit of the forward tilt angle, and the second angle threshold value can be the highest climbing angle designed for the electric power-assisted bicycle. Specifically, the highest climbing angle is the maximum slope that the electric power-assisted bicycle can overcome with the rated power on a good road surface when it is fully loaded, which characterizes the climbing ability of the electric power-assisted bicycle. When the state parameter meets the early warning condition, the electric power-assisted bicycle can also remind the user, such as the indicator light turns on or the color changes, the horn makes a specific sound, etc.

[0045] S108: If any one of the warning conditions is met, a first power control instruction is generated to control the motor of the electric-assisted bicycle to reduce or stop the power output of the electric-assisted bicycle.

[0046] When the status parameters of the electric-assisted bicycle meet the warning conditions, it means that the user is at a greater risk of tipping over, so the power output is reduced or stopped at this time so that the user can better control the electric-assisted bicycle.

[0047] S110: If the warning condition is not met, then continue to compare the acceleration with the first acceleration threshold, and the forward tilt angle with the first angle threshold, to determine whether the acceleration condition is met that the forward tilt angle is greater than the first angle threshold and the acceleration is less than the first acceleration threshold.

[0048] If the status parameters do not meet the warning conditions, it means that the electric-assisted bicycle is running normally and is not facing dangerous situations such as overturning or hitting obstacles. In this embodiment, it is possible to further determine whether to adjust the power of the electric-assisted bicycle based on the acceleration and the forward tilt angle, that is, continue to compare the acceleration with the first acceleration threshold, and the forward tilt angle with the first angle threshold.

[0049] The first angle threshold can be determined according to the degree of effort that a general user can accept when riding, and the first angle threshold is greater than 0. For example, when the first angle threshold is less than 5 degrees, the user feels that the degree of effort of riding is more appropriate, and the riding speed at this time can be maintained for a long time. When the first angle threshold is greater than 5 degrees, the user feels that riding is more laborious and it is difficult to maintain the riding speed at this time for a long time, so 5 degrees can be set as the first angle threshold. Of course, the above is only an example, and the size of the first angle threshold can be determined by real-person experiments or computer simulation experiments, or by other appropriate methods, all of which are within the scope of protection of this application.

[0050] The first acceleration threshold can be set to a value less than 0 so that when the speed of the electric-assisted bicycle is in a decreasing state, the power output is increased to provide greater power to the user; the first acceleration threshold can also be set to 0 so that the electric-assisted bicycle can maintain a constant speed.

[0051] S112: If the result of the continued comparison is that the forward tilt angle in the acceleration condition is greater than the first angle threshold and the acceleration is less than the first acceleration threshold, a second power control instruction is generated to control the motor to increase the power output of the electric-assisted bicycle.

[0052] The forward tilt angle being greater than the first angle threshold and the acceleration being less than the first acceleration threshold indicates that the user needs to ride more strenuously at this time and needs the electric-assisted bicycle to provide greater assistance. At this time, the controller can generate a second power control instruction to control the motor and increase the power output of the electric-assisted bicycle to meet the user's power needs.

[0053] As a feasible implementation method, this method can be achieved by Figure 2 Implementation. Among them, the controller Control includes MCU (Microcontroller Unit) and Flash (flash memory), and the motor Motor includes a speed sensor. 6Axis Gsenser is a six-axis acceleration sensor used to detect the acceleration and inclination of the electric assisted bicycle. The 3Phase drive module is a three-phase drive chip used to drive the motor. The 5V marked in the figure indicates that the operating voltage of the components connected to it is 5V. The "Hall signal processing" module is used to obtain the position of the motor rotor. The Speed ​​signal is the speed signal of the speed sensor, and the speed information can be obtained through the Speed ​​signal.

[0054] Reference Figure 2As shown, in actual operation, the MCU obtains acceleration and tilt angle information from the 6Axis Gsenser, obtains speed information from the speed sensor in the motor Motor, and obtains the preset first speed threshold, first acceleration threshold, first angle threshold and second angle threshold from the Flash, and then compares the speed with the first speed threshold, the acceleration with the first acceleration threshold, and the tilt angle information with the first angle threshold and the second angle threshold, and generates the first power control instruction or the second power control instruction according to the comparison result. After the comparison is completed, the MCU sends the first power control instruction or the second power control instruction to the 3Phase drive module of the motor, so that the 3Phase drive module of the motor controls the power of the Motor based on the first power control instruction or the second power control instruction and the position of the motor rotor to adjust the power output of the electric power-assisted bicycle.

[0055] The embodiment of the present application controls the power output of the electric-assisted bicycle according to the three factors of the forward tilt angle, acceleration and warning conditions of the electric-assisted bicycle, wherein the forward tilt angle can reflect whether the electric-assisted bicycle is in a slope road condition, and eliminates the interference of the road slope angle in the non-driving direction on the motion state judgment; the magnitude of the acceleration can reflect the magnitude of the resultant force on the electric-assisted bicycle, and the magnitude of the power required for the electric-assisted bicycle to move forward can be understood through the acceleration, and the user's demand for power can be obtained more accurately; further, by setting the power output of the electric-assisted bicycle to be weakened or stopped when the warning conditions such as the vehicle speed is greater than the first speed threshold and the forward tilt angle is greater than the second angle threshold are met, some risks of slope road conditions can be avoided, and the power output can be reduced when necessary, and even braking can be started to protect the safety of the user. In summary, the embodiment of the present application controls the power output of the electric-assisted bicycle according to the three factors of the forward tilt angle, acceleration and warning conditions, which can provide the user with the motor power output required by the user more accurately while avoiding some risks of slope road conditions, and comprehensively improve the user's riding experience.

[0056] In some optional embodiments, the state parameter also includes the roll angle of the electric-assisted bicycle, and the warning condition also includes: the roll angle is greater than a third angle threshold, wherein the third angle threshold is determined according to the angle of the electric-assisted bicycle when it is in a rollover state, for example, plus or minus 15 degrees. The method provided in this embodiment also includes: monitoring the tilt sensor of the electric-assisted bicycle to obtain the roll angle in the state parameter; obtaining the preset third angle threshold from the memory. In addition, step 106 includes: comparing the speed with the first speed threshold, the forward tilt angle with the second angle threshold, and the roll angle with the third angle threshold to determine whether the speed is greater than the first speed threshold, the forward tilt angle is greater than the second angle threshold, or the roll angle is greater than the third angle threshold in the warning condition.

[0057] The roll angle of an electric-assisted bicycle is the angle at which the vehicle body deviates from the vertical position of the vehicle body on the left and right sides. The critical angle at which the electric-assisted bicycle is about to roll over under various motion states can be determined by real-life experiments, computer simulation experiments, or other appropriate methods. The third angle threshold corresponding to the roll angle can be the average value, median, etc. of the angle determined by the experiment. For safety reasons, the minimum value of the above angles can also be taken. In this embodiment, the early warning conditions include the premise that the speed reaches the first speed threshold and the forward tilt angle reaches the second angle threshold, and also include the roll angle being greater than the third angle threshold. When the roll angle is greater than the third angle threshold, a first power control instruction will also be generated to control the motor of the electric-assisted bicycle, reduce or stop the power output of the electric-assisted bicycle, and further ensure the safety of users riding on sloped roads.

[0058] In some optional embodiments, increasing the power output of the electric-assisted bicycle in step S104 includes:

[0059] Calculate the average value of the power output within a predetermined period when the forward lean angle is less than a first angle threshold to obtain a basic power value; multiply the forward lean angle by a preset power output coefficient to obtain a power adjustment item; add the basic power value and the power adjustment item to obtain an adjusted total power output value; and adjust the power output of the electric power-assisted bicycle according to the total power output value.

[0060] The predetermined period when the forward tilt angle is less than the first angle threshold can be a period of time before the forward tilt angle is about to be greater than the first angle threshold (for example, 1 minute, 3 minutes, 5 minutes, 10 minutes, etc.), and the predetermined period can also be a period of time when the electric-assisted bicycle is traveling on flat ground (forward tilt angle = 0). The preset power output coefficient can be determined based on the relationship between the slope angle and the power output when the electric-assisted bicycle reaches a steady speed when traveling on slopes of different angles when the user does not step on the pedals, that is, only the motor outputs power. The "steady speed" is the speed that people usually maintain when riding bicycles (for example, 10, 15, 20 km / h, etc.). According to the above process, the power output of the electric-assisted bicycle can be determined according to the following formula:

[0061] W=k1*a+c

[0062] Wherein, a is the tilt angle, W is the output value of the power output, k1 is the preset power output coefficient, and c is the basic power value. In this embodiment, the power adjustment item of the electric power-assisted bicycle is proportional to the tilt angle, which can make the power adjustment of the electric power-assisted bicycle more uniform when the user is driving on a road with a changing slope, and can further improve the user experience.

[0063] In some optional embodiments, the state parameter also includes the pedaling force of the pedal of the electric power-assisted bicycle, and the acceleration condition also includes the pedaling force being greater than the force threshold. The method provided in this embodiment also includes monitoring the force sensor on the pedal of the electric power-assisted bicycle to obtain the pedaling force in the state parameter; and obtaining the preset force threshold from the memory. In addition, step S110 includes: if the early warning condition is not met, then continue to compare the acceleration with the first acceleration threshold, the forward tilt angle with the first angle threshold, and the pedaling force with the force threshold to determine whether the forward tilt angle in the acceleration condition is greater than the first angle threshold, the acceleration is less than the first acceleration threshold, and the pedaling force is greater than the force threshold. Step S112 includes: if the result of the continued comparison is that the forward tilt angle in the acceleration condition is greater than the first angle threshold, the acceleration is less than the first acceleration threshold, and the pedaling force is greater than the force threshold, then generate a third power control instruction to control the motor, increase the power output of the electric power-assisted bicycle until the pedaling force is less than the force threshold, and the pedaling force is at least inversely proportional to the speed.

[0064] The pedaling force of the pedal is the force applied by the user to the pedal. The greater the pedaling force, the more effort the user has. The force sensor can be a force sensor or torque sensor commonly used in the art. The force sensor can be directly set on the pedal or on the rotating shaft of the pedal. When riding, the force applied by the user to the unilateral pedal changes cyclically during the up and down rotation of the pedal. The pedaling force of the pedal in the embodiment of the present application is the maximum value or average value of the force applied by the user to the pedal during one rotation of the pedal up and down. Similar to the calculation of the basic power value above, the force threshold can be determined based on the average pedaling force within a period of time when the forward tilt angle is less than the first angle threshold. The period of time can be a period of time before the forward tilt angle is about to be greater than the first angle threshold (for example, 1 minute, 3 minutes, 5 minutes, 10 minutes, etc.), or it can be a period of time when the electric power-assisted bicycle is traveling on flat ground (forward tilt angle = 0). The embodiment of the present application can consider the user's effort according to the pedaling force, more accurately obtain the user's demand for power, and adjust the power output accordingly to improve the user's riding experience.

[0065] In some optional embodiments, the automatic control method of the electric-assisted bicycle provided in the present application further includes: when the duration of the roll angle being greater than the third angle threshold exceeds a preset time threshold, sending a warning message to a preset target.

[0066] The preset time threshold is used to reflect whether the electric-assisted bicycle is in a rollover state, that is, when the duration of the roll angle greater than the third angle threshold exceeds the preset time threshold, we can consider that the electric-assisted bicycle is in a rollover state, and at this time, a warning message that the electric-assisted bicycle is in a rollover state is sent to a preset target. Among them, the preset time threshold can be determined based on the time taken by the user to fall down (without injury) and pick up the electric-assisted bicycle while riding the electric-assisted bicycle, so as to exclude the situation where the user falls but is not injured. The preset target in sending the warning message to the preset target can be set to the user himself or to another person, and the warning message can be sent in a manner commonly used in the art.

[0067] In the embodiment of the present application, when the duration of the roll angle being greater than the third angle threshold exceeds a preset time threshold, a warning message is sent to a preset target. Therefore, an alarm can be given when the electric-assisted bicycle overturns. If the user is riding the electric-assisted bicycle, the user's situation can be understood in time for rescue. If the user is not riding the electric-assisted bicycle, the user can be notified in time that the electric-assisted bicycle is in an overturned state, so that the user can check the specific situation of the electric-assisted bicycle in time.

[0068] In some optional embodiments, the automatic control method of the electric-assisted bicycle provided by the present application further includes:

[0069] A preset second acceleration threshold is obtained from the memory; the acceleration is compared with the second acceleration threshold; if the acceleration is less than the second acceleration threshold, a third control instruction is generated to control the motor and stop the power output of the electric-assisted bicycle.

[0070] The second acceleration threshold is used to detect sudden collisions. For example, when an electric bicycle hits an obstacle or a vehicle in front during driving, the speed of the electric bicycle will decrease sharply. At this time, the acceleration is a negative value, so the second acceleration threshold can be set to a negative value, such as -5, -10, -20m / s 2 It should be understood that the acceleration being less than the second acceleration threshold means that when the acceleration is negative, its absolute value is greater than the absolute value of the second acceleration threshold. By setting the condition of the second acceleration threshold, the embodiment of the present application can enable the electric-assisted bicycle to respond to emergencies such as collisions, avoid secondary injuries caused by power output, and more comprehensively protect the safety of users.

[0071] It should be understood that the thresholds in the above embodiments are applicable to normal driving conditions, and the thresholds should be adjusted accordingly when facing special driving conditions. For example, when an electric-assisted bicycle is driving on rainy days or at night, the setting of the thresholds in each warning condition should be more conservative, and when an electric-assisted bicycle is driving in an area far away from residential areas, if the state parameters of the electric-assisted bicycle meet the warning conditions, the intensity of the warning reminder can be enhanced to remind the user to stay vigilant.

[0072] In the embodiments of the present application, the power output of the electric-assisted bicycle is controlled according to three factors: the lean angle, acceleration and warning conditions of the electric-assisted bicycle. This can not only provide the user with the required motor power output more accurately, but also avoid some risks of sloped road conditions. Furthermore, in the optional embodiments of the present application: the warning conditions include the speed reaching a first speed threshold, the roll angle reaching a third angle threshold, or the tilt angle reaching a second angle threshold, etc., and the state parameters are set to reduce or stop the power output when any of the warning conditions are met, so as to more comprehensively ensure the safety of users riding on sloped roads; by setting the power adjustment item of the electric-assisted bicycle to be proportional to the tilt angle, the power adjustment of the electric-assisted bicycle can be more uniform when the user is riding on a road with a changing slope; by considering the pedaling force in the control of the electric-assisted bicycle, the user's demand for power can be more accurately obtained; by setting the duration when the roll angle is greater than the third angle threshold exceeds the preset time threshold, a warning message is sent to a preset target, so that a warning can be issued when the electric-assisted bicycle overturns so as to implement rescue or promptly notify the user that the electric-assisted bicycle is in an overturned state; by setting the condition of the second acceleration threshold, the electric-assisted bicycle can respond to emergencies such as collisions or rollovers, avoid secondary injuries caused by power output, and more comprehensively protect the safety of users.

[0073] According to a second aspect of the present application, the present application provides an automatic control system 200 for an electric-assisted bicycle, such as Figure 3 As shown, the system includes: a monitoring module 201, an acquisition module 202, a comparison module 203 and a control module 204, wherein:

[0074] The monitoring module 201 is used to monitor the speed sensor of the electric-assisted bicycle to obtain the speed in the state parameter, monitor the acceleration sensor of the electric-assisted bicycle to obtain the acceleration in the state parameter, and monitor the inclination sensor of the electric-assisted bicycle to obtain the forward tilt angle in the state parameter, wherein the forward tilt angle is the angle between the forward direction of the electric-assisted bicycle and the horizontal plane;

[0075] An acquisition module 202 is used to acquire a preset first speed threshold, a first acceleration threshold, a first angle threshold, and a second angle threshold from a memory in the controller;

[0076] A comparison module 203 is used to compare the speed with a first speed threshold, and the forward tilt angle with a second angle threshold, to determine whether the speed is greater than the first speed threshold or the forward tilt angle is greater than the second angle threshold in the early warning condition, and to compare the acceleration with the first acceleration threshold, and the forward tilt angle with the first angle threshold, to determine whether the forward tilt angle is greater than the first angle threshold and the acceleration is less than the first acceleration threshold in the acceleration condition;

[0077] The control module 204 is used to control the power output of the electric-assisted bicycle according to the comparison result of the comparison module, wherein, if the comparison result satisfies any one of the warning conditions, a first power control instruction is generated to control the motor of the electric-assisted bicycle to reduce or stop the power output of the electric-assisted bicycle; if the comparison result does not satisfy the warning condition but satisfies the acceleration condition in which the forward tilt angle is greater than the first angle threshold and the acceleration is less than the first acceleration threshold, a second power control instruction is generated to control the motor to increase the power output of the electric-assisted bicycle.

[0078] As an optional embodiment, the state parameter also includes the roll angle of the electric-assisted bicycle, and the warning condition also includes: the roll angle is greater than a third angle threshold. In this embodiment,

[0079] The monitoring module is also used to monitor the inclination sensor of the electric assisted bicycle to obtain the roll angle; the acquisition module is also used to obtain a preset third angle threshold from the memory; the comparison module is also used to compare the roll angle with the third angle threshold to determine whether the roll angle in the warning condition is greater than the third angle threshold.

[0080] The automatic control system of the electric-assisted bicycle provided in the embodiment of the present application and the automatic control method embodiment of the electric-assisted bicycle described above are based on the same inventive concept and can achieve the same effect. The specific implementation process can be found in the description in the automatic control method embodiment of the electric-assisted bicycle described above, and will not be repeated here.

[0081] According to a third aspect of the present application, the present application provides an electronic device 300, Figure 4 It is a schematic diagram of the structure of the electronic device 300. The specific embodiment of the present application does not limit the specific implementation method of the electronic device.

[0082] like Figure 4 As shown, the electronic device 300 may include: a processor (processor) 302 , a communication interface (Communications Interface) 304 , a memory (memory) 302 , and a communication bus 308 .

[0083] in:

[0084] The processor 302 , the communication interface 304 , and the memory 306 communicate with each other via the communication bus 308 .

[0085] The communication interface 304 is used to communicate with other electronic devices or servers.

[0086] The processor 302 is used to execute the program 310, and specifically can execute the relevant steps in the above method embodiment.

[0087] Specifically, the program 310 may include program codes, which include computer operation instructions.

[0088] The processor 302 may be a CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0089] The memory 306 is used to store the program 310. The memory 306 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0090] The program 310 can be specifically used to enable the processor 302 to execute operations corresponding to the method described in any one of the aforementioned method embodiments.

[0091] The specific implementation of each step in the program 310 can refer to the corresponding steps in the above method embodiment and the corresponding description in the module, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above method embodiment, which will not be repeated here.

[0092] According to a fourth aspect of the present application, the present application provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the operation corresponding to any method in the above-mentioned multiple method embodiments is implemented.

[0093] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.

[0094] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.

[0095] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.

Claims

1. An automatic control method for an electric power-assisted bicycle, characterized in that: include: The controller of the electric-assisted bicycle monitors the rotation speed sensor of the electric-assisted bicycle to obtain the speed in the state parameter, monitors the acceleration sensor of the electric-assisted bicycle to obtain the acceleration in the state parameter, and monitors the inclination sensor of the electric-assisted bicycle to obtain the forward tilt angle in the state parameter, wherein the forward tilt angle is the angle between the forward direction of the electric-assisted bicycle and the horizontal plane; Obtaining a preset first speed threshold, a first acceleration threshold, a first angle threshold, and a second angle threshold from a memory in the controller; The speed is compared with the first speed threshold, and the forward tilt angle is compared with the second angle threshold to determine whether the speed is greater than the first speed threshold or the forward tilt angle is greater than the second angle threshold in the early warning condition. value; If any one of the warning conditions is met, a first power control instruction is generated to control the motor of the electric-assisted bicycle to reduce or stop the power output of the electric-assisted bicycle; If the warning condition is not met, the acceleration is compared with the first acceleration threshold, and the forward tilt angle is compared with the first angle threshold to determine whether the forward tilt angle in the acceleration condition is greater than the first angle threshold. value and the acceleration are less than the first acceleration threshold; If the result of the continued comparison is that the forward tilt angle in the acceleration condition is greater than the first angle threshold and If the acceleration is less than the first acceleration threshold, a second power control instruction is generated to control the motor to increase the Describing the power output of an electric power-assisted bicycle; Wherein, the state parameters also include the electric power-assisted bicycle The roll angle, the warning condition also includes: the roll angle is greater than a third angle threshold, wherein the third angle threshold The value is determined according to the angle when the electric-assisted bicycle is in a rollover state; The method further comprises: Monitoring the tilt sensor of the electric-assisted bicycle to obtain the roll angle in the state parameter; Acquire the preset third angle threshold from the memory; Comparing the speed with the first speed threshold, and the forward tilt angle with the second angle threshold, to determine whether the speed is greater than the first speed threshold or the forward tilt angle is greater than the second angle threshold in the early warning condition is satisfied, including: comparing the speed with the first speed threshold, the forward tilt angle with the second angle threshold, and the roll angle with the third angle threshold to determine whether the warning condition is satisfied: the speed is greater than the first speed threshold, the forward tilt angle is greater than the second angle threshold, or the roll angle is greater than the third angle threshold; Wherein, the state parameter also includes the pedaling force of the pedal of the electric power-assisted bicycle, and the acceleration condition also includes that the pedaling force is greater than a force threshold; The method further comprises: Monitoring a force sensor on a pedal of the electric power-assisted bicycle to obtain the pedaling force in the state parameter; Obtaining a preset force threshold from the memory; If the warning condition is not met, then continuing to compare the acceleration with the first acceleration threshold, the forward tilt angle with the first angle threshold, to determine whether the forward tilt angle is greater than the first angle threshold and the acceleration is less than the first acceleration threshold in the acceleration condition includes: If the early warning condition is not met, the acceleration is continuously compared with the first acceleration threshold, the forward inclination angle is continuously compared with the first angle threshold, and the pedaling force is continuously compared with the force threshold to determine whether the acceleration condition that the forward inclination angle is greater than the first angle threshold, the acceleration is less than the first acceleration threshold, and the pedaling force is greater than the force threshold is met; and if the result of the continued comparison is that the forward inclination angle is greater than the first angle threshold and the acceleration is less than the first acceleration threshold in the acceleration condition, a second power control instruction is generated to control the motor to increase the power output of the electric-assisted bicycle, including: If the result of the continued comparison is that the forward tilt angle is greater than the first angle threshold, the acceleration is less than the first acceleration threshold, and the pedaling force is greater than the force threshold in the acceleration condition, a third power is generated. The control instruction is used to control the motor to increase the power output of the electric-assisted bicycle until the pedaling force is less than the The force threshold, the pedaling force is at least inversely proportional to the speed.

2. The method according to claim 1, characterized in that The method further comprises: When the duration that the roll angle is greater than the third angle threshold exceeds a preset time threshold, a warning message is sent to a preset target.

3. The method according to claim 1, characterized in that The method further comprises: Acquire a preset second acceleration threshold from the memory; comparing the acceleration with a second acceleration threshold; If the acceleration is less than the second acceleration threshold, a third control instruction is generated to control the motor to stop the power output of the electric-assisted bicycle.

4. The method according to claim 1, characterized in that: The method of increasing the power output of the electric-assisted bicycle comprises: calculating an average value of the power output within a predetermined period when the forward tilt angle is less than the first angle threshold to obtain a basic power value; Multiplying the forward tilt angle by a preset power output coefficient to obtain a power adjustment term; Adding the basic power value to the power adjustment item to obtain an adjusted total power output value; The power output of the electric-assisted bicycle is adjusted according to the total power output value.

5. An automatic control system for an electric-assisted bicycle based on the method according to any one of claims 1 to 4, characterized in that: The system comprises: A monitoring module, used for monitoring the speed sensor of the electric-assisted bicycle to obtain the speed in the state parameter, monitoring the acceleration sensor of the electric-assisted bicycle to obtain the acceleration in the state parameter, and monitoring the inclination sensor of the electric-assisted bicycle to obtain the forward tilt angle in the state parameter, wherein the forward tilt angle is the angle between the forward direction of the electric-assisted bicycle and the horizontal plane; An acquisition module, used for acquiring a preset first speed threshold, a first acceleration threshold, a first angle threshold and a second angle threshold from a memory in the controller; a comparison module, configured to compare the speed with the first speed threshold, the forward tilt angle with the second angle threshold, to determine whether the warning condition that the speed is greater than the first speed threshold or the forward tilt angle is greater than the second angle threshold is satisfied, and to compare the acceleration with the first acceleration threshold, the forward tilt angle with the first angle threshold, to determine whether the acceleration condition that the forward tilt angle is greater than the first angle threshold and the acceleration is less than the first acceleration threshold is satisfied; A control module is used to control the power output of the electric-assisted bicycle according to the comparison result of the comparison module, wherein if the comparison result satisfies any one of the warning conditions, a first power control instruction is generated to control the motor of the electric-assisted bicycle to reduce or stop the power output of the electric-assisted bicycle; if the comparison result does not satisfy the warning condition but satisfies the acceleration condition that the forward tilt angle is greater than the first angle threshold and the acceleration is less than the first acceleration threshold, a second power control instruction is generated to control the motor to increase the power output of the electric-assisted bicycle.

6. The system according to claim 5, characterized in that The state parameter also includes the roll angle of the electric-assisted bicycle, and the warning condition also includes: the roll angle is greater than a third angle threshold; The monitoring module is also used to monitor the tilt sensor of the electric-assisted bicycle to obtain the roll angle; The acquisition module is further used to acquire the preset third angle threshold from the memory; The comparison module is further used to compare the roll angle with the third angle threshold to determine whether the roll angle in the warning condition is greater than the third angle threshold.

7. An electronic device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method according to any one of claims 1 to 4.

8. A computer storage medium, characterized in that: The storage medium stores a computer program. When executed by a processor, the method according to any one of claims 1 to 4 is implemented.