Water pump piston motion frequency measuring method and device and storage medium
1. A water pump piston motion frequency measuring method is applied to an intelligent tooth flushing device and is characterized in that a magnetic sensor and a magnet are provided, the magnetic sensor comprises a first magnetic sensor, the first magnetic sensor is arranged on a first side face of a water pump, and the magnet is arranged on a piston;
when the piston moves back and forth in the water pump, detecting data of the change of the magnetic field intensity brought by the movement process of the piston through the first magnetic sensor;
and constructing a magnetic field strength change data set, wherein data elements in the magnetic field strength change data set are composed of magnetic field strength data acquired by the first magnetic sensor in a sampling period, and the motion frequency of the piston is determined according to the magnetic field strength change data set.
2. The method of measuring water pump piston motion frequency according to claim 1, wherein the determining the piston motion frequency from the magnetic field strength change data set comprises:
determining the number of occurrences of maxima or minima in the magnetic field strength change data set;
determining the piston movement frequency by calculating the quotient of the number of occurrences of the maxima or minima and the sampling period.
3. The method of measuring water pump piston movement frequency of claim 2, wherein the first magnetic sensor includes a magnetic sampling circuit, and wherein the determining the number of occurrences of maxima or minima in the data set of changes in magnetic field strength comprises:
and acquiring the occurrence times of the maximum value or the minimum value in the magnetic field intensity change data set through the magnetic sampling circuit.
4. The method of measuring water pump piston movement frequency of claim 2, wherein the determining the number of occurrences of maxima or minima in the data set of magnetic field strength variations comprises:
carrying out differential operation on each data element in the magnetic field intensity change data set to construct a differential result data set;
determining the frequency of the maximum value according to the frequency of the numerical value in the difference result data set from positive to negative;
or determining the number of occurrences of the minimum value according to the number of occurrences of the condition that the value in the differentiated result data set changes from negative to positive.
5. The method for measuring the movement frequency of the water pump piston according to claim 1, wherein the magnetic sensor comprises a second magnetic sensor, and the second magnetic sensor is arranged on a second side face of the water pump; the magnetic field strength change data set comprises a first data set acquired by the first magnetic sensor and a second data set acquired by the second magnetic sensor; said determining said frequency of piston movement from said data set of magnetic field strength variations comprises:
determining a first frequency from the first data set; determining a second frequency from the second data set;
judging whether the first frequency is consistent with the second frequency;
and if the first frequency is consistent with the second frequency, determining the first frequency or the second frequency as the piston movement frequency.
6. The method for measuring the movement frequency of the water pump piston as claimed in claim 5, wherein the first side surface is the side of the top of the water pump close to the nozzle of the tooth flusher; the second side is the side of the bottom of the water pump far away from the nozzle of the tooth flushing device, and after judging whether the first frequency is consistent with the second frequency, the method further comprises the following steps:
and if the first frequency is not consistent with the second frequency, determining the first frequency as the piston movement frequency.
7. A data processing method for keeping a thrust of a dental irrigator constant, characterized in that it comprises the steps of:
acquiring the motion frequency of a piston of a water pump of the tooth flusher by the water pump piston motion frequency measuring method according to any one of claims 1 to 6;
comparing the movement frequency of the piston with a preset movement frequency of the piston;
and if the motion frequency is not consistent with the preset motion frequency, adjusting the piston motion driving parameters of the tooth flushing device.
8. A water pump piston motion frequency measuring device, characterized by, includes:
the magnetic field intensity change data detection module is used for detecting data of magnetic field intensity change brought by the piston in the motion process through a first magnetic sensor when the piston moves back and forth in the water pump;
the frequency determination module is used for constructing a magnetic field strength change data set, data elements in the magnetic field strength change data set are composed of magnetic field strength data acquired by the first magnetic sensor in a sampling period, and the piston motion frequency is determined according to the magnetic field strength change data set.
9. A data processing apparatus for maintaining a constant force of a dental irrigator, comprising:
the frequency determination module is used for acquiring related data of the water pump piston of the tooth flushing device in the motion process and determining the motion frequency of the piston according to the related data;
the impulse detection module is used for determining the change condition of the impulse of the tooth flusher according to the motion frequency of the piston;
and the impulse force adjusting module is used for determining the piston motion driving parameters of the water pump of the tooth flusher according to the piston motion frequency.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the steps in the water pump piston movement frequency measurement method according to any one of claims 1 to 6.
Background
The intelligent tooth flushing device on the market at present can be divided into two types with constant impulse and without constant impulse. The problem of impulse reduction can appear in the use in the intelligent tooth flushing device that does not take the invariable impulse function, makes user experience reduce. The intelligent tooth flushing device with the constant impulse force function can be divided into the following schemes:
a: the current sampling compensation method (by sampling the current of the water pump during operation, when the voltage drops, the impedance of the water pump is unchanged, so that the current drops, and when the current drops, PWM is compensated, so that the current of the PWM is increased, and the impulse is constant).
B: and a DC-DC constant pressure method (under an ideal state, the input voltage of the water pump is constant, and the impedance of the water pump is constant, so that the flushing force is kept unchanged).
C: and a voltage compensation method (compensation is carried out on PWM duty ratios under different voltages according to the force expression of the water pump under different voltages) so as to realize constant pressure.
However, the above scheme has a problem that: in the use process of the intelligent tooth flushing device, due to the reasons of structure aging of the intelligent tooth flushing device, corrosion of a water pump, thermal barrier cold contraction, material fatigue and the like, the motion frequency of the piston changes, so that the impulse force changes and is inconsistent with the initial impulse force. And the above scheme can not accurately detect the piston motion frequency after the piston motion frequency in the tooth flusher changes.
Disclosure of Invention
The embodiment of the application provides a water pump piston motion frequency measuring method, a water pump piston motion frequency measuring device and a storage medium, and can solve the technical problem that the piston motion frequency after the piston motion frequency changes in a tooth flushing device cannot be accurately detected in the prior art.
In a first aspect, an embodiment of the present application provides a method for measuring a motion frequency of a water pump piston, which is applied to an intelligent tooth flushing device, and provides a magnetic sensor and a magnet, where the magnetic sensor includes a first magnetic sensor, the first magnetic sensor is disposed on a first side surface of the water pump, and the magnet is disposed on the piston;
when the piston moves back and forth in the water pump, detecting data of the change of the magnetic field intensity brought by the movement process of the piston through the first magnetic sensor;
and constructing a magnetic field strength change data set, wherein data elements in the magnetic field strength change data set are composed of magnetic field strength data acquired by the first magnetic sensor in a sampling period, and the motion frequency of the piston is determined according to the magnetic field strength change data set.
In a possible implementation manner of the first aspect, the determining the piston motion frequency according to the magnetic field strength variation data set includes:
determining the number of occurrences of maxima or minima in the magnetic field strength change data set;
determining the piston movement frequency by calculating the quotient of the number of occurrences of the maxima or minima and the sampling period.
Wherein the first magnetic sensor comprises a magnetic sampling circuit, and the determining a number of occurrences of maxima or minima in the magnetic field strength change data set comprises:
and acquiring the occurrence times of the maximum value or the minimum value in the magnetic field intensity change data set through the magnetic sampling circuit.
Wherein said determining a number of occurrences of maxima or minima in said data set of magnetic field strength variations comprises:
carrying out differential operation on each data element in the magnetic field intensity change data set to construct a differential result data set;
determining the frequency of the maximum value according to the frequency of the numerical value in the difference result data set from positive to negative;
or determining the number of occurrences of the minimum value according to the number of occurrences of the condition that the value in the differentiated result data set changes from negative to positive.
In another possible implementation manner of the first aspect, the magnetic sensor includes a second magnetic sensor, and the second magnetic sensor is disposed on a second side surface of the water pump; the magnetic field strength change data set comprises a first data set acquired by the first magnetic sensor and a second data set acquired by the second magnetic sensor; said determining said frequency of piston movement from said data set of magnetic field strength variations comprises:
determining a first frequency from the first data set; determining a second frequency from the second data set;
judging whether the first frequency is consistent with the second frequency;
and if the first frequency is consistent with the second frequency, determining the first frequency or the second frequency as the piston movement frequency.
Wherein the first side surface is one side of the top of the water pump close to a nozzle of the tooth flushing device; the second side is the side of the bottom of the water pump far away from the nozzle of the tooth flushing device, and after judging whether the first frequency is consistent with the second frequency, the method further comprises the following steps:
and if the first frequency is not consistent with the second frequency, determining the first frequency as the piston movement frequency.
In a second aspect, an embodiment of the present application provides a data processing method for keeping a thrust of a dental irrigator constant, the method including the steps of:
acquiring the motion frequency of a piston of a water pump of the tooth flusher by the water pump piston motion frequency measuring method in the first aspect;
comparing the movement frequency of the piston with a preset movement frequency of the piston;
and if the motion frequency is not consistent with the preset motion frequency, adjusting the piston motion driving parameters of the tooth flushing device.
In a third aspect, an embodiment of the present application provides a water pump piston movement frequency measuring device, including:
the magnetic field intensity change data detection module is used for detecting data of magnetic field intensity change brought by the piston in the motion process through a first magnetic sensor when the piston moves back and forth in the water pump;
the frequency determination module is used for constructing a magnetic field strength change data set, data elements in the magnetic field strength change data set are composed of magnetic field strength data acquired by the first magnetic sensor in a sampling period, and the piston motion frequency is determined according to the magnetic field strength change data set.
In a fourth aspect, an embodiment of the present application provides a data processing apparatus for keeping a thrust of a dental irrigator constant, including:
the frequency determination module is used for acquiring related data of the water pump piston of the tooth flushing device in the motion process and determining the motion frequency of the piston according to the related data;
the impulse detection module is used for determining the change condition of the impulse of the tooth flusher according to the motion frequency of the piston;
and the impulse force adjusting module is used for determining the piston motion driving parameters of the water pump of the tooth flusher according to the piston motion frequency.
In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps in the water pump piston motion frequency measurement method according to the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: the method comprises the steps that data of magnetic field intensity changes caused in the motion process of a piston are detected through a first magnetic sensor; and constructing a magnetic field intensity change data set, and determining the motion frequency of the piston according to the magnetic field intensity change data set. The motion frequency of the piston in the motion process of the piston in the intelligent tooth flushing device can be accurately detected, and data support is provided for keeping the impulse force of the tooth flushing device constant.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic structural view of a dental irrigator according to an embodiment of the present disclosure;
FIG. 2a is a flow chart illustrating steps of a method for measuring a frequency of a piston of a water pump according to an embodiment of the present disclosure;
FIG. 2b is a diagram illustrating voltage variation values obtained by a magnetic sampling circuit according to an embodiment of the present application;
FIG. 3a is a flow chart of method steps for determining a frequency of piston movement provided by an embodiment of the present application;
FIG. 3b is a diagram illustrating voltage variation values obtained by another magnetic sampling circuit according to an embodiment of the present application;
FIG. 4a is a flow chart illustrating steps of another method for measuring a frequency of a piston of a water pump according to an embodiment of the present disclosure;
FIG. 4b is a diagram illustrating voltage variation values obtained by a magnetic sampling circuit according to an embodiment of the present application;
fig. 4c is a schematic diagram of a voltage variation value obtained by a magnetic sampling circuit in a second magnetic sensor according to an embodiment of the present application;
FIG. 5 is a flow chart illustrating steps of a data processing method for keeping the thrust of the dental irrigator constant according to an embodiment of the present application;
FIG. 6 is a flow chart illustrating steps in a method for adjusting a driving parameter of a piston movement according to an embodiment of the present application;
FIG. 7 is a device for measuring the frequency of motion of a piston of a water pump according to an embodiment of the present disclosure;
fig. 8 is a data processing device for keeping the impulsive force of the water toothpick constant according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Reference throughout this specification to "an embodiment of the present application," or "other embodiments of the present application," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "an embodiment of the present application," "in some embodiments," and the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
In order to explain the technical means of the present application, the following description will be given by way of specific examples.
Fig. 1 is a schematic structural diagram of a tooth irrigator provided by an embodiment of the present application, the tooth irrigator comprising: water pump 100, control circuitry (not shown), and nozzle 160. The control circuit is electrically connected to the water pump 100. The control circuit is used for driving the water pump 100 to drive the tooth flusher to spray high-speed water columns from the nozzle 160 under certain pressure.
The water toothpick further comprises a power source (not shown), in some embodiments, the power source may be a common dry battery, or may be a household 110V to 220V ac power source, and the embodiment of the present invention is not limited to the type of the power source, and the power source in the embodiment of the present invention is used for supplying power to the water pump.
In some embodiments, the water pump 100 is a piston pump that includes a pump cylinder 110, a piston 120, a water inlet check valve 130, a water outlet check valve 140, and a connecting rod 150. The piston pump is powered to reciprocate the piston 120 within the pump cylinder 110. The embodiment of the present application does not limit the specific structure of the water pump 100.
In some embodiments, the control circuitry includes, but is not limited to, a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor in the control circuit executes the computer program, the specific steps of the data processing method for keeping the impulse force of the tooth flusher constant provided by the following embodiments can be realized.
In some embodiments, the dental irrigator further comprises a magnetic sensor and a magnet 102, and the magnetic sensor can be arranged on any side of the piston pump, and the any side can be any one of the upper surface, the lower surface, the left surface and the right surface of the piston pump.
In some embodiments, the magnet 102 is mounted on a piston 120 of the piston pump to move with the movement of the piston 120. The reciprocating motion of the piston 120 drives the magnet 102 to reciprocate, so that the relative distance between the magnet 102 and the magnetic sensor 130 is constantly changed, and further, the magnetic performance of the sensitive element in the magnetic sensor is changed, and the magnetic sensor converts the change of the magnetic performance of the sensitive element into an electric signal.
In some embodiments, the magnetic sensor includes magnetic sampling circuitry that also includes, but is not limited to, a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor in the magnetic sampling circuit executes the computer program, the concrete steps of the water pump piston motion frequency measuring method provided by the following embodiments can be realized.
In some embodiments, a single magnetic sensor 103 is mounted inside the irrigator. For example: the magnetic sensor 103 is mounted on a first side of the water pump, which in this embodiment refers to the side of the top of the water pump near the nozzle or the side of the bottom of the water pump away from the nozzle. The magnetic sensor is internally provided with a magnetic sampling circuit, the magnetic sampling circuit acquires magnetic field intensity change data in the motion process of the piston according to the relative distance between the magnet and the magnetic sensor, a magnetic field intensity change data set is constructed according to the magnetic field intensity change data, and the motion frequency of the piston is determined according to the magnetic field intensity change data set. When a single magnetic sensor is used, the temperature of the surrounding environment of a water pump of the tooth flushing device can be increased in the working process, meanwhile, the water pump can vibrate in the working process, and the temperature and the vibration can cause certain interference on the magnetic sensor along with the lapse of time, so that the detection precision is reduced, and the acquired piston motion frequency is inaccurate.
In other embodiments, a plurality of magnetic sensors are mounted within the irrigator and a plurality of magnetic sampling circuits are disposed within the plurality of magnetic sensors. The number of the magnetic sensors and the number of the magnetic sampling circuits are not limited in the embodiment of the application, the embodiment of the application is exemplified by installing two magnetic sensors inside the tooth flushing device, the two magnetic sensors are called as a first magnetic sensor 103 and a second magnetic sensor 104, the first magnetic sensor 103 is installed on the first side surface of the water pump, namely the side of the top of the water pump close to the nozzle, and the second magnetic sensor 104 is installed on the second side surface of the water pump, namely the side of the bottom side surface of the water pump far away from the nozzle. The circuit installed in the first magnetic sensor is called a first magnetic sampling circuit, the first magnetic sampling circuit is electrically connected with the first magnetic sensor, the circuit installed in the second magnetic sensor is called a second magnetic sampling circuit, and the second magnetic sampling circuit is electrically connected with the second magnetic sensor.
The first magnetic sampling circuit acquires magnetic field strength change data in the piston movement process according to the relative distance between the magnet and the first magnetic sensor, namely first magnetic field strength change data, a magnetic field strength change data set constructed according to the first magnetic field strength change data is called a first data set, and the movement frequency of the piston is determined according to the first data set and called a first frequency.
The second magnetic sampling circuit acquires magnetic field strength change data in the piston movement process according to the relative distance between the magnet and the second magnetic sensor, namely second magnetic field strength change data, a magnetic field strength change data set constructed according to the second magnetic field strength change data is called a second data set, and the movement frequency of the piston is determined according to the second data set and called a second frequency.
According to the embodiment of the application, the first magnetic sensor acquires the first frequency, the second magnetic sensor acquires the second frequency, the first frequency is compared with the second frequency, and when the two frequencies are consistent, the first frequency or the second frequency is used as the motion frequency of the piston. When the two frequencies do not coincide with each other, the second magnetic sensor disposed outside the water pump in parallel with the direction of movement of the piston is more susceptible to disturbance due to temperature changes or the like than the first magnetic sensor disposed on the side close to the nozzle perpendicular to the direction of movement of the piston because heat is generated by friction between the piston and the inner wall of the water pump, and therefore, it is preferable that the first magnetic sensor detects the first frequency as the frequency of movement of the piston when the two frequencies do not coincide with each other.
In some embodiments, when the tooth flusher drives the piston to move at a fixed gear at a fixed frequency, the movement frequency of the piston changes due to reasons of aging of the tooth flusher structure, corrosion of a water pump, thermal barrier cold contraction, material fatigue and the like, when the movement frequency of the piston changes, the movement frequency of the piston after the change of the tooth flusher can be detected by the method provided by the application, and then the movement frequency of the piston is adjusted by the control circuit, so that the movement frequency of the piston is kept consistent with the fixed frequency, and the constant impulsive force of the tooth flusher is realized.
In some embodiments, the above is merely an example of the structure of the water toothpick, and does not constitute a specific limitation of the structure of the water toothpick, and may comprise more or less components than the above examples, or some components in combination, or different components, such as a water storage tank, etc.
To sum up, the tooth flusher that this application embodiment provided acquires through magnetism sampling circuit because tooth flusher structure is ageing, water pump corrosion, thermal barrier shrinkage, and the material is tired etc. causes the piston motion frequency when the motion frequency of piston appears changing, provides data support for realizing that the impulsive force of tooth flusher is invariable. The movement frequency of the piston is adjusted through the control circuit, so that the movement frequency of the piston is kept consistent with the fixed frequency, and the constant impulsive force of the tooth flushing device is realized.
Referring to fig. 2a, fig. 2a is a flowchart illustrating steps of a method for measuring a frequency of a water pump piston according to an embodiment of the present disclosure; the method in fig. 2a is to measure the piston frequency with a single magnetic sensor. The method of fig. 2a may be performed by a magnetic sampling circuit in a magnetic sensor. As shown in fig. 2a, the water pump piston frequency measuring method includes: step S201 to step S202.
S201, when the piston moves back and forth in the water pump, the magnetic sensor detects the data of the magnetic field intensity change brought by the movement process of the piston.
Specifically, the embodiment of the present application is exemplified by the magnetic sensor being installed on the top of the water pump on the side close to the nozzle, and the magnet installed on the piston moves along with the movement of the piston when the piston moves back and forth in the water pump. And further, the relative distance between the magnet and the magnetic sensor is continuously changed, the magnetic performance of a sensitive element in the magnetic sensor is changed, and the magnetic field intensity change data brought in the motion process of the piston is converted into a voltage signal.
A magnetic sampling circuit in the magnetic sensor may read the voltage signal converted from the magnetic field strength variation data. For example, referring to fig. 1 again, when the piston in the water pump moves upward to compress, and the magnetic sampling circuit installed in the magnetic sensor on the side of the top of the water pump close to the nozzle reads the voltage, the voltage trend increases from 1.5V to 3V. When a piston of the water pump moves downwards, when a magnetic sampling circuit in a magnetic sensor arranged on one side of the top of the water pump, which is close to a nozzle, reads voltage, the voltage change trend is decreased from 3V to 1.5V. Referring to fig. 2b, fig. 2b is a schematic diagram of a voltage variation value obtained by a magnetic sampling circuit according to an embodiment of the present disclosure. When a maximum value (3V) is continuously obtained, the water pump piston moves for one period (when the piston moves to t 1), namely the piston reciprocates for 1 time.
S202, constructing a magnetic field intensity change data set, and determining the motion frequency of the piston according to the magnetic field intensity change data set.
Specifically, the data elements in the magnetic field strength variation data set are composed of magnetic field strength data acquired by the magnetic sensor in a sampling period. The magnetic field strength change data set is a set of voltage signals read by the magnetic sampling circuit in S201. Referring to fig. 3a, fig. 3a is a flowchart illustrating a method for determining a frequency of a piston movement according to an embodiment of the present application. The method comprises the following steps: steps S301 to S302.
S301, determining the occurrence frequency of the maximum value or the minimum value in the magnetic field intensity change data set.
Specifically, first, a difference operation is performed on each data element in the magnetic field intensity change data set to construct a difference result data set.
The difference operation is to perform a difference operation (generally, subtracting a previous term from a next term) between two adjacent data elements in the data set. For example, please refer to fig. 3b, fig. 3b is a schematic diagram of voltage variation values obtained by another magnetic sampling circuit provided in an embodiment of the present application for facilitating understanding of the technical solution. In fig. 3b the magnetic sampling circuit constructs a data set of magnetic field strength variations of [1.5v, 2v, 2.5v, 3v, 2.5v, 2v, 1.5v ].
The difference result dataset is the difference between two adjacent data elements forming a new dataset. Illustratively, the difference result data set is [0.5, -0.5, -0.5, 0.5 ].
And secondly, determining the frequency of the maximum value according to the frequency of the situation that the numerical value in the difference result data set is changed from positive to negative. Illustratively, the number of occurrences of the maximum value determined from the number of occurrences of the positive-to-negative case in the difference result data set is 3.
Or determining the occurrence frequency of the minimum value according to the occurrence frequency of the condition that the numerical value in the difference result data set is changed from negative to positive. Illustratively, the number of occurrences of the minimum value determined by the number of occurrences of the negative-to-positive condition in the difference result data set is 3.
And S302, determining the piston motion frequency by calculating the quotient of the occurrence frequency of the maximum value or the minimum value and the sampling period.
For example, if the sampling period in fig. 3b is taken to be 0.003 seconds and the maximum occurs 3 times, the frequency of piston movement is 1000 times/second. The number of occurrences of the minima is 3, and the frequency of piston motion is 1000 times/second.
It should be noted that the sampling period is a preset value.
Referring to fig. 4a, fig. 4a is a flowchart illustrating steps of another method for measuring a frequency of a piston of a water pump according to an embodiment of the present disclosure; the method in fig. 4a is to measure the piston frequency with two magnetic sensors. As shown in fig. 4a, the water pump piston frequency measuring method includes: step S401 to step S403.
S401, determining a first frequency according to a first data set; a second frequency is determined from the second data set.
Specifically, this application embodiment is exemplified by first magnetic sensor installs the side that is close to the nozzle at the water pump top, and second magnetic sensor installs the side of keeping away from the nozzle at the water pump bottom.
The voltage signals converted from the magnetic field intensity change data can be respectively collected by the magnetic sampling circuit in the first magnetic sensor and the magnetic sampling circuit in the second magnetic sensor. Illustratively, when a piston in the water pump moves upwards to compress, the magnetic sampling circuit in the first magnetic sensor reads the voltage, the voltage change trend is increased from 1.5V to 3V, and when the magnetic sampling circuit in the second magnetic sensor reads the voltage, the voltage change trend is decreased from 3V to 1.5V. When the piston of the water pump moves downwards, the magnetic sampling circuit in the first magnetic sensor reads the voltage, the voltage change trend is decreased from 3V to 1.5V, and the magnetic sampling circuit in the second magnetic sensor reads the voltage, the voltage change trend is increased from 1.5V to 3V. Referring to fig. 4b, fig. 4b is a schematic diagram of voltage variation values respectively detected by the first magnetic sensor and the second magnetic sensor according to an embodiment of the present disclosure. When the first sensor continuously acquires a maximum value (3V), the water pump piston moves for one period (when the piston moves to t 1), namely the piston reciprocates for 1 time. When the second sensor continuously acquires a minimum value (1.5V), the water pump piston moves for one period (when the piston moves to t 1), namely the piston reciprocates for 1 time.
The first data set consists of magnetic field strength data acquired by the first magnetic sensor over a sampling period. The first data set is the same as the data set of the magnetic field strength variation constructed by the magnetic sampling circuit in the single magnetic sensor in step S301, and is not described herein again.
The second data set consists of magnetic field strength data acquired by the second magnetic sensor during a sampling period. Referring to fig. 4c, fig. 4c is a schematic diagram of voltage variation values obtained by the magnetic sampling circuit in the second magnetic sensor according to an embodiment of the present application. In fig. 4c the magnetic sampling circuit of the second magnetic sensor constructs a second data set of [3v, 2.5v, 2v, 1.5v, 2v, 2.5v, 3v ].
The specific method for determining the first frequency according to the first data set is the same as the method for determining the frequency of the piston movement according to the data set of the magnetic field intensity change in step S202, and the detailed description thereof is omitted here.
The method for determining the second frequency from the second data set is specifically:
firstly, difference operation is carried out on each data element in the second data set, and a second difference result data set is constructed.
The second difference result data set is a new data set formed for the difference between two adjacent data elements in the second data set. Illustratively, the second differential result dataset is [ -0.5, -0.5, -0.5, 0.5 ].
Secondly, the number of times of occurrence of the maximum value is determined according to the number of times of occurrence of the situation that the numerical value in the second difference result data set changes from positive to negative. Illustratively, the number of occurrences of the maximum value determined from the number of occurrences of the positive-to-negative case in the second difference result data set is 3.
Or determining the number of occurrences of the minimum value according to the number of occurrences of the condition that the value in the second difference result data set changes from negative to positive. Illustratively, the number of occurrences of the minimum value determined by the number of occurrences of the negative-to-positive condition in the second difference result data set is 3.
And finally, determining the piston motion frequency by calculating the quotient of the occurrence times of the maximum value or the minimum value and the sampling period.
Illustratively, the sampling period in fig. 4c is taken to be 0.003 seconds, and the maximum value occurs 3 times, then the second frequency is determined to be 1000 times/second from the second data set. The number of occurrences of the minima is 3, then the second frequency is determined to be 1000/sec from the second data set.
It should be noted that the sampling period is a preset value.
S402, judging whether the first frequency is consistent with the second frequency.
And S403, if the first frequency is consistent with the second frequency, determining the first frequency or the second frequency as the piston motion frequency.
Specifically, because the temperature of the surrounding environment of the water pump of the water flushing device is increased in the working process, and meanwhile, the water pump generates vibration in the working process, the first magnetic sensor and the second magnetic sensor are interfered to a certain extent by the temperature and the vibration along with the time, so that the detection accuracy of the first magnetic sampling circuit and the second magnetic sampling circuit is reduced, if the first frequency is consistent with the second frequency, the temperature, the vibration and other unknown factors do not interfere with the first magnetic sensor and the second magnetic sensor, and at this time, the first frequency or the second frequency can be determined as the piston motion frequency.
S404, if the first frequency is not consistent with the second frequency, determining the first frequency as the piston motion frequency.
Specifically, when the first frequency is inconsistent with the second frequency, heat is generated due to friction between the piston and the inner wall of the water pump, so that the second magnetic sensor installed on the side (second side) of the bottom side of the water pump far away from the nozzle is more easily affected by interference caused by temperature change than the first magnetic sensor installed on the side (first side) of the top of the water pump near the nozzle, and therefore the first frequency detected by the first magnetic sensor is preferably used as the motion frequency of the piston when the first frequency is inconsistent with the second frequency.
In summary, according to the method for measuring the frequency of the water pump piston provided by the embodiment of the application, the motion frequency of the piston when the motion frequency of the piston changes due to the aging of the structure of the tooth flushing device, the corrosion of the water pump, the thermal barrier shrinkage, the fatigue of materials and the like is obtained through the magnetic sensor. And a plurality of motion frequencies of the piston when the motion frequency of the piston changes can be acquired through a plurality of groups of sensors, if the motion frequencies are equal, any one of the motion frequencies is taken as the motion frequency of the piston, and the interference of temperature and vibration on the magnetic sensor is reduced. The movement frequency of the piston when the movement frequency of the piston changes is obtained so as to enable the tooth flusher to keep the impulse constant and provide data support.
The impulsive force of the water of the tooth flushing device is positively correlated with the motion frequency of the piston, the larger the motion frequency of the piston is, the faster the motion speed of the piston in unit time is, and the larger the pressure of the water in the water pump is, the stronger the impulsive force is. In the use process of the tooth flusher, due to reasons such as aging of the tooth flusher structure, corrosion of a water pump, thermal barrier shrinkage, material fatigue and the like, the movement frequency of the piston changes, so that the impulse force changes and is inconsistent with the initial impulse force, therefore, in order to keep the impulse force constant, the embodiment of the application provides a data processing method for keeping the impulse force of the tooth flusher constant, please refer to fig. 5, and fig. 5 is a flow chart of steps of the data processing method for keeping the impulse force of the tooth flusher constant, provided by the embodiment of the application. The method of fig. 5 may be performed by a control circuit. The method comprises the following steps: step 501 to step 503.
S501, acquiring the motion frequency of a piston of a water pump of the tooth flusher.
Specifically, a specific method for acquiring the motion frequency of the piston of the water pump of the water irrigator may refer to the method for measuring the piston frequency by using a single magnetic sensor in fig. 2, or refer to the method for measuring the piston frequency by using two magnetic sensors in fig. 4. In the method shown in fig. 2 or fig. 4, a magnetic sampling circuit in a magnetic sensor is used for sampling data, so that the frequency of the piston is measured, the magnetic sampling circuit transmits the acquired data to a control circuit, and the control circuit can call corresponding components to determine the motion frequency of the piston of the water pump of the tooth flusher.
And S502, comparing the motion frequency of the piston with the preset motion frequency of the piston.
Specifically, the preset motion frequency of the piston in the embodiment of the present application refers to the motion frequency of the piston when the control circuit in the tooth irrigator drives the piston to move according to the preset piston motion driving parameter of the tooth irrigator.
Comparing the piston motion frequency of the tooth irrigator measured by the method in the S501 with the preset motion frequency of the piston, and dividing the obtained comparison results into 4 cases:
1. the piston movement frequency is less than 1000 times/second (preset movement frequency), which may be caused by the increase of the friction force between the piston and the inner wall of the water pump due to some influence factor, and the piston movement driving parameters of the tooth flusher need to be adjusted to ensure that the piston movement frequency is 1000 times/second.
2. The piston movement frequency is equal to 1000 times/second (preset movement frequency), and the condition proves that the water pressure generated in the piston movement process is the same as the water pressure generated when the piston starts to move, and the piston movement driving parameters do not need to be adjusted.
3. The piston movement frequency is more than 1000 times/second (preset movement frequency), which is caused by the factors of the friction force between the piston and the inner wall of the water pump being reduced, and the like, the piston movement driving parameters of the tooth flushing device need to be adjusted to ensure that the piston movement frequency is 1000 times/second.
4. The piston movement frequency is 0 times/second, and the condition proves that the water pump has a fault and cannot work normally.
And S503, if the motion frequency is not consistent with the preset motion frequency, adjusting the piston motion driving parameters of the tooth flusher.
Specifically, the piston motion frequency of the tooth irrigator obtained by the method in S501 is compared with the preset motion frequency of the piston, and when the obtained comparison result is the 1 st and 3 rd cases in S502, the motion frequency is inconsistent with the preset motion frequency, and the piston motion driving parameter of the tooth irrigator needs to be adjusted, wherein the piston motion driving parameter of the tooth irrigator specifically includes the duty ratio of the pulse width modulation signal. Referring to fig. 6, fig. 6 is a flowchart illustrating a method for adjusting a driving parameter of a piston of a dental irrigator according to an embodiment of the present disclosure. The method of fig. 6 is performed by a control circuit. The method comprises the following steps: step S601 to step 602.
S601, acquiring a first duty ratio of the pulse width modulation signal when the piston starts to move at a preset movement frequency, wherein the first duty ratio is a preset duty ratio.
And S602, determining a second duty ratio of the pulse width modulation signal according to the preset motion frequency, the first duty ratio and the piston motion frequency.
Specifically, when the tooth flusher flushes, and the acquired motion frequency of the piston in the water pump is the 1 st situation or the 3 rd situation in S502, the duty ratio of the pulse width modulation signal needs to be adjusted. In an embodiment of the present application, according to the preset motion frequency, the first duty ratio and the piston motion frequency obtained in S501 when the tooth irrigator is used for rinsing, based on a formula:
the preset movement frequency × the first duty ratio is equal to the piston movement frequency × the second duty ratio.
A second duty cycle of the pulse width modulated signal may be calculated while the piston is moving at the piston movement frequency. The water pressure can be kept constant by adjusting the first duty ratio of the pulse width modulation signal to the second duty ratio. Due to the reasons of structure aging of the tooth flushing device, corrosion of a water pump, thermal barrier cold contraction, material fatigue and the like, the pulse width modulation signal with the first duty ratio sent by the control circuit is not enough to drive the piston to reciprocate at the first frequency, so that the initial water pressure is not kept, the first duty ratio of the pulse width modulation signal is adjusted to the second duty ratio by the control circuit, the piston is driven to continue to move at the first frequency, and the initial water pressure is kept.
To sum up, the data processing method for keeping the impulsive force of the tooth flusher constant provided by the embodiment of the application adjusts the first duty ratio of the pulse width modulation signal to the second duty ratio by acquiring the motion frequency of the piston when the motion frequency of the piston changes due to the aging of the structure of the tooth flusher, the corrosion of the water pump, the thermal barrier cold contraction, the material fatigue and the like, and then drives the piston to continue to move at the preset motion frequency, so that the consistency of the motion frequency of the piston is kept in the use process of the tooth flusher, and the water impulsive force is kept constant.
Referring to fig. 7, fig. 7 is a device for measuring a motion frequency of a water pump piston according to an embodiment of the present application, including:
and the magnetic field intensity change data detection module 710 is used for detecting data of the magnetic field intensity change brought by the piston in the moving process through the first magnetic sensor when the piston moves back and forth in the water pump.
And the frequency determining module 720 is configured to construct a magnetic field strength change data set, where data elements in the magnetic field strength change data set are composed of magnetic field strength data acquired by the first magnetic sensor in a sampling period, and determine the motion frequency of the piston according to the magnetic field strength change data set.
The frequency determination module 720 includes a first frequency determination submodule 721 and a second frequency determination submodule 722.
The first frequency determination submodule 721 determines the number of occurrences of maxima or minima in the data set of magnetic field strength variations.
A second frequency determination submodule 722 for determining the frequency of the piston movement by calculating the quotient of the number of occurrences of maxima or minima and the sampling period.
Referring to fig. 8, fig. 8 is a data processing apparatus for keeping the impulsive force of a dental irrigator constant according to an embodiment of the present application, including:
and the frequency determining module 810 is used for acquiring related data in the water pump piston movement process of the tooth flushing device and determining the piston movement frequency according to the related data.
And the impulse detection module 820 is used for determining the variation condition of the impulse of the tooth flusher according to the motion frequency of the piston.
And the impulse force adjusting module 830 is used for determining the piston motion driving parameters of the water pump of the tooth flusher according to the piston motion frequency.
The present application further provides a computer readable storage medium, which stores a computer program, and the computer program, when executed by a processor, can implement the steps in the water pump piston motion frequency measuring method embodiment or the steps in the data processing method embodiment for keeping the impulsive force of the water toothpick constant.
The embodiment of the application provides a computer program product, when the computer program product runs on an electronic device, the electronic device can realize the steps in the water pump piston motion frequency measuring method embodiment or the steps in the data processing method embodiment for keeping the impulse force of the tooth flushing device constant when the electronic device executes.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be implemented by a computer program, which can be stored in a computer readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/electronic device, a recording medium, computer memory, read-only memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunication signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
The processor may be a Central Processing Unit (CPU), and the processor may be other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may in some embodiments be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. In other embodiments, the memory may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash memory card (FC), and the like provided on the electronic device. Further, the memory may also include both an internal storage unit and an external storage device of the electronic device. The memory is used for storing an operating system, an application program, a Bootloader (BL), data, and other programs, such as a program code of the computer program. The memory may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种陶瓷精密小型定量泵