CN109419365A - The control method and system of purifying drinking appliance - Google Patents
The control method and system of purifying drinking appliance Download PDFInfo
- Publication number
- CN109419365A CN109419365A CN201710780087.2A CN201710780087A CN109419365A CN 109419365 A CN109419365 A CN 109419365A CN 201710780087 A CN201710780087 A CN 201710780087A CN 109419365 A CN109419365 A CN 109419365A
- Authority
- CN
- China
- Prior art keywords
- infrared
- purifying drinking
- drinking appliance
- signal
- microcontroller
- 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.)
- Pending
Links
Classifications
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47J—KITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
- A47J31/00—Apparatus for making beverages
- A47J31/44—Parts or details or accessories of beverage-making apparatus
- A47J31/58—Safety devices
Landscapes
- Engineering & Computer Science (AREA)
- Food Science & Technology (AREA)
- Selective Calling Equipment (AREA)
Abstract
The present invention proposes the control method and system of a kind of purifying drinking appliance, wherein this method emits the first infrared signal to purifying drinking appliance front by infrared transmitter interval setting time;Infrared remote receiver receives the object in front of by purifying drinking appliance one by one and receives the second infrared signal returned after the first infrared signal;Microcontroller obtains the signal parameter of the first infrared signal and the signal parameter of the second infrared signal corresponding with the first infrared signal one by one;According to the signal parameter of the first infrared signal and with the first infrared signal, the signal parameter of corresponding second infrared signal calculates at a distance from objects in front and purifying drinking appliance microcontroller one by one;Determine whether the object in front of purifying drinking appliance is adult and whether adult advances towards purifying drinking appliance at a distance from the more each calculated objects in front of microcontroller and purifying drinking appliance;Microcontroller issues the signal for being forbidden to use functions of child lock, and then keep purifying drinking appliance safe and reliable when determining the object in front of purifying drinking appliance is that adult and adult advance towards purifying drinking appliance.
Description
Technical field
The present invention relates to intelligent appliance technical field more particularly to the control methods and system of a kind of purifying drinking appliance.
Background technique
Many intelligent appliances are all configured with functions of child lock, and when functions of child lock enables, other any operation keys all can be temporary
Its control function is lost, avoids children because dangerous caused by curious maloperation.
" child's lock " key is configured on the control panel of existing intelligent appliance such as purifying drinking appliance, as long as pinning " child's lock " key 2
It second can be switched between locking and unlocking, i.e., in starting functions of child lock and forbid switching between functions of child lock.
However since the negligence of adult causes the case where may forgetting pressing " child's lock " key, cause functions of child lock not enabled
Children injury accident occurs.Therefore, a kind of control method of safe and reliable purifying drinking appliance becomes technical problem urgently to be resolved.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of control method of purifying drinking appliance, by adult and only
The distance of drink machine carries out test constantly, when determining that adult has the intention using purifying drinking appliance, can just make the Tong Suogong of purifying drinking appliance
It can be prohibited, otherwise the functions of child lock of purifying drinking appliance is persistently opened, and guarantees children's life security, and then keep purifying drinking appliance safe and reliable.
For this purpose, second object of the present invention is to propose a kind of control system of purifying drinking appliance.
For this purpose, third object of the present invention is to propose a kind of computer equipment.
For this purpose, fourth object of the present invention is to propose a kind of computer readable storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of control method of purifying drinking appliance,
Infrared proximity transducer, microcontroller are provided on the purifying drinking appliance, wherein the infrared proximity transducer packet
Infrared transmitter and infrared remote receiver are included, and when purifying drinking appliance is placed in ground, height of the infrared proximity transducer apart from ground
Degree is greater than the children's average height precalculated, which comprises
Infrared transmitter interval setting time emits the first infrared signal to the purifying drinking appliance front;
The infrared remote receiver receives returned after object reception first infrared signal in front of the purifying drinking appliance one by one
The second infrared signal returned;
The microcontroller obtain one by one first infrared signal signal parameter and with first infrared signal pair
The signal parameter for the second infrared signal answered;
The microcontroller one by one according to the signal parameter of first infrared signal and with first infrared signal pair
The signal parameter for second infrared signal answered calculates objects in front at a distance from purifying drinking appliance;
The object in front of purifying drinking appliance is determined at a distance from the more each calculated objects in front of the microcontroller and purifying drinking appliance
Whether body is adult and whether adult advances towards the purifying drinking appliance;
The microcontroller is determining that the object in front of purifying drinking appliance is that adult and adult advance towards the purifying drinking appliance
When, issue the signal for being forbidden to use functions of child lock.
Method as described above is determining that the object in front of purifying drinking appliance is adult and adult court in the microcontroller
After the purifying drinking appliance advances, and before microcontroller sending is forbidden to use the signal of functions of child lock, further includes:
The microcontroller obtain the signal parameter of the first infrared signal of described infrared transmitter the last time transmitting with
And the signal parameter of the last received second infrared signal of the infrared remote receiver;
The microcontroller connects according to the signal parameter and the last time of the first infrared signal of the last transmitting
The signal parameter for the second infrared signal received determines whether the adult is safe distance at a distance from the purifying drinking appliance;
If safe distance, the microcontroller issues the signal for being forbidden to use functions of child lock.
Method as described above, the launch angle of the infrared transmitter are 25 °.
Method as described above, the infrared proximity transducer are Si1141 sensor.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of control system of purifying drinking appliance, comprising: setting
Infrared proximity transducer, microcontroller on the purifying drinking appliance, wherein the infrared proximity transducer includes infrared transmitter
And infrared remote receiver, and when purifying drinking appliance is placed in ground, height of the infrared proximity transducer apart from ground is greater than meter in advance
Children's average height of calculation;
The infrared transmitter is for being spaced setting time to the first infrared signal of transmitting in front of the purifying drinking appliance;
The infrared remote receiver, which is used to receive one by one, receives first infrared signal by the object in front of the purifying drinking appliance
The second infrared signal returned afterwards;
The microcontroller be used for obtain one by one first infrared signal signal parameter and with the described first infrared letter
The signal parameter of number corresponding second infrared signal;
The microcontroller for one by one according to the signal parameter of first infrared signal and with the described first infrared letter
The signal parameter of number corresponding second infrared signal calculates current objects in front at a distance from purifying drinking appliance;
The microcontroller determines the purifying drinking appliance for more each calculated objects in front at a distance from purifying drinking appliance
Whether the object in front is adult and whether adult advances towards the purifying drinking appliance;
The microcontroller is used to determine that the object in front of purifying drinking appliance is adult and adult towards the purifying drinking appliance
When advance, the signal for being forbidden to use functions of child lock is issued.
System as described above, the microcontroller determine the object in front of purifying drinking appliance be adult and adult towards
After the purifying drinking appliance advances, and before microcontroller sending is forbidden to use the signal of functions of child lock,
The microcontroller is also used to the microcontroller and obtains the first red of described infrared transmitter the last time transmitting
The signal parameter of the signal parameter of external signal and the last received second infrared signal of the infrared remote receiver;
The microcontroller is also used to according to the signal parameter of the first infrared signal of the last transmitting and recently
The signal parameter of primary received second infrared signal determine the adult with the purifying drinking appliance at a distance from whether be safely away from
From;
If safe distance, the microcontroller is also used to issue the signal for being forbidden to use functions of child lock.
System as described above, the launch angle of the infrared transmitter are 25 °.
System as described above, the infrared proximity transducer are Si1141 sensor.
To achieve the goals above, the computer equipment of third aspect present invention embodiment, comprising: processor and storage
Device;
Wherein, the processor run by reading the executable program code stored in the memory with it is described can
The corresponding program of program code is executed, with the control method for realizing purifying drinking appliance described in first aspect.
To achieve the goals above, the computer readable storage medium of fourth aspect present invention embodiment, is stored thereon with
Computer program realizes the control method of purifying drinking appliance described in first aspect when the computer program is executed by processor.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the range measurement principle figure of the illustrative infrared proximity transducer of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of the control method for purifying drinking appliance that one embodiment of the invention provides;
Fig. 3 is the partial structural diagram of the illustrative purifying drinking appliance of the embodiment of the present invention;
Fig. 4 is a kind of flow chart of the control method for purifying drinking appliance that further embodiment of this invention provides;
Fig. 5 is a kind of structural schematic diagram of the control system for purifying drinking appliance that one embodiment of the invention provides;
Fig. 6 is the structural schematic diagram of the computer equipment of one embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the control method and system of the purifying drinking appliance of the embodiment of the present invention are described.
Fig. 1 is the range measurement principle figure of the illustrative infrared proximity transducer of the embodiment of the present invention.It briefly introduces herein infrared
The working principle of 1 ranging of proximity sensor.Specifically, infrared transmitter 01 emits infrared light by certain launch angle θ, when
After encountering object, infrared beam is reflected back to form reflection infrared light, including filter and CCD (Charge Coupled
Device, charge coupled cell) detector infrared remote receiver 02 receive reflection infrared light after, handle CCD by analysis
Detector exports an offset distance L.Based on geometric triangulation relationship, according to offset distance L and launch angle θ, center away from X, filter
The known parameters such as focal length f, be not difficult to calculate object to infrared proximity transducer 1 distance D.It should be noted that in Fig. 1
Heart line 1 is considered as the cross central line of infrared transmitter 01, and center line 2 is considered as the cross central line of infrared remote receiver 02, center line 3
Be considered as the longitudinal centre line of filter, center away from X be considered as the center between infrared transmitter 01 and infrared remote receiver 02 away from.
In embodiments of the present invention, the suitable position setting infrared proximity according to the design requirement of product in purifying drinking appliance senses
Device 1.For example, when in purifying drinking appliance setting indoors ground, height of the infrared proximity transducer 1 apart from ground is at least
1.5 meters, wherein 1.5 meters can be considered the children's average height precalculated.Personage of the height greater than 1.5 meters is considered as adult, body
Personage of the height less than 1.5 meters is considered as children.When occurring adult in front of purifying drinking appliance, the infrared hair of the sending of infrared transmitter 01
Penetrating light can be mapped to adult, and return to infrared emission light;When occurring children in front of purifying drinking appliance, infrared emission
The infrared emission light that device 01 issues can not be mapped to children, also be returned without infrared emission light.Therefore, setting is being drunk only
The infrared proximity transducer 1 of machine suitable position can simply and easily detect the front of purifying drinking appliance with the presence or absence of adult.
Fig. 2 is a kind of flow chart of the control method for purifying drinking appliance that one embodiment of the invention provides.
As shown in Fig. 2, a kind of control method of purifying drinking appliance provided in this embodiment, comprising:
Step S101, infrared transmitter 01 is spaced setting time to the first infrared signal of transmitting in front of purifying drinking appliance.
Step S102, infrared remote receiver 02 is received after the object in front of by purifying drinking appliance receives the first infrared signal one by one and is returned
The second infrared signal.
Specifically, infrared proximity transducer 1, microcontroller 2 are arranged on purifying drinking appliance, wherein infrared proximity transducer 1 wraps
Infrared transmitter 01 and infrared remote receiver 02 are included, and when purifying drinking appliance is placed in ground, height of the infrared proximity transducer 1 apart from ground
Degree is greater than the children's average height precalculated.
Preferably, infrared proximity transducer 1 is Si1141 sensor.Si1141 sensor have the advantage that sensing away from
From haveing excellent performance, such as the object in 0 to 50 cm range can be sensed;It designs simple, flexible, easy-to-use;It is at low cost;It is small in size;
It is low in energy consumption.
Preferably, microcontroller 2 is micro-control unit (Microcontroller Unit, MCU), and MCU is functional, number
It is strong according to processing capacity.
Specifically, the present embodiment can periodically launch outward according to actual product demand control infrared transmitter 01
One infrared signal.For example, setting time is 0.1 second, infrared transmitter 01 is spaced 0.1 second and launches outward the first infrared signal.When
When occurring the adult that height is greater than 1.5 meters in front of purifying drinking appliance, the first infrared signal occurs to emit and returns to second in adult
Infrared signal.
For example, within 0.5 second period, infrared transmitter 01 launches outward the first infrared signal and transmits 5 altogether
Secondary, then infrared remote receiver 02 receives the second infrared signal and has received altogether 5 times.Within 0.5 second period, adult constantly towards
Purifying drinking appliance advances, i.e., adult is more and more closer at a distance from purifying drinking appliance, and at this moment CCD detector receives second according to different moments
Infrared signal exports different offset distance L, and then can calculate adult in real time at a distance from purifying drinking appliance.
Step S103, microcontroller 2 obtains the signal parameter of the first infrared signal and corresponding with the first infrared signal one by one
The second infrared signal signal parameter.
Referring to Fig. 1 it is found that calculating object to the distance D of infrared proximity transducer 1, need to know that parameter has: offset distance L
The parameters such as focal length f with launch angle θ, center away from X, filter.Wherein, the signal parameter for belonging to the first infrared signal may include hair
Angle, θ is penetrated, center is away from X.The signal parameter for belonging to the second infrared signal may include the focal length f of filter, offset distance L.It may be noted that
, center is the calibrating parameters of equipment away from X, focal length f, launch angle θ, can be known by reading device configuration file.It can
Selection of land, launch angle θ are 25 °.Referring to Fig. 1, when launch angle θ is 0 degree, infrared emission light direct projection to infrared transmitter 01
Front, if front body surface is relatively smooth, the infrared external reflection light at this moment returned is likely to that infrared receiver can not be reached
On device 02;When launch angle θ is 90 degree, at this moment the direct projection of infrared emission light is likely to occur to the left of infrared transmitter 01
Infrared emission light can not reach on the front object of infrared transmitter 01;Therefore, it is necessary to reasonably select launch angle θ, warp
Overtesting verifying, being 25 ° for launch angle θ can guarantee that infrared emission light reaches the front object of infrared transmitter 01
On, it also can guarantee that the infrared external reflection light of return reaches on infrared remote receiver 02.Referring to Fig. 1, the front of infrared transmitter 01
It is front that infrared transmitter 01, which be can be understood as, towards the direction of object, and the right of infrared transmitter 01 can be understood as infrared
Transmitter 01 towards the direction of infrared remote receiver 02 be left.
Step S104, microcontroller 2 is one by one according to the signal parameter of the first infrared signal and corresponding with the first infrared signal
The second infrared signal signal parameter calculate objects in front at a distance from purifying drinking appliance.
Referring to Fig. 1 it is found that being based on geometric triangulation relationship, the focal length according to offset distance L, launch angle θ, center away from X, filter
The known parameters such as f, be not difficult to calculate objects in front to infrared proximity transducer 1 distance D.The present embodiment is by objects in front to red
The distance D of outer proximity sensor 1, which is considered as, calculates objects in front at a distance from purifying drinking appliance.
For example, within 0.5 second period, infrared transmitter 01 launches outward the first infrared signal and transmits 5 altogether
Secondary, then infrared remote receiver 02 receives the second infrared signal and has received altogether 5 times.Correspondingly, CCD detector is received according to different moments
To the second infrared signal export 5 different offset distance L, be based on geometric triangulation relationship, according to offset distance L, launch angle θ, in
Focal length f of the heart away from X, filter, the objects in front calculated separately out are 0.5 meter, 0.4 meter, 0.3 meter, 0.2 at a distance from purifying drinking appliance
Rice, 0.1 meter.
Step S105, before determining purifying drinking appliance at a distance from the more each calculated objects in front of microcontroller 2 and purifying drinking appliance
Whether the object of side is adult and whether adult advances towards purifying drinking appliance.
Due to the subjective initiative of people, people can freely walk about indoors according to the wish of itself, if some time does not carve
Adult appears in the front of purifying drinking appliance, and in fact, for adult only passes by purifying drinking appliance, there is no the meanings for using purifying drinking appliance
Figure, at this moment if being forbidden to use functions of child lock, if there is children close to if purifying drinking appliance at this time, it is likely that scald youngster occur
Virgin situation occurs.Therefore, it is necessary to determine that adult whether there is the intention using purifying drinking appliance.
The present embodiment determines that adult exists using net drink by carrying out test constantly at a distance from purifying drinking appliance to adult
When the intention of machine, just the functions of child lock of purifying drinking appliance can be made to be prohibited.For example, 5 obtained fronts are measured for 2 pairs of microcontroller
Object is for statistical analysis at a distance from purifying drinking appliance, it is found that the object in front of purifying drinking appliance is adult, and adult and purifying drinking appliance
Distance it is increasingly closer, microcontroller 2 determines that adult advances towards purifying drinking appliance, illustrates that adult exists and uses purifying drinking appliance
Wish, at this moment the functions of child lock of purifying drinking appliance is prohibited, and purifying drinking appliance can be used normally, otherwise the functions of child lock of purifying drinking appliance continue
It opens, guarantees children's life security, and then keep purifying drinking appliance safe and reliable.
Step S106, microcontroller 2 is determining that the object in front of purifying drinking appliance is adult and adult towards before purifying drinking appliance
Into when, issue and be forbidden to use the signal of functions of child lock.
Fig. 3 is the partial structural diagram of the illustrative purifying drinking appliance of the embodiment of the present invention.As shown in figure 3, microcontroller 2 with
Virgin lock device 3 in purifying drinking appliance connects, and virgin lock device 3 executes starting purifying drinking appliance according to the command signal that microcontroller 2 issues
The operation of the functions of child lock of purifying drinking appliance is forbidden in the operation or execution of functions of child lock.For example, when the command signal of the sending of microcontroller 2
For the signal for being forbidden to use functions of child lock, at this moment virgin lock device 3 executes the operation of the functions of child lock of starting purifying drinking appliance;Work as microcontroller
The command signal that device 2 issues is the signal that starting uses functions of child lock, and at this moment virgin lock device 3 executes the Tong Suogong for forbidding purifying drinking appliance
The operation of energy.It should be pointed out that the command signal that microcontroller 2 issues makes in the signal and starting for being forbidden to use functions of child lock
One is selected between the two with the signal of functions of child lock.
The control method of purifying drinking appliance provided in this embodiment is spaced setting time to before purifying drinking appliance by infrared transmitter 01
The first infrared signal of side's transmitting;Infrared remote receiver 02 is received after the object in front of by purifying drinking appliance receives the first infrared signal one by one and is returned
The second infrared signal returned;Microcontroller 2 obtains the signal parameter of the first infrared signal and corresponding with the first infrared signal one by one
The second infrared signal signal parameter;Microcontroller 2 one by one according to the signal parameter of the first infrared signal and with it is first infrared
The signal parameter of corresponding second infrared signal of signal calculates objects in front at a distance from purifying drinking appliance;Microcontroller 2 is more each
Determined at a distance from calculated objects in front and purifying drinking appliance the object in front of purifying drinking appliance whether be adult and adult whether court
Purifying drinking appliance advance;Microcontroller 2 when determining the object in front of purifying drinking appliance is that adult and adult advance towards purifying drinking appliance,
Issue the signal for being forbidden to use functions of child lock.This method is determined by carrying out test constantly at a distance from purifying drinking appliance to adult
When adult has the intention using purifying drinking appliance, just the functions of child lock of purifying drinking appliance can be made to be prohibited, otherwise the Tong Suogong of purifying drinking appliance
It can continue to open, guarantee children's life security, and then keep purifying drinking appliance safe and reliable.
Fig. 4 is a kind of flow chart of the control method for purifying drinking appliance that further embodiment of this invention provides.In above-described embodiment
On the basis of, determining that the object in front of purifying drinking appliance is after adult and adult advance towards purifying drinking appliance in microcontroller 2,
And before the sending of microcontroller 2 is forbidden to use the signal of functions of child lock, further includes: microcontroller 2 obtains infrared transmitter 01
The last received second infrared letter of signal parameter and infrared remote receiver 02 of first infrared signal of the last time transmitting
Number signal parameter;Signal parameter and the last reception of the microcontroller 2 according to the first infrared signal of the last time transmitting
The signal parameter of the second infrared signal determine whether adult is safe distance at a distance from purifying drinking appliance;If safe distance,
Microcontroller 2 issues the signal for being forbidden to use functions of child lock.
As shown in figure 4, a kind of control method of purifying drinking appliance provided in this embodiment, comprising:
Step S201, infrared transmitter 01 is spaced setting time to the first infrared signal of transmitting in front of purifying drinking appliance, executes step
Rapid S202.
Step S202, infrared remote receiver 02 is received after the object in front of by purifying drinking appliance receives the first infrared signal one by one and is returned
The second infrared signal, execute step S203.
Step S203, microcontroller 2 obtains the signal parameter of the first infrared signal and corresponding with the first infrared signal one by one
The second infrared signal signal parameter, execute step S204.
Step S204, microcontroller 2 is one by one according to the signal parameter of the first infrared signal and corresponding with the first infrared signal
The second infrared signal signal parameter calculate objects in front at a distance from purifying drinking appliance, execute step S205.
Step S205, before determining purifying drinking appliance at a distance from the more each calculated objects in front of microcontroller 2 and purifying drinking appliance
Whether the object of side is adult and whether adult advances towards purifying drinking appliance, if the determination result is YES, executes step S206.
It should be noted that step S201, step S202, step S203, step S204, step S205 in the present embodiment
Implementation respectively with step S101, step S102, step S103, step S104, the step S105 in above-described embodiment
Implementation is identical, and details are not described herein.
Step S206, microcontroller 2 obtains the signal ginseng of the first infrared signal of the last transmitting of infrared transmitter 01
The signal parameter of the last received second infrared signal of several and infrared remote receiver 02, executes step S207.
For example, within 0.5 second period, infrared transmitter 01 launches outward the first infrared signal and transmits 5 altogether
It is secondary, it is respectively the 1st the first infrared signal, the 2nd the first infrared signal, the 3rd the first infrared signal, the 3rd time first infrared
Signal, the first infrared signal of the 5th;Correspondingly, infrared remote receiver 02 receives the second infrared signal and has received 5 times altogether, respectively
1st the second infrared signal, the 2nd the second infrared signal, the 3rd the second infrared signal, the 3rd the second infrared signal, the 5th
Second infrared signal.First infrared signal of the last transmitting of infrared transmitter 01 in the present embodiment can be understood as the 5th
Secondary first infrared signal, the last received second infrared signal of infrared remote receiver 02 in the present embodiment can be understood as the
5 the second infrared signals, for microcontroller 2, according to the emission time for the first infrared signal that infrared transmitter 01 emits
At the time of with 02 received second infrared signal of infrared remote receiver, it is not difficult to determine the first of the last transmitting of infrared transmitter 01
Infrared signal and the last received second infrared signal of infrared remote receiver 02.
Step S207, signal parameter and the last time of the microcontroller 2 according to the first infrared signal of the last time transmitting
The signal parameter of received second infrared signal determines whether adult is safe distance at a distance from purifying drinking appliance, executes step
S208。
Specifically, the safe distance of adult and purifying drinking appliance are set according to practical situation.When adult and purifying drinking appliance away from
When from for safe distance, even if there is children close to purifying drinking appliance, adult can protect children and escape injury.
For example, safe distance is set as 0.1 meter.First infrared signal of the last transmitting of infrared transmitter 01 is
The first infrared signal of the 5th, the last received second infrared signal of infrared remote receiver 02 is the second infrared signal of the 5th,
Calculated objects in front at a distance from purifying drinking appliance be 0.08 meter, at this moment determine adult at a distance from purifying drinking appliance for safety away from
From;If calculated objects in front is 0.12 meter at a distance from purifying drinking appliance, at this moment determine that adult is not at a distance from purifying drinking appliance
Safe distance then obtains the first infrared signal and the second infrared signal next time, until infrared according to first next time
Signal and the second infrared signal determine that adult is safe distance at a distance from purifying drinking appliance.For example, infrared according to the first of the 6th time
Signal and the second infrared signal determine that adult is not safe distance at a distance from purifying drinking appliance, then first then according to the 7th time
Infrared signal and the second infrared signal determine whether adult is safe distance at a distance from purifying drinking appliance.
Step S208, if safe distance, microcontroller 2 issues the signal for being forbidden to use functions of child lock.
The control method of purifying drinking appliance provided in this embodiment, microcontroller 2 determine the object in front of purifying drinking appliance be at
After year people and adult advance towards purifying drinking appliance, and before the sending of microcontroller 2 is forbidden to use the signal of functions of child lock, lead to
Cross signal parameter and infrared remote receiver that microcontroller 2 obtains the first infrared signal of the last transmitting of infrared transmitter 01
The signal parameter of 02 the last received second infrared signal;The first infrared letter that microcontroller 2 emits according to the last time
Number signal parameter and the signal parameter of the last received second infrared signal determine that adult is at a distance from purifying drinking appliance
No is safe distance;If safe distance, microcontroller 2 issues the signal for being forbidden to use functions of child lock.This method is by treating as
When the distance of Nian Renyu purifying drinking appliance is safe distance, just controls microcontroller 2 and issue the signal for being forbidden to use functions of child lock, even if
There are children close to purifying drinking appliance, adult can protect children and escape injury.
Fig. 5 is a kind of structural schematic diagram of the control system for purifying drinking appliance that one embodiment of the invention provides.As shown in figure 5,
The control system of a kind of purifying drinking appliance provided in this embodiment, comprising: infrared proximity transducer 1, microcontroller 2.
Wherein, infrared proximity transducer 1, microcontroller 2, setting are on purifying drinking appliance.Infrared proximity transducer 1 includes infrared
Transmitter 01 and infrared remote receiver 02, and when purifying drinking appliance is placed in ground, height of the infrared proximity transducer 1 apart from ground is greater than
The children's average height precalculated;
Wherein, infrared transmitter 01 is for being spaced setting time to the first infrared signal of transmitting in front of purifying drinking appliance;
Wherein, the object that infrared remote receiver 02 is used to receive in front of by purifying drinking appliance one by one returns after receiving the first infrared signal
The second infrared signal;
Wherein, microcontroller 2 is used to obtain the signal parameter of the first infrared signal and corresponding with the first infrared signal one by one
The second infrared signal signal parameter;
Wherein, microcontroller 2 is for one by one according to the signal parameter of the first infrared signal and corresponding with the first infrared signal
The signal parameter of the second infrared signal calculate current objects in front at a distance from purifying drinking appliance;
Wherein, before microcontroller 2 is for determining purifying drinking appliance at a distance from more each calculated objects in front and purifying drinking appliance
Whether the object of side is adult and whether adult advances towards purifying drinking appliance;
Wherein, microcontroller 2 is used to determine that the object in front of purifying drinking appliance is adult and adult towards before purifying drinking appliance
Into when, issue and be forbidden to use the signal of functions of child lock.
Further, determining that the object in front of purifying drinking appliance is adult and adult towards purifying drinking appliance in microcontroller 2
After advance, and before the sending of microcontroller 2 is forbidden to use the signal of functions of child lock,
Microcontroller 2 is also used to microcontroller 2 and obtains the last the first infrared signal emitted of infrared transmitter 01
The signal parameter of signal parameter and the last received second infrared signal of infrared remote receiver 02;
Microcontroller 2 is also used to signal parameter and the last reception according to the first infrared signal of the last time transmitting
The signal parameter of the second infrared signal determine whether adult is safe distance at a distance from purifying drinking appliance;
If safe distance, microcontroller 2 is also used to issue the signal for being forbidden to use functions of child lock.
Further, the launch angle of infrared transmitter 01 is 25 °.
Further, infrared proximity transducer 1 is Si1141 sensor.
System in this present embodiment is closed, wherein each device executes the concrete mode of operation in related this method
It is described in detail in embodiment, no detailed explanation will be given here.
The control system of purifying drinking appliance provided in an embodiment of the present invention is spaced setting time to net drink by infrared transmitter 01
Emit the first infrared signal in front of machine;Infrared remote receiver 02 receives the object in front of by purifying drinking appliance one by one and receives the first infrared signal
The second infrared signal returned afterwards;Microcontroller 2 obtain one by one the first infrared signal signal parameter and with the first infrared signal
The signal parameter of corresponding second infrared signal;Microcontroller 2 is one by one according to the signal parameter of the first infrared signal and with first
The signal parameter of corresponding second infrared signal of infrared signal calculates objects in front at a distance from purifying drinking appliance;Microcontroller 2 compares
Whether the object for determining in front of purifying drinking appliance at a distance from each calculated objects in front and purifying drinking appliance is adult and adult is
It is no to advance towards purifying drinking appliance;Microcontroller 2 is determining that the object in front of purifying drinking appliance is adult and adult towards before purifying drinking appliance
Into when, issue and be forbidden to use the signal of functions of child lock.The system by carrying out test constantly at a distance from purifying drinking appliance to adult,
When determining that adult has the intention using purifying drinking appliance, just the functions of child lock of purifying drinking appliance can be made to be prohibited, otherwise the child of purifying drinking appliance
Lock function is persistently opened, and guarantees children's life security, and then keep purifying drinking appliance safe and reliable.
In order to achieve the above object, the embodiment of the present invention also proposed a kind of computer equipment.
Fig. 6 is the structural schematic diagram of the computer equipment of one embodiment of the invention.
As shown in fig. 6, the computer equipment includes: memory 11, processor 12 and is stored on memory 11 and can be
The computer program run on processor 12.
Processor 12 realized when executing described program Fig. 2 or Fig. 4 it is any shown in the control of purifying drinking appliance that provides in embodiment
Method processed.
Further, computer equipment further include:
Communication interface 13, for the communication between memory 11 and processor 12.
Memory 11, for storing the computer program that can be run on the processor 12.
Memory 11 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile
Memory), a for example, at least magnetic disk storage.
Processor 12, realized when for executing described program Fig. 2 or Fig. 4 it is any shown in the purifying drinking appliance that provides in embodiment
Control method.
If memory 11, processor 12 and the independent realization of communication interface 13, communication interface 13, memory 11 and processing
Device 12 can be connected with each other by bus and complete mutual communication.The bus can be industry standard architecture
(Industry Standard Architecture, abbreviation ISA) bus, external equipment interconnection (Peripheral
Component Interconnect, abbreviation PCI) bus or extended industry-standard architecture (Extended Industry
Standard Architecture, abbreviation EISA) bus etc..The bus can be divided into address bus, data/address bus, control
Bus etc..Only to be indicated in Fig. 6 with a thick line convenient for indicating, it is not intended that an only bus or a type of total
Line.
Optionally, in specific implementation, if memory 11, processor 12 and communication interface 13, are integrated in chip piece
Upper realization, then memory 11, processor 12 and communication interface 13 can complete mutual communication by internal interface.
Processor 12 can be a central processing unit (Central Processing Unit, abbreviation CPU), either
Specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), or be arranged to
Implement one or more integrated circuits of the embodiment of the present invention.
In order to achieve the above object, the embodiment of the present application also proposed a kind of computer readable storage medium, it is stored thereon with meter
Calculation machine program, realized when which is executed by processor as realization Fig. 2 or Fig. 4 it is any shown in provide in embodiment it is net
The control method of drink machine.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from
Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.
Claims (10)
1. a kind of control method of purifying drinking appliance, which is characterized in that be provided with infrared proximity transducer, micro-control on the purifying drinking appliance
Device processed, wherein the infrared proximity transducer includes infrared transmitter and infrared remote receiver, and when purifying drinking appliance is placed in ground,
Height of the infrared proximity transducer apart from ground is greater than the children's average height precalculated, which comprises
Infrared transmitter interval setting time emits the first infrared signal to the purifying drinking appliance front;
The infrared remote receiver is received to be received by the object in front of the purifying drinking appliance one by one and be returned after first infrared signal
Second infrared signal;
The microcontroller obtains the signal parameter of first infrared signal and corresponding with first infrared signal one by one
The signal parameter of second infrared signal;
The microcontroller is one by one according to the signal parameter of first infrared signal and corresponding with first infrared signal
The signal parameter of second infrared signal calculates objects in front at a distance from purifying drinking appliance;
Determine that the object in front of purifying drinking appliance is at a distance from the more each calculated objects in front of the microcontroller and purifying drinking appliance
No is adult and whether adult advances towards the purifying drinking appliance;
The microcontroller is sent out when determining the object in front of purifying drinking appliance is that adult and adult advance towards the purifying drinking appliance
It is forbidden to use the signal of functions of child lock out.
2. the method as described in claim 1, which is characterized in that determining that the object in front of purifying drinking appliance is in the microcontroller
After adult and adult advance towards the purifying drinking appliance, and the letter for being forbidden to use functions of child lock is issued in the microcontroller
Before number, further includes:
The microcontroller obtains signal parameter and the institute of the first infrared signal of infrared transmitter the last time transmitting
State the signal parameter of the last received second infrared signal of infrared remote receiver;
The microcontroller is received according to the signal parameter of the first infrared signal of the last transmitting and the last time
The signal parameter of second infrared signal determines whether the adult is safe distance at a distance from the purifying drinking appliance;
If safe distance, the microcontroller issues the signal for being forbidden to use functions of child lock.
3. the method as described in claim 1, which is characterized in that the launch angle of the infrared transmitter is 25 °.
4. the method as described in claim 1, which is characterized in that the infrared proximity transducer is Si1141 sensor.
5. a kind of control system of purifying drinking appliance characterized by comprising the infrared proximity sensing on the purifying drinking appliance is arranged in
Device, microcontroller, wherein the infrared proximity transducer includes infrared transmitter and infrared remote receiver, and when purifying drinking appliance is placed in
When ground, height of the infrared proximity transducer apart from ground is greater than the children's average height precalculated;
The infrared transmitter is for being spaced setting time to the first infrared signal of transmitting in front of the purifying drinking appliance;
The infrared remote receiver is used to receive one by one and be returned after object reception first infrared signal in front of the purifying drinking appliance
The second infrared signal returned;
The microcontroller be used for obtain one by one first infrared signal signal parameter and with first infrared signal pair
The signal parameter for the second infrared signal answered;
The microcontroller for one by one according to the signal parameter of first infrared signal and with first infrared signal pair
The signal parameter for second infrared signal answered calculates current objects in front at a distance from purifying drinking appliance;
The microcontroller determines in front of the purifying drinking appliance for more each calculated objects in front at a distance from purifying drinking appliance
Object whether be whether adult and adult advance towards the purifying drinking appliance;
The microcontroller is used to determine that the object in front of purifying drinking appliance is that adult and adult advance towards the purifying drinking appliance
When, issue the signal for being forbidden to use functions of child lock.
6. system as claimed in claim 5, which is characterized in that determining that the object in front of purifying drinking appliance is in the microcontroller
After adult and adult advance towards the purifying drinking appliance, and the letter for being forbidden to use functions of child lock is issued in the microcontroller
Before number,
The microcontroller is also used to the first infrared letter that the microcontroller obtains infrared transmitter the last time transmitting
Number the last received second infrared signal of signal parameter and the infrared remote receiver signal parameter;
The microcontroller is also used to signal parameter and the last time of the first infrared signal according to the last transmitting
The signal parameter of received second infrared signal determines whether the adult is safe distance at a distance from the purifying drinking appliance;
If safe distance, the microcontroller is also used to issue the signal for being forbidden to use functions of child lock.
7. the system as claimed in claim 1, which is characterized in that the launch angle of the infrared transmitter is 25 °.
8. the system as claimed in claim 1, which is characterized in that the infrared proximity transducer is Si1141 sensor.
9. a kind of computer equipment characterized by comprising processor and memory;
Wherein, the processor is run by reading the executable program code stored in the memory can be performed with described
The corresponding program of program code, with the control method for realizing purifying drinking appliance according to any one of claims 1 to 4.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt
The control method such as any one of claims 1 to 4 purifying drinking appliance is realized when processor executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710780087.2A CN109419365A (en) | 2017-09-01 | 2017-09-01 | The control method and system of purifying drinking appliance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710780087.2A CN109419365A (en) | 2017-09-01 | 2017-09-01 | The control method and system of purifying drinking appliance |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109419365A true CN109419365A (en) | 2019-03-05 |
Family
ID=65513029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710780087.2A Pending CN109419365A (en) | 2017-09-01 | 2017-09-01 | The control method and system of purifying drinking appliance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109419365A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116439575A (en) * | 2023-03-28 | 2023-07-18 | 芜湖美的智能厨电制造有限公司 | Control method of water purifying and drinking machine, water purifying and drinking machine and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103079438A (en) * | 2010-11-29 | 2013-05-01 | 齐晓燕 | Child scald-preventing drinking machine |
WO2015110128A1 (en) * | 2014-01-22 | 2015-07-30 | Aktiebolaget Electrolux | Drip plate assembly and beverage dispenser comprising a drip plate assembly |
CN105615664A (en) * | 2015-11-30 | 2016-06-01 | 东莞酷派软件技术有限公司 | Control method and control device of water dispenser |
CN106639744A (en) * | 2016-11-29 | 2017-05-10 | 南京集羽电子科技有限公司 | Intelligent window |
CN106724847A (en) * | 2016-12-21 | 2017-05-31 | 苏州咖博士咖啡***科技有限公司 | A kind of coffee machine with intelligent energy-saving device |
-
2017
- 2017-09-01 CN CN201710780087.2A patent/CN109419365A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103079438A (en) * | 2010-11-29 | 2013-05-01 | 齐晓燕 | Child scald-preventing drinking machine |
WO2015110128A1 (en) * | 2014-01-22 | 2015-07-30 | Aktiebolaget Electrolux | Drip plate assembly and beverage dispenser comprising a drip plate assembly |
CN105615664A (en) * | 2015-11-30 | 2016-06-01 | 东莞酷派软件技术有限公司 | Control method and control device of water dispenser |
CN106639744A (en) * | 2016-11-29 | 2017-05-10 | 南京集羽电子科技有限公司 | Intelligent window |
CN106724847A (en) * | 2016-12-21 | 2017-05-31 | 苏州咖博士咖啡***科技有限公司 | A kind of coffee machine with intelligent energy-saving device |
Non-Patent Citations (2)
Title |
---|
李卫国: "《创意之星 模块化机器人设计与竞赛》", 30 September 2016, 北京航空航天大学出版社 * |
赵桂生: "《建筑工程测量》", 30 June 2010, 华中科技大学出版社 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116439575A (en) * | 2023-03-28 | 2023-07-18 | 芜湖美的智能厨电制造有限公司 | Control method of water purifying and drinking machine, water purifying and drinking machine and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180151059A1 (en) | Motion sensor | |
CN106154278B (en) | Intelligent robot and sensor module and obstacle detection method for it | |
CN106464754B (en) | A kind of method, device and equipment for calibrating detecting distance | |
CN109419365A (en) | The control method and system of purifying drinking appliance | |
WO2007005442A3 (en) | Detection of coincident radiations in a single transducer by pulse shape analysis | |
CN105137450A (en) | Low false-alarm dual-Gm-APD detector photon counting laser radar | |
CN203931204U (en) | A kind of compound stall testing apparatus | |
CN107171284A (en) | A kind of intelligent power off socket control system based on human bioequivalence | |
CN105703335A (en) | Mobile phone anti-drop self-protection method and device | |
CN104828244B (en) | Safety device and the method for determining aircraft landing surface type for aircraft | |
CN105279824B (en) | Tripper | |
KR102441276B1 (en) | Method, device and system for managing and providing safety information of structure based on mobile terminal | |
CN108291407A (en) | Detect the position of barrier | |
CN101174285A (en) | Bus line fire wall of embedded system | |
CN106203405A (en) | Infrared detecting device and identity recognition device | |
Wasserman | Degeneracy inherent in the observational determination of the dark energy equation of state | |
CN107369239A (en) | Bank note magnetic buries safety line anti-counterfeiting detection apparatus and method entirely | |
CN109440421A (en) | Dryer and its water box water detection method and detection device | |
CN106289361B (en) | The detection method of sensor reliability and its certainly mobile processing unit and system | |
CN206249339U (en) | Infrared detecting device and identity recognition device | |
CN111568196A (en) | Intelligent water outlet method, system and storage medium | |
AU2016224238B2 (en) | Waste pickup system | |
US11530607B2 (en) | Ultrasonic interventionless system and method for detecting downhole activation devices | |
CN108600537A (en) | Proximity sensor, human body shadowing method, electronic device and readable storage medium storing program for executing | |
CN207557502U (en) | A kind of static human infrared identification detector |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190305 |