# Patent

## Title
Ultrasonic receiving circuit

## Abstract

An ultrasonic occupancy sensor for detecting presence or absence of an occupant in a space includes an ultrasonic receiving circuit having a synchronous rectifier that allows the circuit to detect small-magnitude ultrasonic waves having a Doppler shift. The sensor comprises an ultrasonic transmitter for transmitting ultrasonic waves at an ultrasonic operating frequency, and a controller that drives the transmitting circuit with complementary drive signals to control the ultrasonic operating frequency. The synchronous rectifier receives the drive signals from the controller and rectifies an amplified input signal to generate a rectified signal, which is filtered by a filter to generate a filtered signal. The controller receives the filtered signal and determines that the space is occupied if the magnitude of the filtered signal exceeds a threshold. The ultrasonic occupancy sensor may also include a low phase-noise oscillator circuit coupled to the controller for setting an internal operating frequency of the controller.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application is a non-provisional application of commonly-assigned U.S. Provisional Application Ser. No. 61/316,011, filed Mar. 22, 2010, entitled ULTRASONIC RECEIVING CIRCUIT, the entire disclosure of which is hereby incorporated by reference.


BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to occupancy and vacancy sensors for detecting an occupancy or a vacancy in a space, and more particularly, to an ultrasonic receiving circuit for an occupancy or vacancy sensor.
2. Description of the Related Art
Occupancy and vacancy sensors are often used to detect occupancy and/or vacancy conditions in a space in order to control an electrical load, such as, for example, a lighting load. An occupancy sensor typically operates to turn on the lighting load when the occupancy sensor detects the presence of a user in the space (i.e., an occupancy event) and then to turn off the lighting load when the occupancy sensor detects that the user has left the space (i.e., a vacancy event). A vacancy sensor only operates to turn off the lighting load when the vacancy sensor detects a vacancy in the space. Therefore, when using a vacancy sensor, the lighting load must be turned on manually (e.g., in response to a manual actuation of a control actuator).
Occupancy and vacancy sensors have often been provided in wall-mounted load control devices that are coupled between an alternating-current (AC) power source and an electrical load for control of the amount of power delivered to the electrical load. Some prior art occupancy and vacancy sensors have been provided as part of lighting control systems. These sensors are often coupled via a wired control link to a lighting controller (e.g., a central processor), which then controls the lighting loads accordingly. Alternatively, the sensors may be battery-powered and may be operable to transmit wireless signals, such as radio-frequency (RF) signals, to load control devices, such as dimmer switches. These occupancy and vacancy sensors are not required to be mounted in electrical wallboxes, but may be mounted to the ceiling or high on a wall. Therefore, the occupancy and vacancy sensors may be positioned optimally to detect the presence of the user in all areas of the space.
The prior art occupancy and vacancy sensors typically comprise internal detectors, such as, for example, a pyroelectric infrared (PIR) detector, and a lens for directing energy to the PIR detector for detecting the presence of the user in the space. Alternatively, some prior art occupancy and vacancy sensors have included ultrasonic transmitting and receiving circuits for detecting the presence of the user in the space. Ultrasonic sensors transmit ultrasonic waves at a predetermined frequency, and analyze received ultrasonic waves to determine if there is an occupant in the space. The received ultrasonic waves that are reflected off of moving objects will be characterized by a Doppler shift with respect to the transmitted ultrasonic waves, while the received ultrasonic waves that are produced by reflections off of the walls, ceiling, floor, and other stationary objects of the room will not have a Doppler shift. Therefore, ultrasonic occupancy and vacancy sensors are able to determine if there is an occupant in the space if there is a Doppler shift between the frequencies of the transmitted and received ultrasonic waves.
Generally, the size of the objects that produce the ultrasonic waves having the Doppler shift (such as, a moving hand) are very small, and thus produce reflected ultrasonic waves having small magnitudes. One of the issues with detecting ultrasonic waves having a Doppler shift is that these received ultrasonic waves can be difficult to distinguish from the received ultrasonic waves that do not have a Doppler shift. A figure of merit for occupancy detection limits can be described using the signal-to-interference ratio (SIR), which is the ratio of the Doppler-shifted ultrasonic waves expressed in sound pressure level (SPL) to the non-Doppler-shifted ultrasonic waves.
The standard implementations for detecting Doppler shifts in ultrasonic waves take three standard forms. The first form uses a phase-lock-loop (PLL) integrated circuit (IC), such as, for example, part number CD74HC7046, manufactured by Texas Instruments Incorporated. In this implementation, the received ultrasonic waves are amplified by a pre-amplifier and then compared with a single fixed threshold (e.g., 100 mV) using a comparator to yield a binary waveform. The binary waveform is then applied to an exclusive-or (XOR) gate where the second input to the XOR is a clock input (e.g., a 40-kHz clock signal) that also drives the ultrasonic transmitting circuit. The resulting signal is then passed through a band-pass filter to extract the Doppler signal. The resulting Doppler signal is then compared to a fixed threshold using another comparator to detect an occupancy or vacancy condition. The drawback of this implementation is that the circuit is very sensitive to the thresholds of the comparators and only works on signals with an SIR greater than approximately −40 dB.
The second prior art form for detecting Doppler shift implements the detection algorithm primarily within a microcontroller. In this implementation, the received ultrasonic waves are amplified by a preamplifier and then sampled using an analog-to-digital converter (e.g., an 8 to 12-bit ADC) in the microcontroller. The remainder of the algorithm is essentially the same as in the first prior art form for detecting Doppler shift described above except that the remainder of the algorithm of the second form is executed in the software of the microcontroller. This implementation depends on the accuracy of the ADC of the microcontroller and is limited by numerical noise due to the ADC quantization and the numerical precision used to calculate the results, which thus limits the ability to detect small-magnitude ultrasonic waves that have a Doppler shift.
The third prior art form is an amplitude-modulation (AM) demodulator, which, in its simplest form, uses a diode and a low-pass filter to form an envelope detector. The limitation of this circuit is that the received ultrasonic signal must have a minimum amplitude to render the diode conductive, thus reducing the ability of the circuit to detect small-magnitude ultrasonic waves that have a Doppler shift.
Thus, there is a need for a simple, effective low-cost ultrasonic receiving circuit for use in occupancy or vacancy sensors that avoids the disadvantages of the prior art.
SUMMARY OF THE INVENTION
According to an embodiment of the present invention, an ultrasonic receiving circuit for detecting the presence or absence of an occupant in a space comprises: (1) an ultrasonic receiving element for generating an ultrasonic input signal; (2) an amplifier circuit for amplifying the input signal to generate an amplified signal; (3) a synchronous rectifier for rectifying the input signal to generate a rectified signal; and (4) a filter for filtering the rectified signal to generate a filtered signal, where the filtered signal indicates the presence of the occupant in the space if the magnitude of the filtered signal exceeds a threshold. The synchronous rectifier may comprise a non-inverting amplifier and an inverting amplifier both receiving the amplified signal. The synchronous rectifier may further comprise a first analog switch coupled to an output of the non-inverting amplifier and a second analog switch coupled to an output of the inverting amplifier. The first and second analog switches may be electrically coupled together, such that the outputs of the analog switches may be mixed together to form the rectified signal.
An ultrasonic occupancy sensor for detecting presence or absence of an occupant in a space is also described herein. The occupancy sensor comprises an ultrasonic transmitting circuit having an ultrasonic transmitting element for transmitting ultrasonic waves, and an ultrasonic receiving circuit having an ultrasonic receiving element for generating an ultrasonic input signal. The ultrasonic receiving circuit further comprises an amplifier circuit for amplifying the input signal to generate an amplified signal, a synchronous rectifier for rectifying the amplified signal to generate a rectified signal, and a filter for filtering the rectified signal to generate a filtered signal. The synchronous rectifier may comprise a non-inverting amplifier and an inverting amplifier both receiving the amplified signal. The synchronous rectifier may further comprise a first analog switch coupled to an output of the non-inverting amplifier and a second analog switch coupled to an output of the inverting amplifier. The first and second analog switches may be electrically coupled together for forming the rectified signal. The occupancy sensor further comprises a controller operable to drive the ultrasonic transmitting circuit with a drive signal to control an ultrasonic transmission frequency of the transmitted ultrasonic waves. The controller may be operable to render the first and second analog switches conductive and non-conductive on a complementary basis, such the outputs of the analog switches may be mixed together to form the rectified signal. The controller receives the filtered signal and determines that the space is occupied if a magnitude of the filtered signal exceeds a threshold.
According to another embodiment of the present invention, the controller may drive the ultrasonic transmitting circuit with complementary drive signals to control an ultrasonic transmission frequency of the transmitted ultrasonic waves. The synchronous rectifier may also receive the drive signals from the controller, such that the filtered signal rises above the upper threshold or falls below the lower threshold when the frequency of the received ultrasonic waves is different than the frequency of the transmitted ultrasonic waves. The controller may be operable to determine that the space is occupied if the magnitude of the filtered signal rises above an upper threshold or falls below a lower threshold. In addition, the ultrasonic occupancy sensor may further comprise a low phase-noise oscillator circuit coupled to the controller for setting an internal operating frequency of the controller. The ultrasonic transmission frequency of the transmitted ultrasonic waves may be approximately equal to the internal operating frequency of the controller.
Other features and advantages of the present invention will become apparent from the following description of the invention that refers to the accompanying drawings.



BRIEF DESCRIPTION OF THE DRAWINGS
The invention will now be described in greater detail in the following detailed description with reference to the drawings in which:
FIG. 1 is a simple diagram of a radio-frequency (RF) lighting control system having a dimmer switch and an ultrasonic occupancy sensor for controlling the amount of power delivered to a lighting load according to an embodiment of the present invention;
FIG. 2 is a simplified block diagram of the ultrasonic occupancy sensor that allows for detecting the presence or absence of an occupant in a space surrounding the lighting load of the lighting control system of FIG. 1;
FIG. 3A shows example waveforms illustrating the operation of an ultrasonic receiving circuit of the occupancy sensor of FIG. 2 when there is not an occupant in the space;
FIG. 3B shows an example waveform that illustrates the operation of the ultrasonic receiving circuit of the occupancy sensor of FIG. 2 when there is an occupant in the space;
FIG. 4 is a simplified circuit diagram of a portion of the ultrasonic receiving circuit of the occupancy sensor of FIG. 2 showing a clamp circuit and a non-linear amplifier in detail;
FIG. 5 is a simplified circuit diagram of a portion of the ultrasonic receiving circuit of the occupancy sensor of FIG. 2 showing a synchronous rectifier in detail;
FIG. 6 is a simplified circuit diagram of a portion of the ultrasonic receiving circuit of the occupancy sensor of FIG. 2 showing a bandpass filter in detail; and
FIG. 7 is a simplified flowchart of a control procedure executed periodically by a controller of the occupancy sensor of FIG. 2.



DETAILED DESCRIPTION OF THE INVENTION
The foregoing summary, as well as the following detailed description of the preferred embodiments, is better understood when read in conjunction with the appended drawings. For the purposes of illustrating the invention, there is shown in the drawings an embodiment that is presently preferred, in which like numerals represent similar parts throughout the several views of the drawings, it being understood, however, that the invention is not limited to the specific methods and instrumentalities disclosed.
FIG. 1 is a simple diagram of a radio-frequency (RF) lighting control system 100 comprising a dimmer switch 110 and a remote ultrasonic occupancy sensor 120 according to an embodiment of the present invention. The dimmer switch 110 is adapted to be coupled in series electrical connection between an AC power source 102 and a lighting load 104 for controlling the amount of power delivered to the lighting load. The dimmer switch 110 may be adapted to be wall-mounted in a standard electrical wallbox. Alternatively, the dimmer switch 110 could be implemented as a table-top load control device. The dimmer switch 110 comprises a faceplate 112 and a bezel 113 received in an opening of the faceplate. The dimmer switch 110 further comprises a toggle actuator 114, i.e., a button, and an intensity adjustment actuator 116. Successive actuations of the toggle actuator 114 toggle, i.e., turn off and on, the lighting load 104. Actuations of an upper portion 116A or a lower portion 116B of the intensity adjustment actuator 116 respectively increase or decrease the amount of power delivered to the lighting load 104 and thus increase or decrease the intensity of the lighting load 104 from a minimum intensity (e.g., 1%) to a maximum intensity (e.g., 100%). A plurality of visual indicators 118, e.g., light-emitting diodes (LEDs), are arranged in a linear array on the left side of the bezel 113. The visual indicators 118 are illuminated to provide feedback of the intensity of the lighting load 104. An example of a dimmer switch having a toggle actuator 114 and an intensity adjustment actuator 116 is described in greater detail in U.S. Pat. No. 5,248,919, issued Sep. 29, 1993, entitled LIGHTING CONTROL DEVICE, the entire disclosure of which is hereby incorporated by reference. Examples of a dimmer switch operable to transmit and receive digital messages is described in greater detail in U.S. patent application No. 12/033,223, filed Feb. 19, 2008, entitled COMMUNICATION PROTOCOL FOR A RADIO-FREQUENCY LOAD CONTROL SYSTEM, the entire disclosure of which is hereby incorporated by reference.
The occupancy sensor 120 may be removably mountable to a ceiling or a wall, for example, in the vicinity of (i.e., a space around) the lighting load 104 controlled by the dimmer switch 110, such that the occupancy sensor is operable to detect an occupancy condition (i.e., the presence of the occupant) or a vacancy condition (i.e., the absence of the occupant) in the vicinity of the lighting load. The lighting control system 100 may comprise additional occupancy sensors 120 that are spaced apart so as to detect occupancy conditions in different areas of the vicinity of the lighting load 104. The occupancy sensor 120 is operable to transmit digital messages wirelessly via RF signals 106 to the dimmer switch 110 in response to detecting occupancy conditions or vacancy conditions in the space around the lighting load 104. The occupancy sensor 120 may be battery-powered, or may be connected to an external power source.
According to the embodiment of the present invention, the occupancy sensor 120 has an occupancy sensing circuit comprising an internal ultrasonic transceiver, which is housed in an enclosure 122 and includes an ultrasonic transmitting element Ul (FIG. 2) and an ultrasonic receiving element U2 (FIG. 2). The enclosure 122 has a vent 124 for allowing ultrasonic waves to be transmitted by the ultrasonic transmitting element Ul and received by the ultrasonic receiving element U2. The occupancy sensor 120 is operable to determine whether occupancy conditions or vacancy conditions are presently occurring in the space in response to the ultrasonic waves received by the ultrasonic receiving element U2 as will be described in greater detail below. Alternatively, the occupancy sensor 120 could additionally comprise a passive infrared (PIR) detector, a microwave detector, or any suitable detector or combination of detectors.
During a setup procedure of the RF lighting control system 100, the dimmer switch 110 may be assigned to (i.e., associated with) the occupancy sensor 120 (and to additional occupancy sensors). The setup and configuration of a lighting control system including occupancy sensors is described in greater detail in U.S. patent application No. 12/371,027, filed Feb. 13, 2009, entitled METHOD AND APPARATUS FOR CONFIGURING A WIRELESS SENSOR, the entire disclosure of which is hereby incorporated by reference.
A message transmitted by the occupancy sensor 120 may include a command and indentifying information, for example, a 52-bit serial number (i.e., a unique identifier) associated with the transmitting occupancy sensor. The dimmer switch 110 is responsive to messages containing the serial numbers of the occupancy sensors 120 to which the dimmer switch is assigned. The commands included in the digital messages transmitted by the occupancy sensor 120 may comprise an occupied command or a vacant command. When the lighting load 104 is off, the dimmer switch 110 is operable to turn on the lighting load in response to receiving a first occupied command from any one of the occupancy sensors 120 to which the dimmer switch is assigned. The dimmer switch 110 is operable to turn off the lighting load 104 in response to the last vacant command received from those occupancy sensors 120 from which the occupancy sensor received occupied commands. For example, if two occupancy sensors 120 both transmit occupied commands to the dimmer switch 110, the dimmer switch will not turn off the lighting load 104 until subsequent vacant commands are received from both of the occupancy sensors. The operation of a lighting control system including wireless occupancy sensors is described is greater detail in U.S. patent application No. 12/203,518, filed Sep. 3, 2008, entitled RADIO-FREQUENCY LIGHTING CONTROL SYSTEM WITH OCCUPANCY SENSING, the entire disclosure of which is hereby incorporated by reference.
FIG. 2 is a simplified block diagram of the occupancy sensor 120 of the lighting control system 100. FIG. 3A shows example waveforms illustrating the operation of the ultrasonic occupancy sensor 120 when there is not an occupant in the space, and FIG. 3B shows an example waveform illustrating the operation of the occupancy sensor 120 when there is an occupant in the space. The occupancy sensor 120 comprises a controller 210 coupled to an ultrasonic transmitting circuit 220 for transmitting the ultrasonic waves and an ultrasonic receiving circuit 230 for receiving the ultrasonic waves to thus detect the presence and absence of the occupant in the space. For example, the controller 210 may be a microprocessor, but may alternatively be any suitable processing device, such as a programmable logic device (PLD), a microcontroller, an application specific integrated circuit (ASIC), or a field-programmable gate array (FPGA). The ultrasonic transmitting circuit 220 comprises the ultrasonic transmitting element Ul and the ultrasonic receiving circuit 230 comprises the ultrasonic receiving element U2. The ultrasonic transmitting element U1 and the ultrasonic receiving element U2 may both comprise, for example, piezoelectric elements.
The controller 210 is coupled to a low phase-noise oscillator circuit 212 for setting an internal operating frequency fop of the controller (e.g. approximately 40 kHz). The low phase-noise oscillator circuit 212 may comprise, for example, a Pierce oscillator circuit as shown in FIG. 2 having a crystal 214, such as a 40-kHz piezoelectric crystal, e.g., part number CM250C, manufactured by Citizen Crystal. For example, the low phase-noise oscillator circuit 212 may be characterized by a spectral purity of approximately -60 dBc at 5 Hz from the rated frequency (i.e., 40 kHz). The low phase-noise oscillator circuit 212 further comprises an inverter 215, two capacitors C216, C217 (e.g., each having a capacitance of approximately 12 pF), and two resistors R218, R219 (e.g., having resistances of approximately 10 MΩand 392 kΩ, respectively). Alternatively, the low phase-noise oscillator circuit 212 could comprise any suitable external low phase-noise oscillator circuit, or an internal low phase-noise oscillator circuit of the controller 210.
The occupancy sensor 120 comprises a battery V1 that generates a direct-current (DC) supply voltage VCC1 (e.g., approximately 3 volts) for powering the controller 210 and the ultrasonic receiving circuit 230. The occupancy sensor 120 further comprises a boost converter 240 that receives the supply voltage VCC1 and generates a boosted voltage VCC2 (e.g., approximately 12 volts) for powering the ultrasonic transmitting circuit 220. The controller 210 is further coupled to a memory 250 for storage of operating characteristics of the occupancy sensor 120. The memory 250 may be implemented as an external integrated circuit (IC) or as an internal circuit of the controller 210. The occupancy sensor 120 further comprises an RF transmitter 260 coupled to the controller 210 and an antenna 262 for transmitting the RF signals 106. Alternatively, the occupancy sensor 120 could comprise an RF transceiver to allow for two-way communication between the occupancy sensor and the dimmer switch 110.
The ultrasonic transmitting circuit 220 may comprise a standard H-bridge drive circuit 222 for energizing the piezoelectric element (i.e., the ultrasonic transmitter U1). Specifically, the controller 210 drives the H-bridge drive circuit 222 with a non-inverted ultrasonic drive signal VDRIVE and an inverted ultrasonic drive signal VDR—INV, which may both comprise complementary square wave signals as shown in FIG. 3A. The controller 210 generates the non-inverted ultrasonic drive signal VDRIVE and the inverted ultrasonic drive signal VDR—INV such that both signals are characterized by an ultrasonic transmission frequency fUS, which may be equal to the operating frequency fOP of the controller (i.e., approximately 40 kHz). Since the operating frequency fOP of the controller 210 is derived from the low phase-noise oscillator circuit 212, the non-inverted ultrasonic drive signal VDRIVE and an inverted ultrasonic drive signal VDR—INV, and thus the ultrasonic transmission frequency fUS, are also characterized by low phase noise.
The ultrasonic receiver U2 of the ultrasonic receiving circuit 230 generates a received ultrasonic input signal VIN in response to the received ultrasonic waves. The input signal VIN is clamped by a clamp circuit 232 to protect the other circuitry of the ultrasonic receiving circuit 230. A non-linear amplifier 234 receives the input signal VIN and generates an amplified signal VAMP. A gain GNL of the non-linear amplifier 234 is approximately 11 when the magnitude of the AC component of the input signal VIN is small (e.g., less than approximately 1.2 volts), and approximately 2 when the magnitude of the AC component of the input signal VIN is large (e.g., greater than approximately 1.2 volts). The ultrasonic receiving circuit 230 further comprises a synchronous rectifier 236 (i.e., a lock-in amplifier), which receives the amplified signal VAMP from the non-linear amplifier 234 and generates a rectified signal VRECT. The synchronous rectifier 236 also receives the non-inverted ultrasonic drive signal VDRIVE and the inverted ultrasonic drive signal VDR—INV from the controller 210.
A bandpass filter 238 (e.g., an anti-aliasing filter) generates a filtered signal VFILT from the rectified signal VRECT and has a bandwidth of approximately 5-100 Hz. The controller 210 receives the filtered signal VFILT from the bandpass filter 238 and includes, for example, an analog-to-digital converter (ADC) for sampling the filtered signal. The controller 210 is operable to detect the presence of the occupant in the space if the magnitude of the filtered signal rises above an upper voltage threshold VTH+ (e.g., approximately 0.25 volts) or falls below a lower voltage threshold VTH− (as shown in FIG. 3B). Since the filtered signal VFILT is biased to approximately one-half of the supply voltage VCC1 (i.e., approximately 1.5 volts), the filtered signal VFILT will have a DC magnitude equal to approximately 1.5 volts and will remain between the upper voltage threshold VTH+ and the lower voltage threshold VTH− if there is not an occupant in the space (as shown in FIG. 3A). The upper voltage threshold VTH+ and the lower voltage threshold VTH− may be predetermined fixed values or may be adjustable by the controller 210. In addition, the controller 210 may be operable to digitally filter the filtered signal VFILT received from the bandpass filter 238 to provide additional filtering of the signal before determining if the space is occupied or unoccupied.
According to the embodiment of the present invention, the synchronous rectifier 236 eliminates many of the limitations of the prior art. The synchronous rectifier 236 can work on input signals having very small magnitudes and is not limited by an ADC and numerical precisions of a microcontroller. Design principles and testing have demonstrated that signals with an SIR of −80 dB can easily be detected using the synchronous rectifier 236 of the ultrasonic receiving circuit 230 of the embodiment of the present invention.
FIG. 4 is a simplified circuit diagram of a portion of the ultrasonic receiving circuit 230 showing the clamp circuit 232 and the non-linear amplifier 234 in greater detail. The clamp circuit 232 comprises a resistor R310 coupled between the coupled between the output of the ultrasonic receiver U2 and circuit common, a first diode D312 coupled between the output of the ultrasonic receiver U2 and the supply voltage VCC1, and a second diode D314 coupled between circuit common and the output of the ultrasonic receiver U2. Accordingly, the magnitude of the input voltage VIN is prevented from rising above a diode drop (e.g. approximately 0.7 volts) above the magnitude of the supply voltage VCC1, and from dropping below a diode drop below the circuit common.
The non-linear amplifier circuit 234 comprises an operational amplifier (op amp) U314. The input voltage VIN is coupled to the non-inverting input of the op amp U314 via a capacitor C316 and a resistor R318. A circuit (comprising resistors R320, R322, R324 and a capacitor C326) is coupled to the junction of the capacitor C316 and the resistor R318, and operates to reference the input voltage VIN at one-half of the supply voltage VCC1. The inverting input of the op amp U314 is coupled to circuit common through a resistor R328 and a capacitor C330, and to the output via a resistor R332. The non-linear amplifier circuit 234 also comprises a resistor R344 and a plurality of diodes D340, D342, D344, D346 coupled between the inverting input and the output of the op amp U314.
When the magnitude of the AC component of the input signal VIN is small (i.e., less than approximately 1.2 volts), the diodes D340, D342, D344, D346 are non-conductive and only the resistor R332 is coupled between the inverting input and the output of the op amp U314, such that the gain GNL of the non-linear amplifier 234 is approximately 11. When the magnitude of the AC component of the input signal VIN is large (i.e., greater than approximately 1.2 volts), the either the diodes D340, D342 or the diodes D344, D346 become conductive and the resistor R334 is coupled in parallel with the resistor R332. As a result, the equivalent resistance coupled between the inverting input and the output of the op amp U314 decreases and the gain GNL of the non-linear amplifier 234 decreases to approximately 2. Specifically, when the magnitude of the voltage at the output of the op amp U314 is less than the magnitude of the voltage at the inverting input by approximately the sum of the forward voltages of the diodes D340, D342 (i.e., two diode drops, e.g., approximately 1.2 volts), the diodes D340, D342 are conductive. When the magnitude of the voltage at the output of the op amp U314 is greater than the magnitude of the voltage at the inverting input by approximately two diode drops, the diodes D344, D346 are conductive. Accordingly, the non-linear amplifier 234 amplifies the input signal VIN by a greater amount when the magnitude of the input signal VIN is small than when the magnitude of the input signal VIN is large to thus generate the amplified signal VAMP.
FIG. 5 is a simplified circuit diagram of a portion of the ultrasonic receiving circuit 230 showing the synchronous rectifier 236 in greater detail. The synchronous rectifier 236 comprises a non-inverting amplifier 410 and an inverting amplifier 412 that both receive the amplified signal VAMP from the non-linear amplifier 234. Specifically, the amplified signal VAMP is coupled to the non-inverting amplifier 410 via a capacitor C420 and is further coupled to the inverting amplifier 412 via a capacitor C422. A circuit (comprising resistors R424, R426, R428 and a capacitor C430) is coupled to the junction of the capacitors C440, C442, and operates to reference the amplified signal VAMP at one-half of the supply voltage VCC1.
The non-inverting amplifier 410 comprises an op amp U432 and has a gain GNI of approximately 10. The inverting input of the op amp U432 is coupled to circuit common through a resistor R434 and a capacitor C436, and is coupled to the output through a resistor R438. The inverting amplifier 412 comprises an op amp U440 and has a gain GI of approximately −10. The inverting input of the op amp U440 is coupled to the capacitor C422 via a resistor R442 and to the output via a resistor R444. The non-inverting input of the op amp U440 is coupled to a circuit that comprises resistors R446, R448 and a capacitor C450 and operates to bias non-inverting input at one-half of the supply voltage VCC1.
The outputs of the non-inverting amplifier 410 and the inverting amplifier 412 are coupled to respective analog switches S414, S416, which are rendered conductive and non-conductive on a complementary basis in response to the non-inverted ultrasonic drive signal VDRIVE and the inverted ultrasonic drive signal VDR—INV, respectively. The outputs of the analog switches S414, S416 are mixed together to form the rectified signal VRECT as shown in FIG. 3A. When the non-inverted ultrasonic drive signal VDRIVE is high (i.e., approximately equal to the supply voltage VCC1) and the first switch S414 is conductive, the rectified signal VRECT is equal to the output of the non-inverting amplifier 410. When the inverted ultrasonic drive signal VDR—INV is high and the second switch S416 is conductive, the rectified signal VRECT is equal to the output of the inverting amplifier 412.
FIG. 6 is a simplified circuit diagram of a portion of the ultrasonic receiving circuit 230 showing the bandpass filter 238 in greater detail. The bandpass filter 238 comprises a low-pass filter stage 510 and a non-inverting amplifier stage 512. The low-pass filter stage 510 includes an op amp U520 having a non-inverting input coupled to receive the rectified voltage VRECT through two resistors R522, R524. The junction of the two resistors R522, R524 is coupled to circuit common through a resistor R525. The non-inverting input is also coupled to circuit common via a capacitor C526. The output of the op amp U520 is coupled directly to the inverting input and is coupled to the junction of the resistors R522, R524 through a capacitor C528. The output of the low-pass filter stage 510 is coupled to the non-inverting amplifier stage 512 via a circuit that includes two capacitors C530, C538, and three resistors R532, R534, R536. The low-pass filter stage 510 operates to filter out the 80-kHz components of the rectified voltage VRECT.
The non-inverting amplifier stage 512 comprises an op amp U540 and has a gain GBP of approximately 100. The non-inverting input of the op amp U540 is coupled to the output of the low-pass filter stage 510 via the capacitor C530 and the resistor R536. The inverting input of the op amp U540 is coupled to circuit common through a resistor R542 and a capacitor C544, and is coupled to the output via a resistor R546. A capacitor C548 is also coupled between the inverting input and the output of the op amp U540 and provides additional low-pass filtering. The filtered voltage VFILT is generated from the output of the op amp U540 via a circuit that comprises two capacitors C550, C558 and three resistors R552, R554, R556. The resistors R552, R554 reference the filtered voltage VFILT at one-half of the supply voltage VCC1 as shown in FIG. 3A. The capacitors C526, C544, C550 provide high-pass filtering for the bandpass filter 238. Accordingly, the bandpass filter 238 has a band width of 5-100 Hz.
The controller 210 receives the filtered voltage VFILT and determines the presence or absence of the occupant in the space in response to the magnitude of the filtered voltage. Since the ultrasonic transmission frequency fUS of the transmitted waves is dependent upon the non-inverted ultrasonic drive signal VDRIVE and the inverted ultrasonic drive signal VDR—INV and the analog switches S414, S416 of the synchronous rectifier 236 are controlled in response to the non-inverted ultrasonic drive signal VDRIVE and the inverted ultrasonic drive signal VDR—INV, the synchronous rectifier circuit will properly rectify the amplified signal VAMP and the filtered voltage VFILT stays between the upper voltage threshold VTH+ and the lower voltage threshold VTH− when there is not an occupant in the space. However, if there is an occupant in the space, there will be a Doppler shift in the received ultrasonic waves as compared to the transmitted ultrasonic waves. In addition, the frequency of the received ultrasonic waves will be varying with respect to time (i.e., the difference between frequencies of the received ultrasonic waves and the ultrasonic transmission frequency fUS of the transmitted waves will vary with respect to time). Accordingly, rectified signal VRECT generated by the synchronous rectifier circuit 236 will vary in magnitude and the filtered voltage VFILT will become greater than the upper voltage threshold VTH+ and or less than the lower voltage threshold VTH−, thus signally that the space is occupied.
FIG. 7 is a simplified flowchart of a control procedure 600 executed periodically by the controller 210 (e.g., approximately every two msec). The controller 210 first samples the filtered signal VFILT to generate a sample S at step 410. At step 612, the controller 210 removes the DC component of the sample S by subtracting one-half of the supply voltage VCC1 from the sample (i.e., SR =S−VCC1/2). Next, the controller 210 determines the magnitude (i.e., the absolute value) of the sample S (i.e., SABS =|SR|) at step 614. If the absolute value SABS is greater than or equal to a sample threshold STH at step 616, the controller 210 determines that the space is occupied at step 618 and the control procedure 600 exits. If the absolute value SABS is less than the sample threshold STH at step 616, the controller 210 determines that the space is vacant at step 620, before the control procedure 600 exits. For example, the sample threshold STH may be equal to approximately one-half of the difference between the upper voltage threshold VTH+and the lower voltage threshold VTH− shown in FIGS. 3A and 3B, i.e., STH =(VTH+−VTH−)/2.
In addition, the occupancy sensor 120 could additionally comprise a second occupancy sensing circuit including, for example, a passive infrared (PIR) detector, such that the occupancy sensor is a “dual-technology” occupancy sensor. Since the PIR detector uses different technology than the ultrasonic transmitting circuit 220 and the ultrasonic receiving circuit 230, the dual-technology occupancy sensor provides for an increased ability to detect the presence of an occupant in the space surrounding the occupancy sensor. An example of an occupancy sensing circuit having a PIR detector is described in greater detail in U.S. patent application No. 12/203,500, filed Sep. 3, 2008, entitled BATTERY-POWERED OCCUPANCY SENSOR, the entire disclosure of which is hereby incorporated by reference.
While the present invention has been described with reference to the dimmer switch 110 for controlling the intensity of the lighting load 104, the concepts of the present invention could be applied to load control systems comprising other types of load control devices, such as, for example, fan-speed controls for fan motors, temperature control devices for control of heating, ventilation, and air-conditioning (HVAC) systems, electronic dimming ballasts for fluorescent loads, and drivers for light-emitting diodes (LEDs). Further, the concepts of the present invention could be used to control other types of electrical loads, such as, for example, fan motors or motorized window treatments.
Although the present invention has been described in relation to particular embodiments thereof, many other variations and modifications and other uses will become apparent to those skilled in the art. It is preferred, therefore, that the present invention be limited not by the specific disclosure herein, but only by the appended claims.
The values provided herein for the values and part numbers of the components of FIGS. 4, 5, and 6 are provided as examples only and should not limit the scope of the present invention. For example, it would be well within the capabilities of one having ordinary skill in the art to modify the values of the components of FIGS. 4, 5, and 6 and still obtain the ultrasonic receiving circuit of the present invention.

## Claims

1. An ultrasonic occupancy sensor for detecting presence or absence of an occupant in a space, the occupancy sensor comprising:
an ultrasonic transmitting circuit comprising an ultrasonic transmitting element for transmitting ultrasonic waves;
an ultrasonic receiving circuit comprising an ultrasonic receiving element for receiving ultrasonic waves and generating an ultrasonic input signal, an amplifier circuit for amplifying the amplified signal to generate an amplified signal, a synchronous rectifier for rectifying the input signal to generate a rectified signal, and a filter for filtering the rectified signal to generate a filtered signal, the synchronous rectifier comprising a non-inverting amplifier and an inverting amplifier both receiving the amplified signal, the synchronous rectifier further comprising a first analog switch coupled to an output of the non-inverting amplifier and a second analog switch coupled to an output of the inverting amplifier, the first and second analog switches electrically coupled together for forming the rectified signal; and
a controller operable to drive the ultrasonic transmitting circuit with a drive signal to control an ultrasonic transmission frequency of the transmitted ultrasonic waves, the controller operable to render the first and second analog switches conductive and non-conductive on a complementary basis such the outputs of the analog switches are mixed together to form the rectified signal, the controller further operable to receive the filtered signal and to determine that the space is occupied if a magnitude of the filtered signal exceeds a threshold.

2. The sensor of claim 1, wherein the synchronous rectifier of the ultrasonic receiving circuit also receives the drive signal from the controller, such that the filtered signal exceeds the threshold when a received ultrasonic frequency of the received ultrasonic waves is different than the ultrasonic transmission frequency of the transmitted ultrasonic waves.

3. The sensor of claim 2, further comprising:
a low phase-noise oscillator circuit coupled to the controller for setting an internal operating frequency of the controller.

4. The sensor of claim 3, wherein the ultrasonic transmission frequency of the transmitted ultrasonic waves is approximately equal to the internal operating frequency of the controller.

5. The sensor of claim 3, wherein the low phase-noise oscillator circuit comprises Pierce oscillator circuit having a crystal.

6. The sensor of claim 2, wherein the ultrasonic receiving element and the ultrasonic transmitting element both comprise piezoelectric elements.

7. The sensor of claim 1, wherein the amplifier circuit comprises a non-linear amplifier operable to amplify the input signal when the magnitude of the input signal is small, and not to amplify the input signal when the magnitude of the input signal is large.

8. The sensor of claim 1, wherein the filter comprises an anti-aliasing filter, and the controller is operable to digitally filter the filtered signal from the filter prior to determining if the space is occupied.

9. The sensor of claim 1, wherein the controller is operable to determine that the space is occupied if a magnitude of the filtered signal rises above an upper threshold or falls below a lower threshold.

10. An ultrasonic occupancy sensor for detecting presence or absence of an occupant in a space, the occupancy sensor comprising:
an ultrasonic transmitting circuit comprising an ultrasonic transmitting element for transmitting ultrasonic waves;
an ultrasonic receiving circuit comprising an ultrasonic receiving element for receiving ultrasonic waves and generating an ultrasonic input signal, an amplifier circuit for amplifying the input signal to generate an amplified signal, a synchronous rectifier for rectifying the amplified signal to generate a rectified signal, and a filter for filtering the rectified signal to generate a filtered signal;
a controller operable to drive the ultrasonic transmitting circuit with complementary drive signals to control an ultrasonic transmission frequency of the transmitted ultrasonic waves, the controller further operable to receive the filtered signal and to determine that the space is occupied if a magnitude of the filtered signal rises above an upper threshold or falls below a lower threshold; and
a low phase-noise oscillator circuit coupled to the controller for setting an internal operating frequency of the controller, the ultrasonic transmission frequency of the transmitted ultrasonic waves being approximately equal to the internal operating frequency of the controller;
wherein the synchronous rectifier also receives the drive signals from the controller, such that the filtered signal rises above the upper threshold or falls below the lower threshold when a received ultrasonic frequency of the received ultrasonic waves is different than the ultrasonic transmission frequency of the transmitted ultrasonic waves.

11. The sensor of claim 10, wherein the synchronous rectifier comprises a non-inverting amplifier and an inverting amplifier both receiving the amplified signal, the synchronous rectifier further comprising a first analog switch coupled to an output of the non-inverting amplifier and a second analog switch coupled to an output of the inverting amplifier, the first and second analog switches electrically coupled together, the controller configured to render the first and second analog switches conductive and non-conductive on a complementary basis such that outputs of the analog switches are mixed together to form the rectified signal.

12. The sensor of claim 10, wherein the low phase-noise oscillator circuit comprises Pierce oscillator circuit having a crystal.

13. An ultrasonic receiving circuit for detecting a presence or absence of an occupant in a space comprises:
an ultrasonic receiving element for generating an ultrasonic input signal;
an amplifier circuit for amplifying the input signal to generate an amplified signal;
a synchronous rectifier for rectifying the amplified signal to generate a rectified signal, the synchronous rectifier comprising a non-inverting amplifier and an inverting amplifier both receiving the amplified signal, the synchronous rectifier further comprising a first analog switch coupled to an output of the non-inverting amplifier and a second analog switch coupled to an output of the inverting amplifier, the first and second analog switches electrically coupled together such that outputs of the analog switches are mixed together to form the rectified signal; and
a filter for filtering the rectified signal to generate a filtered signal;
wherein the filtered signal indicates the presence of the occupant in the space if the magnitude of the filtered signal exceeds a threshold.

14. The circuit of claim 13, wherein the ultrasonic receiving element receives ultrasonic waves representative of whether the space is occupied or unoccupied, the synchronous rectifier receiving two complementary drive signals characterized by low phase noise, the filtered signal exceeding the threshold when the frequency of the received ultrasonic waves is different than the frequency of the drive signals.

15. The circuit of claim 14, wherein the drive signals comprises square wave voltages coupled to the analog switches for controlling the analog switches to be conductive and non-conductive on a complementary basis.

16. The circuit of claim 13, wherein the filtered signal indicates the presence of the occupant in the space if the magnitude of the filtered signal rises above an upper threshold or falls below a lower threshold.