CN110395087B - Vehicle-mounted intelligent air conditioner control method and system based on fuzzy PID control - Google Patents
Vehicle-mounted intelligent air conditioner control method and system based on fuzzy PID control Download PDFInfo
- Publication number
- CN110395087B CN110395087B CN201910701585.2A CN201910701585A CN110395087B CN 110395087 B CN110395087 B CN 110395087B CN 201910701585 A CN201910701585 A CN 201910701585A CN 110395087 B CN110395087 B CN 110395087B
- Authority
- CN
- China
- Prior art keywords
- vehicle
- air conditioner
- temperature
- output
- working power
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60H—ARRANGEMENTS OF HEATING, COOLING, VENTILATING OR OTHER AIR-TREATING DEVICES SPECIALLY ADAPTED FOR PASSENGER OR GOODS SPACES OF VEHICLES
- B60H1/00—Heating, cooling or ventilating [HVAC] devices
- B60H1/00642—Control systems or circuits; Control members or indication devices for heating, cooling or ventilating devices
- B60H1/00735—Control systems or circuits characterised by their input, i.e. by the detection, measurement or calculation of particular conditions, e.g. signal treatment, dynamic models
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60H—ARRANGEMENTS OF HEATING, COOLING, VENTILATING OR OTHER AIR-TREATING DEVICES SPECIALLY ADAPTED FOR PASSENGER OR GOODS SPACES OF VEHICLES
- B60H1/00—Heating, cooling or ventilating [HVAC] devices
- B60H1/00642—Control systems or circuits; Control members or indication devices for heating, cooling or ventilating devices
- B60H1/00814—Control systems or circuits characterised by their output, for controlling particular components of the heating, cooling or ventilating installation
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60H—ARRANGEMENTS OF HEATING, COOLING, VENTILATING OR OTHER AIR-TREATING DEVICES SPECIALLY ADAPTED FOR PASSENGER OR GOODS SPACES OF VEHICLES
- B60H1/00—Heating, cooling or ventilating [HVAC] devices
- B60H1/00642—Control systems or circuits; Control members or indication devices for heating, cooling or ventilating devices
- B60H1/00814—Control systems or circuits characterised by their output, for controlling particular components of the heating, cooling or ventilating installation
- B60H1/00878—Control systems or circuits characterised by their output, for controlling particular components of the heating, cooling or ventilating installation the components being temperature regulating devices
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/80—Technologies aiming to reduce greenhouse gasses emissions common to all road transportation technologies
- Y02T10/88—Optimized components or subsystems, e.g. lighting, actively controlled glasses
Abstract
The invention relates to a vehicle-mounted intelligent air conditioner control method and system based on fuzzy PID control, wherein the method comprises the following steps: collecting the temperature in the vehicle; comparing the temperature in the vehicle with the target temperature to select a working mode; calculating a temperature difference between the temperature in the vehicle and the target temperature; when the temperature difference is larger than a first preset value, outputting the working power of the air conditioner as the maximum working power of the air conditioner; when the temperature difference is smaller than a second preset value, outputting the working power of the air conditioner to be the minimum working power of the air conditioner; when the temperature difference value is larger than the second preset value and smaller than the first preset value, the temperature difference value is used as input quantity of the PID controller to be input, and the working power of the air conditioner is output; and controlling the air conditioner to work according to the selected working mode and the output working power. The comfort of passengers is improved, and meanwhile, different working powers are output according to the difference value between the temperature in the vehicle and the target temperature, so that energy conservation is realized.
Description
Technical Field
The invention relates to the field of intelligent automobiles, in particular to a vehicle-mounted intelligent air conditioner control method and system based on fuzzy PID control.
Background
With the development of science and technology and the improvement of the living standard of substances, the requirements of people on the quality of the internal environment of the automobile are increasingly increased, and the performance requirements of the vehicle-mounted air conditioner also reach unprecedented importance. The air conditioner carried by the automobile at present is mainly divided into a manual air conditioner and an automatic air conditioner.
The manual air conditioner is realized by adjusting a temperature adjusting knob, and the temperature adjusting knob achieves the aim of adjusting the temperature by changing the mixing proportion of cold air and hot air, wherein the cold air source is an air conditioner evaporator, and the hot air source is waste heat of an engine (aiming at a traditional internal combustion engine automobile) and a heat exchanger for heating. The compressor power of the air conditioner is always in a higher state, and the temperature is regulated by using hot air to perform temperature offset, so that larger energy waste is caused. Meanwhile, the manual air conditioner cannot well maintain the temperature in the vehicle near a small range of a certain temperature, and large fluctuation of the temperature is unfavorable for the comfort of passengers.
The automatic air conditioner can automatically adjust according to the working mode selected by the user and the set temperature. The control method of the automatic air conditioner at the present stage is complex and various, and has advantages and disadvantages.
For example, patent No. 201310442912.X, "an intelligent control system and method for a vehicle-mounted air conditioner based on fuzzy control", proposes an automatic air conditioner control method for a vehicle based on fuzzy control, which only considers the difference between the current temperature and the target temperature in the vehicle as the controller input, and the controller output is the actuator control amount for controlling the air door actuator, the fan speed regulation module, the compressor clutch switch and the warm water valve. The input parameters are considered too few and the influence of other environmental factors on the temperature is not considered. The control mode of each output quantity is realized through fuzzy control, so that the calculation load of an automobile controller is greatly increased.
For example, patent No. 201310086658.4, on the basis of a control method and a system of an air conditioner compressor of a pure electric vehicle based on fuzzy control, proposes an automatic air conditioner control method of a vehicle based on fuzzy control, and also takes a difference value between a current temperature and a target temperature in the vehicle as an input of a controller, wherein the output of the controller is only one rotation speed of the compressor, and meanwhile, a heating mode is not considered, so that compared with the positioning of an automatic air conditioner, the situation of too few consideration is obviously provided.
Other algorithms, and the existence of which is all automatically controlled, include air output, which may significantly reduce passenger comfort.
Disclosure of Invention
Therefore, it is necessary to provide a vehicle-mounted intelligent air conditioner control method and system based on fuzzy PID control, which solves the problems that the existing manual adjustment temperature cannot be stabilized in a smaller range of a certain temperature, the comfort is poor, the refrigeration effect of a compressor cannot be completely applied, energy waste is caused, the comfort of a user is not considered in automatic adjustment, the energy saving is considered, the control algorithm is complicated, the requirement on a controller is high, and the production and manufacturing cost is increased.
In order to achieve the above purpose, the inventor provides a vehicle-mounted intelligent air conditioner control method based on fuzzy PID control, which comprises the following steps:
collecting the temperature in the vehicle;
comparing the current temperature in the vehicle with the target temperature to select a working mode, selecting a refrigeration mode when the temperature in the vehicle is greater than the target temperature, and selecting a heating mode when the temperature in the vehicle is less than the target temperature;
after a refrigeration mode or a heating mode is selected, calculating a temperature difference value between the temperature in the vehicle and the target temperature;
when the temperature difference is larger than a first preset value, outputting the working power of the air conditioner as the maximum working power of the air conditioner;
when the temperature difference is smaller than a second preset value, outputting the working power of the air conditioner to be the minimum working power of the air conditioner;
when the temperature difference value is larger than the second preset value and smaller than the first preset value, the temperature difference value is used as input quantity of the PID controller to be input, and the working power of the air conditioner is output;
and controlling the air conditioner to work according to the selected working mode and the output working power.
Further preferably, the "the calculated temperature difference is used as the input of the PID controller, and the working power of the air conditioner is output" further comprises the following steps:
and (3) scaling the working power output by the PID controller according to the air output coefficient, and outputting the final working power of the air conditioner, wherein the air output coefficient is inversely proportional to the air output, and the value range is (0, 1).
Further preferably, after the cooling mode or the heating mode is selected, calculating a temperature difference between the temperature in the vehicle and the target temperature, and inputting the calculated temperature difference as an input of the PID controller to output the working power of the air conditioner, the method specifically comprises the following steps:
when the working mode is selected as a refrigerating mode, acquiring the temperature outside the vehicle and the sunlight irradiation amount, taking the acquired temperature outside the vehicle and the sunlight irradiation amount as the input of the fuzzy controller, and outputting PID parameters by the fuzzy controller;
and adjusting the PID controller according to the output PID parameters, and then inputting the calculated temperature difference value as the input quantity of the adjusted PID controller to output the working power of the air conditioner.
Further preferably, after the cooling mode or the heating mode is selected, calculating a temperature difference between the temperature in the vehicle and the target temperature, and taking the calculated temperature difference as an input of the PID controller, and outputting the working power of the air conditioner, the method further comprises the following steps:
when the working mode is a refrigeration mode, collecting the speed of the current vehicle and the rotation speed of the compressor, taking the speed of the current vehicle and the rotation speed of the compressor as the input of the fuzzy controller, and calculating and outputting the rotation speed of the cooling fan of the air conditioner;
and controlling the cooling fan of the air conditioner to work according to the output rotating speed.
Further preferably, after the cooling mode or the heating mode is selected, calculating a temperature difference between the temperature in the vehicle and the target temperature, and taking the calculated temperature difference as an input of the PID controller, and outputting the working power of the air conditioner, the method further comprises the following steps:
when the working mode is a heating mode, collecting humidity in the vehicle;
judging whether the collected humidity is greater than a preset humidity;
if the humidity is greater than the preset humidity, the air conditioner is controlled to start the dehumidification function.
The inventor also provides another technical scheme: the vehicle-mounted intelligent air conditioning system based on fuzzy PID control is characterized by comprising a data acquisition device, a processor, a PID controller and an air conditioner;
the data acquisition device is used for acquiring the temperature in the vehicle at present;
the processor is used for comparing the acquired temperature in the vehicle with the target temperature to select a working mode, when the temperature in the vehicle is greater than the target temperature, a refrigeration mode is selected, and when the temperature in the vehicle is less than the target temperature, a heating mode is selected; after a refrigeration mode or a heating mode is selected, calculating a temperature difference value between the temperature in the vehicle and the target temperature; when the temperature difference is larger than a first preset value, outputting the working power of the air conditioner as the maximum working power of the air conditioner; when the temperature difference is smaller than a second preset value, outputting the working power of the air conditioner to be the minimum working power of the air conditioner; when the temperature difference value is larger than the second preset value and smaller than the first preset value, the temperature difference value is input as the input quantity of the PID controller;
the PID controller is used for outputting the working power of the air conditioner according to the input temperature difference;
the air conditioner is used for working according to the selected working mode and the output working power.
Further optimizing, the processor is also used for amplifying and shrinking the working power output by the PID controller according to the air output coefficient, outputting the final working power of the air conditioner, wherein the air output coefficient is inversely proportional to the air output, and the value range is (0, 1).
Further optimizing, and further comprising a fuzzy controller;
the data acquisition device is also used for acquiring the temperature outside the vehicle and the sunlight irradiation;
the fuzzy controller is used for taking the collected temperature outside the vehicle and the sunlight irradiation amount as input amounts and then outputting PID parameters;
the PID controller is also used for outputting the working power of the air conditioner according to the PID parameters output by the fuzzy controller and the temperature difference value as the input quantity.
Further optimizing, and further comprising a fuzzy controller;
the data acquisition device is also used for acquiring the speed of the current vehicle and the rotating speed of the compressor;
the fuzzy controller is used for calculating and outputting the rotating speed of the cooling fan of the air conditioner by taking the speed of the current vehicle and the rotating speed of the compressor as the input of the fuzzy controller;
the air conditioner is also used for controlling the cooling fan to work according to the rotating speed of the cooling fan output by the fuzzy controller.
Further optimizing, the data acquisition device is also used for acquiring the humidity in the vehicle when the working mode is a heating mode;
the processor is also used for judging whether the collected humidity is greater than preset humidity, and if so, the processor controls the air conditioner to start the dehumidification function.
Compared with the prior art, the technical scheme is characterized in that the working mode is selected by collecting the temperature in the vehicle, comparing the temperature in the vehicle with the target temperature, the difference value between the temperature in the vehicle and the target temperature is used as the input quantity of the PID controller, the working power of the air conditioner is output, the air conditioner works according to the selected working mode and the output working power, the temperature in the vehicle can be stabilized in a smaller range, the comfort of passengers is improved, meanwhile, the difference value between the temperature in the vehicle and the target temperature outputs different working powers, and further energy conservation is realized.
Drawings
FIG. 1 is a schematic flow chart of a vehicle intelligent air conditioner control method based on fuzzy PID control according to an embodiment;
FIG. 2 is a schematic diagram of a vehicle intelligent air conditioning system based on fuzzy PID control according to an embodiment;
fig. 3 is a schematic diagram of an operating principle of a vehicle-mounted intelligent air conditioning system based on fuzzy PID control according to an embodiment.
Reference numerals illustrate:
210. a data acquisition device;
220. a processor;
230. a PID controller;
240. air-conditioning;
250. and a fuzzy controller.
Detailed Description
In order to describe the technical content, constructional features, achieved objects and effects of the technical solution in detail, the following description is made in connection with the specific embodiments in conjunction with the accompanying drawings.
Referring to fig. 1, the present embodiment provides a vehicle-mounted intelligent air conditioner control method based on fuzzy PID control, which includes the following steps:
step S110: collecting the temperature in the vehicle; the acquisition of the temperature of the interior of the current vehicle may be performed by a temperature sensor provided in the vehicle.
Step S120: comparing the current temperature in the vehicle with the target temperature to select a working mode, selecting a refrigeration mode when the temperature in the vehicle is greater than the target temperature, and selecting a heating mode when the temperature in the vehicle is less than the target temperature;
step S130: after a refrigeration mode or a heating mode is selected, calculating a temperature difference value between the temperature in the vehicle and the target temperature;
when the temperature difference is greater than the first preset value, step S141 is performed: the working power of the output air conditioner is the maximum working power of the air conditioner;
when the temperature difference is smaller than the second preset value, step S142 is performed: the working power of the output air conditioner is the minimum working power of the air conditioner;
when the temperature difference is greater than the second preset value and smaller than the first preset value, step S143 is executed: the temperature difference value is used as the input quantity input of the PID controller, and the working power of the air conditioner is output;
step S150: and controlling the air conditioner to work according to the selected working mode and the output working power. The refrigerating mode of the air conditioner is realized through the compressor, the heating mode is realized through the heat exchanger, and the air conditioner selects corresponding devices according to the selected working mode to work according to the working power output by the PID controller.
Firstly, inputting a required target temperature by an occupant, then acquiring the current vehicle internal temperature of the vehicle through a temperature sensor arranged in the vehicle, comparing the vehicle internal temperature with the target temperature, selecting the working mode of the air conditioner as a refrigerating mode when the vehicle internal temperature is higher than the target temperature, and selecting the working mode of the air conditioner as the refrigerating mode when the vehicle internal temperature is lower than the target temperature; if the refrigerating mode is selected, calculating a temperature difference between the temperature in the vehicle and the target temperature, if the temperature difference is larger than a first preset value, controlling the compressor of the air conditioner to work at the highest power, namely, the compressor runs at the highest rotating speed, ensuring that the temperature in the vehicle is reduced to an ideal range at the fastest speed, further increasing the comfort level of a user, and if the temperature difference is smaller than a second preset value, enabling the compressor to work at the smallest power, or stopping the operation of the compressor, so as to save energy and improve the cruising ability; and when the temperature difference value is between the first preset value and the second preset value, the rotating speed of the compressor is regulated in real time through a PID rule, the temperature difference value e between the temperature in the vehicle and the target temperature is used as the input quantity of the PID controller, and the formula is as follows: v (T) =kp [ e (T) +1/TI ≡e (T) dt+td+de (T)/dt ], where kp, TI, TD are PID parameters, kp is a proportionality constant, T1 is an integration time constant, and TD is a differentiation time constant; PID parameters can be adjusted through experiments, the working power of the compressor is output, and a good temperature control effect can be achieved finally, so that the temperature can be effectively controlled in a smaller range; when the working mode is a heating mode, calculating a temperature difference between the temperature in the vehicle and the target temperature, if the temperature difference is larger than a first preset value, controlling a heat exchanger of the air conditioner to work at the highest power, ensuring that the temperature in the vehicle rises to an ideal range at the fastest speed, further increasing the comfort level of a user, and if the temperature difference is smaller than a second preset value, enabling the heat exchanger to work at the smallest power, or stopping the heat exchanger to save energy and improve the cruising ability; and when the temperature difference value is between the first preset value and the second preset value, the rotating speed of the compressor is regulated in real time through a PID rule, the temperature difference value e between the temperature in the vehicle and the target temperature is used as the input quantity of the PID controller, and the formula is as follows: v (t) =kp [ e (t) +1/TI ≡e (t) dt+td (t)/dt ] outputs the working power of the heat exchanger, and the heat exchanger works according to the working power output by the PID controller; so that the temperature can be effectively controlled within a small range. Meanwhile, the redundancy of a control algorithm is reduced, the requirement on a controller is reduced, and the manufacturing cost is reduced. Wherein the first preset value is 7 ℃, the second preset value is 0.5 ℃, and the first preset value and the second preset value can be adjusted according to the needs of passengers.
In this embodiment, the comfort level of the user is further improved, and the "inputting the calculated temperature difference as the input of the PID controller, and outputting the working power of the air conditioner" further includes the following steps: and (3) scaling the working power output by the PID controller according to the air output coefficient, and outputting the final working power of the air conditioner, wherein the air output coefficient is inversely proportional to the air output, and the value range is (0, 1). The compressor power is scaled through the air output coefficient, wherein the air output coefficient is inversely proportional to the air output, the air output is regulated by a user on a vehicle-mounted screen or a physical button according to the needs of the user, the PID controller obtains an air output signal through a vehicle-mounted gateway, then the air output signal is converted into the air output coefficient through a certain proportion, and the air output coefficient is used as one of the compressor power PID control coefficients, and the working power of the air conditioner is calculated and output through a formula v (t) =a { kp [ e (t) +1/TI [ e (t) dt+TD [ de (t)/dt ] }, wherein a is the air output coefficient, the value range is (0, 1), so that the most comfortable air output of the user is ensured, and the refrigerating effect is not influenced.
In this embodiment, since the cooling effect of the air conditioner is also affected by other factors, such as the external temperature of the vehicle and the sunlight irradiation amount, in order to further increase the adaptability of the PID controller, after the cooling mode or the heating mode is selected, the temperature difference between the internal temperature of the vehicle and the target temperature is calculated, the calculated temperature difference is used as the input amount of the PID controller, and the output of the working power of the air conditioner specifically includes the following steps:
when the working mode is selected as a refrigerating mode, acquiring the temperature outside the vehicle and the sunlight irradiation amount, taking the acquired temperature outside the vehicle and the sunlight irradiation amount as the input of the fuzzy controller, and outputting PID parameters by the fuzzy controller;
and adjusting the PID controller according to the output PID parameters, and then inputting the calculated temperature difference value as the input quantity of the adjusted PID controller to output the working power of the air conditioner.
When the selected working mode is a refrigeration mode, the outside temperature and the sunlight irradiation amount are collected, the collected outside temperature and the collected sunlight irradiation amount are used as the input amount of the fuzzy controller, the PID parameters of the PID controller are output after the calculation is carried out through the fuzzy controller, so that the PID controller can be regulated and increased according to the PID parameters output by the fuzzy controller, then the working power of the compressor is output by calculating the input temperature difference value, the fuzzy self-tuning of the PID controller is realized, the adaptability of the PID controller is improved, and the accuracy of the PID on temperature control and the capability of stabilizing the temperature are improved.
In this embodiment, in order to further save energy and improve the cruising ability of the vehicle, after the "selecting a cooling mode or a heating mode, calculating a temperature difference between the temperature in the vehicle and the target temperature, and taking the calculated temperature difference as an input of the PID controller, and outputting the working power of the air conditioner", the method further includes the following steps:
when the working mode is a refrigeration mode, collecting the speed of the current vehicle and the rotation speed of the compressor, taking the speed of the current vehicle and the rotation speed of the compressor as the input of the fuzzy controller, and calculating and outputting the rotation speed of the cooling fan of the air conditioner;
and controlling the cooling fan of the air conditioner to work according to the output rotating speed.
The heat dissipation of the air conditioner is realized through the radiator, the heat dissipation effect of the radiator is influenced by the windward speed and the rotating speed of the cooling fan, wherein the windward speed is positively correlated with the speed of the automobile, the speed of the current automobile and the rotating speed of the compressor are collected to serve as the input of the fuzzy controller, then the rotating speed of the cooling fan is output, the calculated rotating speed of the compressor and the speed of the automobile serve as the influencing factors of the rotating speed of the cooling fan, the cooling effect caused by windward in the running process of the automobile is considered, the rotating speed of the fan is regulated in real time, energy conservation is facilitated, and the endurance mileage of the automobile is further improved.
In this embodiment, in order to avoid the occurrence of a fogging phenomenon of the vehicle in the heating mode, after the cooling mode or the heating mode is selected, a temperature difference between the temperature in the vehicle and the target temperature is calculated, the calculated temperature difference is used as an input of the PID controller, and the following steps are further included after outputting the working power of the air conditioner:
when the working mode is a heating mode, collecting humidity in the vehicle;
judging whether the collected humidity is greater than a preset humidity;
if the humidity is greater than the preset humidity, the air conditioner is controlled to start the dehumidification function.
When the working mode of the air conditioner is a heating mode, the humidity in the vehicle is collected, whether the current humidity in the vehicle is larger than a preset value or not is judged, if so, the dehumidification function of control is started, and when the humidity is too large, the dehumidification function is started, so that dangers caused by fog are avoided.
Referring to fig. 2-3, in another embodiment, a vehicle-mounted intelligent air conditioning system based on fuzzy PID control includes a data acquisition device 210, a processor 220, a PID controller 230, and an air conditioner 240;
the data acquisition device 210 is used for acquiring the temperature in the vehicle; the data acquisition device 210 includes a temperature sensor provided in the vehicle, and acquires the temperature in the vehicle by the temperature sensor.
The processor 220 is configured to compare the collected temperature in the vehicle with a target temperature to select a working mode, and select a cooling mode when the temperature in the vehicle is greater than the target temperature, and select a heating mode when the temperature in the vehicle is less than the target temperature; after a refrigeration mode or a heating mode is selected, calculating a temperature difference value between the temperature in the vehicle and the target temperature; when the temperature difference is larger than a first preset value, outputting the working power of the air conditioner as the maximum working power of the air conditioner; when the temperature difference is smaller than a second preset value, outputting the working power of the air conditioner to be the minimum working power of the air conditioner; when the temperature difference value is larger than the second preset value and smaller than the first preset value, the temperature difference value is input as the input quantity of the PID controller;
the PID controller 230 is configured to output an operating power of the air conditioner according to the inputted temperature difference;
the air conditioner 240 is configured to operate according to the selected operation mode and the output operation power.
Firstly, inputting a required target temperature by an occupant, then acquiring the current vehicle internal temperature of the vehicle through a temperature sensor arranged in the vehicle, comparing the vehicle internal temperature with the target temperature, selecting the working mode of the air conditioner as a refrigerating mode when the vehicle internal temperature is higher than the target temperature, and selecting the working mode of the air conditioner as the refrigerating mode when the vehicle internal temperature is lower than the target temperature; if the refrigerating mode is selected, calculating a temperature difference between the temperature in the vehicle and the target temperature, if the temperature difference is larger than a first preset value, controlling the compressor of the air conditioner to work at the highest power, namely, the compressor runs at the highest rotating speed, ensuring that the temperature in the vehicle is reduced to an ideal range at the fastest speed, further increasing the comfort level of a user, and if the temperature difference is smaller than a second preset value, enabling the compressor to work at the smallest power, or stopping the operation of the compressor, so as to save energy and improve the cruising ability; and when the temperature difference value is between the first preset value and the second preset value, the rotating speed of the compressor is regulated in real time through a PID rule, the temperature difference value e between the temperature in the vehicle and the target temperature is used as the input quantity of the PID controller, and the formula is as follows: v (T) =kp [ e (T) +1/TI ≡e (T) dt+td+de (T)/dt ], where kp, TI, TD are PID parameters, kp is a proportionality constant, T1 is an integration time constant, and TD is a differentiation time constant; PID parameters can be adjusted through experiments, the working power of the compressor is output, and a good temperature control effect can be achieved finally, so that the temperature can be effectively controlled in a smaller range; when the working mode is a heating mode, calculating a temperature difference between the temperature in the vehicle and the target temperature, if the temperature difference is larger than a first preset value, controlling a heat exchanger of the air conditioner to work at the highest power, ensuring that the temperature in the vehicle rises to an ideal range at the fastest speed, further increasing the comfort level of a user, and if the temperature difference is smaller than a second preset value, enabling the heat exchanger to work at the smallest power, or stopping the heat exchanger to save energy and improve the cruising ability; and when the temperature difference value is between the first preset value and the second preset value, the rotating speed of the compressor is regulated in real time through a PID rule, the temperature difference value e between the temperature in the vehicle and the target temperature is used as the input quantity of the PID controller, and the formula is as follows: v (t) =kp [ e (t) +1/TI ≡e (t) dt+td (t)/dt ] outputs the working power of the heat exchanger, and the heat exchanger works according to the working power output by the PID controller; so that the temperature can be effectively controlled within a small range. Meanwhile, the redundancy of a control algorithm is reduced, the requirement on a controller is reduced, and the manufacturing cost is reduced. Wherein the first preset value is 7 ℃, the second preset value is 0.5 ℃, and the first preset value and the second preset value can be adjusted according to the needs of passengers.
In this embodiment, the comfort level of the user is further improved, and the processor is further configured to scale the working power output by the PID controller according to the air output coefficient, and output the final working power of the air conditioner, where the air output coefficient is inversely proportional to the air output, and the value range is (0, 1). The compressor power is scaled through the air output coefficient, wherein the air output coefficient is inversely proportional to the air output, the air output is regulated by a user on a vehicle-mounted screen or a physical button according to the needs of the user, the PID controller obtains an air output signal through a vehicle-mounted gateway, then the air output signal is converted into the air output coefficient through a certain proportion, and the air output coefficient is used as one of the compressor power PID control coefficients, and the working power of the air conditioner is calculated and output through a formula v (t) =a { kp [ e (t) +1/TI [ e (t) dt+TD [ de (t)/dt ] }, wherein a is the air output coefficient, the value range is (0, 1), so that the most comfortable air output of the user is ensured, and the refrigerating effect is not influenced.
In this embodiment, since the cooling effect of the air conditioner is also affected by other factors, such as the temperature outside the vehicle and the sunlight irradiation amount, in order to further increase the adaptability of the PID controller, the air conditioner further includes a fuzzy controller 250; the data acquisition device 210 is further used for acquiring the temperature outside the vehicle and the sunlight irradiation; the fuzzy controller 250 is used for taking the collected temperature outside the vehicle and the sunlight irradiation amount as input amounts and then outputting PID parameters; the PID controller 230 is further configured to output the operating power of the air conditioner according to the PID parameter output from the fuzzy controller and the temperature difference value as the input. The data acquisition device 210 includes a temperature sensor and a solar radiation monitoring device disposed outside the vehicle, and acquires the temperature outside the vehicle through the temperature sensor outside the vehicle, and acquires the sunlight irradiation amount through the solar radiation monitoring device.
When the selected working mode is a refrigeration mode, the outside temperature and the sunlight irradiation amount are collected, the collected outside temperature and the collected sunlight irradiation amount are used as the input amount of the fuzzy controller by introducing the fuzzy controller 250, and the PID parameters of the PID controller are output after the calculation is performed through the fuzzy controller, so that the PID controller can be regulated and increased according to the PID parameters output by the fuzzy controller, then the working power of the compressor is output by calculating the input temperature difference value, the fuzzy self-tuning of the PID controller is realized, the adaptability of the PID controller is improved, and the accuracy of the PID on temperature control and the capability of stabilizing the temperature are improved.
In this embodiment, in order to further save energy and improve the cruising ability of the vehicle, the data acquisition device 210 is further configured to acquire the speed of the current vehicle and the rotational speed of the compressor; the fuzzy controller 250 is used for calculating and outputting the rotation speed of the cooling fan of the air conditioner by taking the speed of the current vehicle and the rotation speed of the compressor as the input of the fuzzy controller;
the air conditioner is also used for controlling the cooling fan to work according to the rotating speed of the cooling fan output by the fuzzy controller.
The heat dissipation of the air conditioner is realized through the radiator, the heat dissipation effect of the radiator is influenced by the windward speed and the rotating speed of the cooling fan, wherein the windward speed is positively correlated with the speed of the automobile, the speed of the current automobile and the rotating speed of the compressor are collected to serve as the input of the fuzzy controller, then the rotating speed of the cooling fan is output, the calculated rotating speed of the compressor and the speed of the automobile serve as the influencing factors of the rotating speed of the cooling fan, the cooling effect caused by windward in the running process of the automobile is considered, the rotating speed of the fan is regulated in real time, energy conservation is facilitated, and the endurance mileage of the automobile is further improved.
In this embodiment, in order to avoid the fogging phenomenon of the vehicle in the heating mode, the data acquisition device is further configured to acquire the humidity in the vehicle when the working mode is the heating mode; the data acquisition device further comprises a humidity sensor arranged in the vehicle, and the humidity sensor is used for acquiring the humidity in the vehicle.
The processor is also used for judging whether the collected humidity is greater than preset humidity, and if so, the processor controls the air conditioner to start the dehumidification function.
When the working mode of the air conditioner is a heating mode, the humidity in the vehicle is collected, whether the current humidity in the vehicle is larger than a preset value or not is judged, if so, the dehumidification function of control is started, and when the humidity is too large, the dehumidification function is started, so that dangers caused by fog are avoided.
It should be noted that, although the foregoing embodiments have been described herein, the scope of the present invention is not limited thereby. Therefore, based on the innovative concepts of the present invention, alterations and modifications to the embodiments described herein, or equivalent structures or equivalent flow transformations made by the present description and drawings, apply the above technical solution, directly or indirectly, to other relevant technical fields, all of which are included in the scope of the invention.
Claims (8)
1. The vehicle-mounted intelligent air conditioner control method based on fuzzy PID control is characterized by comprising the following steps of:
collecting the temperature in the vehicle;
comparing the current temperature in the vehicle with the target temperature to select a working mode, selecting a refrigeration mode when the temperature in the vehicle is greater than the target temperature, and selecting a heating mode when the temperature in the vehicle is less than the target temperature;
after a refrigeration mode or a heating mode is selected, calculating a temperature difference value between the temperature in the vehicle and the target temperature;
when the temperature difference is larger than a first preset value, outputting the working power of the air conditioner as the maximum working power of the air conditioner;
when the temperature difference is smaller than a second preset value, outputting the working power of the air conditioner to be the minimum working power of the air conditioner;
when the temperature difference value is larger than the second preset value and smaller than the first preset value, the temperature difference value is used as input quantity input of a PID controller to output the working power of the air conditioner, and the formula of the working power of the air conditioner output by the PID controller is as follows: v (t) =kp [ e (t) +1/TI ≡e (t) dt+td+de (t)/dt ], where kp, TI, TD are PID parameters, kp is a proportionality constant, TI is an integration time constant, TD is a differential time constant, and e is a temperature difference between the temperature in the vehicle and the target temperature;
controlling the air conditioner to work according to the selected working mode and the output working power;
the step of outputting the working power of the air conditioner further comprises the following steps:
the working power output by the PID controller is scaled according to the air output coefficient, the final working power of the air conditioner is output, the air output coefficient is inversely proportional to the air output, the value range is (0, 1), and the air output can be adjusted on a vehicle-mounted screen or a physical button according to the needs of a user.
2. The control method of the vehicle-mounted intelligent air conditioner based on the fuzzy PID control according to claim 1, wherein the "temperature difference value is used as the input quantity input of the PID controller, and the output of the working power of the air conditioner" specifically comprises the following steps:
when the working mode is selected as a refrigerating mode, acquiring the temperature outside the vehicle and the sunlight irradiation amount, taking the acquired temperature outside the vehicle and the sunlight irradiation amount as the input of the fuzzy controller, and outputting PID parameters by the fuzzy controller;
and adjusting the PID controller according to the output PID parameters, and then inputting the calculated temperature difference value as the input quantity of the adjusted PID controller to output the working power of the air conditioner.
3. The vehicle-mounted intelligent air conditioner control method based on fuzzy PID control of claim 1, further comprising the following steps after the step of outputting the working power of the air conditioner:
when the working mode is a refrigeration mode, collecting the speed of the current vehicle and the rotation speed of the compressor, taking the speed of the current vehicle and the rotation speed of the compressor as the input of the fuzzy controller, and calculating and outputting the rotation speed of the cooling fan of the air conditioner;
and controlling the cooling fan of the air conditioner to work according to the output rotating speed.
4. The vehicle-mounted intelligent air conditioner control method based on fuzzy PID control of claim 1, further comprising the following steps after the step of outputting the working power of the air conditioner:
when the working mode is a heating mode, collecting humidity in the vehicle;
judging whether the collected humidity is greater than a preset humidity;
if the humidity is greater than the preset humidity, the air conditioner is controlled to start the dehumidification function.
5. The vehicle-mounted intelligent air conditioning system based on fuzzy PID control is characterized by comprising a data acquisition device, a processor, a PID controller and an air conditioner;
the data acquisition device is used for acquiring the temperature in the vehicle at present;
the processor is used for comparing the acquired temperature in the vehicle with the target temperature to select a working mode, when the temperature in the vehicle is greater than the target temperature, a refrigeration mode is selected, and when the temperature in the vehicle is less than the target temperature, a heating mode is selected; after a refrigeration mode or a heating mode is selected, calculating a temperature difference value between the temperature in the vehicle and the target temperature; when the temperature difference is larger than a first preset value, outputting the working power of the air conditioner as the maximum working power of the air conditioner; when the temperature difference is smaller than a second preset value, outputting the working power of the air conditioner to be the minimum working power of the air conditioner; when the temperature difference value is larger than the second preset value and smaller than the first preset value, the temperature difference value is input as the input quantity of the PID controller;
the PID controller is used for calculating the temperature difference according to the input temperature difference through the formula: v (T) =kp [ e (T) +1/TI ≡e (T) dt+td+de (T)/dt ], wherein kp, TI, TD are PID parameters, kp is a proportionality constant, T1 is an integration time constant, TD is a differential time constant, and the working power of the air conditioner is output;
the air conditioner is used for working according to the selected working mode and the output working power;
the processor is also used for scaling the working power output by the PID controller according to the air output coefficient, outputting the final working power of the air conditioner, wherein the air output coefficient is inversely proportional to the air output, the value range is (0, 1), and the air output can be adjusted on the vehicle-mounted screen or the entity button according to the needs of a user.
6. The vehicle-mounted intelligent air conditioning system based on fuzzy PID control of claim 5, further comprising a fuzzy controller;
the data acquisition device is also used for acquiring the temperature outside the vehicle and the sunlight irradiation;
the fuzzy controller is used for taking the collected temperature outside the vehicle and the sunlight irradiation amount as input amounts and then outputting PID parameters;
the PID controller is also used for outputting the working power of the air conditioner according to the PID parameters output by the fuzzy controller and the temperature difference value as the input quantity.
7. The vehicle-mounted intelligent air conditioning system based on fuzzy PID control of claim 5, further comprising a fuzzy controller;
the data acquisition device is also used for acquiring the speed of the current vehicle and the rotating speed of the compressor;
the fuzzy controller is used for calculating and outputting the rotating speed of the cooling fan of the air conditioner by taking the speed of the current vehicle and the rotating speed of the compressor as the input of the fuzzy controller;
the air conditioner is also used for controlling the cooling fan to work according to the rotating speed of the cooling fan output by the fuzzy controller.
8. The vehicle-mounted intelligent air conditioning system based on fuzzy PID control of claim 5, wherein the data acquisition device is further used for acquiring humidity in the vehicle when the working mode is a heating mode;
the processor is also used for judging whether the collected humidity is greater than preset humidity, and if so, the processor controls the air conditioner to start the dehumidification function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910701585.2A CN110395087B (en) | 2019-07-31 | 2019-07-31 | Vehicle-mounted intelligent air conditioner control method and system based on fuzzy PID control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910701585.2A CN110395087B (en) | 2019-07-31 | 2019-07-31 | Vehicle-mounted intelligent air conditioner control method and system based on fuzzy PID control |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110395087A CN110395087A (en) | 2019-11-01 |
CN110395087B true CN110395087B (en) | 2023-06-20 |
Family
ID=68326834
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910701585.2A Active CN110395087B (en) | 2019-07-31 | 2019-07-31 | Vehicle-mounted intelligent air conditioner control method and system based on fuzzy PID control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110395087B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111391613B (en) * | 2020-03-25 | 2021-12-17 | 广州华凌制冷设备有限公司 | Battery management method and device for vehicle-mounted air conditioner, air conditioner and storage medium |
CN112096649B (en) * | 2020-08-28 | 2022-04-19 | 武汉理工大学 | Vehicle-mounted air conditioner fan control method, storage medium and system |
CN112172455B (en) * | 2020-10-19 | 2022-12-27 | 重庆邮电大学 | Temperature control method for heat pump air conditioner of electric automobile |
CN112549900A (en) * | 2020-11-30 | 2021-03-26 | 珠海格力电器股份有限公司 | Control method and control device for in-vehicle air conditioning device, processor and air conditioning system |
CN112606657B (en) * | 2020-12-30 | 2022-12-16 | 上海伟昊汽车技术股份有限公司 | Air quality control system for vehicle |
CN113323840A (en) * | 2021-06-30 | 2021-08-31 | 奇瑞商用车(安徽)有限公司 | Control method for external control variable displacement compressor |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102008059886A1 (en) * | 2008-12-03 | 2010-06-10 | GM Global Technology Operations, Inc., Detroit | Ventilation system for a motor vehicle, method for air conditioning a motor vehicle |
CN101876471B (en) * | 2009-04-30 | 2012-11-21 | 比亚迪股份有限公司 | Control method for air conditioning refrigerating system of automobile |
CN102862473B (en) * | 2011-07-06 | 2015-11-25 | 上海汽车集团股份有限公司 | A kind of axial fan method for controlling number of revolution and motor vehicle driven by mixed power |
CN103147968B (en) * | 2013-03-18 | 2015-12-23 | 安徽江淮汽车股份有限公司 | Based on pure electric automobile air conditioning compressor control method and the system of fuzzy control |
CN104329776B (en) * | 2014-11-17 | 2017-09-29 | 国家电网公司 | The air conditioning control method and device of electric automobile |
CN105196833B (en) * | 2015-10-21 | 2018-06-05 | 惠州华阳通用电子有限公司 | A kind of vehicle-mounted energy-saving automatic air condition control method and device |
CN109532383A (en) * | 2017-09-22 | 2019-03-29 | 郑州宇通客车股份有限公司 | A kind of on-board air conditioner adjusting method, system and vehicle |
CN108819657B (en) * | 2018-06-26 | 2020-08-18 | 上海加冷松芝汽车空调股份有限公司 | New energy automobile refrigeration control method |
CN109017218A (en) * | 2018-07-23 | 2018-12-18 | 重庆超力高科技股份有限公司 | A kind of method for controlling number of revolution of compressor of air conditioner, device and electronic equipment |
CN108819664B (en) * | 2018-08-08 | 2022-04-22 | 重庆超力电器有限责任公司 | Automobile air conditioner control method, device and system |
CN109708278B (en) * | 2019-01-06 | 2021-09-07 | 上海朗绿建筑科技股份有限公司 | Method and system for controlling differential operation of compressors |
CN109808445B (en) * | 2019-01-10 | 2022-05-03 | 奇瑞汽车股份有限公司 | Compressor rotating speed control method of vehicle-mounted air conditioner |
-
2019
- 2019-07-31 CN CN201910701585.2A patent/CN110395087B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110395087A (en) | 2019-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110395087B (en) | Vehicle-mounted intelligent air conditioner control method and system based on fuzzy PID control | |
CN110293819B (en) | Control method, device and system of vehicle intelligent air conditioner and vehicle | |
CN105383444B (en) | Windshield defogging system and method | |
US8346422B2 (en) | Hybrid electric vehicle thermal management system | |
JP5561196B2 (en) | Vehicle air conditioner with seat air conditioner | |
JPH08238927A (en) | Method and system of controlling hvac system for automobile for antifogging | |
US20130139532A1 (en) | Air conditioner for vehicle | |
CN103660852A (en) | Automatic recirculation control for vehicular HVAC system | |
CN111716989B (en) | Temperature compensation control method and system in automobile | |
JPS6192908A (en) | Air conditioner for vehicle | |
EP3017982B1 (en) | Vehicular air conditioning device | |
CN111497555B (en) | Heating method for automobile air conditioner | |
CN112124249A (en) | Automatic defogging control method | |
US5553776A (en) | Method and control system for economically controlling an automotive HVAC system | |
US6334325B1 (en) | Method for controlling the evaporator temperature of a vehicle air conditioner | |
CN113263888A (en) | Electric automobile heat management cooling control system and control method | |
CN112428778A (en) | Heat pump air conditioner heating method, heat pump air conditioner and electric vehicle | |
JP5640936B2 (en) | Air conditioner for vehicles | |
KR20200085435A (en) | Method for Determining the Load of Heating of Hybrid Electric Vehicle | |
CN113370746B (en) | Demisting closed-loop control system of pure electric vehicle heat pump system and control method thereof | |
CN110871658A (en) | Method and system for adjusting humidity in vehicle | |
CN112360787B (en) | Fan management method for plug-in hybrid electric vehicle | |
CN105291767B (en) | Automatically adjust the control method of automobile indoor air amount | |
CN112693278A (en) | Automobile air conditioner controller calibration and open-loop type temperature control method | |
KR20160035639A (en) | Air conditioning system for automotive vehicles |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |