BACKGROUNDThis invention relates to sensors suitable for locating objects positioned behind or within a volume of material, and in particular to a wall-stud sensor.
U.S. Pat. No. 4,464,622, issued Aug. 7, 1984, discloses an electronic sensor for locating objects, such as wall studs, positioned behind wall surfaces. That sensor detects the edges of studs by measuring changes in the capacitance of a wall due to the presence or absence of a stud as the sensor is moved along the wall surface.
That sensor includes capacitive plates, or elements, connected to circuits that detect changes in the capacitance of those elements. As the sensor is moved along a wall, any such capacitive changes are presumably due to changes in the dielectric constant of the wall; increased capacitance is generally associated with the presence of a wall stud.
While this sensor works well to locate the edges of studs within most walls, experience has shown that its performance could be improved in several respects. For example, the precision with which that sensor locates a given stud edge depends upon various extraneous factors that affect wall capacitance, such as the thickness of the wall covering material, the dielectric constant of the wall covering material and the stud, the ambient humidity, and the temperature of the electronics within the sensor. Variances in some of these factors are compensated for by calibrating the sensor prior to each use by placing the sensor against the wall covering material at a place behind which there is presumed to be no stud. However, such calibration does not completely compensate for such variances. For example, changes in the thickness of wall covering thickness change the perceived location of stud edges. Furthermore, the calibration may be erroneous if there is a stud adjacent or partially adjacent the sensor during calibration. Accordingly, there is a need for a sensor that is easier to calibrate and less sensitive to variations in extraneous parameters that affect wall capacitance, particularly various wall thicknesses.
SUMMARYThe present invention is directed to an easily calibrated sensor that is relatively insensitive to variations in extraneous factors that affect wall capacitance. The sensor includes a comparison circuit connected to each of three capacitive elements. As the sensor is moved along a wall, the comparison circuit monitors the relative charge time of three capacitive elements, the charge times providing an indication of the relative capacitances of the three capacitive elements. As the sensor is moved along a wall, changes in the relative capacitances of the three elements will occur in the presence of a hidden stud as a result of changes in the dielectric constant of the wall. The comparison circuit uses differences in the measured relative capacitances of the first, second, and third capacitive elements to locate the stud. Finally, the sensor includes an intuitive "window" display that simplifies the task of locating a stud by providing a user with an image of the hidden stud as the sensor is moved over the stud.
This summary does not purport to define the invention. The invention is defined by the claims.
BRIEF DESCRIPTION OF THE FIGURESFIG. 1 is a block diagram of asensor 10 that may be used to locate astud 12 behind a wall covering 14.
FIG. 2 is a graph of capacitance (vertical axis) versus position (horizontal axis) for the capacitance values CR, CC and CL corresponding to the rightcapacitive element 16, the centercapacitive element 18, and the leftcapacitive element 20, respectively.
FIG. 3A is a block diagram of a portion ofsensor 10, and in conjunction with FIG. 3B illustrates how the relative capacitance CC ofcapacitive element 18 is compared to capacitance CL ofcapacitive element 20 in accordance with one embodiment of the present invention.
FIG. 3B illustrates the operation ofsensor 10.
FIG. 4 graphically represents the number of DAC steps (vertical axis) required to maintain equilibrium betweencapacitive elements 16, 18, and 20 of FIG. 1.
FIG. 5 is a schematic diagram of an embodiment of asensor 60 in which centercapacitive element 18 is divided into a pair of capacitive elements 18a and 18b.
FIG. 6 graphically represents the number of DAC steps (vertical axis) required to maintain equilibrium betweencapacitive elements 16, 18, and 20 of FIG. 5.
FIG. 7 is yet another embodiment of a sensor in accordance with the present invention.
FIG. 8 is a schematic diagram of acircuit 80 for charging and dischargingcapacitive element 16.
FIG. 9 depicts display 68 (of FIGS. 5 and 7) mounted within ahousing 90.
FIG. 10 graphically represents the number of DAC steps (vertical axis) required to maintain equilibrium betweencapacitive elements 16, 18, and 20 of FIG. 5.
FIG. 11 graphically represents the data of FIG. 10 conditioned to provide input signals to display 68.
FIG. 12 is a flow chart illustrating the operation ofmicrocontroller 66 in conjunction with the remaining circuitry ofsensor 60.
DETAILED DESCRIPTIONFIG. 1 is a block diagram of asensor 10 that may be used to locate astud 12 behind a wall covering 14. To locatestud 12,sensor 10 is moved along wall covering 14 untilsensor 10 provides an indication ofwall stud 12.
Sensor 10 includes right, center, and leftcapacitive elements 16, 18, and 20, respectively.Capacitive elements 16, 18, and 20 are connected via respective lines VRI, VC and VL to acomparison circuit 22 and anexcitation source 24. In operation,excitation source 24 provides electrical charge to each ofelements 16, 18, and 20, enablingcomparison circuit 22 to compare the relative capacitive values ofcapacitive elements 16, 18, and 20. In accordance with the present invention, the relative capacitive values are used to determine the location and placement ofstud 12 behind wall covering 14.
It is known in the art that the presence of a dielectric increase capacitance by a factor k, so that the capacitance C of a capacitive element in the presence of a dielectric is expressed as:
C=kC.sub.O 1!
where CO is the capacitance of the element in the absence of a dielectric (e.g., adjacent a vacuum). FIG. 2 is a graph of capacitance (vertical axis) versus position (horizontal axis) for the capacitance values CR, CC and CL corresponding to the rightcapacitive element 16, the centercapacitive element 18, and the leftcapacitive element 20, respectively. The arrow of FIG. 2 indicates that inuse stud sensor 10 is moved by the user left to right over wall covering 14. The capacitive levels shown are taken with respect to acenter line 22 ofstud sensor 10. Asstud sensor 10 is moved left to right,capacitive element 16first encounters stud 12. Becausestud 12 acts as a dielectric, capacitive value CR ofcapacitive element 16 increases assensor 10approaches stud 12, the maximum value of the capacitance CR occurring whencapacitive element 16 is directly overstud 12. Subsequent tocapacitive element 16 passing overstud 12,capacitive element 18 and, in turn,capacitive element 20 similarly pass overstud 12. Consequently, as shown in FIG. 2, the rise and fall of the capacitance values CR, CC and CL occur at different positions. As explained below,sensor 10 uses the relative magnitudes of capacitances CR, CC, and CL assensor 10 is moved overstud 12 to determine the placement ofstud 12.
FIG. 3A is a block diagram of a portion ofsensor 10, and in conjunction with FIG. 3B illustrates how the relative capacitance CC ofcapacitive element 18 is compared to capacitance CL ofcapacitive element 20 in accordance with one embodiment of the present invention. As shown in FIG. 3A,excitation source 24 includes an output terminal EXC that is connected to line VL via a resistor R1 and to line VC via a resistor R2.Comparison circuit 22 includes a pair of Schmitt triggers 30 and 32. Schmitttrigger 30 is connected via a line MVC to the clock terminal of a D flip-flop 34. Schmitt trigger 32 is connected via a line MVL to the D-input of flip-flop 34.
The output terminal Q of flip-flop 34 is connected to acontrol circuit 36 via a line DEC-- L (for decrement left DAC).Control circuit 36 includes a first nine-line bus CNT-- L coupled to the input terminals of a digital-to-analog converter (DAC) 38 and a second nine-line bus ΔCNT-- L. DAC 38 has an output terminal connected to line VL via a resistor R3.
Note thatDAC 38 is designated DAC-- L, the first nine-line bus CNT-- L, and the second nine-line bus ΔCNT-- L. The common "-- L" indicates that these components are associated withLeft capacitive element 16. This labelling convention is used herein when referring to other components associated with the right (-- R), center (-- C), and left (-- L)capacitive elements 16, 18, and 20, respectively.
FIG. 3B is a timing diagram illustrating the operation ofsensor 10 in two circumstances. In the first, depicted in the left side of FIG. 3B, the dielectric constants kc and kl of the materialsadjacent elements 18 and 20, respectively, are equal (e.g., when there is no stud adjacent either ofelements 18 or 20). In the second circumstance, depicted in the right side of FIG. 3B, the dielectric constant kc ofcenter element 18 is greater than the dielectric constant kl of left element 20 (e.g., whenstud 12 isadjacent center element 18 only).
Excitation source 24 outputs a periodic binary signal on line EXC that switches from a logic 0 (e.g., zero volts, or ground potential) to a logic 1 (e.g., five volts). In one embodiment, the signal on line EXC is a 16 KHz signal having a duty cycle of 1/16.
Each time the signal on line EXC goes high, the voltage levels on lines VC and VL increase at a rate determined by the resistances of resistors R1 and R2 and the capacitances CC and CL ofelements 18 and 20, respectively. In the embodiment of FIG. 3A, resistors R1 and R2 are equal, as are the areas ofcapacitive elements 18 and 20. Consequently, the voltage levels on lines VC and VL increase at the same rate in the absence of any difference between dielectric constants kc and kl. In one embodiment, resistors R1 and R2 (and a similar resistor, not shown, corresponding to capacitive element 16) are each 220 KΩ, and each ofcapacitive elements 16, 18, and 20 have a length L of two inches, a width W of 0.66 inches, and are spaced apart a distance d of 0.01 inches.
Ascapacitive elements 18 and 20 charge, the respective voltages on lines VC and VL increase. Then, when the voltages on lines VC and VL exceed the threshold voltage Vth of Schmitt triggers 30 and 32, respectively, Schmitt triggers 30 and 32 output a logic one on their respective output lines MVC and MVL. Because dielectric constants kc and kl are equal, the outputs of Schmitt triggers 30 and 32 should go to logic one at virtually the same instant in time, as indicated byarrows 40 and 42.
Flip-flop 34 is a conventional positive-edge-triggered flip-flop 34. Thus, if the logic level on the D input (line MVL) is a logic one on the rising edge of clock terminal (line MVC), then output terminal Q of flip-flop 34 will go to a logic one. If, on the other hand, the input signal on the D input is a logic zero on the rising edge of the signal on line MVC, then output terminal Q will output a logic zero.
Because the signals on lines MVC and MVL are approximately coincident in the foregoing example, the output level on terminal Q of flip-flop 34 will be either a logic one or a logic zero. Further, over the course of many excitation cycles on line EXC, the output level on terminal Q of flip-flop 34 will be a logic one approximately 50% of the time.
Control circuit 36 averages the signal on line DEC-- L over a number of excitation pulses (e.g., 64 cycles in one embodiment) to reduce the effects of noise. In the case described above in which the average count on line DEC is 0.5,control 36 maintains a relatively constant output count on bus CNT-- L. Consequently, the resting (i.e., unexcited) voltage level on line VL is approximately constant. In one embodiment, if the number of logic ones counted over 64 cycles is less than or equal to 28, than the average count is set to a logic zero; if the number of logic ones is greater than 28 and less than 36, the average count is left unchanged from the last cycle; and if the number of logic ones is greater than or equal to 36, than the average count is set to a logic one.
So long as dielectric constants kc and kl remain equal, so too will capacitances CC and CL ofrespective elements 18 and 20. Furthermore,comparison circuit 22 will remain balanced as discussed above so that the count on bus CNT-- L will remain approximately constant. The count required to maintain coincident rising edges for the signals on lines MVC and MVL is stored incontrol circuit 36 as a calibration count CAL-- L.
FIG. 3B depicts the circumstance in which the dielectric constant kc ofcenter element 18 is greater than the dielectric constant kl of left element 20 (e.g., whenstud 12 is adjacent center element 18). Becausestud 12 increases the dielectric constant kcadjacent capacitive element 18, the capacitance CC ofelement 18 increases. As a result, the time required to chargecapacitive element 18 to a level sufficient to raise the voltage on line VC above threshold voltage Vth of Schmitt trigger 30 increases.
The increased charge time of capacitance CC delays the time at which Schmitt trigger 30 is triggered (identified by arrow 44) to a time later than the time at which Schmitt trigger 32 is triggered (identified by arrow 46). Further, because the voltage on line MVc, which clocks flip-flop 34, transitions while the signal on line MVL is a logic one, the output signal on line DEC-- L will necessarily be a logic one, as indicated byarrow 48.
The line DEC-- L is so-called because a logic one on line DEC-- L instructscontrol circuit 36 to decrement the count on bus CNT-- L. By so doing, the output level of DAC 38 (and therefore the voltage on line VL) is decreased, as indicated byarrow 50. By decreasing the voltage on line VL, the time required to ramp the voltage on line VL up to the threshold voltage Vth of Schmitt trigger 32 increases. Consequently, the nexttime excitation source 24 outputs a logic one on line EXC the signal on line MVL will transition to a logic one at a time closer to the transition on line MVC. This feedback will continue over a number of excitation-source cycles until the transitions on lines MVC and MVL are nearly coincident.
Ifstud 12 were located adjacent theleft capacitive element 20, the output voltage on line VL would require a longer time period to reach the threshold voltage Vth then would the voltage on line VC. Consequently, the rising edge of the signal on line MVC would occur before a logic one was present on the D terminal of flip-flop 34, and the output signal on line DEC-- L would be a logic zero. A logic zero on line DEC-- L causescontrol circuit 36 to increase the count on line CNT-- L, thereby increasing the voltage level on line VL. An increased base voltage on line VL causes the signal on line VL to reach the threshold voltage Vth sooner than in the previous cycle. This feedback cycle continues until the voltage on lines VL and VC simultaneously reach the threshold voltage Vth. In one embodiment, the count on bus CNT-- L required to provide coincidence between the transitions on lines MVC and MVL is established quickly using a conventional successiveapproximation routine.
The above-described feedback continuously operates to maintain coincident rising edges for the signals on lines MVC and MVL. This condition may be referred to as "equilibrium." To maintaincircuit 22 in equilibrium, the count supplied toDAC 38 on bus CNT-- L must change to compensate for any change in the relative capacitances CC and CL ofcapacitive elements 18 and 20. Thus, the count on line CNT-- L provides an indication of the relative capacitances CC and CL ofcapacitive elements 18 and 20. In particular, the calibration count CAL-- L required to balancecircuit 22 when capacitances CC and CL are equal is subtracted from the count on bus CNT-- L required to balancecircuit 22 when capacitances CC and CL are not equal. The resulting difference between the left calibration count CAL-- L and the count on bus CNT-- L is expressed digitally on bus ΔCNT-- L (i.e., ΔCNT-- L=CNT-- L-CAL-- L). For example, if the calibration count CAL-- L were 56 and a difference in dielectric constants kl and kc required 100 DAC steps on bus CNT-- L to compensate for the difference, the binary data present on bus ΔCNT-- L would represent 100-56=44 DAC steps.
The circuit of FIG. 3A compares the relative capacitances CC and CL ofcapacitive elements 18 and 20 to maintain the left and center capacitiveelements 20 and 18 in equilibrium. Other circuitry withincomparison circuit 22 compares the respective capacitances CR and CC of rightcapacitive element 16 and center capacitiveelement 18 to similarly maintain the right and center capacitiveelements 16 and 18 in equilibrium. Because each of right and leftelements 16 and 20 are in equilibrium withcenter element 18, right and leftelements 16 and 20 are also in equilibrium with respect to one another. This aspect of the invention is described in more detail with reference to FIG. 5.
FIG. 4 graphically represents the number of DAC steps (vertical axis) required to maintain equilibrium betweencapacitive elements 16, 18, and 20 of FIG. 1 assensor 10 is moved from 4 inches to the left of stud 12 (i.e., -4) to 3 inches to the right of stud 12 (i.e., 3). The line ΔCNT-- R indicates the number of DAC steps required to maintainright capacitive element 16 in equilibrium with centercapacitive element 18, while the line ΔCNT-- L represents the amount of DAC steps required to maintain equilibrium between centercapacitive element 18 and leftcapacitive element 20.
Beginning at -4, representative of when the center ofstud sensor 10 is located 4 inches to the left ofstud 12, each of lines ΔCNT-- R and ΔCNT-- L shows that the right and leftcapacitive elements 16 and 20 require zero DAC steps to achieve equilibrium. The zero DAC steps of the vertical axis in FIG. 4 is not an absolute value of zero. Instead, DAC 38 (and a similar DAC for right capacitive element 16) has provided the non-zero calibration count CAL-- L on bus CNT during a calibration step: the DAC steps of FIG. 4 represent the number of steps above and below the respective calibration points for the right and leftelements 16 and 20.
Referring to line ΔCNT-- R, FIG. 4 shows that as theright capacitive element 16 approachesstud 12 the number of DAC steps required to maintain equilibrium increases. This requisite increase is due to the increased capacitance CR ofcapacitive element 16. At the same time, because capacitive element 18 (the center element) is also approachingstud 12, line ΔCNT-- L shows thatDAC 38 associated withleft capacitive element 20 is decreasing. This decrease is not due to a decrease in the capacitance CL ofleft capacitive element 20, but is instead due primarily to an increase in capacitance CC ofcapacitive element 18.
Also shown in FIG. 4 is a line L+R (short for ΔCNT-- R+ΔCNT-- L) representing the sum of the DAC steps for the left and rightcapacitive elements 20 and 16, respectively. Interestingly, when the center capacitiveelement 18 is centered about anedge 54 ofstud 12, ΔCNT-- R and ΔCNT-- L are equal in magnitude and opposite in polarity; consequently, the sum L+R is equal to zero when the center ofsensor 10 is located aboveedge 54. The sum L+R is similarly equal to zero when the center ofsensor 10 is located directly overedge 56.
A fourth line of FIG. 4 depicts the ratio (L-R)/(L+R). Because the denominator L+R is equal to zero at each ofedges 54 and 56 where L+R equals zero ofstud 12, the ratio (L-R)/(L+R) is infinite atedges 54 and 56 where L+R equals zero. It has been found that this ratio is useful in identifying the presence of stud edges. Using the ratio (L-R)/(L+R) is advantageous because the ratio cancels out some dielectric variations. For example, changes in humidity or wall covering material can affect the left, center, and right capacitances CL, CC, and CR and will therefore affect the values of L and R; however, such changes will not affect the ratio (L-R)/(L+R). Consequently,sensor 10 may be calibrated whenever the dielectric constants kr, kc, and kl of the respective right, center, and leftcapacitive elements 16, 18, and 20 are equal, such as in air. This is preferable to prior art sensors that must be calibrated against each wall over which the sensor is scanned to compensate for variations in wall capacitance.
FIG. 5 is a schematic diagram of an embodiment of asensor 60 in which center capacitiveelement 18 is divided into a pair of capacitive elements 18a and 18b.Sensor 60 is generally similar tosensor 10 of FIGS. 1 and 3a, like-numbered elements being the same. However, in the embodiment of FIG. 5,capacitive elements 16, 18, and 20 have dimensions different from the like elements of FIGS. 1 and 3A.
Sensor 60 includes acomparator circuit 61, which includes, in addition to the elements ofcomparator circuit 22 of FIG. 3A, asecond DAC 62, a second flip-flop 64, a resistor R4 connected between line EXC and line VR, and a resistor R5 connected between the output ofDAC 62 and line VR. Comparison circuit 61 also includes an additional Schmitt trigger 65 that is substantially identical to Schmitt triggers 30 and 32. Adisplay 68 provides a visual indication of the location ofstud 12 based on data supplied from amicrocontroller 66 via abus 69.
Microcontroller 66 functions as both a controller circuit for adjusting the output voltage levels ofDAC 62 andDAC 38 and an excitation source for providing the periodic excitation signal on line EXC tocapacitive elements 16, 18, and 20.Comparison circuit 61 works in conjunction withmicrocontroller 66 substantially as described above in connection with FIGS. 3A and FIGS. 3B to maintain equilibrium betweencapacitive elements 16, 18, and 20.
In one embodiment,microcontroller 66 is a 16C73 microcontroller available from Microchip Corporation of Chandler, Arizona. Using a 16C73 microcontroller allowsDAC 62 andDAC 38 to be implemented as part ofmicrocontroller 66. In that embodiment,DAC 62 andDAC 64 conventionally convert digital DAC steps into analog voltage levels by outputting an averaged pulse-width modulated signal as the analog voltage.Micro-controller 66 is programmed to use machine-code cycle counting, rather than conventional interrupt control, to minimize jitter between the clock signal on line CL K and the outputs ofDAC 62 andDAC 64.
It is to be understood that one of ordinary skill in the art could code the microcontroller computer program in light of the detailed operating steps described hereinafter.
FIG. 6 graphically represents the number of DAC steps (vertical axis) required to maintain equilibrium betweencapacitive elements 16, 18, and 20 of FIG. 5.Sensor 10 depicted in FIG. 5 functions substantially the same assensor 10 as depicted in FIG. 1, the behavior of which is graphed in FIG. 4. However, separating the center capacitiveelement 18 into a pair of equallysized elements 18A and 18B, each having an area one half that of eitherelement 16 or 20, moves the point at which the sum L+R is equal to zero. In one embodiment, the zero cross of line L+R is offset by a distance of approximately three-eighths of an inch. It has been found that this distance is consistent despite changes in capacitive variables such as humidity, wall thickness, or stud material. Hence, the offset is easily accounted for by adjusting the way the information of FIG. 6 is displayed. Moreover, the offset on either side ofstud 12 results in a wider range over which the ratio (R-L)/(R+L) produces useful information. In one embodiment, each ofelements 16, 18, and 20 have a length L of two inches, the width W ofelements 16 and 20 is 0.5 inches, the distance d1 betweenelements 18A and 18B is 0.5 inches, and the distance d2 betweenelements 16 and 18A and between 20 and 18B is 0.01 inches.
FIG. 7 is yet another embodiment of a sensor in accordance with the present invention.Sensor 70 of FIG. 7 is similar tosensor 60 of FIG. 5, like-numbered elements being similar. However, tosensor 60 is added an additional flip-flop 71, anadditional DAC 72, and an additional resistor R6 coupled between the output ofDAC 72 and line VC. In addition,microcontroller 66 is configured to output a clock signal on line CL K to drive the clock input terminals of each of flip-flops 34, 71, and 64.
In addition to removing line MVC from the clock input terminals of flip-flops 34 and 64, the line MVC is coupled instead to the D input of the additional flip-flop 71. As a consequence of the foregoing changes, capacitances CR, CC, and CL ofcapacitive elements 16, 18, and 20 are measured with respect to a common reference clock, as opposed to in prior embodiments where capacitances CR and CL of the right and leftcapacitive elements 16 and 20 were measured with respect to capacitance CC ofcenter element 18.
FIG. 8 is a schematic diagram of acircuit 80 for charging and dischargingright capacitive element 16; circuits similar tocircuit 80 may be used to charge and dischargecapacitive elements 18 and 20.
Circuit 80 includes atransistor 84 for dischargingcapacitive element 16. In place ofDAC 62 of FIG. 5,circuit 80 includes aDAC 86 that provides a charging current ICH to line VR. When the signal on line EXC is a logic one, the complement of the signal on line EXC (EXC) turnstransistor 84 is off to allow the charging current ICH to chargecapacitive element 16. Then, when the signal on line EXC returns to a logic zero, the charge oncapacitive element 16 is discharged to ground potential.
Asensor including circuit 80 functions substantially the same assensor 60 of FIG. 5. However, the use ofcircuit 80 allows the function ofsensor 60 to be provided without the need for resistors R1, R2, R3, R4, and R5. This may be advantageous in some embodiments becausetransistor 84 is more easily integrated than are resistors R1, R2, R3, R4, and R5. In addition, the rate of change of the voltage on capacitive element 16 (dV/dt) is a constant incircuit 80 as compared with the configuration ofsensor 60. Maintaining the charge rate constant renders a sensor less sensitive to shifts in the switching threshold of the Schmitt triggers. Finally, the separate discharge path provided bytransistor 84 speeds up the discharge rate ofelement 16, and consequently allows for substantial increases in the excitation duty cycle on line EXC.
FIG. 9 depicts display 68 (of FIGS. 5 and 7) mounted within ahousing 90. In the embodiment of FIG. 9,display 68 is an LCD display that includes a number of binary (on/off)display elements 92. In the embodiment shown there are fifteendisplay elements 92; however, other numbers of elements may be used.
To illustrate the operation ofdisplay 68,housing 90 is depicted in three locations on a surface beneath which is locatedstud 12. Asdisplay 68 is moved to the right, as indicated by anarrow 94, those ofdisplay elements 92 positioned overstud 12 are illuminated, thus providing a "window" into the surface.
Display 68 is configured to provide 28 unique display patterns: all ofelements 92 may be blank, from one to thirteen adjacent ones of the left-most thirteen elements may be illuminated, from one to thirteen adjacent ones of the right-most thirteen elements may be illuminated, or the center thirteen elements may be illuminated.
Ashousing 90 is moved right, those ofelements 92 overstud 12 illuminate, in series, up to a maximum of 13 adjacentilluminated elements 92. Not illuminating the end ones ofelements 92 whenhousing 90 is centered overstud 12 helps give the appearance ofdisplay 68 providing a "window into the wall." The manner of drivingdisplay 68 to achieve the window effect is described below in connection with FIGS. 10 through 12.
Display 90 may be any type of display, such as an LCD display, an LED display, or illuminated elements using other forms of illumination. In the context of the present application, "illuminated" refers to the presence of the displayed object (e.g., the segment being "on"); thus in the case of an LCD display as shown here, the "illuminated" portion may actually be darker (as shown in FIG. 9) than are the "non-illuminated" portions.
FIG. 10 is similar to FIG. 6, and graphically represents the number of DAC steps (vertical axis) required to maintain equilibrium betweencapacitive elements 16, 18, and 20 of FIG. 5. In addition to the curves of FIG. 6, FIG. 10 includes a curve L-R that represents the difference between ΔCNT-- R and ΔCNT--L. Vertical lines 102 and 104 indicate the points at which the sum L+R equals 4 DAC counts. In one embodiment,microcontroller 66 is programmed to drivedisplay 68 using the signals L+R, ΔCNT-- R, and ΔCNT-- L.
FIG. 11 is a graphical representation of the data of FIG. 10 conditioned to provide input signals to display 68. The area to the left ofline 102 illustrates the complement of the signal of bus ΔCNT-- R, ΔCNT-- R; the area betweenlines 102 and 104 illustrates one-third the difference between the signals of respective buses ΔCNT-- R and ΔCNT-- L; and the area to the right ofline 104 illustrates the signal of bus ΔCNT-- L.
FIG. 12 is a flow chart illustrating the operation ofmicrocontroller 66 in conjunction with the remaining circuitry ofsensor 60. Whensensor 60 is powered up (step 110),microcontroller 66 automatically performs a calibration sequence (step 120). During the calibration sequence, an operator holdssensor 60 in a position such that dielectric constants kr, kc, and kl of the respective right, center, and leftcapacitive elements 16, 18, and 20 are equal for a calibration period. For example, sensor may be held away from any wall or structure so that an air dielectric is provided for each ofcapacitive elements 16, 18, or 20. In one embodiment, the calibration period is approximately one second.
During the calibration period,microcontroller 66 first sets eachDAC 38,62 at half scale by writing thevalue 80 hex into eachDAC 38,62. Next,microcontroller 66 cycles each DAC in a conventional successive-approximation routine starting with the most-significant bit. The nine-bit results for each DAC are then stored (step 124) as respective right and left calibration values CAL-- R and CAL-- L in registers withinmicrocontroller 66.
Oncesensor 60 is calibrated, the operator movessensor 60 along a wall. Referring back to FIG. 11, assensor 60 approachesstud 12, ΔCNT-- R decreases.Microcontroller 66 monitors the value of L+R and, as long as L+R is less than four DAC counts (step 130) and ΔCNT-- L<ΔCNT-- R (step 150), provides a display corresponding to the value ΔCNT-- R. To select a unique display pattern, the value ΔCNT-- R is converted to asignal driving display 68, wherein each DAC count selects a different one of the twenty-eight possible display patterns. For example, when the absolute value of ΔCNT-- R is one DAC count,display 68 illuminates the right-most one ofelements 92, and when the absolute value of ΔCNT-- R is two,display 68 illuminates the right-most two ofelements 92.
Assensor 60 is moved rightward, the value L+R eventually exceeds four DAC steps (seeline 102 of FIG. 11). When L+R is greater than or equal to four DAC steps,microcontroller 66 used the value (L-R)/3 to select the appropriate display pattern. Finally, assensor 60 is moved further to the right, the value of L+R will once again go below four DAC counts. This time, however, because ΔCNL-- L is greater than ΔCNL-- R,microcontroller 66 uses the value ΔCNL-- L to select the appropriate display pattern (step 160).
The values ΔCNT-- R, ΔCNT-- R, (L-R)/3, and ΔCNT-- L are selected to controldisplay 68 because they were empirically found to provide smooth transitions from one display pattern to the next asdisplay 68 is passed overstud 12. Different sensors will require different treatment. It is to be understood that one of ordinary skill in the art could programmicrocontroller 66 to provide appropriate display signals to display 68 in response to the aforementioned output signals.
Although the present invention has been described in considerable detail with reference to certain preferred versions thereof, other versions are possible. For example, an embodiment similar tosensor 70 of FIG. 7 may be implemented withoutcapacitive element 18 and the associatedSchmitt trigger 30, flip-flop 71,DAC 72, and resistors R2 and R6. Therefore, the spirit and scope of the appended claims are not limited to the description of the preferred versions contained herein.