Electric vehicle constant-speed cruise control method and system based on fuzzy PID (Proportion Integration Differentiation) control algorithm

By using the fuzzy PID control algorithm in electric vehicles, combined with the vehicle controller and motor controller, the motor torque is adaptively adjusted to solve the problems of insufficient deceleration and high energy consumption in the cruise control system, and achieve smooth acceleration of the vehicle. Deceleration and fuel savings extend driving range.

CN118534898APending Publication Date: 2024-08-23日照鸿日新能源汽车有限公司
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410569993.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing cruise control system of electric vehicles does not fully consider the energy recovery characteristics of the drive motor during deceleration control, resulting in a small vehicle deceleration that cannot meet the driver's deceleration needs. In addition, the system energy consumption rate is high, which affects the vehicle's driving range. .

Method used

A tram fixed-speed cruise control method based on fuzzy PID control algorithm is adopted. Through the cooperation of the vehicle controller and the motor controller, and the combination of the fuzzy controller and the PID controller, the motor torque is adaptively adjusted to achieve precise control of the vehicle speed and Efficient management of energy.

Benefits of technology

It achieves smooth acceleration and deceleration of the vehicle in cruise control mode, improves driving comfort, saves fuel to the maximum extent, reduces system energy consumption, and extends the vehicle's driving range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0004830556900000052
    Figure HDA0004830556900000052
  • Figure HDA0004830556900000041
    Figure HDA0004830556900000041
  • Figure FDA0004830556880000022
    Figure FDA0004830556880000022
Patent Text Reader

Abstract

The invention relates to the technical field of electric vehicle control, in particular to an electric vehicle constant-speed cruise control method and system based on a fuzzy PID (Proportion Integration Differentiation) control algorithm, which comprises the following steps: after a vehicle control unit is initialized, a cruise function enters a prohibited state; when a driver presses down the cruise starting switch, the cruise function enters a quit state; when the cruise entering condition is met, the cruise function enters a waiting state; when a driver presses down the cruise setting switch or the cruise recovery switch, the cruise function enters a control state; and when the driver steps on the accelerator pedal and the required torque is greater than the cruise torque, the cruise function enters a take-over state. According to the method, starting and stopping of the cruise control can be controlled through simple operation logic, acceleration and deceleration of the vehicle can be conveniently controlled, meanwhile, the fuzzy control algorithm and the PID algorithm are combined, control over the vehicle speed is more convenient and smoother, comfort can be improved, and fuel can be saved to the maximum extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electric vehicle control, and more particularly to an electric vehicle cruise control method and system based on a fuzzy PID control algorithm. Background Art

[0002] At present, pure electric vehicles or hybrid electric vehicles are increasingly using vehicle assisted driving systems to reduce the driver's driving intensity and improve driving comfort. The cruise control system is one of the typical vehicle assisted driving systems. However, the cruise control systems and control methods currently used in electric vehicles are mostly simple transplants of traditional vehicle cruise control systems to electric vehicles, without fully considering the configuration characteristics of the electric vehicle power system. In particular, when the system performs cruise control deceleration control, it only uses the decrease in driving torque and the resistance between the vehicle and the ground to gradually reduce the actual driving speed of the vehicle, without considering the characteristics of the drive motor energy recovery, resulting in a small vehicle deceleration, which cannot meet the driver's deceleration needs; and it does not fully reduce the system energy consumption rate and improve the vehicle's driving range. Summary of the invention

[0003] In order to solve the above problems, the present invention provides a tram cruise control method and system based on fuzzy PID control algorithm; the VCU controls the vehicle to enter the cruise control mode according to the cruise switch and related pedal states during the vehicle driving process. The driver does not need to step on the pedal, and the VCU will set the vehicle speed according to the cruise control. By performing fuzzy PID control on the vehicle speed, the accelerator pedal opening is simulated, and the motor torque is output to maintain the driving state at the target speed.

[0004] To achieve the above object, the present invention provides the following technical solutions, which mainly include:

[0005] The electric vehicle cruise control method based on fuzzy PID control algorithm includes the following steps:

[0006] After the vehicle controller is initialized, the cruise function enters the disabled state;

[0007] When the driver presses the cruise start switch, the cruise function enters the exit state;

[0008] When the conditions for entering cruise are met, the cruise function enters the waiting state;

[0009] When the driver presses the cruise setting switch or the cruise recovery switch, the cruise function enters the control state;

[0010] When the driver steps on the accelerator pedal and the required torque is greater than the cruising torque, the cruise function takes over.

[0011] Preferably, in the control state, the vehicle controller will perform closed-loop control on the vehicle speed through a fuzzy PID control algorithm, calculate the motor request torque, and make the vehicle speed reach the cruise setting speed;

[0012] When the driver presses the accelerator pedal in the control state, when the vehicle controller interprets that the required torque is greater than the required torque calculated by the cruise control, the cruise control enters the takeover state, and the vehicle controller will interpret the torque according to the pedal opening, but will not exit the cruise control state; when the accelerator pedal is released, the vehicle controller interprets that the required torque is less than the required torque calculated by the cruise control, and it will re-enter the control state, but when the takeover state lasts for more than the set time, it will exit the control state.

[0013] Preferably, the fuzzy PID control algorithm is mainly composed of a fuzzy controller and a PID controller; the fuzzy controller takes the speed error e and the error change rate ec as input, and uses fuzzy rules to adaptively adjust the parameters Kp, Ki and Kd of the PID controller to keep the controlled object in a good dynamic and static stable state.

[0014] Preferably, the speed error e is obtained by subtracting the vehicle speed value set by the driver from the actual vehicle speed measured by the measuring element;

[0015] The error change rate ec is obtained by differential operation of the speed error e and the sampling time t;

[0016] The fuzzy domain of the speed deviation e and the deviation change rate ec is taken at [-n, n], then the transformation formula from the basic domain [a, b] to the fuzzy domain [-n, n] is:

[0017]

[0018] Where y is a number in the fuzzy set domain, x is a number in the basic domain, the ratio of y to x is assumed to be the quantization factor, denoted by k, the error is denoted by ke, and the error change is denoted by kec.

[0019] Preferably, after obtaining the fuzzy output through fuzzy decision making, the output value is finally defuzzified, that is, clarified, so as to obtain an accurate output value;

[0020] The clarified control quantity also belongs to the fuzzy set domain, so it needs to be converted into the basic domain acceptable to the control object. Suppose the fuzzy domain of the actual control quantity u is [a, b], and the quantization level is (-n, n), then the actual control quantity in the basic domain is:

[0021]

[0022] The input of the fuzzy controller needs to be quantified, and the number of the basic domain needs to be converted into the number of the fuzzy set domain. Similarly, the output of the fuzzy controller also needs to be converted. In the formula, y is the number in the basic domain, x is the number in the fuzzy set domain, the ratio of y to x is assumed to be the proportional factor, and ku is the proportional factor of the fuzzy controller output.

[0023] Preferably, the speed error e and the error change rate ec are taken as inputs and input into the fuzzy controller. After fuzzification, fuzzy decision making and inverse fuzzification, the output values ​​are obtained. The output values ​​are ΔKp, ΔKi and ΔKd. After the control quantity is summed with the preset parameters and the sum is passed to the PID controller, a fuzzy PID controller model can be built, and the output value of the fuzzy PID controller can be output to the actuator as the control quantity.

[0024] Preferably, the implementation steps of the fuzzy PID control algorithm are as follows:

[0025] (1) Input fuzzification: The number of fuzzy sets of input (e, ec) and output (Kp, Ki, Kd) is determined to be 7, namely PB (positive large), PM (positive medium), PS (positive small), ZO (zero), NS (negative small), NM (negative medium) and NB (negative large);

[0026] (2) Range mapping: The fuzzy domain of the speed deviation e and the deviation change rate is [-3, 3]. Substituting them into formula (1), we can get the values ​​of e and ec in the fuzzy domain:

[0027]

[0028] (3) Membership function distribution: The fuzzy set membership functions of the fuzzy controller are all triangular and Gaussian membership functions;

[0029] (4) Fuzzy decision making: Mamdani reasoning method is used as the fuzzy reasoning method of this application;

[0030] (5) Defuzzification: Defuzzification is performed using the centroid method;

[0031] (6) Determine the actual control quantity: After the control quantity is clarified, the actual value of the control quantity in the basic domain can be obtained through formula (2).

[0032] (7) Determine the output control quantity of the fuzzy PID controller: After obtaining the actual control quantities ΔKp, ΔKi, and ΔKd of the fuzzy controller, sum the control quantities with the preset parameters Kp, Ki, and Kd, and then pass the summed value to the PID controller;

[0033] The output control quantity of the fuzzy PID controller is the accelerator pedal opening. The required torque of the current accelerator pedal opening value can be obtained by combining the vehicle operating status and looking up the table.

[0034] Preferably, the electric vehicle cruise control system based on the fuzzy PID control algorithm is composed of the following system components:

[0035] Vehicle Controller (VCU): determines the cruise control status according to the cruise switch button status and vehicle status, and calculates the cruise control target speed and cruise control torque;

[0036] Motor controller (MCU): responds to the torque request from the VCU and controls the motor torque to accelerate and decelerate the vehicle;

[0037] Automobile electronic stability control system (ABS / ESC): monitors vehicle driving status;

[0038] Electronic parking brake system (EPB): controls the working state of the electronic parking brake according to the driver's operation;

[0039] Global System for Mobile Communications (GSM): collect target gear position;

[0040] Supplemental Restraint System (SRS): monitors whether the vehicle has collided and whether the driver is wearing a seat belt;

[0041] Instrument Control Unit Module (ICU): Displays the cruise status and cruise target speed, and provides display vehicle element values;

[0042] Body Control Module (BCM): monitors the opening status of the four doors and the hood.

[0043] It can be seen from the above technical solutions that, compared with the prior art, the present invention can control the opening and closing of cruise control through simple operating logic, and can conveniently control the acceleration and deceleration of the vehicle. At the same time, the combination of fuzzy control algorithm and PID algorithm is used to make the control of vehicle speed more convenient and smooth, which can not only improve comfort but also save fuel to the maximum extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0045] Figure 1 This is the block diagram of the fuzzy PID algorithm of the present invention.

[0046] Figure 2It is the input mapping algorithm model of the present invention.

[0047] Figure 3 It is a schematic diagram of the membership function of the speed deviation (e) of the fuzzy controller of the present invention.

[0048] Figure 4 It is a schematic diagram of the membership function of the speed deviation change difference (ec) of the fuzzy controller of the present invention.

[0049] Figure 5 It is a schematic diagram of the membership function type of the present invention.

[0050] Figure 6 It is a schematic diagram of the ΔKp membership function of the present invention.

[0051] Figure 7 Schematic diagram of the ΔKi membership function of the present invention

[0052] Figure 8 Schematic diagram of the ΔKd membership function of the present invention

[0053] Fig. 9 It is a schematic diagram of the ΔKp fuzzy rule of the present invention.

[0054] Fig.10 It is a schematic diagram of the ΔKi fuzzy rule of the present invention.

[0055] Fig.11 It is a schematic diagram of the ΔKd fuzzy rule of the present invention. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] Comparative Example 1

[0058] PID controller, that is, proportional-integral-differential controller, consists of a proportional unit (P), an integral unit (I) and a differential unit (D). It achieves precise control of the control object by adjusting the correlation coefficients of these three links.

[0059] set up

[0060]

[0061] The deviation of the system is

[0062] e(t)=r(t)-c(t)…………………………(2)

[0063] The proportional (P) control output is:

[0064] u p (t) = k p e(t)…………………………………………(3)

[0065] The integral (I) control output is:

[0066]

[0067] The differential (D) control output is:

[0068]

[0069] The total output of the PID controller is:

[0070] u(t)=u p (t)+u i (t)+u d (t)……………………(6)

[0071] Substituting into (6) we can obtain:

[0072]

[0073] By performing Laplace transform on equation (7), we can obtain:

[0074]

[0075] The transfer function can be expressed as:

[0076]

[0077] Substituting formula (1) into formula (9), we can obtain:

[0078]

[0079] Where Kp is the proportional gain; Ki is the integral gain; and Kd is the differential gain.

[0080] Proportional link: The system control quantity is adjusted in proportion to the deviation to produce a control effect and reduce the deviation. The function of the proportional coefficient is to increase the speed of system response. The larger the proportional coefficient, the faster the system responds, but the system is prone to overshoot. If the proportional coefficient is too small, it will affect the accuracy of system regulation, the system response time will be longer, and the dynamic response of the system will be worse.

[0081] Integral link: It is used to eliminate static error and improve the system's degree of freedom from error. The integral gain determines the strength of the integral link. However, if the integral effect is too strong, it will affect the stability of the system.

[0082] Differential link: It is used to eliminate the dynamic error of the system and adjust the system control amount according to the changing trend of the deviation. Before the deviation signal changes significantly, a correction signal is introduced in advance to speed up the system action and reduce the adjustment time. When adjusting the differential parameters, it is necessary to pay attention to the fact that too strong differential effect may cause system oscillation.

[0083] Although the traditional PID controller is simple to use, flexible and easy to adjust parameters, it can be seen from the above analysis that:

[0084] Although the Kp gain can speed up the adjustment, there is also a static error. When Kp increases, the oscillation amplitude of the curve increases, the oscillation becomes more frequent, the overshoot increases, and the system is not stable enough.

[0085] Although Ki gain can reduce static error, it will also increase the adjustment time and increase the overshoot.

[0086] Although Kd gain can reduce dynamic errors and shorten adjustment time, it is susceptible to interference. When encountering strong interference, the larger Kd is, the more unstable the system is.

[0087] Through the above analysis, when the PID controller is applied to a system with relatively strong interference, it is better not to use the Kd parameter. When it is for a system that does not require a fast response speed, it is better to use PI control.

[0088] Moreover, since the PID controller is a linear controller, and most of the actual control systems in reality are nonlinear systems, the accuracy will naturally decrease when a linear system is used to approximate nonlinearity.

[0089] The automobile system is a complex system that requires strong anti-interference capabilities, fast system response speed, and a certain degree of adaptability to nonlinear environments. The traditional PID control algorithm can only preset the values ​​of Kp, Ki, and Kd, and cannot well meet the control capabilities required by the actual automobile system.

[0090] Comparative Example 2

[0091] The basic principle of fuzzy control: describe people's manual control experience with language to form a series of conditional statements, namely control rules, and then use fuzzy theory, fuzzy language variables and fuzzy logical reasoning to elevate the fuzzy control rules to numerical operations, so that computers can use programs to implement the rules. In this way, computers can be used to simulate human-machine automatic control of the controlled object. Fuzzy control includes three steps, namely fuzzification, fuzzy decision-making and defuzzification.

[0092] The basic idea of ​​fuzzy control: The so-called fuzzy control generally uses fuzzy concepts to describe deviations and obtains fuzzy given quantities through fuzzy reasoning.

[0093] The precise measurements are transformed into fuzzy sets through the input fuzzification process;

[0094] Use fuzzy rules to perform fuzzy reasoning, i.e. fuzzy decision making, and obtain the fuzzy set of control effects;

[0095] Converting the fuzzy set of control actions into precise values ​​according to certain rules is called fuzzification.

[0096] Input fuzzification: refers to converting an exact value into a single point with one or several fuzzy values, that is, it is defined as a mapping from the observation space to the fuzzy set in the control input space; the number of fuzzy sets varies with the controlled object.

[0097] Range mapping: The fuzzy domain of the deviation e and the deviation change rate ec is taken in [-n,n], then the transformation formula from the basic domain [a,b] to the fuzzy domain [-n,n] is:

[0098]

[0099] Where y is a number in the fuzzy set domain, x is a number in the basic domain, the ratio of y to x is assumed to be the quantization factor, denoted by k, the error is denoted by ke, and the error change is denoted by kec.

[0100] Membership function distribution: After determining the mapping range, the next step is to determine the distribution of the membership function. There are two commonly used methods in this step, the function method and the numerical method (common function method)

[0101] Fuzzy decision-making: The so-called fuzzy decision-making is essentially a combination of fuzzy reasoning, fuzzy transformation and other operations. Its purpose is to deduce fuzzy relations based on existing data and obtain fuzzy output based on fuzzy input.

[0102] Fuzzy rules: Actually, they are a set of multiple conditional statements, which can be expressed as a fuzzy relationship matrix R from the error domain to the control quantity domain. Fuzzy reasoning is performed by synthesizing the fuzzy vector E of the error and the fuzzy vector EC of the error change with the fuzzy relationship R to obtain the fuzzy vector of the control quantity.

[0103] Output defuzzification (clarification): After obtaining the fuzzy output through fuzzy decision-making, the output value must be defuzzified to obtain the exact output value.

[0104] Determine the actual control quantity: The clarified control quantity also belongs to the fuzzy set domain, so it needs to be converted into the basic domain acceptable to the control object. Suppose the fuzzy domain of the actual control quantity u is [a, b], and the quantization level is (-n, n), then the actual control quantity in the basic domain is:

[0105]

[0106] The input of the fuzzy controller needs to be quantified, and the number of the basic domain needs to be converted into the number of the fuzzy set domain. Similarly, the output of the fuzzy controller also needs to be converted. In the formula, y is the number in the basic domain, x is the number in the fuzzy set domain, the ratio of y to x is assumed to be the proportional factor, and ku is the proportional factor of the fuzzy controller output.

[0107] From the implementation process of the above fuzzy control algorithm, the following advantages and disadvantages can be analyzed:

[0108] advantage:

[0109] It can handle nonlinear and complex systems. Conventional fuzzy control is based on fuzzy logic and can effectively handle nonlinear and complex systems, with a wider range of applications.

[0110] It has strong robustness. Fuzzy control is highly robust to changes in system parameters and external disturbances, and can maintain good control performance.

[0111] Simplify the system modeling process. Fuzzy control does not require the establishment of an accurate mathematical model. It only needs to build appropriate fuzzy rules based on practical experience and expert knowledge, which simplifies the system modeling process. Therefore, it is more effective when system modeling is difficult or real-time requirements are high.

[0112] shortcoming:

[0113] A car is a complex system. Fuzzy control requires a lot of expert knowledge and a deep understanding of the system. Fuzzy rule design and subsequent maintenance and adjustment are very difficult.

[0114] The automobile system is very complex and has a large number of input variables and rules. Fuzzy control of the automobile system requires a lot of computing resources, which will lead to a decrease in real-time performance.

[0115] Since the performance of the fuzzy controller is highly dependent on the design and selection of empirical rules, if the rule base is incomplete or the rule design is unreasonable, the control effect may be very unsatisfactory.

[0116] In summary, as an experience-based control method, fuzzy control has certain adaptability and delay compensation capabilities, but it also has disadvantages such as strong dependence on rule design, difficulty in subsequent maintenance and adjustment, and high computational complexity.

[0117] Example

[0118] In view of the shortcomings of the above-mentioned comparative examples 1 and 2, the present application provides a tram cruise control method based on a fuzzy PID control algorithm, comprising the following steps:

[0119] After the vehicle controller is initialized, the cruise function enters the disabled state;

[0120] When the driver presses the cruise start switch, the cruise function enters the exit state;

[0121] When the conditions for entering cruise are met, the cruise function enters the waiting state;

[0122] When the driver presses the cruise setting switch or the cruise recovery switch, the cruise function enters the control state;

[0123] When the driver steps on the accelerator pedal and the required torque is greater than the cruising torque, the cruise function takes over.

[0124] In the embodiment, under the control state, the vehicle controller performs closed-loop control on the vehicle speed through a fuzzy PID control algorithm, calculates the motor request torque, and makes the vehicle speed reach the cruise setting speed;

[0125] When the driver presses the accelerator pedal in the control state, when the vehicle controller interprets that the required torque is greater than the required torque calculated by the cruise control, the cruise control enters the takeover state, and the vehicle controller will interpret the torque according to the pedal opening, but will not exit the cruise control state; when the accelerator pedal is released, the vehicle controller interprets that the required torque is less than the required torque calculated by the cruise control, and it will re-enter the control state, but when the takeover state lasts for more than the set time, it will exit the control state.

[0126] like Figure 1 As shown, the fuzzy PID control algorithm is mainly composed of a fuzzy controller and a PID controller; the fuzzy controller takes the speed error e and the error change rate ec as input, and uses fuzzy rules to adaptively adjust the parameters Kp, Ki and Kd of the PID controller to keep the controlled object in a good dynamic and static stable state.

[0127] In an embodiment, the speed error e is obtained by subtracting the vehicle speed value set by the driver from the actual vehicle speed measured by the measuring element;

[0128] The error change rate ec is obtained by differential operation of the speed error e and the sampling time t;

[0129] The fuzzy domain of the speed deviation e and the deviation change rate ec is taken at [-n, n], then the transformation formula from the basic domain [a, b] to the fuzzy domain [-n, n] is:

[0130]

[0131] Where y is a number in the fuzzy set domain, x is a number in the basic domain, the ratio of y to x is assumed to be the quantization factor, denoted by k, the error is denoted by ke, and the error change is denoted by kec.

[0132] In the embodiment, after the fuzzy output is obtained through fuzzy decision making, the output value is finally defuzzified, that is, clarified, so as to obtain an accurate output value;

[0133] The clarified control quantity also belongs to the fuzzy set domain, so it needs to be converted into the basic domain acceptable to the control object. Suppose the fuzzy domain of the actual control quantity u is [a, b], and the quantization level is (-n, n), then the actual control quantity in the basic domain is:

[0134]

[0135] The input of the fuzzy controller needs to be quantified, and the number of the basic domain needs to be converted into the number of the fuzzy set domain. Similarly, the output of the fuzzy controller also needs to be converted. In the formula, y is the number in the basic domain, x is the number in the fuzzy set domain, the ratio of y to x is assumed to be the proportional factor, and ku is the proportional factor of the fuzzy controller output.

[0136] In the embodiment, the speed error e and the error change rate ec are taken as inputs and input into the fuzzy controller. After fuzzification, fuzzy decision making and inverse fuzzification, the output values ​​are obtained. The output values ​​are ΔKp, ΔKi and ΔKd. After the control quantity is summed with the preset parameters and the sum is passed to the PID controller, a fuzzy PID controller model can be built, and the output value of the fuzzy PID controller can be output to the actuator as the control quantity.

[0137] In an embodiment, the implementation steps of the fuzzy PID control algorithm are as follows:

[0138] (1) The number of common fuzzy sets for the input and output of the fuzzy controller is 5, 7 or 13. If the number of fuzzy sets is too small, the description is not clear enough. If the number of fuzzy sets is too large, the calculation amount will increase and the difficulty of formulating fuzzy rules will increase, and the real-time performance will be reduced. Input fuzzification: The number of fuzzy sets for input (e, ec) and output (Kp, Ki, Kd) is determined to be 7, namely PB (positive large), PM (positive medium), PS (positive small), ZO (zero), NS (negative small), NM (negative medium) and NB (negative large);

[0139] (2) Range mapping: The fuzzy domain of the speed deviation e and the deviation change rate is [-3, 3]. Substituting them into formula (1), we can get the values ​​of e and ec in the fuzzy domain:

[0140]

[0141] Among them, the larger ke is, the larger the overshoot of the system will be and the longer the transition time will be. Because ke is too large, the range covered by the domain will become larger, which will shorten the rise time, but the accuracy will not be high, which will increase the overshoot and prolong the system transition time.

[0142] The larger the kec is, the smaller the overshoot of the system is, but the response speed of the system becomes slower. The smaller the kec is, the stronger the effect of eliminating errors will be, so the overshoot will naturally be curbed.

[0143] If ku is too large, the system output oscillation will be aggravated, which is equivalent to an amplification effect, amplifying slight oscillations in the output process. If ku is too small, the dynamic response process of the system will be prolonged.

[0144] Based on the above analysis, the fuzzy set domain must be selected appropriately, otherwise it will affect the control accuracy.

[0145] Algorithm model such as Figure 2 (Take input control quantity as an example):

[0146] (3) Membership function distribution: The fuzzy set membership functions of the fuzzy controller are all triangular and Gaussian membership functions; the membership functions of the fuzzy controller deviation (e) and deviation change rate (ec) are as follows: Figure 3-5 As shown: The membership functions of ΔKp, ΔKi, and ΔKd are as follows: Figure 6-8 As shown (the domain is subject to the actual situation).

[0147] (4) Fuzzy decision-making: The Mamdani reasoning method is used as the fuzzy reasoning method of this application; the fuzzy rules of ΔKp, ΔKi, and ΔKd are determined as follows:

[0148] The selection of Kp value depends on the response speed of the system. Increasing Kp can improve the response speed and reduce the steady-state deviation. However, too large a Kp value will produce a large overshoot and even make the system unstable. Reducing Kp can reduce overshoot and improve stability. However, too small a Kp value will slow down the response speed and prolong the adjustment time.

[0149] Therefore, a larger Kp value should be appropriately taken in the early stage of adjustment to improve the response speed, while in the middle stage of adjustment, Kp should be taken as a smaller value to make the system have a smaller overshoot and ensure a certain response speed; and in the later stage of the adjustment process, the Kp value is adjusted to a larger value to reduce the static error and improve the control accuracy. Based on the above description, the present invention defines the fuzzy rule of ΔKp as follows Fig. 9 ;

[0150] In system control, integral control is mainly used to eliminate the steady-state deviation of the system. Due to some reasons (such as saturation nonlinearity, etc.), the integral process may produce integral saturation in the early stage of the regulation process, thereby causing a large overshoot of the regulation process. Therefore, in the early stage of the regulation process, in order to prevent integral saturation, its integral action should be weaker, and can even be 0; in the middle stage of regulation, in order to avoid affecting stability, its integral action should be moderate; in the late stage of regulation, the integral action should be strengthened to reduce the regulation static error. Based on the above analysis, the Ki fuzzy rule formulated by the present invention is as follows: Fig.10 ;

[0151] The adjustment of the Kd differential link is mainly introduced for large inertia processes. The role of the differential link coefficient is to change the dynamic characteristics of the system. The differential link coefficient of the system can reflect the trend of signal changes and introduce an effective early correction signal into the system before the deviation signal changes too much, thereby speeding up the response speed, reducing the adjustment time, eliminating oscillation, and ultimately changing the dynamic performance of the system.

[0152] Therefore, the selection of Kd value has a great influence on the dynamic characteristics of regulation. If Kd value is too large, the braking of the regulation process will be advanced, resulting in too long regulation time. If Kd value is too small, the braking of the regulation process will lag behind, resulting in increased overshoot. According to actual process experience, in the early stage of regulation, the differential process should be increased, so that a smaller overshoot can be obtained or even avoided. In the middle stage, since the regulation characteristics are more sensitive to the change of Kd value, the Kd value should be appropriately reduced and should be kept fixed. Then, in the late stage of regulation, the Kd value should be reduced to reduce the braking effect of the controlled process, thereby compensating for the extension of the regulation process time caused by the large Kd value in the early stage of the regulation process. Based on the above analysis, the fuzzy rule of ΔKd formulated by the present invention is as follows: Fig.11 ;

[0153] (5) Defuzzification: Defuzzification is performed using the centroid method;

[0154] (6) Determine the actual control quantity: After the control quantity is clarified, the actual value of the control quantity in the basic domain can be obtained through formula (2).

[0155] (7) Determine the output control quantity of the fuzzy PID controller: After obtaining the actual control quantities ΔKp, ΔKi, and ΔKd of the fuzzy controller, sum the control quantities with the preset parameters Kp, Ki, and Kd, and then pass the summed value to the PID controller;

[0156] The output control quantity of the fuzzy PID controller is the accelerator pedal opening. The required torque of the current accelerator pedal opening value can be obtained by combining the vehicle operating status and looking up the table.

[0157] In an embodiment, the electric vehicle cruise control system based on the fuzzy PID control algorithm is composed of the following system components:

[0158] Vehicle Controller (VCU): determines the cruise control status according to the cruise switch button status and vehicle status, and calculates the cruise control target speed and cruise control torque;

[0159] Motor controller (MCU): responds to the torque request from the VCU and controls the motor torque to accelerate and decelerate the vehicle;

[0160] Automobile electronic stability control system (ABS / ESC): monitors vehicle driving status;

[0161] Electronic parking brake system (EPB): controls the working state of the electronic parking brake according to the driver's operation;

[0162] Global System for Mobile Communications (GSM): collect target gear position;

[0163] Supplemental Restraint System (SRS): monitors whether the vehicle has collided and whether the driver is wearing a seat belt;

[0164] Instrument Control Unit Module (ICU): Displays the cruise status and cruise target speed, and provides display vehicle element values;

[0165] Body Control Module (BCM): monitors the opening status of the four doors and the hood.

[0166] The cruise function status is as follows:

[0167] When the system high voltage is powered on, if all the following conditions are met, it will enter the cruise waiting state (Standby_Enabled):

[0168] a) The cruise start switch is pressed;

[0169] b) The vehicle is in a drivable mode;

[0170] c) The system gear is in the forward gear;

[0171] d) The vehicle speed is greater than the lower limit of the cruise control speed;

[0172] e) The vehicle speed is lower than the upper limit of the cruise control speed;

[0173] f) The brake pedal is not depressed;

[0174] g) The chassis controller (ESC / ABS / EBD / TCS / HAC) function is not activated;

[0175] h) The system has no level 3 faults;

[0176] When the system is in cruise standby mode, if the cruise setting / deceleration switch is pressed, the system uses the current vehicle speed as the cruise setting speed and enters the cruise control mode; if the cruise resumption / acceleration switch is pressed, the system uses the last cruise setting speed and enters the cruise control mode (Active).

[0177] When the system is in cruise control state (Active), if any of the following conditions are met, the vehicle will be released from cruise control state. After release, the cruise state will be changed according to the specific conditions:

[0178] a) The cruise off switch is pressed;

[0179] b) The vehicle exits the drivable mode;

[0180] c) The system gear is in a non-D gear;

[0181] d) The vehicle speed is lower than the lower speed limit of the cruise control;

[0182] e) The vehicle speed is greater than the upper limit of the cruise control speed;

[0183] f) Press the brake pedal;

[0184] g) Chassis controller (ESC / ABS / EBD / TCS / HAC / EPB) activation;

[0185] h) There is a third level fault in the system.

[0186] If any of the following conditions are met, the vehicle enters Disabled mode and cruise control is turned off:

[0187] b) In cruise waiting state, short press or long press the Off switch;

[0188] c) In cruise working state (Active), short press or long press the Off switch;

[0189] d) There is a third-level fault in the system;

[0190] e) The two cars collide.

[0191] After the cruise power-on self-test is completed, if the following conditions are met, the cruise state changes from the disabled state (Disabled) to the cruise exit (Standby_Disabled) mode:

[0192] a) Press the On switch;

[0193] b) The driver is not wearing a seat belt;

[0194] c) Any of the four doors and the front hatch is in the open position;

[0195] d) The vehicle speed is lower than the minimum cruising speed;

[0196] e) The brake pedal is depressed;

[0197] f) The gear position is not D;

[0198] g) Chassis controller activation (ESC / ABS / EBD / TCS / HAC) activation;

[0199] h)EPB activation;

[0200] i) The driver maintains the cruise takeover mode for longer than the maximum cruise takeover time;

[0201] j) The system has a level 3 fault.

[0202] The cruise waiting state means that all activation conditions are met. The driver only needs to press the Set or Resume button to enter the cruise control. To enter the waiting state from the cruise exit state, the following conditions must be met at the same time:

[0203] a) The driver’s seat belt is fastened;

[0204] b) All four doors and the front hatch are in the closed state;

[0205] c) The gear position is D;

[0206] d) The vehicle speed is within the cruising speed range and is valid;

[0207] e) The system has no faults;

[0208] f) Chassis controller I (ESC / ABS / EBD / TCS / HAC) is not activated;

[0209] g)EPB is not activated;

[0210] h) The brake pedal is not depressed.

[0211] When any of the following conditions are met, the cruise control enters the working state from the waiting state. The working state means that the system automatically controls the vehicle to travel at the target cruise speed:

[0212] a) The Set switch is turned on and the driver's pedal demand torque is less than the cruise control torque, and the target cruising speed is greater than 0;

[0213] b) The target cruising speed is greater than 0 and the Resume switch is turned on.

[0214] When the vehicle speed is in cruise control state, if the accelerator pedal is pressed, when the pedal torque demand exceeds the cruise control torque demand, the vehicle speed will temporarily increase, but the cruise set speed will not increase. When the accelerator pedal is released, the vehicle speed will automatically return to the original set cruise speed.

[0215] When the following conditions are met at the same time, the cruise control state enters the takeover state:

[0216] a) The accelerator pedal is depressed and the pedal torque is greater than the cruise control torque;

[0217] b) Maintain the cruise takeover mode without exceeding the maximum cruise takeover time.

[0218] When the following conditions are met, the cruise control state changes from the takeover state to the control state:

[0219] a) The pedal torque is less than the cruise control torque.

[0220] Cruise control speed setting

[0221] a) In the cruise control standby state (Standby_Enabled), short press (the switch is pressed for less than the specified time) the cruise setting / deceleration switch to set the current vehicle speed to the cruise speed;

[0222] b) In the cruise control standby state (Standby_Enabled), short press (the switch is pressed for less than the specified time) the cruise recovery / acceleration switch to set the last cruise setting speed as the current cruise setting speed. The last cruise speed storage and clearing are updated and stored periodically with the cruise switch ON / OFF operation. If there is no valid last cruise speed storage, the cruise activation state will not be entered. When the cruise switch is in the ON position, each time the cruise is exited, the VCU will save the cruise speed at the time of cruise exit and replace the previously saved cruise speed; each time the cruise switch is OFF or the cruise function is exited due to a fault, the VCU will clear the previously saved cruise speed; if the VCU does not detect a valid last cruise speed reference when the cruise starts, the VCU will use the current vehicle speed as the cruise setting speed until the driver sets a new cruise speed;

[0223] c) In the cruise control state (Active), short press the cruise resume / acceleration switch to increase the cruise setting speed by the specified value; if the cruise resume / acceleration switch is pressed continuously (the switch is pressed for a time greater than the specified value), the cruise setting speed will increase at a certain rate until it is released or the cruise setting speed reaches the upper limit of the cruise control speed;

[0224] d) In the cruise control state (Active), short pressing the cruise setting / deceleration switch can reduce the cruise setting speed by the specified value; continuously pressing the cruise setting / deceleration switch will reduce the cruise setting speed at a certain rate until it is released or the cruise setting speed reaches the lower limit of the cruise control speed.

[0225] Cruise control

[0226] a) Cruise control state (Active), without the driver stepping on the accelerator pedal, the VCU will use fuzzy PID closed-loop control to calculate the motor request torque and make the vehicle speed reach the cruise setting speed;

[0227] b) Cruise control state (Active), the driver presses the accelerator pedal, when the VCU analyzes that the required torque is greater than the required torque calculated by the cruise control, the cruise control enters the takeover state (Override), and the VCU will analyze the torque according to the pedal opening, but will not exit the cruise control state; when the accelerator pedal is released, the VCU analyzes that the required torque is less than the required torque calculated by the cruise control, and re-enters the cruise control state, but when the takeover state lasts for more than the set time, the cruise control state will be exited.

[0228] Cruise control system fault diagnosis

[0229] Diagnose cruise switch failure based on cruise switch input voltage:

[0230] a) When the cruise switch input voltage is lower than the set threshold, it is diagnosed as a short circuit to ground fault;

[0231] b) When the cruise switch input voltage is higher than the set threshold, it is diagnosed as a short circuit fault to the power supply;

[0232] c) When the cruise switch input voltage falls outside the set range, it is diagnosed as a rationality fault;

[0233] d) When the cruise switch input voltage is in the non-default state for a time exceeding the specified value, it is diagnosed as a sticking fault;

[0234] Judging cruise system failure based on cruise speed:

[0235] a) After the cruise state is activated, if the actual vehicle speed cannot reach the cruise setting speed within the specified time, it is diagnosed as a cruise system failure and the cruise activation state is exited, but the cruise can be resumed by using the Resume switch;

[0236] b) In the same ignition cycle, if the cruise system fails for a specified number of consecutive times, the cruise activation state will be exited and it cannot be activated again in the current ignition cycle.

[0237] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. Electric vehicle cruise control method based on fuzzy PID control algorithm, It is characterized in that The following steps are included: After the vehicle controller is initialized, the cruise function enters the disabled state; When the driver presses the cruise start switch, the cruise function enters the exit state; When the conditions for entering cruise are met, the cruise function enters the waiting state; When the driver presses the cruise setting switch or the cruise recovery switch, the cruise function enters the control state; When the driver steps on the accelerator pedal and the required torque is greater than the cruising torque, the cruise function takes over.

2. The electric vehicle cruise control method based on fuzzy PID control algorithm according to claim 1, It is characterized in that Under the control state, the vehicle controller will perform closed-loop control on the vehicle speed through the fuzzy PID control algorithm, calculate the motor request torque, and make the vehicle speed reach the cruise setting speed; When the driver presses the accelerator pedal in the control state, when the vehicle controller interprets that the required torque is greater than the required torque calculated by the cruise control, the cruise control enters the takeover state, and the vehicle controller will interpret the torque according to the pedal opening, but will not exit the cruise control state; when the accelerator pedal is released, the vehicle controller interprets that the required torque is less than the required torque calculated by the cruise control, and it will re-enter the control state, but when the takeover state lasts for more than the set time, it will exit the control state.

3. The electric vehicle cruise control method and system based on fuzzy PID control algorithm according to claim 2, It is characterized in that The fuzzy PID control algorithm is mainly composed of a fuzzy controller and a PID controller; the fuzzy controller takes the speed error e and the error change rate ec as input, and uses fuzzy rules to adaptively adjust the parameters Kp, Ki and Kd of the PID controller to keep the controlled object in a good dynamic and static stable state.

4. The electric vehicle cruise control method based on fuzzy PID control algorithm according to claim 3, It is characterized in that The speed error e is obtained by subtracting the vehicle speed value set by the driver from the actual vehicle speed measured by the measuring element; The error change rate ec is obtained by differential operation of the speed error e and the sampling time t; The fuzzy domain of the speed deviation e and the deviation change rate ec is taken at [-n, n], then the transformation formula from the basic domain [a, b] to the fuzzy domain [-n, n] is: Where y is a number in the fuzzy set domain, x is a number in the basic domain, the ratio of y to x is assumed to be the quantization factor, denoted by k, the error is denoted by ke, and the error change is denoted by kec.

5. The electric vehicle cruise control method based on fuzzy PID control algorithm according to claim 4, It is characterized in that After obtaining the fuzzy output through fuzzy decision making, the output value must be defuzzified, that is, clarified, so as to obtain the exact output value; The clarified control quantity also belongs to the fuzzy set domain, so it needs to be converted into the basic domain acceptable to the control object. Suppose the fuzzy domain of the actual control quantity u is [a, b], and the quantization level is (-n, n), then the actual control quantity in the basic domain is: The input of the fuzzy controller needs to be quantified, and the number of the basic domain needs to be converted into the number of the fuzzy set domain. Similarly, the output of the fuzzy controller also needs to be converted. In the formula, y is the number in the basic domain, x is the number in the fuzzy set domain, the ratio of y to x is assumed to be the proportional factor, and ku is the proportional factor of the fuzzy controller output.

6. The electric vehicle cruise control method based on fuzzy PID control algorithm according to claim 5, It is characterized in that The speed error e and the error change rate ec are taken as input and input into the fuzzy controller. After fuzzification, fuzzy decision and inverse fuzzification, the output value is obtained. The output value is ΔKp, ΔKi and ΔKd. After summing the control quantity and the preset parameters, and then passing the sum value to the PID controller, the fuzzy PID controller model can be built, and the output value of the fuzzy PID controller can be output to the actuator as the control quantity.

7. The electric vehicle cruise control method based on fuzzy PID control algorithm according to claim 6, It is characterized in that The implementation steps of the fuzzy PID control algorithm are as follows: (1) Input fuzzification: The number of fuzzy sets of input (e, ec) and output (Kp, Ki, Kd) is determined to be 7, namely PB (positive large), PM (positive medium), PS (positive small), ZO (zero), NS (negative small), NM (negative medium) and NB (negative large); (2) Range mapping: The fuzzy domain of the speed deviation e and the deviation change rate is [-3, 3]. Substituting them into formula (1), we can get the values ​​of e and ec in the fuzzy domain: (3) Membership function distribution: The fuzzy set membership functions of the fuzzy controller are all triangular and Gaussian membership functions; (4) Fuzzy decision making: Mamdani reasoning method is used as the fuzzy reasoning method of this application; (5) Defuzzification: Defuzzification is performed using the centroid method; (6) Determine the actual control quantity: After the control quantity is clarified, the actual value of the control quantity in the basic domain can be obtained through formula (2). (7) Determine the output control quantity of the fuzzy PID controller: After obtaining the actual control quantities ΔKp, ΔKi, and ΔKd of the fuzzy controller, sum the control quantities with the preset parameters Kp, Ki, and Kd, and then pass the summed value to the PID controller; The output control quantity of the fuzzy PID controller is the accelerator pedal opening. The required torque of the current accelerator pedal opening value can be obtained by combining the vehicle operating status and looking up the table.

8. The electric vehicle cruise control method based on fuzzy PID control algorithm according to any one of claims 1 to 7, It is characterized in that A tram cruise control system based on fuzzy PID control algorithm consists of the following system components: Vehicle Controller (VCU): determines the cruise control status according to the cruise switch button status and vehicle status, and calculates the cruise control target speed and cruise control torque; Motor controller (MCU): responds to the torque request from the VCU and controls the motor torque to accelerate and decelerate the vehicle; Automobile electronic stability control system (ABS / ESC): monitors vehicle driving status; Electronic parking brake system (EPB): controls the working state of the electronic parking brake according to the driver's operation; Global System for Mobile Communications (GSM): collect target gear position; Supplemental Restraint System (SRS): monitors whether the vehicle has collided and whether the driver is wearing a seat belt; Instrument Control Unit Module (ICU): Displays the cruise status and cruise target speed, and provides display vehicle element values; Body Control Module (BCM): monitors the opening status of the four doors and the hood.

Citation Information

Cited By

  • Series-parallel hybrid power tractor assembly system and control method

    CN121590265A

  • Series-parallel hybrid tractor assembly system and control method

    CN121590265B