CROSS-REFERENCE TO RELATED APPLICATIONSThis application claims the benefit of U.S. Provisional Application No. 60/661,982, filed Mar. 14, 2005, which is expressly incorporated by reference herein.
This application also expressly incorporates by reference the disclosure of each of the following applications: (1) U.S. patent application Ser. No. 10/755,581, filed Jan. 12, 2004, titled “MULTI-MODE HANDS FREE AUTOMATIC FAUCET,” (2) U.S. patent application Ser. No. 10/755,582, filed Jan. 12, 2004, titled “CONTROL ARRANGEMENT FOR AN AUTOMATIC RESIDENTIAL FAUCET,” (3) U.S. patent application Ser. No. 10,757,316, filed Jan. 14, 2004, now U.S. Pat. No. 6,962,168, titled “CAPACITIVE TOUCH ON/OFF CONTROL FOR AN AUTOMATIC RESIDENTIAL FAUCET,” (4) U.S. patent application Ser. No. 10/912,254, filed Aug. 5, 2004, now U.S. Pat. No. 6,968,860, titled “RESTRICTED FLOW HANDS-FREE FAUCET,” (5) U.S. Provisional Application No. 60/661,981, filed Mar. 14, 2005, titled “BATTERY BOX ASSEMBLY,” (6) U.S. Provisional Patent Application Ser. No. 60/662,107, filed Mar. 14, 2005, titled “SPOUT ASSEMBLY FOR AN ELECTRONIC FAUCET AND METHOD FOR PROVIDING STRAIN RELIEF OF A CABLE,” and (7) U.S. Provisional Patent Application Ser. No. 60/662,106, filed Mar. 14, 2005, titled “VALVE BODY ASSEMBLY WITH ELECTRONIC SWITCHING” (“Related Applications”). It is understood that certain features disclosed and/or claimed in one or more of the Related Applications may be combined and/or claimed in combination with certain features disclosed in this application.
BACKGROUND OF THE INVENTION1. Field of the Invention
The present invention relates to faucets, and, more particularly, to electronic activation systems for faucets.
2. Description of the Related Art
The state of the art in electronic activation of plumbing faucets utilizes infrared (IR) sensors to determine whether a user is placing his hands or some object such as dishes under the spout. The sensor is typically directed to the general area under the spout. If the sensor determines that the user is placing his hands or some object under the faucet, then a controller turns on a flow of water or some other liquid to the spout. When the IR sensor no longer senses the presence of the hand or object under the spout, then the controller turns off the flow of liquid to the spout.
IR sensors typically include an emitter for emitting IR energy, and a receiver for receiving the IR energy after it has been reflected by some object in the path of the emitted IR energy. Known IR sensors for electronically activating faucets are intensity-based in that the sensors detect the presence of a hand or object under the spout based upon an intensity, magnitude or strength of the reflected IR energy received by the receiver. Generally, the greater the intensity of the reflected energy, the more likely it is that a hand or object has been placed under the spout.
A problem with intensity-based IR sensors is that they cannot easily discriminate between various types of scenarios that may occur in the proximity of a sink. For example, intensity-based IR sensors cannot easily discriminate between a hand entering the sink bowl, the water stream, the water stream with hands actively washing in the stream, and static situations such as a pot placed in the sink bowl. Because of this inability to discriminate, the water stream is not always turned on or off when appropriate.
What is needed in the art is a sensor system that can more easily discriminate between different types of static and dynamic situations in the vicinity of a sink so that the flow of water through the spout may be more accurately controlled.
SUMMARY OF THE INVENTIONThe present invention provides a faucet arrangement including an IR sensor that detects the distance between the sensor and objects placed in the vicinity of the sink bowl. Thus, the IR sensor may detect not only the presence of hands or objects under the spout, but may also monitor the movement of such hands or objects. The position-sensitive IR sensor thereby provides data that is more useful than the data that can be provided by an intensity-based IR sensor. The better data provided by the position-sensitive IR sensor enables the controller to make better decisions on whether the flow of liquid through the spout should be turned on or off.
The invention further provides an arrangement of the position-sensitive IR sensor that improves the stability of an output signal that is provided by the sensor's receiver, wherein the output signal is based upon the reflected IR energy received by the receiver. A controller may process or filter the output signal of the sensor receiver in different ways based upon the stability of the output signal. Depending upon the stability of the receiver's output signal, the controller may also use different criteria or threshold values in deciding whether the liquid flow to the spout should be turned on or off.
The invention comprises, in one form thereof, a faucet arrangement including a sensing device for sensing a presence of a user of a spout. The sensing device includes an infrared emitter installed such that a direction of emission of the emitter is oriented an angle of approximately between 5 and 15 degrees relative to a vertical direction. A receiver receives a diffused infrared energy from the emitter. A control device is in communication with the receiver and controls a flow of liquid through the spout dependent upon an angle at which the diffused infrared energy is received by the receiver.
In another form, the invention comprises a faucet arrangement including an infrared sensing device for emitting infrared energy, receiving the infrared energy after the energy has been reflected, determining a distance traveled by the infrared energy before being reflected, and producing a distance signal indicative of the determined distance at a plurality of points in time. A control device is in communication with the sensing device and controls a flow of liquid through a spout dependent upon whether the distance signal exceeds a threshold distance value. The threshold distance value is dependent upon an environmental condition.
In yet another form, the invention comprises a faucet arrangement including an infrared sensing device emitting infrared energy, receiving the infrared energy after the energy has been reflected, determining a distance traveled by the infrared energy before being reflected, and producing a distance signal indicative of the determined distance at a plurality of points in time. A control device is in communication with the sensing device and filters the distance signal dependent upon an environmental condition. The control device also controls a flow of liquid through the spout dependent upon whether the filtered distance signal exceeds a threshold distance value.
An advantage of the present invention is that the position-sensitive IR sensor enables a controller to discriminate between various static and dynamic scenarios that may occur within the vicinity of a sink.
Another advantage is that the stability of the output signal of the sensor receiver is improved.
Yet another advantage is that the output signal of the sensor receiver may be processed or filtered in different ways based upon the stability of the output signal, thus enabling valve control decisions to be made quickly and accurately under various conditions.
A further advantage is that, depending upon the stability of the receiver's output signal, different criteria or threshold values may be used in deciding whether the liquid flow to the spout should be turned on or off, thus enabling valve control decisions to be made accurately under various conditions.
BRIEF DESCRIPTION OF THE DRAWINGSThe above mentioned and other features and objects of this invention, and the manner of attaining them, will become more apparent and the invention itself will be better understood by reference to the following description of an embodiment of the invention taken in conjunction with the accompanying drawings, wherein:
FIG. 1 is a front view of one embodiment of a faucet arrangement of the present invention;
FIG. 2 is a perspective view of the spout ofFIG. 1 with the spray head detached from the tube assembly;
FIG. 3ais a front view of the tube assembly ofFIG. 2 with the spray head removed;
FIG. 3bis a side view of the tube assembly ofFIG. 3a;
FIG. 3cis an exploded perspective view of the tube assembly ofFIG. 3a;
FIG. 4 is an optical schematic diagram of the sensor ofFIG. 1;
FIG. 5 is an electrical block diagram of the faucet arrangement ofFIG. 1;
FIG. 6 is a perspective view of the spout ofFIG. 1 including a cable for communication with the sensor;
FIG. 7 is a schematic block diagram of the sensor ofFIG. 1;
FIG. 8 is a plan view of the emitter and lens of the sensor ofFIG. 7;
FIG. 9 is a side view of the spout ofFIG. 1;
FIG. 10 is an enlarged side view of the spray head, sensor, and a portion of the tube assembly of the spout ofFIG. 1;
FIG. 11 is an exemplary plot of the distance signal versus time as produced by the sensor ofFIG. 7;
FIG. 12 is another exemplary plot of the distance signal versus time as produced by the sensor ofFIG. 7;
FIG. 13 is the exemplary distance signal plot ofFIG. 12 along with a plot of a moving average of the distance signal;
FIG. 14 is another exemplary plot of a moving average of the distance signal versus time as produced by the sensor ofFIG. 7;
FIG. 15 is an exemplary plot of a moving average of the distance signal resulting from implementation of an algorithm of the present invention for setting an ON threshold; and
FIG. 16 is another exemplary plot, similar toFIG. 15, but with a modified algorithm for setting the ON threshold.
Corresponding reference characters indicate corresponding parts throughout the several views. Although the exemplifications set out herein illustrate the invention, in one form, the embodiments disclosed below are not intended to be exhaustive or to be construed as limiting the scope of the invention to the precise form disclosed.
DESCRIPTION OF THE PRESENT INVENTIONReferring now to the drawings, and particularly toFIG. 1, there is shown one embodiment of afaucet arrangement20 of the present invention including aspout22, asensing device24, and acontrol device26.Spout22 includes atube assembly28 andspray head30 which may have a diverter.Spray head30 may be detachable fromtube assembly28, as shown inFIG. 2.Spray head30 is connected to awater line32 that extends throughtube assembly28.Spout22 may deliver a flow of liquid, such as water, through anopening34 and into asink bowl36 disposed belowspray head30, as is well known. Details oftube assembly28 are shown inFIGS. 3a,3band3c.
As shown in the drawings,sensing device24 may be positioned on a side ofspout22 that is closer to the user when the user is usingfaucet arrangement20.Sensing device24 may be in the form of an infrared (IR) sensor that is capable of sensing a distance that IR energy emitted bysensor24 travels before being reflected by some object in its path. That is,sensor24 may determine a distance betweensensor24 and an object that is reflecting IR energy emitted bysensor24. In one embodiment,sensor24 is in the form of a position-sensing detector (PSD). The terms “reflect” and “reflection”, as used herein, may refer to either specular reflection, i.e., direct reflection, or diffuse reflection. However, in one embodiment,sensor24 may sense the distance betweensensor24 and an object primarily or exclusively based upon the diffuse reflection provided by the object.
PSD24 includes an IR energy emitter38 (FIG. 4) and an analogIR energy receiver40 having alens42 and adetector44.Emitter38 may produce a cone-shaped emission of IR energy spanning acone angle46 of approximately 60 degrees. However, the IR energy may be concentrated along acentral cone axis48 such that the effects of the IR energy that is not alongaxis48 are relatively small. Generally, the intensity of the IR emission may decrease as the IR energy is directed farther away fromaxis48. Depending upon the vertical level of a reflecting surface, i.e., the distance betweenPSD24 and the reflecting surface,lens42 focuses the diffusely reflected IR energy at different locations onIR detector44. Thus,PSD24 may determine the vertical level of the reflecting surface based upon the location ondetector44 at which the IR energy is received. For example, differentvertical levels50,52,54 of reflecting surfaces would result in the reflected IR energy being focused at different,respective locations56,58,60 ondetector44. As shown inFIG. 1,sensor24 receives IR energy diffusely reflected from a user'shand62 at anangle64 that is larger than anangle66 at whichsensor24 would receive IR energy diffusely reflected from another object, such as acooking surface68 of apot70 that is farther away fromsensor24 than ishand62.
The voltages and/or currents atterminals72,74 ofdetector44 may be dependent upon where along alength76 ofdetector44 that the reflected IR energy is received. For example, the closer the location of the received IR energy toterminal72, the higher the voltage/current that may be produced atterminal72, and the lower the voltage/current that may be produced atterminal74. The analog voltages/currents atterminals72,74 may be communicated to a signal processor78 (FIG. 5) ofsensor24 viarespective communication lines80,82. Based upon the signals onlines80,82,signal processor78 may output a voltage signal on aline84 tocontroller26. The voltage signal online84 may be indicative of where alonglength76 ofdetector44 that the IR energy was received. Electrical power may be supplied tosensor24 via a power line86 (FIG. 1) and aground line88. Anotherline90 may carry data fromcontroller26 for controllingsensor24, and particularly controlling the output ofemitter38.Lines84,86,88 and90 may be carried in a common cable92 (FIG. 6) having aconnector94 for connection tocontroller26.
A more detailed schematic diagram of the electronics of one embodiment ofsensor24 is shown inFIG. 7.FIG. 8 is a diagram indicating the approximate sizes and shapes ofemitter38 andlens42 in one embodiment ofsensor24. Adistance96 between the midpoints ofemitter38 andlens42 may be approximately twelve millimeters. An example of a position-sensing detector that may be used assensor24 of the present invention is an eight bit output distance measuring sensor, model no. GP3Y0E001K0F, sold by Sharp Corporation.Sensor24 may be connected to a circuit board (not shown) and totube assembly28 as disclosed in U.S. Provisional Patent Application Ser. No. 60/662,107, filed Mar. 14, 2005, titled “SPOUT ASSEMBLY FOR AN ELECTRONIC FAUCET AND METHOD FOR PROVIDING STRAIN RELIEF OF A CABLE”, which is incorporated herein by reference.
Via a line98 (FIG. 5),controller26 may control a position ofvalve100 based upon the voltage signal online84. The position ofvalve100 may, in turn, control a flow of liquid throughspout22. Generally, the shorter the distance thatcontroller26 determines the IR energy traveled before being reflected, i.e., the shorter the distance betweensensor24 and the reflecting surface, the greater the likelihood thatcontroller26 will causevalve100 to be in an open position in which liquid is delivered throughspout22. Thus,controller26 may control a flow of liquid throughspout22 dependent upon an angle at which the diffused infrared energy is received byreceiver40.
According to the present invention,emitter38 may be aligned such that, whenspout22 is installed above asink bowl36, the direction of emission ofemitter38, as represented bycentral axis48, is oriented at an angle102 (FIGS. 9 and 10) of approximately between five and fifteen degrees relative to avertical direction104.Vertical direction104 may be defined as the direction aligned with the force of gravity. It has been found that directingemitter38 at anangle102 improves the stability over time of the signal transmitted online84 tocontroller26. More particularly, directingemitter38 at anangle102 may reduce the amount of IR energy that is directed toreceiver40 via spectral reflection. For example, ifcentral axis48 of IR emission were oriented vertically, i.e., parallel tovertical direction104, it may be more likely that IR energy would spectrally reflect off some surface and be received byreceiver40. Standing water insink bowl36 may be particularly apt to spectrally reflect IR energy back toreceiver40 because of the lensing properties of the standing water.
The spectrally reflected IR energy may be energy that is not emitted alongaxis48, but rather is emitted within some other portion of the cone of IR emission, and thus may be emitted at the particular angle required to spectrally reflect toreceiver40. Spectrally reflection more efficiently reflects IR energy to a receiver than does diffuse reflection. Thus, even though the spectrally reflected IR energy is not emitted with intensity that is as high as the intensity with which the diffusely reflected IR energy alongaxis48 is emitted, the spectrally reflected IR energy may be more efficiently reflected toreceiver40. Thus, the spectrally reflected IR energy may be received with an intensity that is high enough to significantly affect the output ofdetector44. Because the spectrally reflected IR energy is received byreceiver40 at a different angle than is the diffusely reflected IR energy, the spectrally reflected IR energy may appear to the system to be diffusely reflected by a surface at a distance other than the actual distance of the reflecting surface. For this reason, spectrally reflected IR energy causes the output signal online84 to be unstable. By directing the IR energy atangle102, a greater majority of the IR energy may be spectrally reflected away fromreceiver40, thus reducing the total amount of spectrally reflected IR energy that is received byreceiver40.
In the embodiment shown in the drawings,angle102 is oriented at approximately a right angle to a plane defined byaxis48 andpaths106a,106b,106c(FIG. 4) of diffuse reflection toreceiver40. That is, a first plane108 (FIG. 1) defined byaxis48 andvertical direction104, and a second plane110 (FIG. 9) defined byaxis48 and any one of diffusereflection paths106a,106b,106c, are oriented approximately perpendicular to one another. However, the present invention is not limited to this ninety degree relationship between the two planes. Indeed, it is possible within the scope of the invention for the two planes to be oriented at any angle relative to one another.
Axis48 is shown in the drawings as being directed generally away from a stream of liquid112 fromspray head30. Stated more exactly,axis48 does not intersect stream ofliquid112; and a plane defined byaxis48 and a vertical line extending throughemitter38 may approximately bisect stream ofliquid112. However, the present invention is not limited to this direction ofaxis48. Excellent results may be obtained so long asaxis48 does not intersectstream112.Emitter38 may advantageously be directed such thataxis48 andstream112 diverge from one another with increasing distance fromemitter38 and fromspray head30.Stream112 may be directed byspray head30 in a downward vertical direction.
Angle102 has been described herein as being approximately between five and fifteen degrees. However,angle102 may be any nonzero angle up to ninety degrees within the scope of the invention. In one embodiment,angle102 is approximately between eight degrees and ten degrees. In the embodiment shown inFIG. 9,angle102 is approximately ten degrees.
Lens42 may be directed or focused in a direction that approximately intersectsaxis48. Advantageously,lens42 may be directed or focused in a direction that approximately intersectsaxis48 at a point alongaxis48 where a reflecting object is likely to be, such as near the top ofsink bowl36. With the direction or focus oflens42 as described above,lens42 may effectively focus the diffusely reflected IR energy ontodetector44.Sensor24 may include a secondaryouter lens142, shown inFIGS. 9 and 10 and visible to a user offaucet arrangement20, through which passes both outgoing IR energy fromemitter38 and incoming reflected IR energy tolens42.
Sensor24 may output the distance signal online84 at a plurality of points in time to thereby indicate the distance traveled by the IR energy before being reflected at each of the points in time. Thus, the distance signal online84 may be modified substantially continuously over time. In one embodiment,controller26 may sample the distance signal twenty times per second, i.e., every fifty milliseconds.
Controller26 may control the flow of liquid throughspout22 dependent upon whether the distance signal exceeds a threshold distance value.Controller26 may cause water to flow throughspout22 if the distance traveled by the IR energy before reflection is less than, for example, six inches.FIG. 11 is an exemplary plot of the distance signal versus time.Controller26 may causevalve100 to open and thereby allow water to flow throughspout22 at time t=300 ms, when the distance signal first falls below six inches.Controller26 may closevalve100 only when the distance signal equals or exceeds some other threshold value, such as ten inches in the example shown inFIG. 11. Thus, at t=600 ms,controller26 may causevalve100 to close. An exemplary control arrangement that may be used in conjunction with the present invention is disclosed in U.S. patent application Ser. No. 10/755,582, filed Jan. 12, 2004, and entitled “CONTROL ARRANGEMENT FOR AN AUTOMATIC RESIDENTIAL FAUCET”, which is incorporated herein by reference. Other aspects of a control arrangement that may be used in conjunction with the present invention are disclosed in U.S. patent application Ser. No. 10/755,581, filed Jan. 12, 2004, and entitled “MULTI-MODE HANDS FREE AUTOMATIC FAUCET”, and/or in other applications which are also incorporated herein by reference.
The values established bycontroller26 for one or both of the threshold values may depend upon some environmental condition that is determined bycontroller26. Examples of such environmental conditions include a level of stability of the distance signal over time, whetherspout22 has been recently touched by a user, a time duration of the touching ofspout22 by the user, and a time rate of change of the distance signal or of a moving average of the distance signal. In one embodiment, the activation threshold is updated whenever a spout grab is released; a tap off occurs; or a stable signal is received bysensor24
The stability of the distance signal over time may be defined, in one embodiment, as a range of the distance signal within a preceding time period. In other embodiments, the stability of the distance signal over time may be defined as the standard deviation of the distance signal within a preceding time period, or as some other measure of stability.FIG. 12 is another exemplary plot of the distance signal versus time. A time t=0 ms, a threshold value under which the distance signal must drop beforecontroller26 opensvalve100 is set at six inches.
Controller26 may set the threshold value based upon the stability of the distance signal. For example,controller26 may monitor the stability of the distance signal, and if the range of the distance signal exceeds some value, such as 4.5 inches, within some time period, such as 100 ms,controller26 may reduce the threshold value to four inches. Between 850 ms and 900 ms the distance signal increases from 6.5 inches to 11.5 inches, thus having a range of greater than four inches within a preceding 100 ms time period. Thus, at time t=900 ms,controller26 reduces the threshold value from six inches to four inches. The distance signal may have become temporarily unstable due to spectral reflections being received byreceiver40, or due to some other reasons.
The threshold value may be reduced in order to prevent nuisance activations ofvalve100 when the distance signal has become unstable, but there is no actual motion underspout22 that warrants such activation. As shown in the plot between time t=900 ms and t=1100 ms, the distance signal does drop to values between four inches and six inches. Thus, the reduction of the threshold value to four inches prevents a nuisance activation ofvalve100 in the time period between t=900 ms and t=1100 ms.
As the distance signal becomes more stable,controller26 may increase the threshold value. For example, after t=1100 ms, the distance signal becomes relatively stable, varying by no more than approximately two inches within any 100 ms time period. After sensing this stability,controller26 may raise the threshold value, such as to six inches at approximately time t=1200 ms as shown inFIG. 12.
Another environmental condition based upon whichcontroller26 may adjust the threshold value is whetherspout22 has been recently touched by a user.Faucet arrangement20 may use capacitive sensing to determine whetherspout22 has been recently touched by a user. One possible implementation of such capacitive sensing is disclosed in U.S. patent application Ser. No. 10/757,316, filed Jan. 14, 2004, and entitled “CAPACITIVE TOUCH ON/OFF CONTROL FOR AN AUTOMATIC RESIDENTIAL FAUCET”, which is incorporated herein by reference. Ifcontroller26 determines thatspout22 has recently been touched by a user, within the preceding ten seconds, for example,controller26 may increase the threshold value to which the distance signal is compared. For example,controller26 may increase a threshold distance value from four inches to six inches such thatcontroller26 may openvalve100 if an object has been detected within six inches ofsensor24.
If the user has recently touchedspout22, then it may be deemed more likely that the user will desire that water be delivered fromspray head30. Thus, an increase in the threshold value may be appropriate in order to increase the likelihood that an object is sensed within the threshold distance value and thereby increase the likelihood that the water flow is turned on as desired by the user.
Yet another environmental condition based upon whichcontroller26 may adjust the threshold value is the time duration of the recent touching ofspout22 by the user. Again, capacitive sensing may be used to determine the time duration of the recent touching ofspout22 by the user. Ifcontroller26 determines thatspout22 has recently been touched by a user with a time duration of at least one second, for example,controller26 may increase the threshold value to which the distance signal is compared.
If the time duration of the touching is relatively short, then it may be assumed that the touching was inadvertent and that the touching is not probative of a user's desire that the water flow be turned on. If the user has recently touchedspout22 for a relatively long duration of time, then it may be deemed more likely that the user will desire that water be delivered fromspray head30. Thus, an increase in the threshold value may be appropriate in order to increase the likelihood that an object is sensed within the threshold distance value and thereby increase the likelihood that the water flow is turned on as desired by the user.
In one embodiment,controller26 may filter the distance signal and compare this filtered distance signal to the threshold distance value in deciding whether to openvalve100. That is,controller26 may control the flow of liquid throughspout22 dependent upon whether the filtered distance signal exceeds the threshold distance value. Again, the threshold distance value may be adjusted based upon environmental conditions.
In one embodiment,controller26 filters the distance signal by calculating a moving average of a number of preceding values of the distance signal. However, it is also possible for the filtering to include calculating a weighted moving average, or some other type of average, of a number of preceding values of the distance signal.
In one embodiment, the filtering includes calculating a moving average of the four most recent values of the distance signal. In another embodiment, however, a number of values of the distance signal that are included in the moving average is dependent upon a level of stability of the distance signal. For example, if the distance signal is relatively unstable, which may be due to spectral reflections being received by the sensor, then it may be desirable to include a greater number of the preceding values of the distance signal in the calculated moving average so that the calculated moving average is more representative of a true average. Conversely, if the distance signal is relatively stable, then fewer values of the distance signal may be needed to calculate a moving average that is representative of a true average.
In one embodiment, eight preceding values of the distance signal may be included in the calculated moving average when the distance signal is relatively unstable, and only four preceding values of the distance signal may be included in the calculated moving average when the distance signal is relatively stable. It may be advantageous to include fewer values in the moving average, when possible, so thatcontroller26 may react more quickly to the insertion and/or removal of objects underspout22. That is, the fewer values included in the moving average, the greater the influence of a most recent value on the moving average, and the more quickly the moving average will change due to an object moving underspout22.
FIG. 13 illustrates the exemplary distance signal and threshold value ofFIG. 12 along with a calculated moving average of the distance signal. When the distance signal is deemed to be relatively stable, as time periods t=0 to t=900 ms and t=1200 ms to 1500 ms, only the four most recent points are included in the moving average. However, when the distance signal is deemed to be relatively unstable, as time period t=900 ms to t=1200 ms, the eight most recent points are included in the moving average. As is evident from the greater differential in time period t=900 ms to t=1100 ms between the moving average and the threshold value as compared to the differential between the raw distance signal and the threshold value, the use of a moving average may prevent noise in the distance signal from causing nuisance activations ofspout22.
In another embodiment, eight preceding values of the distance signal may be included in the calculated moving average not only when the distance signal is relatively unstable, but also whenever liquid is flowing fromspout22. Flowing water in the field of view of the sensor may cause spectral reflections, which may call for increased filtering. The greater number of values included in the moving average may provide such increased filtering. In this embodiment, only four preceding values of the distance signal may be included in the calculated moving average when the distance signal is relatively stable and when liquid is not flowing fromspout22.
Although the filtering has been disclosed herein as calculating a moving average, other types of filtering are possible within the scope of the present invention. For example, the filtering may include some other form of low pass filtering, such as finding a median value, or calculating a moving average after eliminating the highest value and the lowest value.
A tendency of the output of PSD sensors to rather suddenly begin drifting has been observed, and is illustrated inFIG. 14. The moving average of the output signal is shown to be stable up to approximately time=1.75 seconds. At that time, the distance reading of the sensor starts to drop abruptly toward the turn on threshold of six inches despite there being no actual movement in the basin. As shown, the distance reading crosses the turn on threshold at approximately time=2.23 seconds, which causes the valve to open and water to flow from the spout. The flow of water may cause the output of the sensor to stabilize and cross the turn off threshold of ten inches, as shown at approximately time=2.8 seconds. After the valve closes and the water flow ceases, the output of the sensor may again drift, as shown starting at approximately time=3 seconds. The cycle of unwanted water flow repeats, with the valve again opening at approximately time=3.57 seconds.
Still another environmental condition based upon whichcontroller26 may adjust the threshold value is the downward slope, or time rate of change, of the distance signal or of a moving average of the distance signal. In one embodiment of the invention, illustrated inFIG. 15, drifting of the moving average of the sensor output is sensed, and the turn on threshold is accordingly adjusted such that undesired water flows are avoided. More particularly, if the downward slope, or time rate of change, of the sensor output is within a predetermined range that is typically associated with sensor drift, then the turn on threshold may be adjusted downward in order to avoid nuisance water flows from the spout. For example, at approximately time=2.1 seconds, the output signal exhibits a downward slope that is within the predetermined range. In response, the turn on threshold is lowered from about six inches to about 2.8 inches.
If the magnitude of the slope is greater than the predetermined range, then it may indicate that the change in the output is due to some other phenomenon, such as spectral reflection, and thus the turn on threshold is not adjusted. If the magnitude of the slope is less than the predetermined range, then it may indicate that the change in the output is due to some actual movement within the basin, and the turn on threshold is again not adjusted.
After the output of the sensor has stabilized, as shown inFIG. 15 in the time period approximately between 2.5 seconds and 2.75 seconds, the turn on threshold may be adjusted upward. For example, inFIG. 15, the turn on threshold is shown as being adjusted to a level of approximately five inches at approximately time=2.7 seconds. As the output signal continues to alternate between drifting downward and restabilizing, the threshold may be accordingly readjusted, as shown in the time period after approximately time=2.9 seconds.
FIG. 16 is another exemplary plot of a drifting sensor output signal moving average and a slightly different algorithm for adjusting the turn on threshold. In this embodiment, the turn on threshold is adjusted with the intent of maintaining some minimum difference between the output signal and the turn on threshold. Thus, at approximately time=1.85 seconds, the turn on threshold may be lowered in order to maintain a predetermined gap between the output signal and the turn on threshold. InFIG. 16 the output signal stabilizes at a value of approximately equal to five inches for some reason that is unrelated to the algorithm for setting the turn on threshold. However, the stabilization accommodates a clear illustration of the gap of approximately between 1.5 and 2.0 inches that the algorithm maintains between the turn on threshold and the stabilized sensor output in the time period after approximately 2.75 seconds.
As illustrated in the embodiments ofFIGS. 15-16, the turn on threshold may be adjusted based not only on the downward slope of the sensor output signal or its moving average, but also on a value of the output signal or its moving average. More particularly, the threshold distance value may be maintained to be at least a predetermined amount greater than a value associated with the distance signal if the rate of change associated with the distance signal is within a predetermined range.
IR energy receiver40 has been described herein as being analog. However, it is to be understood that it is within the scope of the present invention for the IR energy receiver to be of the digital variety. Such a digital receiver is capable of pixelating the regions of IR reception. That is, the digital receiver may provide data relating to the intensity and location of IR reception on a pixel-by-pixel basis. Thus, a digital receiver may provide more information than does an analog receiver.
While this invention has been described as having an exemplary design, the present invention may be further modified within the spirit and scope of this disclosure. This application is therefore intended to cover any variations, uses, or adaptations of the invention using its general principles.