Disclosure of Invention
The invention aims to provide a method, a system and equipment for controlling the gas pressure of a cosmetic instrument so as to solve the problems.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
a method of controlling gas pressure of a cosmetic instrument, comprising:
after the air pump works, acquiring air tank pressure data of the beauty instrument;
detecting whether the pressure in the gas tank is within a highest threshold or a lowest threshold;
if the measured pressure is within the threshold value, the machine operates normally, the state is continuously maintained, and if the measured pressure is greater than the highest threshold value or less than the minimum threshold value, the first derivative of the pressure is further calculated;
judging the first derivative of the pressure, further judging the pressure trend in the air tank, and controlling the start and stop of the air pump according to the pressure trend.
Further, the highest threshold value range is B, and the value range is 0.4-0.7Mpa; the lowest threshold range is A, and the value range is 0.3-0.55Mpa. But not limited to a fixed value, has the advantages of controlling the pressure range and ensuring the accurate and controllable pressure control of the beauty instrument
Further, when the pressure value is larger than the highest threshold range, detecting the first derivative f (P) of the pressure P, judging the first derivative f (P) of the pressure P, if the first derivative of the pressure value P is larger than 0, judging that the pressure continuously rises and exceeds the highest threshold, and stopping the operation of the air pump if the pressure continuously exceeds the highest threshold.
Further, when the pressure value P is larger than the highest threshold range, if the first derivative of the pressure value P is less than or equal to 0, the pressure is judged to exceed the highest threshold, but the pressure is not continuously marketed or slowly reduced, and the existing state is maintained.
Further, when the pressure value is smaller than the highest threshold range, detecting the first derivative f (P) of the pressure P, judging the first derivative f (P) of the pressure P, if the first derivative of the pressure value P is larger than 0, judging that the pressure is continuously increased, and if the pressure value P belongs to a normal air supplementing process, the machine works normally, and the existing state is maintained;
further, when the pressure value P is smaller than the highest threshold range, if the first derivative of the pressure value P is smaller than or equal to 0, the pressure is judged to be smaller than the lowest threshold, and if the air supply is abnormal, the working current I value of the air pump is further detected.
Further, if the current value I of the air pump is larger than the threshold value M, if the current value I is larger than the threshold value M, the air pump works normally, and if leakage exists in the pressure release valve or the air pipe and the connecting part of the pressure release valve or the air pipe, the air pump stops working; if the current value I is less than or equal to the M threshold value, the air pump works abnormally, and the air pump stops working and reports faults.
Further, M ranges from 5 to 8A.
Further, a gas pressure control system of a cosmetic apparatus, comprising:
the acquisition module is used for acquiring the pressure data of the air tank of the beauty instrument after the air pump works;
a judging module for detecting whether the pressure in the gas tank is within a highest threshold or a lowest threshold;
if the measured pressure is within the threshold value, the machine operates normally, the state is continuously maintained, and if the measured pressure is greater than the highest threshold value or less than the minimum threshold value, the first derivative of the pressure is further calculated;
and the control module is used for judging the first derivative of the pressure, further judging the pressure trend in the air tank and controlling the start and stop of the air pump according to the pressure trend.
Further, a computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of a method for controlling the gas pressure of a cosmetic instrument when the computer program is executed.
Compared with the prior art, the invention has the following technical effects:
According to the invention, through the threshold range, the accurate control range is set, so that not only the pressure required by the efficacy can be realized, but also the accurate control of the air pump can be realized, the constancy of the pressure is realized, and the consistency of the efficacy is realized;
through the change of the gas pressure, the operation of the air pump is regulated, namely, the pre-judgment is realized through the change trend of the pressure, and the intelligent operation and the use experience improvement of the machine are realized;
And the abnormality of the air pump, the air pipe and the pressure release valve is evaluated through judging the current threshold value of the air pump, so that the reporting of faults is realized.
Detailed Description
The invention is further described below with reference to the accompanying drawings:
Referring to fig. 1, a method for controlling gas pressure of a cosmetic apparatus is provided, which includes:
after the air pump works, acquiring air tank pressure data of the beauty instrument;
detecting whether the pressure in the gas tank is within a highest threshold or a lowest threshold;
if the measured pressure is within the threshold value, the machine operates normally, the state is continuously maintained, and if the measured pressure is greater than the highest threshold value or less than the minimum threshold value, the first derivative of the pressure is further calculated;
judging the first derivative of the pressure, further judging the pressure trend in the air tank, and controlling the start and stop of the air pump according to the pressure trend.
Description of the preferred embodiments
1. Starting up and operating the air pump
2. Detecting the pressure P in the gas tank, judging whether the pressure is in the threshold range, wherein the range of A is 0.3-0.55Mpa, the value of B is 0.52Mpa in the embodiment, and the value of B is 0.4-0.7Mpa, and the value of B is 0.62Mpa in the embodiment
3. If the measured pressure P is within the threshold value, the machine normally operates and continuously maintains the state, and if the measured pressure P is not within the threshold value, the machine is abnormal;
Second embodiment
1. Starting up and operating the air pump
2. Detecting whether the pressure P in the gas tank is within the threshold value range, wherein the range of A is 0.3-0.55Mpa, the value of the embodiment is 0.52Mpa, the range of B is 0.4-0.7Mpa, and the value of the embodiment is 0.62Mpa
3. If the measured pressure P is not in the threshold range, the pressure P is abnormal;
4. Further judging whether the pressure value is greater than B or less than A
5. If the pressure value is larger than B and exceeds the highest pressure threshold, further detecting the first derivative f (P) of the pressure P;
6. Judging the first derivative f (P) of the pressure P, if the first derivative of the pressure value P is more than 0, judging that the pressure continuously rises and exceeds the highest threshold value, and stopping the operation of the air pump if the risk exists; if the first derivative of the pressure value P is less than or equal to 0, judging that the pressure exceeds the highest threshold value, but the pressure is not continuously marketed or slowly reduced, maintaining the existing state, continuing to work and further detecting the pressure
Description of the preferred embodiments
1. Starting up and operating the air pump
2. Detecting whether the pressure P in the gas tank is within the threshold value range, wherein the range of A is 0.3-0.55Mpa, the value of the embodiment is 0.52Mpa, the range of B is 0.4-0.7Mpa, and the value of the embodiment is 0.62Mpa
3. If the measured pressure P is not in the threshold range, the pressure P is abnormal;
4. Further judging whether the pressure value is greater than B or less than A
5. If the pressure value is less than A and less than the lowest pressure threshold, further detecting the first derivative f (P) of the pressure P;
6. Judging the first derivative f (P) of the pressure P, if the first derivative of the pressure value P is more than 0, judging that the pressure is continuously increased, and if the pressure belongs to a normal air supplementing process, the machine works normally and maintains the existing state;
7. If the first derivative of the pressure value P is less than or equal to 0, judging that the pressure is less than the lowest threshold value and the air supplementing is abnormal, and further detecting the working current I value of the air pump;
8. if the current value I of the air pump is greater than the threshold value M, the range of M is 5-8A, wherein the value of the current value I of the air pump is 6A in the embodiment;
9. if the current value I is more than the M threshold value, the air pump works normally, and if the pressure release valve or the air pipe and the connecting part of the pressure release valve or the air pipe have leakage, the working is stopped;
10. If the current value I is less than or equal to the M threshold value, the air pump works abnormally, and the air pump works abnormally; the air pump stops working and a fault is reported.
The following are device embodiments of the present invention that may be used to perform method embodiments of the present invention. For details not disclosed in the apparatus embodiments, please refer to the method embodiments of the present invention.
Referring to fig. 1, in still another embodiment of the present invention, there is provided a gas pressure control system of a cosmetic apparatus, which can be used to implement the above-mentioned gas pressure control method of a cosmetic apparatus, specifically, the gas pressure control system of a cosmetic apparatus includes:
the acquisition module is used for acquiring the pressure data of the air tank of the beauty instrument after the air pump works;
a judging module for detecting whether the pressure in the gas tank is within a highest threshold or a lowest threshold;
if the measured pressure is within the threshold value, the machine operates normally, the state is continuously maintained, and if the measured pressure is greater than the highest threshold value or less than the minimum threshold value, the first derivative of the pressure is further calculated;
and the control module is used for judging the first derivative of the pressure, further judging the pressure trend in the air tank and controlling the start and stop of the air pump according to the pressure trend.
In one possible implementation of the method according to the invention,
All relevant matters of the steps involved in the foregoing embodiment of the gas pressure control method of the beauty apparatus may be cited in the functional description of the functional module corresponding to the device in the embodiment of the present invention, and are not repeated herein.
In yet another embodiment of the present invention, a computer device is provided that includes a processor and a memory for storing a computer program including program instructions, the processor for executing the program instructions stored by the computer storage medium. The processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL Processor, DSP), application Specific Integrated Circuits (ASIC), off-the-shelf Programmable gate arrays (Field-Programmable GATEARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., which are the computational core and control core of the terminal adapted to implement one or more instructions, particularly adapted to load and execute one or more instructions within a computer storage medium to implement a corresponding method flow or corresponding function; the processor according to the embodiment of the invention can be used for operation.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.