This application claims priority to Chinese Patent Application No. 201410674876.4 filed on Nov. 21, 2014, the contents of which are incorporated by reference herein.
The subject matter herein generally relates to controlling technology, and particularly to an injection device and a method for injecting liquid using the injection device.
A user may carelessly forget to turn off a water faucet after wash hands. A leaking water faucet can waste a lot of water.
Many aspects of the disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features of the present disclosure.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
Furthermore, the term “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules can be embedded in firmware, such as in an EPROM. The modules described herein can be implemented as either software and/or hardware modules and can be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The injection device 1 may be a water faucet or a hand sanitizer device, and the object 2 can be a user's hand.
In at least one embodiment, the control unit 10 determines a size of the object 2, according to a number of reflected infrared lights that are received by the infrared transceiver 11. The control unit 10 controls the nozzle 12 injecting liquid with a predetermined volume according to the size of the object 2.
It should be noted that when the infrared transceiver 11 transmits infrared lights to the object 2, the greater the size of the object 2 is, the more reflected infrared lights are received by the infrared transceiver 11.
The storage device 13 can be an internal storage device, such as a flash memory, a random access memory (RAM) for temporary storage of information, and/or a read-only memory (ROM) for permanent storage of information. The storage device 13 can also be an external storage device, such as an external hard disk, a storage card, or a data storage medium. The at least one processor 14 can be a central processing unit (CPU), a microprocessor, or other data processor chip that performs functions of the injection device 1.
In at least one embodiment, the control unit 10 may include a setting module 101, a detection module 102 and a control module 103. The function modules 101, 102, and 103 may include computerized codes in the form of one or more programs, which are stored in the storage device 13, and are executed by the at least one processor 14 to provide functions of the present disclosure. Details will be given in the following paragraphs.
The setting module 101 predetermines a plurality of size ranges for the object 2, corresponding to a plurality of numbers of the reflected lights that are received by the infrared transceiver 11. The setting module 101 further predetermines a plurality of volumes of liquid for the nozzle 12, corresponding to the plurality of size ranges of the object 2.
For example, the setting module 101 predetermines a first size range for the object 2, when the infrared transceiver 11 receives more than 20 reflected infrared lights that are reflected by the object 2. The setting module 101 further predetermines the nozzle 12 to inject liquid with 15 milliliters when the size of object 2 is determined to be within the first size range.
For another example, the setting module 101 predetermines a second size range for the object 2, when the number of the reflected infrared lights that are received by the infrared transceiver 11 is within a range of [10, 20]. The setting module 101 further predetermines the nozzle 12 to inject liquid with 10 milliliters when the size of object 2 is determined to be within the second size range. The setting module 101 predetermines a third size range for the object 2, when the infrared transceiver 11 receives less than 10 reflected infrared lights that are reflected by the object 2. The setting module 101 further predetermines the nozzle 12 to inject liquid with 5 milliliters when the size of object 2 is determined to be within the third size range.
The detection module 102 detects the size of the object 2 according to the number of the reflected infrared lights that are received by the infrared transceiver 11. For example, the detection module 102 determines the size of the object 2 to be within the first size range when the infrared transceiver 11 receives 25 reflected infrared lights that are reflected by the object 2.
The control module 103 controls the nozzle 12 injecting liquid with the predetermined volume according to the size of the object 2. For example, the control module 103 controls the nozzle 12 injecting liquid with 15 milliliters when the size of the object 2 is determined to be within the first size range.
At block 1001, an setting module predetermines a plurality of size ranges for an object, corresponding to a plurality of numbers of reflected lights that are received by an infrared transceiver of an injection device. The setting module further predetermines a plurality of volumes of liquid for a nozzle of the injection device, corresponding to the plurality of size ranges of the object.
For example, the setting module predetermines a first size range for the object, when the infrared transceiver receives more than 20 reflected infrared lights that are reflected by the object. The setting module further predetermines the nozzle to inject liquid with 15 milliliters when the size of object is determined to be with the first size range.
For another example, the setting module predetermines a second size range for the object, when the number of the reflected infrared lights that are received by the infrared transceiver is within a range of [10, 20]. The setting module further predetermines the nozzle to inject liquid with 10 milliliters when the size of object is determined to be within the second size range. The setting module predetermines a third size range for the object, when the infrared transceiver receives less than 10 reflected infrared lights that are reflected by the object. The setting module further predetermines the nozzle to inject liquid with 5 milliliters when the size of object is determined to be within the third size range.
At block 1002, a detection module detects the size of the object according to the number of the reflected infrared lights that are received by the infrared transceiver. For example, the detection module determines the size of the object to be within the first size range, when the infrared transceiver receives 25 reflected infrared lights that are reflected by the object.
At block 1003, a control module controls the nozzle injecting liquid with the predetermined volume, according to the size of the object. For example, the control module controls the nozzle injecting liquid with 15 milliliters when the size of the object is determined to be within the first size range.
It should be emphasized that the above-described embodiments of the present disclosure, including any particular embodiments, are merely possible examples of implementations, set forth for a clear understanding of the principles of the disclosure. Many variations and modifications can be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201410674876.4 | Nov 2014 | CN | national |