SENSOR DEVICE HAVING AN ULTRASONIC RECEIVING CIRCUIT
20230393269 · 2023-12-07
Assignee
Inventors
Cpc classification
G01S15/86
PHYSICS
G01S7/52001
PHYSICS
G01S7/53
PHYSICS
International classification
G01S15/86
PHYSICS
Abstract
A sensor device may include a signal generator circuit configured to generate a supplemental signal that is combined with an ultrasonic reception voltage signal generated by an ultrasonic receiving element in response to received ultrasonic waves. The sensor device may comprise an ultrasonic receiving circuit configured to receive the combination of the ultrasonic reception voltage signal and the supplemental signal, and generate a detection signal that indicates when the space is occupied. The sensor device may also comprise a control circuit configured to receive the detection signal and detect an occupancy condition in the space in response to the detection signal. The combination of the supplemental signal with the ultrasonic reception voltage signal may ensure that the magnitudes of signals processed by the ultrasonic receiving circuit are large enough that the ultrasonic receiving circuit may appropriately generate the detection signal and the control circuit may detect the occupancy condition.
Claims
1. A sensor device configured to be installed in a space, the sensor device comprising: an ultrasonic receiving element configured to receive ultrasonic waves and generate an ultrasonic reception voltage signal, wherein the ultrasonic waves comprise non-Doppler-shifted ultrasonic waves when the space is vacant and a combination of non-Doppler-shifted ultrasonic waves and Doppler shifted waves when the space is occupied, the non-Doppler-shifted ultrasonic waves characterized by an ultrasonic frequency; a control circuit configured to control generation of a supplemental signal that is characterized by the ultrasonic frequency and is combined with the ultrasonic reception voltage signal; an ultrasonic receiving circuit configured to receive the combination of the ultrasonic reception voltage signal and the supplemental signal, the ultrasonic receiving circuit configured to generate a detection signal that indicates when the space is occupied; and a control circuit configured to receive the detection signal and detect an occupancy condition in the space in response to the detection signal.
2. The sensor device of claim 1, further comprising: a signal generator circuit configured to generate the supplemental signal; wherein the control circuit is configured to generate a signal generation control signal that is received by the signal generator circuit for controlling the generation of the supplemental signal.
3. The sensor device of claim 2, wherein the control circuit is configured to control the signal generation control signal to enable and disable the signal generator circuit.
4. The sensor device of claim 3, wherein the control circuit is configured to: pulse-width modulate the signal generation control signal at the ultrasonic frequency when the signal generator circuit is enabled; and receive a monitored voltage of the ultrasonic receiving circuit; wherein the monitored voltage has a magnitude that indicates that the combination of the ultrasonic reception voltage signal and the supplemental signal may be properly processed by the ultrasonic receiving circuit to generate the detection signal.
5. The sensor device of claim 4, wherein the control circuit is configured to measure a magnitude of the monitored voltage of the ultrasonic receiving circuit when the signal generation circuit is enabled, and determine to adjust the phase of the signal generation control signal when the magnitude of the monitored voltage is less than a threshold.
6. The sensor device of claim 5, wherein the control circuit is configured to adjust the phase of the supplemental signal until the magnitude of the monitored voltage is greater than the threshold.
7. The sensor device of claim 4, wherein the control circuit is configured to measure a magnitude of the monitored voltage of the ultrasonic receiving circuit when the signal generation circuit is disabled, the control circuit further configured to enable the signal generation circuit when the magnitude of the monitored voltage is less than a threshold, and disable the signal generation circuit when the magnitude of the monitored voltage is greater than the threshold.
8. The sensor device of claim 4, wherein the control circuit is configured to measure a magnitude of the monitored voltage of the ultrasonic receiving circuit when the signal generation circuit is disabled, and automatically configure the operation of the signal generation circuit in response to the monitored voltage when the space in vacant.
9. The sensor device of claim 4, wherein the ultrasonic receiving circuit comprises: an amplifier circuit configured to amplify the combination of the ultrasonic reception voltage signal and the supplemental signal to generate an amplified signal; an envelope detector circuit configured to receive the amplified signal and generate an envelope signal; and a filter circuit configured to filter the envelope signal to generate the detection signal; wherein the monitored voltage is a filtered version of the envelope signal.
10. The sensor device of claim 2, wherein the signal generator circuit is configured to generate the supplemental signal as a sinusoidal signal at the ultrasonic frequency in response to the signal generation control signal, and the control circuit is configured to adjust the peak to peak magnitude of the supplemental signal in response to a noise floor of the detection signal generated by the ultrasonic receiving circuit.
11. The sensor device of claim 10, wherein the control circuit is configured to adjust the peak to peak magnitude of the supplemental signal to a first magnitude when a magnitude of the noise floor of the detection signal is less than a threshold, and to a second magnitude when the magnitude of the noise floor of the detection signal is greater than the threshold, wherein the second magnitude is less than the first magnitude.
12. The sensor device of claim 10, wherein the control circuit is configured to adjust the peak to peak magnitude of the supplemental signal as a function of a magnitude of the noise floor of the detection signal.
13. The sensor device of claim 10, wherein the control circuit is configured to automatically adjust the peak-to-peak magnitude of the supplemental signal in response to the noise floor of the detection signal when the space in vacant.
14. The sensor device of claim 10, wherein the control circuit is configured to determine the noise floor of the detection signal in response to a magnitude of the detection signal.
15. The sensor device of claim 1, wherein the ultrasonic receiving element comprises a first ultrasonic receiving element configured to generate a first ultrasonic reception voltage signal, the signal generator circuit comprises a first signal generator circuit, and the ultrasonic receiving circuit comprises a first ultrasonic receiving circuit configured to generate a first detection signal; and wherein the sensor device further comprises: a second ultrasonic receiving element configured to receive ultrasonic waves characterized by the ultrasonic frequency and generate a second ultrasonic reception voltage signal; a second signal generator circuit configured to generate a second supplemental signal that is characterized by the ultrasonic frequency and is combined with the ultrasonic reception voltage signal; and a second ultrasonic receiving circuit configured to receive the combination of the second ultrasonic reception voltage signal and the second supplemental signal, the second ultrasonic receiving circuit configured to generate a second detection signal that indicates when the space is occupied; wherein the control circuit is further configured to receive the second detection signal and detect an occupancy condition in the space in response to both the first and second detection signals, just the first detection signal, or just the second detection signal.
16. The sensor device of claim 15, wherein the control circuit is configured to determine to be responsive to both the first and second detection signals, just the first detection signal, or just the second detection signal in response to at least one of an actuation of an actuator of the sensor device or message received by the sensor device.
17. The sensor device of claim 1, wherein the control circuit is configured to automatically configure the operation of the signal generation circuit when the space in vacant.
18. The sensor device of claim 17, further comprising: a passive infrared detection circuit including a pyroelectric detector configured to receive infrared energy from an occupant in the space; wherein the control circuit is configured to automatically configure the operation of the signal generation circuit when the control circuit has determined that the space is vacant in response to the passive infrared detection circuit.
19. The sensor device of claim 1, further comprising: an enclosure for housing the ultrasonic receiving element, the signal generator circuit, the ultrasonic receiving circuit, and the control circuit; wherein the enclosure comprises an opening in a front surface of the enclosure, the ultrasonic receiving element configured to receive the ultrasonic waves through the opening, the opening having a diameter that is approximately equal to a wavelength of the ultrasonic waves and a depth between the front surface of the enclosure and the ultrasonic receiving element that is approximately equal to one-fourth of the wavelength of the ultrasonic waves.
20. The sensor device of claim 1, wherein the control circuit is configured to directly generate the supplemental signal.
21-182. (canceled)
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
DETAILED DESCRIPTION
[0020]
[0021] The sensor device 120 may be mounted to a ceiling or a wall, for example, in the vicinity of (e.g., a space around) the lighting load 104 controlled by the load control device 110, such that the sensor device 120 may be configured to detect an occupancy condition (e.g., the presence of the occupant) and/or a vacancy condition (e.g., the absence of the occupant) in the vicinity of the lighting load. The load control system 100 may comprise additional sensor devices 120 that are spaced apart so as to detect occupancy and/or vacancy conditions in different areas of the space around the lighting load 104. The sensor device 120 may be configured to generate one or more control signals in response to detecting occupancy conditions and/or vacancy conditions in the space around the lighting load 104. For example, the sensor device 120 may be configured to generate an analog control signal (e.g., via a contact closure output circuit) that may be in one of two states depending upon the detection of an occupancy condition or a vacancy condition. In addition, the sensor device 120 may be configured to transmit a message (e.g., a digital message) to the load control device 110 wirelessly via wireless signals, such as, radio-frequency (RF) signals 106, and/or via a wired communication link (not shown) in response to detecting occupancy conditions and/or vacancy conditions in the space around the lighting load 104. The sensor device 120 may be battery-powered, and/or may be connected to an external power source, such as the AC power source 102 and/or a direct-current (DC) power supply (not shown). The load control device 110 may be configured to turn on the lighting load 104 in response to receiving an indication of an occupancy condition from the sensor device 120 and turn off the lighting load 104 in response to receiving an indication of a vacancy condition from the sensor device 120.
[0022] The sensor device 120 may include an occupancy detection circuit, such as an ultrasonic detection circuit comprising an ultrasonic transmitting element and/or an ultrasonic receiving element, which may be housed in an enclosure 122. The enclosure 122 may comprise a first opening 124 for allowing ultrasonic waves 108 to be transmitted from the sensor device 120 by the ultrasonic transmitting element and a second opening 126 for allowing the ultrasonic waves to be received by the ultrasonic receiving element inside the sensor device 120. The sensor device 120 may be configured to determine whether occupancy conditions and/or vacancy conditions are presently occurring in the space in response to the ultrasonic waves 108 received by the ultrasonic receiving element as will be described in greater detail below. For example, the ultrasonic waves 108 may be transmitted by the sensor device 120 at an ultrasonic transmission frequency f.sub.US (e.g., approximately 40 kHz).
[0023] The ultrasonic waves 108 transmitted by the sensor device 120 may be reflected off objects in the space back towards the sensor device 120. The transmitted ultrasonic waves 108 may be reflected off static objects in the space and moving objects in the space. The ultrasonic waves 108 that are reflected off static objects may be characterized by the ultrasonic transmission frequency f.sub.US (e.g., exhibit no change in frequency). The ultrasonic waves 108 that are reflected off moving objects may not be characterized by the ultrasonic transmission frequency f.sub.US, but may exhibit a change in frequency (e.g., a Doppler shift), which may indicate movement in the space (e.g., may indicate an occupancy condition). For example, the ultrasonic waves 108 that are reflected off moving objects may be characterized by a Doppler-shifted frequency f D s (e.g., such as approximately 40.0-40.5 kHz or 39.5-40.0 kHz). The sensor device 120 may receive the reflected ultrasonic waves 108, which may be a sum of the Doppler-shifted reflected waves (e.g., reflected off moving objects) and the non-Doppler-shifted reflected waves (e.g., reflected off static objects).
[0024] While not shown in
[0025] Since the sensor device 120 may be located closer to objects in the space when the sensor device 120 is installed in a small space, the received ultrasonic waves 108 may be relatively large in magnitude as compared to when the sensor device 120 is installed in a large space. The sensor device 120 may be configured to operate in a small space mode (e.g., a large-signal mode) and a large space mode (e.g., a small-signal mode). While in the small space mode, the sensor device 120 may be configured to receive and process ultrasonic waves 108 having a relatively large magnitude (e.g., when the sensor device 120 is installed in small space). While in the large space mode, the sensor device 120 may be configured to receive and process ultrasonic waves 108 having a relatively small magnitude (e.g., when the sensor device 120 is installed in a large space).
[0026] In some examples, the sensor device 120 may also comprise an additional sensing circuit for detecting an occupancy and/or vacancy condition in the space (e.g., an additional occupant detection circuit). Such a sensor device may be referred to as a “dual-technology” sensor device. For example, the sensor device 120 may comprise an internal passive infrared (PIR) detection circuit having a pyroelectric detector, which may be configured to receive infrared energy from an occupant in the space via a lens 129 located on the enclosure 122. The sensor device 120 may be configured to detect occupancy and/or vacancy conditions in the space around the lighting load 104 in response to one of or both of the ultrasonic detection circuit and the PIR detection circuit. Since the PIR detection circuit may use different technology than the ultrasonic detection circuit, the dual-technology occupancy sensor may provide for an increased ability to detect the presence of an occupant in the space surrounding the sensor device 120. In addition, the additional sensing circuit of the sensor device 120 may also comprise, for example, a microwave detection circuit, a mm-wave radar, or any suitable detector or combination of detectors. An example of a sensor device having a PIR detection circuit is described in greater detail in U.S. Pat. No. 7,940,167, issued May 20, 2011, entitled BATTERY-POWERED OCCUPANCY SENSOR, the entire disclosure of which is hereby incorporated by reference.
[0027] The sensor device 120 may execute a configuration procedure (e.g., a calibration procedure), for example, to configure the operation of the sensor device 120 in the space in which the sensor device 120 is installed. For example, during the configuration procedure, the sensor device 120 may be configured to operate in one of the small space mode and the large space mode during configuration of the sensor device. In addition, the sensor device 120 may be configured to use both pairs of ultrasonic transmitting and receiving elements or either one or the other of the pairs of ultrasonic transmitting and receiving elements during the configuration procedure. For example, the sensor device 120 may be configured to execute the configuration procedure in response to a manual input, e.g., in response to an actuation of a button on the sensor device 120 and/or in response to a received message (e.g., transmitted in response to an actuation of a button on a remote control and/or a soft button on a display of a mobile device, such as a smart phone or tablet). In addition, the sensor device 120 may be configured to automatically execute the configuration procedure (e.g., as will be described in greater detail below). For example, the sensor device 120 may be configured to periodically execute the configuration procedure (e.g., once a month) when the space in which the sensor device is located is vacant (e.g., as determined in response to the ultrasonic detection circuit and/or the PIR detection circuit). The configuration procedure may be an initial configuration procedure executed after installation when the objects in the space are in their intended positions and when the space is vacant. Further, the configuration procedure may be a maintenance (e.g., recalibration) procedure executed (e.g., periodically executed) after the initial execution of the configuration procedure to check for changes in the received ultrasonic waves (e.g., due to changes in the locations of the objects in the space).
[0028]
[0029] The load control system 100′ shown in
[0030] The sensor device 120′ may include an occupancy detection circuit, such as an ultrasonic detection circuit having an ultrasonic receiving element. The sensor device 120′ may comprise an enclosure 122′ that has a single opening 126′ for allowing the ultrasonic waves 108 that are transmitted by the remote ultrasonic transmitter 130 to be received by the ultrasonic receiving element inside the sensor device 120′. The ultrasonic waves 108 transmitted by the remote ultrasonic transmitter 130 may be reflected off objects (e.g., static objects and/or moving objects) in the space towards the sensor device 120′. The ultrasonic waves 108 that are reflected off static objects may be characterized by the ultrasonic transmission frequency f.sub.US (e.g., exhibit no change in frequency), while the ultrasonic waves 108 that are reflected off moving objects may not be characterized by the ultrasonic transmission frequency f.sub.US, but may exhibit a change in frequency (e.g., a Doppler shift), which may indicate movement in the space (e.g., may indicate an occupancy condition). The sensor device 120′ may be configured to determine whether occupancy conditions and/or vacancy conditions are presently occurring in the space in response to the ultrasonic waves 108 received by the ultrasonic receiving element.
[0031] While not shown in
[0032] Like the sensor device 120 shown in
[0033] In some examples, the sensor device 120′ may also comprise an additional sensing circuit for detecting an occupancy and/or vacancy condition in the space (e.g., an additional occupant detection circuit). For example, the sensor device 120′ may comprise an internal PIR detection circuit having a pyroelectric detector, which may be configured to receive infrared energy from an occupant in the space via a lens 129′ located on the enclosure 122′. The sensor device 120′ may be configured to detect occupancy and/or vacancy conditions in the space around the lighting load 104 in response to one of or both of the ultrasonic detection circuit and the PIR detection Since the PIR detection circuit may use different technology than the ultrasonic detection circuit, the dual-technology occupancy sensor may provide for an increased ability to detect the presence of an occupant in the space surrounding the sensor device 120′. In addition, the additional sensing circuit of the sensor device 120′ may also comprise, for example, a microwave detection circuit, a mm-wave radar, or any suitable detector or combination of detectors.
[0034] The sensor device 120′ may execute a configuration procedure (e.g., a calibration procedure), for example, to configure the operation of the sensor device 120′ in the space in which the sensor device 120′ is installed. For example, during the configuration procedure, the sensor device 120′ may be configured to operate in one of the small space mode and the large space mode during configuration of the sensor device. In addition, the sensor device 120′ may be configured to use both of the ultrasonic receiving elements or either one of the ultrasonic receiving elements during the configuration procedure. For example, the sensor device 120′ may be configured to execute the configuration procedure in response to a manual input, e.g., in response to an actuation of a button on the sensor device 120′ and/or in response to a received message (e.g., transmitted in response to an actuation of a button on a remote control and/or a soft button on a display of a mobile device, such as a smart phone or tablet). In addition, the sensor device 120′ may be configured to automatically execute the configuration procedure (e.g., as will be described in greater detail below). For example, the sensor device 120′ may be configured to periodically execute the configuration procedure (e.g., once a month) when the space in which the sensor device is located is vacant (e.g., as determined in response to the ultrasonic detection circuit and/or the PIR detection circuit). The configuration procedure may be an initial configuration procedure executed after installation when the objects in the space are in their intended positions and when the space is vacant. Further, the configuration procedure may be a maintenance (e.g., recalibration) procedure executed (e.g., periodically executed) after the initial execution of the configuration procedure to check for changes in the received ultrasonic waves (e.g., due to changes in the locations of the objects in the space).
[0035]
[0036] The sensor device 150 may comprise an enclosure 152 for housing electrical circuitry of the sensor device 150. The sensor device 150 may include an occupancy detection circuit (e.g., a first occupancy detection circuit), such as an ultrasonic detection circuit comprising a pair of ultrasonic elements, such as an ultrasonic transmitting element 153 and/or an ultrasonic receiving element 155, which may be housed in the enclosure 152. The enclosure 152 may comprise a first opening 154 and a second opening 156 in an outer surface 151 of the enclosure 152. The ultrasonic transmitting element 153 and the ultrasonic receiving element 155 may be positioned behind (e.g., positioned immediately behind) the first opening 154 and the second opening 156, respectively. The first opening 154 may allow ultrasonic waves (e.g., the ultrasonic waves 108) to be transmitted from the sensor device 150 by the ultrasonic transmitting element 153 and the second opening 156 may allow the ultrasonic waves to be received by the ultrasonic receiving element 155 inside the sensor device 150. The ultrasonic waves may be transmitted by the sensor device 150 at an ultrasonic transmission frequency f.sub.US (e.g., approximately 40 kHz).
[0037] The ultrasonic waves transmitted by the sensor device 150 may be reflected off objects in the space back towards the sensor device 150. The transmitted ultrasonic waves may be reflected off static objects in the space and moving objects in the space. The ultrasonic waves that are reflected off static objects may be characterized by the ultrasonic transmission frequency f.sub.US (e.g., exhibit no change in frequency). The ultrasonic waves that are reflected off moving objects may not be characterized by the ultrasonic transmission frequency f.sub.US, but may exhibit a change in frequency (e.g., a Doppler shift), which may indicate movement in the space (e.g., may indicate an occupancy condition). The sensor device 150 may be configured to determine whether occupancy conditions and/or vacancy conditions are presently occurring in the space in response to the ultrasonic waves received by the ultrasonic receiving element.
[0038] The first opening 154 may be sized and the ultrasonic transmitting element 153 may be located with respect to the first opening 154 to maximize the percentage of ultrasonic waves that are emitted by the ultrasonic transmitting element 153 that leave the enclosure 152 (e.g., to maximize the transmit power). In addition, the second opening 156 may be sized and the ultrasonic receiving element 155 may be located with respect to the second opening 156 to maximize the receive power. For example, each of the first and second openings 154, 156 may have a diameter D1 that is equal to approximately a wavelength λ.sub.US of the ultrasonic waves transmitted and received by the sensor device 150 (e.g., approximately 0.338 inches). In addition, each of the first and second openings 154, 156 may have a depth D2 (e.g., between the outer surface 151 of the enclosure 152 and the ultrasonic transmitting element 153 and the ultrasonic receiving element 155, respectively) that may be equal to approximately one-fourth of the wavelength λ.sub.US of the ultrasonic waves transmitted and received by the sensor device 150 (e.g., approximately 0.0845 inches). The enclosure 152 of the sensor device 150 may comprise a respective rib 257, 258 (e.g., a single rib) extending across each of the first and second openings 154, 156.
[0039] Since the sensor device 150 may be located closer to objects in the space when the sensor device 150 is installed in a small space, the received ultrasonic waves may be relatively large in magnitude as compared to when the sensor device 150 is installed in a large space. When the sensor device 150 is installed in a large space, the magnitude of the received ultrasonic waves may be too small to be processed by the ultrasonic receiving circuit of the sensor device 150. Some prior art sensor devices have relied on crosstalk between the ultrasonic transmitting element 153 and the ultrasonic receiving element 155 to guarantee proper operation in spaces of various sizes. For example, crosstalk between the ultrasonic transmitting element 153 and the ultrasonic receiving element 155 may occur when ultrasonic waves that are transmitted by the ultrasonic transmitting element 153 that are transmitted through the enclosure 152 to the ultrasonic receiving element 155 (e.g., and not out in the space).
[0040] Since the first opening 154 is sized and the ultrasonic transmitting element 153 is located with respect to the first opening 154 to maximize the transmit power, the sensor device 120 may be configured to operate in different modes to ensure proper operation of the sensor device 150 in spaces of various sizes. For example, the sensor device 150 may be configured to operate in a small space mode (e.g., a large-signal mode) and a large space mode (e.g., a small-signal mode). While in the small space mode, the sensor device 150 may be configured to receive and process ultrasonic waves having a relatively large magnitude (e.g., when the sensor device 150 is installed in small space). While in the large space mode, the sensor device 150 may be configured to receive and process ultrasonic waves 108 having a relatively small magnitude (e.g., when the sensor device 150 is installed in a large space).
[0041] While not shown in
[0042] In some examples, the sensor device 150 may also comprise an additional sensing circuit for detecting an occupancy and/or vacancy condition in the space (e.g., an additional occupant detection circuit). For example, the sensor device 150 may comprise an internal PIR detection circuit having a pyroelectric detector, which may be configured to receive infrared energy from an occupant in the space via a lens 159 located on the enclosure 152. The sensor device 150 may be configured to detect occupancy and/or vacancy conditions in the space around the lighting load in response to one of or both of the ultrasonic detection circuit and the PIR detection Since the PIR detection circuit may use different technology than the ultrasonic detection circuit, the dual-technology occupancy sensor may provide for an increased ability to detect the presence of an occupant in the space surrounding the sensor device 150. In addition, the additional sensing circuit of the sensor device 150 may also comprise, for example, a microwave detection circuit, a mm-wave radar, or any suitable detector or combination of detectors.
[0043] The sensor device 150 may execute a configuration procedure (e.g., a calibration procedure), for example, to configure the operation of the sensor device 150 in the space in which the sensor device 150 is installed. The sensor device 150 may comprise a cover portion 160 on which a button 162 and a visible indicator 164 may be provided. The sensor device 150 may also comprise additional buttons (not shown) and additional visible indicators (not shown) that may be accessed when the cover portion 160 is removed from the sensor device 150. During the configuration procedure, the button 162 and/or the additional buttons under the cover portion 160 may be actuated by a user, and the visible indicator 164 and/or the additional visible indicators under the cover portion 160 may be illuminated by the sensor device 150 to provide feedback. For example, the sensor device 150 may be configured to execute the configuration procedure in response to an actuation of the button 162 and/or the buttons under the cover portion 160. In addition, the control device 150 may be configured to operate in the small space mode and the large space mode in response to an actuation of the button 162 and/or the buttons under the cover portion 160. Further, the sensor device 150 may be configured to use both pairs of ultrasonic transmitting and receiving elements or either one or the other of the pairs ultrasonic transmitting and receiving elements in response to an actuation of the button 162 and/or the buttons under the cover portion 160. The sensor device 150 may also be configured to execute the configuration procedure and/or configure the operation of the sensor device 150 in response to one or more messages received from a remote programming device (e.g., a remote control and/or a mobile device). For example, the remote programming device may be configured to transmit the messages (e.g., via radio-frequency and/or infrared signals) to the sensor device 150 in response to an actuation of one or more buttons of the remote programming device.
[0044]
[0045] The sensor device 200 may comprise a control circuit 210 coupled to the ultrasonic transmitting element 202 via an ultrasonic transmitting circuit 220 for driving the ultrasonic transmitting element 202 to transmit the ultrasonic waves. The control circuit 210 may also be coupled to the ultrasonic receiving element 204 via an ultrasonic receiving circuit 230 for receiving the ultrasonic waves to thus detect an occupancy and/or vacancy condition (e.g., the presence and/or absence of an occupant) in a space in which the sensor device 200 is installed. For example, the control circuit 210 may include one or more of a processor (e.g., a microprocessor), a microcontroller, a programmable logic device (PLD), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or any suitable controller or processing device.
[0046] The sensor device 200 may comprise a memory 212 configured to store operational characteristics (e.g., such as operational settings, control parameters, indications of occupancy and/or vacancy conditions in the space, operating modes of the sensor device, etc.), association information for associations with other devices, and/or instructions for controlling electrical loads. The memory 212 may be implemented as an external integrated circuit (IC) or as an internal circuit of the control circuit 210. The memory 212 may comprise a computer-readable storage media or machine-readable storage media that maintains computer-executable instructions for performing one or more procedure and/or functions as described herein. For example, the memory 212 may comprise computer-executable instructions or machine-readable instructions that when executed by the control circuit configure the control circuit to provide one or more portions of the procedures described herein. The control circuit 210 may access the instructions from memory 212 for being executed to cause the control circuit 210 to operate as described herein, or to operate one or more other devices as described herein. The memory 212 may comprise computer-executable instructions for executing configuration software. For example, the operational characteristics and/or the association information stored in the memory 212 may be configured during a configuration procedure of the sensor device 200.
[0047] The sensor device 200 may comprise a communication circuit 214 that may allow the control circuit 210 to communicate (e.g., transmit and/or receive) communication signals, e.g., wired communication signals and/or wireless communication signals, such as radio-frequency (RF) signals. The communication circuit 214 may comprise, for example, an RF transceiver, an RF receiver, an RF transmitter, an infrared (IR) receiver, and/or other suitable wireless communication circuit. For example, the communication circuit 214 may be coupled to an antenna 215 for transmission and/or reception of the RF signals. The sensor device 200 may be configured to communicate messages (e.g., digital messages) with external control devices (e.g., load control devices, such as the load control device 100). For example, the control circuit 210 may be configured to transmit messages to the load control devices via the communication circuit 214 when an occupancy and/or vacancy condition is detected in response to the ultrasonic receiving circuit 230. In addition, the control circuit 210 to execute the configuration procedure and/or adjust the operational characteristics and/or settings of the sensor device 200 in response to messages received via the communication circuit 214 (e.g., received from a remote control and/or a mobile device).
[0048] The sensor device 200 may comprise a user interface circuit 216. The user interface circuit 216 may include, for example, one or more actuators (e.g., mechanical tactile switches) that may be actuated by buttons (e.g., the button 162 and/or the buttons under the cover portion 160 of the sensor device 150 shown in
[0049] The sensor device 200 may comprise a power source 218 for producing a power source voltage V.sub.PS for powering the control circuit 210 and other low-voltage circuitry of the sensor device 200. For example, the power source 218 may comprise one or more batteries and/or a photo-voltaic power source (e.g., a solar cell). In addition, the power source 218 may comprise one or more energy storage elements, such as super capacitors and/or rechargeable batteries. Further, the power source 218 may also be configured to receive power from an external power source, such as an external direct-current (DC) power source or an alternating-current (AC) power source. The sensor device 200 may also comprise a power supply 219 that may be configured to receive the power source voltage V.sub.PS and generate one or more DC supply voltages. For example, the power supply 219 may be configured to generate a first supply voltage V.sub.CC1 (e.g., approximately 3.3 volts) for powering the control circuit 210, the memory 212, the communication circuit 214, and/or the user interface circuit 216. In addition, the power supply 219 may be configured to generate a second supply voltage V.sub.CC2 (e.g., approximately 10 volts) for powering the ultrasonic transmitting circuit 220 and/or the ultrasonic receiving circuit 230.
[0050] The ultrasonic transmitting circuit 220 may be configured to drive the ultrasonic transmitting element 202 to cause the ultrasonic transmitting element 202 to emit ultrasonic waves, which may be transmitted from the sensor device 200. For example, the ultrasonic drive circuit 220 may comprise a drive circuit, such as an H-bridge drive circuit, for energizing the ultrasonic transmitting element 202. The control circuit 210 may generate an ultrasonic drive signal V.sub.DR, which may be received by the ultrasonic transmitting circuit 220 for causing the ultrasonic transmitting circuit 220 to generate an ultrasonic transmission signal V.sub.TX. The ultrasonic transmitting circuit 220 may drive the ultrasonic transmitting element 202 with the ultrasonic transmission signal V.sub.TX for causing the ultrasonic transmitting element 202 to emit the ultrasonic waves. For example, the ultrasonic transmission signal V.sub.TX may comprise a periodic oscillating voltage, such as an alternating-current (AC) voltage, a pulse-width modulated (PWM) voltage, a square-wave voltage, a triangle-wave voltage, and/or a sinusoidal voltage. The ultrasonic drive signal V.sub.DR may be characterized by an ultrasonic transmission frequency f.sub.US (e.g., approximately kHz) and a duty cycle of approximately 50% (e.g., or another appropriate duty cycle for transmitting the ultrasonic waves). The ultrasonic transmission signal V.sub.TX may also be characterized by the ultrasonic transmission frequency f.sub.US. The control circuit 210 may control a phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR to control a phase Φ.sub.TX of the transmitted ultrasonic waves. For example, the control circuit 210 may control the phase Φ.sub.TX of the transmitted ultrasonic waves to be zero.
[0051] The transmitted ultrasonic waves emitted by the ultrasonic transmitting element 202 may be reflected off objects (e.g., static objects and moving objects) in the space back towards the sensor device 200. The ultrasonic waves that are reflected off static objects may be characterized by the ultrasonic transmission frequency f.sub.US, and the ultrasonic waves that are reflected off moving objects may exhibit a change in frequency (e.g., a Doppler shift). For example, the ultrasonic waves that are reflected off moving objects may be characterized by a Doppler-shifted frequency f D s, such as approximately 39.5-40.0 kHz or 40.0-40.5 kHz. The change Δf in frequency (e.g., Δf=f.sub.DS—f.sub.US) due to the Doppler shift may be, for example, approximately 100-500 Hz. Reception of only non-Doppler-shifted reflected waves by the control device 200 may indicate a vacancy condition in the space, while reception of at least some Doppler-shifted reflected waves may indicate an occupancy condition in the space. Both the non-Doppler-shifted reflected waves and the Doppler-shifted reflected waves may be characterized by a phase delay Φ.sub.PD as compared to the transmitted ultrasonic waves due to the propagation delay of the ultrasound from the reflecting object. For example, the phase delay Φ.sub.PD may be the difference between a phase Φ.sub.RX of the received ultrasonic waves and the phase Φ.sub.TX of the transmitted ultrasonic waves.
[0052] The reflected ultrasonic waves may be received by the ultrasonic receiving element 204, which may generate an ultrasonic reception signal V.sub.RX (e.g., an ultrasonic reception voltage signal) in response to the received ultrasonic waves. For example, the ultrasonic reception signal V.sub.RX may comprise a periodic oscillating signal, e.g., a sinusoidal voltage. The received ultrasonic waves may be a sum of the Doppler-shifted reflected waves (e.g., reflected off moving objects) and the non-Doppler-shifted reflected waves (e.g., reflected off static objects). As a result, the ultrasonic reception signal V.sub.RX may be the sum of a non-Doppler-shifted reception signal V.sub.NS and a Doppler-shifted reception signal V.sub.DS. The ultrasonic reception signal V.sub.RX may be delayed from the ultrasonic transmission signal V.sub.TX by the phase delay Φ.sub.PD (e.g., between the received ultrasonic waves and the transmitted ultrasonic waves).
[0053] The ultrasonic receiving circuit 230 may receive the ultrasonic reception signal V.sub.RX and generate an ultrasonic detection signal V.sub.DET, e.g., that may indicate an occupancy or vacancy condition in the space in which the sensor device 200 is located. The ultrasonic receiving circuit 230 may comprise an amplifier circuit 240 that may receive and amplify the ultrasonic reception signal V.sub.RX to generate an amplified voltage V.sub.AMP. The amplifier circuit 240 may be configured to add an offset voltage V.sub.OFF (e.g., a DC offset voltage) to the ultrasonic reception signal V.sub.RX prior to amplification. The amplifier circuit 240 may be characterized by a gain a (e.g., approximately 10). For example, the amplified voltage V.sub.AMP may be a sinusoidal voltage characterized by a DC offset.
[0054] The ultrasonic receiving circuit 230 may also comprise an envelope detector circuit 250, which may receive the amplified signal V.sub.AMP and generate an envelope signal V.sub.ENV. The envelope detector circuit 250 may comprise, for example, an amplitude-modulation (AM) demodulator circuit. For example, the envelope detector circuit 250 may be characterized by a gain β (e.g., approximately two). The magnitude of the envelope signal V.sub.ENV may follow (e.g., be proportional to) the envelope of the amplified signal V.sub.AMP. For example, when there is not a Doppler shift in the received ultrasonic waves, the envelope signal V.sub.ENV may be a DC voltage having magnitude approximately equal to two times a peak magnitude of the amplified signal V.sub.AMP. In addition, when there is a Doppler shift in the received ultrasonic waves, the envelope signal V.sub.ENV may be a sinusoidal voltage characterized by a DC offset and a frequency f.sub.ENV that is approximately equal to the change Δf in frequency due to the Doppler shift.
[0055] The ultrasonic receiving circuit 230 may further comprise a filter circuit 260, which may receive and filter the envelope signal V.sub.ENV to generate the ultrasonic detection signal V.sub.DET (e.g., a filtered signal). The ultrasonic detection signal V.sub.DET may be received by the control circuit 210, which may be configured to sample the ultrasonic detection signal V.sub.DET in order to detect an occupancy and/or vacancy condition in response to the received ultrasonic waves. The filter circuit 260 may comprise, for example, a bandpass filter circuit. For example, the filter circuit 260 may be characterized with a bandwidth of approximately 500 Hz. The filter circuit 260 may also operate as an anti-aliasing filter to restrict the bandwidth of the ultrasonic detection signal V.sub.DET, such that the ultrasonic detection signal V.sub.DET may be appropriately sampled by the control circuit 210. For example, when there is a Doppler shift in the received ultrasonic waves, the ultrasonic detection signal V.sub.DET may be a sinusoidal voltage characterized by a frequency f.sub.DET that is approximately equal to the change Δf in frequency due to the Doppler shift.
[0056] The control circuit 210 may be configured to receive the ultrasonic detection signal V.sub.DET and detect an occupancy and/or vacancy condition in the space in which the sensor device 200 is installed in response to the ultrasonic detection signal V.sub.DET. For example, the control circuit 210 may comprise an analog-to-digital converter (ADC) for sampling the ultrasonic detection signal V.sub.DET. The control circuit 210 may be configured to determine that an occupancy condition exists when there is a Doppler shift in the received ultrasonic waves and the ultrasonic detection signal V.sub.DET is a sinusoidal voltage (e.g., having a frequency of approximately 100-500 Hz). The control circuit 210 may be configured to determine that a vacancy condition exists when there is not a Doppler shift in the received ultrasonic waves and the magnitude of the ultrasonic detection signal V.sub.DET is substantially small (e.g., approximately zero volts and/or only having magnitude due to noise). For example, the control circuit 210 may be configured to detect the occupancy condition when the magnitude of the ultrasonic detection signal V.sub.DET is greater than an upper voltage threshold V.sub.TH+ (e.g., approximately 50% of a maximum magnitude of the ultrasonic detection signal V.sub.DET) or less than a lower voltage threshold V.sub.TH− (e.g., approximately 25% of the maximum magnitude of the ultrasonic detection signal V.sub.DET). Since the ultrasonic detection signal V.sub.DET has a DC offset, the magnitude of the ultrasonic detection signal V.sub.DET may remain between the upper voltage threshold V.sub.TH+ and the lower voltage threshold V.sub.TH− when there is not an occupancy condition in the space. The upper voltage threshold V.sub.TH+ and the lower voltage threshold V.sub.TH− may be predetermined fixed values and/or may be adjustable by the control circuit 210. In addition, the control circuit 210 may be configured to digitally filter the ultrasonic detection signal V.sub.DET received from the filter circuit 270 to provide additional filtering before attempting to detect an occupancy and/or vacancy condition.
[0057] While not shown in
[0058] During the configuration procedure of the sensor device 200, the sensor device 200 may be configured to use both of the ultrasonic receiving circuits (e.g., both the first ultrasonic receiving circuit 230 and the second ultrasonic receiving circuit) or either one of the ultrasonic receiving circuits (e.g., either the first ultrasonic receiving circuit 230 or the second ultrasonic receiving circuit). When the sensor device 200 is configured to use both of the ultrasonic receiving circuits, the control circuit 210 may be configured to detect an occupancy and/or vacancy condition in response to the ultrasonic detection signals generated by both of the ultrasonic receiving circuits of the sensor device 200. When the sensor device 200 is configured to use the first ultrasonic receiving circuit 230, the control circuit 210 may be configured to cease being responsive to the second ultrasonic detection signal generated by the second ultrasonic receiving circuit and detect an occupancy and/or vacancy condition in response to the first ultrasonic detection signal V.sub.DET generated by the first ultrasonic receiving circuit 230. When the sensor device 200 is configured to use the second ultrasonic receiving circuit, the control circuit 210 may be configured to cease being responsive to the first ultrasonic detection signal V.sub.DET and detect an occupancy and/or vacancy condition in response to the second ultrasonic detection signal generated by the second ultrasonic receiving circuit. When the control circuit is configured to use either both or either of the ultrasonic receiving circuits (e.g., at all times), the control circuit may be configured to generate both ultrasonic drive signals for causing both ultrasonic transmitting elements to emit ultrasonic waves.
[0059] In some examples, the sensor device 200 may also comprise an additional occupant detection circuit, such as a passive infrared (PIR) detection circuit 290. The PIR detection circuit 290 may comprise a pyroelectric detector configured to receive infrared energy from an occupant in the space via a lens of the control device 200 (e.g., the lens 129, 129′, 159). In response to the infrared energy received by the pyroelectric detector, the PIR detection circuit 290 may be configured to generate a PIR detection signal V.sub.PIR, which may be received by the control circuit 210 and may indicate an occupancy and/or vacancy condition in the space. The control circuit 210 may be configured to detect occupancy and/or vacancy conditions in the space in response to one of or both of the ultrasonic detection signal V].sub.DET generated by the ultrasonic receiving circuit 230 and PIR detect signal V.sub.PIR generated by the PIR detection circuit 290. Since the PIR detection circuit 290 may use different technology than the ultrasonic transmitting circuit 220 and the ultrasonic receiving circuit 230, the dual-technology occupancy sensor may provide for an increased ability to detect the presence of an occupant in the space surrounding the sensor device.
[0060] As previously mentioned, the received ultrasonic waves may be relatively large in magnitude when the sensor device 200 is installed in a small space as compared to when the sensor device 200 is installed in a large space. When the sensor device 200 is installed in a small space, the magnitude of the non-Doppler-shifted reception signal V.sub.NS and/or the magnitude of the Doppler-shifted reception signal \Tips may be greater than the magnitudes of those signals when the sensor device 120 is installed in a large space. When the sensor device 200 is installed in a small space, the magnitude of the ultrasonic reception signal V.sub.RX (e.g., the combination of the non-Doppler-shifted reception signal V.sub.NS due to the non-Doppler-shifted reflected waves and/or the magnitude of the Doppler-shifted reception signal V.sub.DS due to the Doppler-shifted reflected waves) may be large enough such that the circuitry of the ultrasonic receiving circuit 230 (e.g., the amplifier circuit 240, the envelope detector circuit 250, and/or the filter circuit 260) may properly process the ultrasonic reception signal V.sub.RX. However, when the sensor device 200 is installed in a large space, the magnitude of the ultrasonic reception signal V.sub.RX may be not large enough for the circuitry of the ultrasonic receiving circuit 230 to properly process the ultrasonic reception signal V.sub.RX.
[0061]
[0062] A control circuit 210′ of the sensor device 200′ may be configured to generate a signal generation control signal V.sub.CON, which may be received by the signal generator circuit 270 for controlling the generation of the supplemental signal V.sub.SUP. For example, the control circuit 210′ may be configured to pulse-width modulate the signal generation control signal V.sub.CON at the ultrasonic detection frequency f.sub.US with a duty cycle of approximately 50% (e.g., the signal generator circuit 270 may be configured to receive a pulse-width modulated signal characterized by the ultrasonic detection frequency f.sub.US and a duty cycle of approximately 50%). The signal generator circuit 270 may be configured to generate the supplemental signal V.sub.SUP as a sinusoidal signal characterized (e.g., an approximate sinusoidal signal) by the ultrasonic detection frequency f.sub.US in response to the signal generation control signal V.sub.CON (e.g., the pulse-width modulated signal). The supplemental signal V.sub.SUP may be characterized by a DC offset and a peak-to-peak magnitude V.sub.P-P. For example, the signal generator circuit 270 may be configured to filter the signal generation control signal V.sub.CON (e.g., using a low-pass or band-pass filter) to remove harmonics and to generate the supplemental signal V.sub.SUP as an approximate sinusoidal signal. The supplemental signal V.sub.SUP may be added to the ultrasonic reception signal V.sub.RX prior to reception by the amplifier circuit 240 (e.g., the input signal V.sub.IN may be the sum of the ultrasonic reception signal V.sub.RX and the supplemental signal V.sub.SUP). With the supplemental signal V.sub.SUP added to the ultrasonic reception signal V.sub.RX, the magnitude of the signals processed by the ultrasonic receiving circuit 230 (e.g., the input signal V.sub.IN, the amplified signal V.sub.AMP, and/or the envelope signal V.sub.ENV) may be large enough to be properly processed. For example, the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP may have a nominal peak-to-peak magnitude of approximately 2 volts.
[0063] The control circuit 210′ may be configured to control a phase Φ.sub.CON of the signal generation control signal V.sub.CON. The control circuit 210′ may be configured to control the phase Φ.sub.CON of the signal generation control signal V.sub.CON to adjust a phase Φ.sub.SUP of the supplemental signal V.sub.SUP (e.g., with respect to the ultrasonic drive voltage V.sub.DR). For example, the control circuit 210′ may be configured to pulse-width modulate the signal generation control signal V.sub.CON such that the pulse-width modulated signal generated by the control circuit is initially in phase with the ultrasonic drive signal V.sub.DR (e.g., the signal generation control signal V.sub.CON may be identical to the ultrasonic drive signal V.sub.DR). For example, the control circuit 210′ may control the phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR and the phase Φ.sub.CON of the signal generation control signal V.sub.CON to both initially be zero (e.g., so that the ultrasonic drive signal V.sub.DR and the signal generation control signal V.sub.CON are in phase). In addition, the control circuit 210′ may be configured to adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON as compared to the phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR. For example, the control circuit 210′ may be configured to adjust the phase Φ.sub.SUP of the supplemental signal V.sub.SUP to be approximately equal to the phase Φ.sub.RX of the received ultrasonic waves (e.g., the phase delay (PD).
[0064] The control circuit 210′ may be configured to control the signal generator circuit 270 to adjust a magnitude, e.g., the peak-to-peak magnitude V.sub.P-P, of the supplemental signal V.sub.SUP. The control circuit 210′ may be configured to generate a magnitude-adjustment control signal V.sub.MAG-ADJ, which may be received by the signal generator circuit 270 for adjusting the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP. The control circuit 210′ may be configured to adjust a magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ (e.g., to approximately the first supply voltage V.sub.CC1 and/or to approximately circuit common) to adjust the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to one of two different magnitudes. For example, the control circuit 210′ may be configured to adjust the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to the nominal peak-to-peak magnitude (e.g., approximately 2 volts) and to a reduced peak-to-peak magnitude (e.g., approximately 0.7 volts). In some examples, the control circuit 210′ may be configured to generate multiple magnitude-adjustment control signals for adjusting the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to respective magnitudes. In addition, the control circuit 210′ may comprise a digital-to-analog converter (DAC) for generating the magnitude-adjustment control signal V.sub.MAG-ADJ and may be configured to adjust (e.g., continuously adjust) a DC magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ between two magnitudes (e.g., between the nominal peak-to-peak magnitude and approximately zero volts).
[0065] Like the sensor device 200 shown in
[0066] The control circuit 210′ of the sensor device 200′ may be configured to execute a configuration procedure to configure the operational characteristics of the sensor device 210′ (e.g., as stored in the memory 212). The control circuit 210′ may configured to configure the same operational characteristics of the sensor device 200′ as the control circuit 210 is able to configure (e.g., using the configuration procedure of the sensor device 200 described above). In addition, the control circuit 210′ may be configured to configure the operation of the signal generation circuit 270. For example, the control circuit 210′ may be configured to execute the configuration procedure and/or adjust the operation of the signal generation circuit 270 in response to an actuation of one or more of the actuators of the user interface circuit 216 and/or in response to a message receive via the communication circuit 214 (e.g., transmitted in response to an actuation of a button on a remote control and/or a soft button on a display of a mobile device, such as a smart phone or tablet). In addition, the control circuit 210′ may be configured to adjust (e.g., automatically adjust) the operation of the signal generation circuit 270 during the configuration procedure. For example, the sensor device 200′ may be configured to periodically execute the configuration procedure (e.g., once a month) when the space in which the sensor device 200′ is located is vacant (e.g., as determined in response to the ultrasonic receiving circuit 230 and/or the PIR detection circuit 290).
[0067] The control circuit 210′ may be configured to adjust a space size setting of the sensor device 200′ during the configuration procedure of the sensor device 200′. For example, the sensor device 200′ may be configured with one or more space size options for the space size setting that may be selected during the configuration procedure of the sensor device 200′. The one or more space size options may include, for example, a small space option (e.g., a small space mode) and a large space option (e.g., a large space mode). For example, the control circuit 210′ may be configured to select one of the space size options in response to actuations of the one or more actuators of the user interface circuit 216 and/or in response to a message received via the communication circuit 214.
[0068] In addition, the control circuit 210′ may be configured to automatically determine to operate in one of the small space mode and the large space mode. For example, the control circuit 210′ may be configured to monitor a magnitude of a voltage of the ultrasonic receiving circuit 230 (e.g., a monitored voltage) that may indicate that one or more signals of the ultrasonic receiving circuit 230 (e.g., the input signal V.sub.IN and/or the amplified signal V.sub.AMP) may be at appropriate magnitudes to be properly processed (e.g., to allow the ultrasonic receiving circuit 230 to generate the ultrasonic detection signal V.sub.DET). For example, the magnitude of the envelope signal V.sub.ENV may indicate that one or more signals of the ultrasonic receiving circuit 230 may be at appropriate magnitudes to be properly processed when the magnitude of the envelope signal V.sub.ENV is sufficiently large, and may be at magnitudes that may not be properly processed when the magnitude of the envelope signal V.sub.ENV is sufficiently small (e.g., as will be described in greater detail below).
[0069] The control circuit 210′ may determine to operate in the small space mode in response to the magnitude of the voltage of the monitored voltage (e.g., in response to the magnitude of the envelope signal V.sub.ENV). For example, the sensor device 200′ may comprise a low-pass filter (LPF) circuit 292 that is configured to receive the envelope signal V.sub.ENV and generate a filtered envelope signal V.sub.ENV-F. The low-pass filter circuit 292 may comprise, for example, a resistor-capacitor (RC) filter circuit. For example, the low-pass filter circuit 292 may be configured to filter the envelope signal V.sub.ENV, such that a magnitude of the filtered envelope signal V.sub.ENV-F indicates the magnitude of the envelope signal V.sub.ENV and thus also indicates that one or more signals of the ultrasonic receiving circuit 230 (e.g., the input signal V.sub.IN and/or the amplified signal V.sub.AMP) may be at appropriate magnitudes to be properly processed. The control circuit 210′ may comprise an analog-to-digital converter (ADC) for sampling the filtered envelope signal V.sub.ENV-F. In some examples, the control circuit 210′ may be configured to receive the envelope signal V.sub.ENV and filter the envelope signal V.sub.ENV using a digital filter (e.g., the sensor device 200′ may not comprise the low-pass filter circuit 292).
[0070] The control circuit 210′ may be configured to monitor the magnitude of the filtered envelope signal V.sub.ENV-F (e.g., when the space is vacant) and automatically select one of the small space mode and the large space mode in which to operate. For example, the control circuit 210′ may determine to operate in the small space mode when the magnitude of the filtered envelope signal V.sub.ENV-F indicates that the one or more signals of the ultrasonic receiving circuit 230 may be at appropriate magnitudes to be properly processed, and may determine to operate in the large space mode when the magnitude of the filtered envelope signal V.sub.ENV-F indicates that the one or more signals of the ultrasonic receiving circuit 230 may not be at appropriate magnitudes to be properly processed.
[0071] When the received ultrasonic waves are approximately 180° out of phase with the transmitted ultrasonic waves (e.g., the phase delay Φ.sub.RD between the received ultrasonic waves and the transmitted ultrasonic waves is approximately 180°) and the magnitudes of the ultrasonic reception signal V.sub.RX and the supplemental signal V.sub.SUP are approximately equal, the addition of the supplemental signal V.sub.SUP to the ultrasonic reception signal V.sub.RX may cause the input signal V.sub.IN to reduce in magnitude (e.g., approximately zero volts), such that the ultrasonic receiving circuit 230 may not be able to properly process the input signal V.sub.IN. The control circuit 210′ may be configured to adjust (e.g., automatically adjust) the phase Φ.sub.SUP of the supplemental signal V.sub.SUP to a value at which the ultrasonic receiving circuit is able to properly process the input signal V.sub.IN. For example, the control circuit 210′ may be configured to monitor the magnitude of the voltage of the ultrasonic receiving circuit 230 (e.g., the envelope signal V.sub.ENV and/or the filtered envelope signal V.sub.ENV-F) that indicates that one or more signals of the ultrasonic receiving circuit 230 may be at appropriate magnitudes to be properly processed. The control circuit 210′ may be configured to monitor the magnitude of the filtered envelope signal V.sub.ENV-F (e.g., when the space is vacant) and periodically adjust the phase Φ.sub.SUP of the supplemental signal V.sub.SUP until the magnitude of the envelope signal V.sub.ENV (e.g., as indicated by the magnitude of the filtered envelope signal V.sub.ENV-F) is at a magnitude that indicates that the signals of the ultrasonic receiving circuit 230 may be properly processed to generate the ultrasonic detection signal V.sub.DET.
[0072] Environmental characteristics of the space in which the sensor device 200′ is installed may cause a magnitude of a noise floor of the ultrasonic detection signal V.sub.DET to increase. During the configuration procedure, the control circuit 210′ may also be configured to adjust (e.g., automatically adjust) the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP in dependence upon the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET. For example, the control circuit 210′ may be configured to determine the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET and adjust the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP in response to the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET. For example, the magnitude of the detection signal V.sub.DET may indicate the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET (e.g., when the space in which the sensor device 210′ is installed is vacant). The control circuit 210′ may be configured to sample the ultrasonic detection signal V.sub.DET (e.g., using the ADC) to determine the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET). In some examples, the control circuit 210′ may determine the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET by averaging the samples of the ultrasonic detection signal V.sub.DET overtime. The control circuit 210′ may be configured to determine the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET when the space in which the sensor device 200′ is installed is vacant (e.g., as determined in response to the PIR detection circuit 290).
[0073] The control circuit 210′ may be configured to set the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP in response to the magnitude of the ultrasonic detection signal V.sub.DET. For example, the control circuit 210′ may be configured to compare the magnitude of the ultrasonic detection signal V.sub.DET to a noise floor threshold V.sub.TH-NF (e.g., approximately 150-300 millivolts). The control circuit 210′ may be configured to set the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to a first magnitude (e.g., the nominal peak-to-peak magnitude) when the magnitude of the ultrasonic detection signal V.sub.DET is less than the noise floor threshold V.sub.TH-NF, and to set the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to a second magnitude (e.g., the reduced peak-to-peak magnitude) when the magnitude of the ultrasonic detection signal V.sub.DET is greater than (e.g., greater than or equal to) the noise floor threshold V.sub.TH-NF. In some examples, the control circuit 210′ may be configured to set the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP as a function of the magnitude of the ultrasonic detection signal V.sub.DET.
[0074] While the sensor device 200′ includes the signal generator circuit 270 as shown in
[0075]
[0076] The sensor device 300 may comprise a control circuit 310 (e.g., the control circuits 210, 210′). The control circuit 310 may generate an ultrasonic drive signal V.sub.DR, which may be received by an ultrasonic transmitting circuit 320 (e.g., the ultrasonic transmitting circuit 220) for causing the ultrasonic transmitting circuit 320 to generate the ultrasonic transmission signal V.sub.TX for driving the ultrasonic transmitting element 302. The control circuit 310 may be coupled to the ultrasonic receiving element 304 via an ultrasonic receiving circuit 330 (e.g., the ultrasonic receiving circuit 230) for receiving the ultrasonic waves to thus detect an occupancy and/or vacancy condition in a space in which the sensor device 300 is installed. For example, the control circuit 310 may include one or more of a processor (e.g., a microprocessor), a microcontroller, a programmable logic device (PLD), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or any suitable controller or processing device. The control circuit 310 may be powered from a first supply voltage V.sub.CC1 (e.g., the first supply voltage V.sub.CC1 generated by the power supply 219, such as approximately 3.3 volts). The control circuit 310 may generate an ultrasonic drive signal (e.g., the ultrasonic drive signal V.sub.DR shown in
[0077] The ultrasonic receiving circuit 330 may comprise an amplifier circuit 340 (e.g., the amplifier circuit 240), an envelope detector circuit 350 (e.g., the envelope detector circuit 250), and a filter circuit 360 (e.g., the filter circuit 260). The ultrasonic receiving circuit 330 may receive an input signal V.sub.IN (e.g., which may be proportional to the ultrasonic reception signal V.sub.RX) and generate an ultrasonic detection signal V.sub.DET. The control circuit 310 may sample the ultrasonic detection signal V.sub.DET in order to detect an occupancy and/or vacancy condition in response to the received ultrasonic waves.
[0078] The amplifier circuit 340 of the ultrasonic receiving circuit 330 may be configured to receive and amplify the input signal V.sub.IN to generate an amplified signal V.sub.AMP. The amplifier circuit 340 may comprise an operational amplifier U341 having a non-inverting input configured to receive the input signal V.sub.IN. The operational amplifier U341 may be powered from a second supply voltage V.sub.CC2 (e.g., the second supply voltage V.sub.CC2 generated by the power supply 219, such as approximately 10 volts). The ultrasonic receiving element 304 may be coupled to the non-inverting input of the operational amplifier U341 of the amplifier circuit 330 via a capacitor C308 (e.g., having a capacitance of approximately 470 pF).
[0079] The amplifier circuit 340 may comprise a first filter circuit including the series combination of a resistor R342 (e.g., having a resistance of approximately 10 kΩ) and a capacitor C343 (e.g., having a capacitance of approximately 2.2 nF). The series combination of the resistor R342 and the capacitor C343 may be coupled between an inverting input of the operational amplifier U341 and circuit common. The amplifier circuit 340 may comprise a second filter circuit including the parallel combination of a resistor R344 (e.g., having a resistance of approximately 90.9 kΩ) and a capacitor C345 (e.g., having a capacitance of approximately 5.6 pF). The parallel combination of the resistor R344 and the capacitor C345 may be coupled between the inverting input and the output of the operational amplifier U341. For example, the amplifier circuit 340 may be characterized by a gain a of approximately 10 (e.g., approximately 20 dB).
[0080] The amplifier circuit 340 may be configured to add an offset voltage V.sub.OFF (e.g., a DC offset voltage) to the input voltage V.sub.IN at the non-inverting input of the operational amplifier U341. The amplifier circuit 340 may comprise a resistive divider circuit including resistors R346, R347 (e.g., each having a resistance of approximately 1 MΩ). The resistive divider circuit may be coupled between the second supply voltage V.sub.CC2 and circuit common, such that the offset voltage V.sub.OFF (e.g., having a magnitude of approximately 5 V) may be produced at the junction of the resistors R346, R347. The amplifier circuit 340 may comprise a capacitor C348 (e.g., having a capacitance of approximately 1 μF), which may be coupled between the junction of the resistors R346, R347 and circuit common. The offset voltage V.sub.OFF may be coupled to the non-inverting input of the operational amplifier U341 via a resistor R349 (e.g., having a resistance of approximately 1 MΩ), such that the input voltage V.sub.IN may be biased around the offset voltage V.sub.OFF. For example, the input voltage V.sub.IN may be a sinusoidal voltage characterized by a DC offset approximately equal to the offset voltage V.sub.OFF.
[0081] The amplified signal V.sub.AMP generated by the amplifier circuit 340 may be a sinusoidal voltage characterized by a DC offset equal to an offset voltage V.sub.OFF-A (e.g., approximately 5 V). The magnitude of the amplified signal V.sub.AMP may oscillate between a high-side voltage V.sub.HI and a low-side voltage V.sub.LO. For example, the amplified signal V.sub.AMP may have a peak-to-peak magnitude of approximately 2 volts. The amplified signal V.sub.AMP may be characterized by a high-peak voltage V.sub.PK-HI, which may be the difference between the high-side voltage V.sub.HI and the offset voltage V.sub.OFF-A (e.g., V.sub.PK-HI=V.sub.HI-V.sub.OFF-A). The amplified signal V.sub.AMP may be characterized by a low-peak voltage V.sub.PK-LO, which may be the difference between the offset voltage V.sub.OFF-A and the low-side voltage V.sub.LO (e.g., V.sub.PK-LO=V.sub.OFF-A−V.sub.LO). For example, the high-peak voltage V.sub.PK-HI may be approximately equal to the low-peak voltage V.sub.PK-LO.
[0082] The envelope detector circuit 350 may receive the amplified signal V.sub.AMP and generate an envelope signal V.sub.ENV, which may have a magnitude that follows the envelope of the amplified signal V.sub.AMP. The envelope detector circuit 350 may comprise, for example, an AM demodulator circuit. For example, the envelope detector circuit 350 may be characterized by a gain β of approximately two (e.g., approximately 6 dB). The envelope signal V.sub.ENV may be generated across the parallel combination of a resistor R352 (e.g., having a resistance of approximately 200 kΩ) and a capacitor C354 (e.g., having a capacitance of approximately 2.2 nF). The output of the operational amplifier U341 of the amplifier circuit 330 may be coupled to the parallel combination of the resistor R352 and the capacitor C354 via the series combination of a capacitor C355 (e.g., having a capacitance of approximately 2.2 nF) and a first diode D356. The envelope detector circuit 350 may also comprise a second diode D358 coupled between circuit common and the junction of the capacitor C354 and the first diode D356.
[0083] When the magnitude of the amplified signal V.sub.AMP is near the low-side voltage V.sub.LO, the capacitor C355 may be configured to charge through the second diode D358 to a voltage that is approximately equal to the low-peak voltage V.sub.PK-LO of the amplified signal V.sub.AMP minus the forward voltage drop of the second diode D358. When the magnitude of the amplified signal V.sub.AMP is near the high-side voltage V.sub.HI, the voltage at the output of the operational amplifier U341 plus the voltage across the capacitor C355 may be coupled across the parallel combination of the resistor R352 and the capacitor C354. Accordingly, the capacitor C354 may be configured to charge through the first diode D356 to a voltage that is approximately equal to the high-peak voltage V.sub.PK-HI plus the low-peak voltage V.sub.PK-LO minus the forward voltage drops of the first and second diodes D356, D358. Since the high-peak voltage V.sub.PK-HI may be approximately equal to the low-peak voltage V.sub.PK-LO, the magnitude of the envelope signal V.sub.ENV (e.g., the voltage across the parallel combination of the resistor R352 and the capacitor C354) may be equal to approximately two times the high-peak voltage V.sub.PK-HI minus the forward voltage drops of the first and second diodes D356, D358. In some examples, the envelope detector circuit 340 may not comprise the capacitor C355 and the second diode D358, and the capacitor C354 may be configured to charge to the high-peak voltage V.sub.PK-HI minus the forward voltage drop of the first diode D356 (e.g., the envelope detector 350 may have a gain of approximately one).
[0084] When there is not a Doppler shift in the received ultrasonic waves, the high-peak voltage V.sub.PK-HI and the low-peak voltage V.sub.PK-LO of the amplified signal V.sub.AMP may be substantially constant with respect to time and the envelope signal V.sub.ENV may have a substantially constant magnitude. However, when the received ultrasonic waves include some Doppler-shifted reflected waves (e.g., which are added to non-Doppler-shifted ultrasonic waves), there will be some low-frequency ripple in the high-peak voltage V.sub.PK-HI and the low-peak voltage V.sub.PK-LO of the amplified signal V.sub.AMP, where the low-frequency ripple is at a frequency approximately equal to the change Δf in frequency due to the Doppler shift. Accordingly, the envelope signal V.sub.ENV may be a sinusoidal voltage characterized by a frequency f.sub.ENV approximately equal to the change Δf in frequency due to the Doppler shift (e.g., when all of the Doppler-shifted reflected waves are at a single frequency). When the Doppler-shifted reflected waves are at multiple frequencies, the envelope signal V.sub.ENV may be not be a sinusoidal voltage, but may still be an AC voltage (e.g., not a DC voltage).
[0085] The filter circuit 360 may receive and filter the envelope signal V.sub.ENV to generate the ultrasonic detection signal V.sub.DET (e.g., a filtered signal). For example, the filter circuit 360 may comprise a bandpass filter circuit that may be characterized with a bandwidth of approximately 500 Hz. The filter circuit 360 may also operate as an anti-aliasing filter to restrict the bandwidth of the ultrasonic detection signal V.sub.DET, such that the ultrasonic detection signal V.sub.DET may be appropriately sampled by the control circuit 310. The filter circuit 360 may be configured to bias the ultrasonic detection signal V.sub.DET about a reference voltage V.sub.REF, which may be equal to, for example, approximately half of the first supply voltage V.sub.CC1 (e.g., V.sub.REF V.sub.CC1/2). For example, when there is a Doppler shift in the received ultrasonic waves, the magnitude of the ultrasonic detection signal V.sub.DET may be approximately equal to the reference voltage V.sub.REF and/or may be characterized by noise (e.g., due the ultrasonic receiving circuit 330 and/or the control circuit 310). When there is a Doppler shift in the received ultrasonic waves, the ultrasonic detection signal V.sub.DET may be an AC voltage, e.g., a sinusoidal voltage characterized by a frequency f.sub.DET approximately equal to the change Δf in frequency due to the Doppler shift.
[0086] When the sensor device 300 is installed in a small space, the received ultrasonic waves may be relatively large as compared to when the sensor device 300 is installed in a large space and the magnitude of the ultrasonic reception signal V.sub.RX may be large enough that the circuitry of the ultrasonic receiving circuit 330 may properly process the ultrasonic reception signal V.sub.RX. For example, the magnitude of the amplified signal V.sub.AMP (e.g., the high-peak voltage V.sub.PK-HI and/or the low-peak voltage V.sub.PK-LO) may be larger than the forward voltage drops of the diodes D356, D358, such that the envelope signal V.sub.ENV may be generated across the capacitor C354. However, when the sensor device 300 is installed in a large space, the magnitude of the amplified signal V.sub.AMP may be not exceed the forward voltage drops of the diodes D356, D358, and thus the envelope detector circuit 350 may not be able to generate the envelope signal V.sub.ENV.
[0087] The sensor device 300 may comprise a signal generator circuit 370 (e.g., the signal generator circuit 270), which may be configured to generate a supplemental signal V.sub.SUP to be combined with (e.g., added to) the ultrasonic reception signal V.sub.RX prior to reception by the amplifier circuit 340. The addition of the supplemental signal V.sub.SUP to the ultrasonic reception signal V.sub.RX may ensure that the magnitudes of the amplified signal V.sub.AMP (e.g., the high-peak voltage V.sub.PK-HI and/or the low-peak voltage V.sub.PK-LO) exceed the forward voltage drops of the diodes D356, D358, such that the envelope detector circuit 350 may appropriately generate the envelope signal V.sub.ENV across the capacitor C354. The control circuit 310 may be configured to generate a signal generation control signal V.sub.CON, which may be received by the signal generator circuit 370 for controlling the generation of the supplemental signal V.sub.SUP. For example, the control circuit 310 may be configured to pulse-width modulate the signal generation control signal V.sub.CON at the ultrasonic detection frequency f.sub.US with a duty cycle of approximately 50%. The signal generator circuit 370 may comprise a drive circuit 371 (e.g., a level-translator circuit including one or more transistors). The drive circuit 371 may receive the signal generation control signal V.sub.CON (e.g., a pulse-width modulated signal having a magnitude approximately equal to the magnitude of the first supply voltage V.sub.CC1) and generate a pulse—with modulated signal V.sub.PWM having a magnitude approximately equal to the magnitude of the second supply voltage V.sub.CC2.
[0088] The pulse—with modulated signal V.sub.PWM generated by the drive circuit 371 may be received by a two-stage resistor-capacitor (RC) circuit (e.g., a filter circuit) for generating the supplemental signal V.sub.SUP. The signal generator circuit 370 may comprise a first RC circuit having a resistor R372 (e.g., having a resistance of approximately 25 kΩ) and a capacitor C373 (e.g., having a capacitance of approximately 150 pF), and a second RC circuit having a resistor R374 (e.g., having a resistance of approximately 25 kΩ) and a capacitor C375 (e.g., having a capacitance of approximately 150 pF). For example, when the drive circuit 361 drives the magnitude of the pulse—with modulated signal V.sub.PWM high towards the second supply voltage V.sub.CC2, the capacitor C363 may charge through the resistor R372 towards the magnitude of the second supply voltage V.sub.CC2. When the drive circuit 371 drives the magnitude of the pulse—with modulated signal V.sub.PWM low towards circuit common, the capacitor C373 may discharge through the resistor R372 towards approximately zero volts. Similarly, the capacitor C375 may charge and discharge through the resistor R374 in response to the charging and discharging of the capacitor C373 to produce the supplemental voltage V.sub.SUP across the capacitor C375. For example, the supplemental signal V.sub.SUP may comprise a periodic oscillating voltage (e.g., such as an AC voltage, a triangle-wave voltage, and/or an approximate sinusoidal voltage) characterized by the ultrasonic detection frequency f.sub.US. The supplemental signal V.sub.SUP may be characterized by a DC offset and a peak-to-peak magnitude V.sub.P-P. For example, the two-stage RC circuit of the signal generator circuit 370 (e.g., including the resistor R372, the capacitor C373, the resistor R374, and the capacitor C375) may be configured to filter the pulse—with modulated signal V.sub.PWM to remove harmonics and to generate the supplemental signal V.sub.SUP as an approximate sinusoidal signal.
[0089] The supplemental signal V.sub.SUP may be coupled to the non-inverting input of the operational amplifier U341 of the amplifier circuit 340 via a series combination of a resistor R376 (e.g., having a resistance of approximately 175 kΩ) and a capacitor C377 (e.g., having a capacitance of approximately 470 pF). The supplemental signal V.sub.SUP may be combined with (e.g., added to) the ultrasonic reception signal V.sub.RX prior to reception by the amplifier circuit 340 (e.g., the input signal V.sub.IN at the non-inverting input of the operational amplifier U341 may be the sum of the ultrasonic reception signal V.sub.RX and the supplemental signal V.sub.SUP). With the supplemental signal V.sub.SUP added to the ultrasonic reception signal V.sub.RX, the magnitude of the signals processed by the ultrasonic receiving circuit 330 (e.g., the input signal V.sub.IN, the amplified signal V.sub.AMP, and/or the envelope signal V.sub.ENV) may be large enough to be properly processed. For example, the high-peak voltage V.sub.PK-HI and the low-peak voltage V.sub.PK-LO of the amplified signal V.sub.AMP may each be larger than the forward voltages of the diodes D356, D358 of the envelope detector circuit 350.
[0090] The control circuit 310 may be configured to control a phase Φ.sub.CON of the signal generation control signal V.sub.CON for adjusting a phase Φ.sub.SUP of the supplemental signal V.sub.SUP (e.g., with respect to the ultrasonic drive voltage V.sub.DR). For example, the control circuit 310 may generate (e.g., initially generate) the signal generation control signal V.sub.CON such that the pulse-width modulated signal V.sub.PWM initially generated by the drive circuit 371 of the signal generator circuit 370 is in phase with the ultrasonic drive signal V.sub.DR. For example, the control circuit 310 may control (e.g., initially control) the phase Φ.sub.CON of the signal generation control signal V.sub.CON to be zero. The control circuit 310 may be configured to generate (e.g., initially generate) the signal generation control signal V.sub.CON in phase with the ultrasonic drive signal V.sub.DR (e.g., the rising and falling edges of the signal generation control signal V.sub.CON may occur as the same times at the rising and falling edges of the ultrasonic drive signal V.sub.DR). When the signal generation control signal V.sub.CON is in phase with the ultrasonic drive signal V.sub.DR, the control circuit may generate the rising and falling edges of the signal generation control signal V.sub.CON at the same times as the rising and falling edges of the ultrasonic drive signal V.sub.DR, respectively. In addition, the control circuit 310 may be configured to adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON as compared to the phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR. For example, the control circuit 310 may be configured to adjust the phase Φ.sub.SUP of the supplemental signal V.sub.SUP to be approximately equal to the phase Φ.sub.RX of the received ultrasonic waves.
[0091] The control circuit 310 may be configured to control the signal generator circuit 370 to adjust a magnitude, e.g., the peak-to-peak magnitude V.sub.P-P, of the supplemental signal V.sub.SUP. The control circuit 310 may be configured to generate a magnitude-adjustment control signal V.sub.MAG-ADJ, which may be received by the signal generator circuit 370 for adjusting the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP. For example, the signal generator circuit 370 may comprise a variable attenuator circuit 380 configured to adjust an impedance in the signal generator circuit 370 for adjusting the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP. The variable attenuator circuit 380 may be coupled between a junction of the first and second RC circuits of the signal generator circuit 370 and circuit common for adjusting an equivalent impedance of the second RC circuit (e.g., as seen by the first RC circuit) for adjusting the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP. The variable attenuator circuit 380 may comprise a resistor R382 (e.g., having a resistance of approximately 4.7 kΩ), a capacitor C384 (e.g., having a capacitance of approximately 680 pF), and a transistor Q385 (e.g., an NPN bipolar junction transistor). The resistor R382 may be coupled in parallel with the capacitor C384. The parallel combination of the resistor R382 and the capacitor C384 may be coupled in series with the transistor Q385 between the junction of the first and second RC circuits of the signal generator circuit 370 and circuit common (e.g., between the junction of the resistors R372, R374 and circuit common). The variable attenuator circuit 380 may also comprise a resistor R386 (e.g., having a resistance of approximately 20 kΩ) coupled between the base of the transistor Q385 and the control circuit 310, and a resistor R388 (e.g., having a resistance of approximately 50 kΩ) coupled between the base and the emitter of the transistor Q385.
[0092] The base of the transistor Q385 may be configured to receive the magnitude-adjustment control signal V.sub.MAG-ADJ from the control circuit 310 via the resistor R386. When the control circuit 310 drives the magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ low (e.g., towards circuit common), the transistor Q385 may be rendered non-conductive. At this time, the first and second RC circuits of the signal generator circuit 370 (e.g., including the resistor R372, the capacitor C373, the resistor R374, and the capacitor C375) may filter the pulse—with modulated signal V.sub.PWM to generate the supplemental signal V.sub.SUP (e.g., as described above). When the control circuit 310 drives the magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ high (e.g., towards the supply voltage V.sub.CC), the transistor Q385 may be rendered conductive thus coupling the parallel combination of the resistor R382 and the capacitor C384 in parallel with the capacitor C373 of the first RC circuit of the signal generator circuit 370. The resistor R372 of the first RC circuit and the resistor R382 of the variable attenuator circuit 380 may form a resistor-divider circuit thus reducing the magnitude of the voltage received by the second RC circuit and also reducing the magnitude of the supplemental signal V.sub.SUP. The capacitor C384 may operate to maintain approximately the same operation (e.g., approximately the same pole) of the signal generator circuit 370 when the transistor Q385 is non-conductive and conductive. For example, the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP may be approximately 2 volts when the transistor Q385 is non-conductive and 0.7 volts when the transistor Q385 is conductive. In some examples, the signal generator circuit 370 may comprise multiple variable attenuator circuit 370 and may be configured to receive multiple magnitude-adjustment control signals from the control circuit 310 for controlling the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to more than two different magnitudes.
[0093] Additionally and/or alternatively, the signal generator circuit 370 may comprise an integrated circuit (IC) for generating the pulse-width modulated signal V.sub.PWM. For example, the integrated circuit may comprise a timer integrated circuit (e.g., a 555 timer IC), an application-specific integrated circuit (IC), a programmable logic device (PLD), a field-programmable gate array (FPGA), or other circuit configured to generate (e.g., continuously generate) the pulse-width modulated signal V.sub.PWM (e.g., the timer integrated circuit may replace the drive circuit 371). The control circuit 310 may be configured to generate the signal generation control signal V.sub.CON for enabling and disabling the generation of the pulse-width modulated signal V.sub.PWM and thus the supplemental signal V.sub.SUP. For example, the control circuit 310 may be configured to enable and disable the generation of the supplemental signal V.sub.SUP by driving the magnitude of the signal generation control signal V.sub.CON high and low, respectively.
[0094] The sensor device 300 may also comprise a second pair of ultrasonic elements (e.g., another ultrasonic transmitting element and another ultrasonic receiving element). The sensor device 300 may comprise a second ultrasonic transmitting circuit (e.g., which may be the same as the ultrasonic transmitting circuit 320) for causing the second ultrasonic transmitting element to emit the ultrasonic waves, and a second ultrasonic receiving circuit (e.g., which may be the same as the ultrasonic receiving circuit 330) for generating a second ultrasonic detection signal. In addition, the sensor device 300 may comprise a second signal generation circuit (e.g., which may be the same as the signal generator circuit 370) for generating a second supplemental signal, which may be added to the second ultrasonic reception signal (e.g., generated by the second ultrasonic receiving element) prior to being processed by the second ultrasonic receiving circuit. The control circuit 310 may be configured to generate a second signal generation control signal for controlling the second signal generation circuit to generate the second supplemental signal. For example, the second signal generation control signal may be the same as, but out of phase with, the first signal generation control signal V.sub.CON generated by the first signal generator circuit 370.
[0095] The control circuit 310 of the sensor device 300 may be configured to execute a configuration procedure to configure the operational characteristics of the sensor device 310 (e.g., as stored in the memory 212). The control circuit 310 may be configured to configure the operation of the signal generation circuit 370 during the configuration procedure. For example, the control circuit 310 may be configured to execute the configuration procedure and/or adjust the operation of the signal generation circuit 370 in response to an actuation of one or more of the actuators of the sensor device (e.g., of the user interface circuit 216) and/or in response to a message (e.g., received via the communication circuit 214). In addition, the control circuit 310 may be configured to adjust (e.g., automatically adjust) the operational characteristics of the sensor device 200′ during the configuration procedure. For example, the sensor device 300 may be configured to periodically execute the configuration procedure (e.g., once a month) when the space in which the sensor device 300 is located is vacant (e.g., as determined in response to the ultrasonic receiving circuit 230 and/or the PIR detection circuit 290).
[0096] The control circuit 310 may be configured to enable and disable the generation of the supplemental signal V.sub.SUP by the signal generator circuit 370, for example, by respectively enabling and disabling the pulse-width modulation of the signal generation control signal V.sub.CON and/or adjusting the magnitude of the signal generation control signal V.sub.CON to otherwise enable and disable the signal generator circuit 370 (e.g., via an enable pin and/or signal). For example, the control circuit 310 may be configured to enable the generation of the supplemental signal V.sub.SUP when the sensor device 300 is installed in a large space and the received ultrasonic waves may be relatively small (e.g., as compared to when the sensor device 300 is installed in a small space). The control circuit 310 may be further configured to disable the generation of the supplemental signal V.sub.SUP when the sensor device 300 is installed in a small space and the received ultrasonic waves may be relatively large (e.g., as compared to when the sensor device 300 is installed in a large space). For example, the sensor device 300 may be configured with one or more space size options that may be selected during configuration of the sensor device 300.
[0097] In addition, the control circuit 310 may be configured to automatically determine to enable and disable the generation of the supplemental signal V.sub.SUP by the signal generator circuit 370. For example, the control circuit 310 may be configured to monitor a magnitude of a voltage of the ultrasonic receiving circuit 330 (e.g., a monitored voltage) that may indicate that one or more signals of the ultrasonic receiving circuit 330 (e.g., the input signal V.sub.IN and/or the amplified signal V.sub.AMP) may be at appropriate magnitudes to be properly processed (e.g., to allow the ultrasonic receiving circuit 330 to generate the ultrasonic detection signal V.sub.DET). For example, the magnitude of the envelope signal V.sub.ENV may indicate that one or more signals of the ultrasonic receiving circuit 330 may be at appropriate magnitudes to be properly processed when the magnitude of the envelope signal V.sub.ENV is sufficiently large, and may be at magnitudes that may not be properly processed when the magnitude of the envelope signal V.sub.ENV is sufficiently small (e.g., as will be described in greater detail below).
[0098] The control circuit 310 may be configured to automatically determine to enable and disable the generation of the supplemental signal V.sub.SUP by the signal generator circuit 370 in response to the magnitude of the voltage of the monitored voltage (e.g., in response to the magnitude of the envelope signal V.sub.ENV). For example, the control circuit 310 may be configured to receive a filtered version of the envelope signal V.sub.ENV (e.g., the filtered envelope signal V.sub.ENV-F generated by the low-pass filter circuit 292), which may have a magnitude that indicates that one or more signals of the ultrasonic receiving circuit 230 (e.g., the input signal V.sub.IN and/or the amplified signal V.sub.AMP) may be at appropriate magnitudes to be properly processed. The control circuit 310 may comprise an analog-to-digital converter (ADC) for sampling the filtered version of the envelope signal V.sub.ENV. In some examples, the control circuit 310 may be configured to receive the envelope signal V.sub.ENV and filter the envelope signal V.sub.ENV using a digital filter (e.g., the sensor device 200′ may not comprise the low-pass filter circuit 292).
[0099] The control circuit 310 may be configured to sample and monitor the magnitude (e.g., the DC magnitude) of the filtered version of the envelope signal V.sub.ENV generated by the envelope detector circuit 340 (e.g., when the space is vacant), and automatically determine to enable or disable the generation of the supplemental signal V.sub.SUP by the signal generator circuit 370. For example, the control circuit 310 may determine to disable the generation of the supplemental signal V.sub.SUP when the magnitude of the envelope signal V.sub.ENV (e.g., the filtered version of the envelope signal V.sub.ENV) indicates that the one or more signals of the ultrasonic receiving circuit 330 may be at appropriate magnitudes to be properly processed, and may determine to enable the generation of the supplemental signal V.sub.SUP when the magnitude of the envelope signal V.sub.ENV (e.g., the filtered version of the envelope signal V.sub.ENV) indicates that the one or more signals of the ultrasonic receiving circuit 330 may not be at appropriate magnitudes to be properly processed.
[0100] When the supplemental signal V.sub.SUP is added to the ultrasonic reception signal V.sub.RX and the received ultrasonic waves are approximately 180° out of phase with the transmitted ultrasonic waves and the magnitude of the ultrasonic reception signal V.sub.RX and the supplemental signal V.sub.SUP are approximately the same, the magnitude of the input signal V.sub.IN may be small (e.g., approximately zero volts), such that the ultrasonic receiving circuit 330 may not be able to approximately process the input signal V.sub.IN. The control circuit 310 may be configured to adjust (e.g., automatically adjust) the phase Φ.sub.SUP of the supplemental signal V.sub.SUP to a phase at which the ultrasonic receiving circuit 320 may be able to properly process the input signal V.sub.IN. The control circuit may be configured to determine whether the phase Φ.sub.SUP of the supplemental signal V.sub.SUP should be adjusted in response to the magnitude of the envelope signal V.sub.ENV (e.g., the filtered version of the envelope signal V.sub.ENV). For example, the control circuit 310 may comprise an analog-to-digital converter (ADC) for sampling the envelope detector circuit 350. The control circuit 310 may be configured to measure and store a magnitude of the filtered version of the envelope signal V.sub.ENV when the signal generator circuit 370 is disabled (e.g., which may be a voltage that indicates that the signals of the ultrasonic receiving circuit 330 may be properly processed to generate the ultrasonic detection signal V.sub.DET). The control circuit 310 may also measure a magnitude of the envelope signal V.sub.ENV (e.g., the filtered version of the envelope signal V.sub.ENV) when the signal generator circuit 370 is enabled. If the magnitude of the envelope signal V.sub.ENV (e.g., the filtered version of the envelope signal V.sub.ENV) from when the signal generator circuit 370 was enabled is approximately equal to the magnitude of the envelope signal V.sub.ENV (e.g., the filtered version of the envelope signal V.sub.ENV) from when the signal generator circuit 370 was disabled, the control circuit 310 may determine that the received ultrasonic waves are not approximately 180° out of phase with the transmitted ultrasonic waves and may not adjust the phase Φ.sub.SUP of the supplemental signal V.sub.SUP.
[0101] If the magnitude of the filtered version of the envelope signal V.sub.ENV from when the signal generator circuit 370 was enabled is less than the magnitude of the filtered version of the envelope signal V.sub.ENV from when the signal generator circuit 360 was disabled, the control circuit 310 may determine that the received ultrasonic waves are approximately 900 out of phase with the transmitted ultrasonic waves and may adjust the phase Φ.sub.SUP of the supplemental signal V.sub.SUP. For example, the control circuit 310 may periodically adjust (e.g., increase and/or decrease) the phase Φ.sub.CON of the signal generation control signal V.sub.CON (e.g., and thus the phase Φ.sub.SUP of the supplemental signal V.sub.SUP) by an adjustment amount ΔΦ, and then measure the magnitude of the filtered version of the envelope signal V.sub.ENV to determine if the newly-sampled magnitude of the filtered version of the envelope signal V.sub.ENV is approximately equal to the stored magnitude of the filtered version of the envelope signal V.sub.ENV from when the signal generator circuit 370 was disabled.
[0102] The control circuit may be configured to determine when to stop adjusting the phase Φ.sub.SUP of the supplemental signal V.sub.SUP in response to the magnitude of the filtered version of the envelope signal V.sub.ENV. For example, when the newly-sampled magnitude of the filtered version of the envelope signal V.sub.ENV is approximately equal to the stored magnitude of the filtered version of the envelope signal V.sub.ENV from when the signal generator circuit 370 was disabled, the control circuit 310 may cease adjusting the phase Φ.sub.CON of the signal generation control signal V.sub.CON and use the present phase Φ.sub.CON of the signal generation control signal V.sub.CON to generate the supplemental signal V.sub.SUP during normal operation. The final phase Φ.sub.CON of the signal generation control signal V.sub.CON may be one at which the magnitude of the filtered version of the envelope signal V.sub.ENV is at a level that indicates that the signals of the ultrasonic receiving circuit 330 may be properly processed to generate the ultrasonic detection signal V.sub.DET. For example, the control circuit 310 may store the final phase Φ.sub.CON of the signal generation control signal V.sub.CON in memory (e.g., the memory 212) to be used during normal operation.
[0103] During the configuration procedure, the control circuit 310 may also be configured to adjust (e.g., automatically adjust) the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP in dependence upon the magnitude of a noise floor of the ultrasonic detection signal V.sub.DET. For example, the control circuit 310 may be configured to determine the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET and adjust the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP in response to the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET. For example, the magnitude of the ultrasonic detection signal V.sub.DET may indicate the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET (e.g., when the space in which the sensor device 300 is installed is vacant). The control circuit 310 may be configured to sample the ultrasonic detection signal V.sub.DET (e.g., using the ADC) to determine the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET). In some examples, the control circuit 310 may determine the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET by averaging the samples of the ultrasonic detection signal V.sub.DET over time. The control circuit 310 may be configured to determine the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET when the space in which the sensor device 300 is installed is vacant (e.g., as determined in response to the PIR detection circuit 290).
[0104] The control circuit 310 may be configured to set the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP in response to the magnitude of the ultrasonic detection signal V.sub.DET. For example, the control circuit 310 may be configured to compare the magnitude of the ultrasonic detection signal V.sub.DET to a noise floor threshold V.sub.TH-NF (e.g., approximately 150-300 millivolts). The control circuit 310 may be configured to set the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to a first magnitude (e.g., the nominal peak-to-peak magnitude) when the magnitude of the ultrasonic detection signal V.sub.DET is less than the noise floor threshold V.sub.TH-NF, and to set the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to a second magnitude (e.g., the reduced peak-to-peak magnitude) when the magnitude of the ultrasonic detection signal V.sub.DET is greater than (e.g., greater than or equal to) the noise floor threshold V.sub.TH-NF. The control circuit 310 may be configured to control the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to the first magnitude (e.g., the nominal peak-to-peak magnitude) by driving the magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ low towards circuit common to render the transistor Q385 non-conductive. The control circuit 310 may be configured to control the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to the second magnitude (e.g., the reduced peak-to-peak magnitude) by driving the magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ high towards the first supply voltage V.sub.CC1 to render the transistor Q385 non-conductive.
[0105]
[0106] At 412, the control circuit may be configured to sample the ultrasonic detection signal V.sub.DET to generate a sample S.sub.D. At 414, the control circuit may be configured to remove the DC component from the sample S.sub.D. For example, the control circuit may subtract a reference value S.sub.REF from the sample S.sub.D at 414. For example, the reference value S.sub.REF may be equal to the reference voltage V.sub.REF about which the filter circuit 350 biases the ultrasonic detection signal V.sub.DET (e.g., approximately equal to half of the first supply voltage V.sub.CC1). In addition, the control circuit may be configured to measure and store the reference value S.sub.REF, e.g., during a calibration procedure of the sensor device. At 416, the control circuit may be configured to determine an absolute value S.sub.ABS of the sample S.sub.D (e.g., S.sub.ABS|S.sub.D|). If the absolute value S.sub.ABS is greater than or equal to a detection threshold S.sub.TH-DET at step 416, the control circuit may determine that the space is occupied (e.g., detect an occupancy condition) at step 418 and the procedure 400 may end. If the absolute value S.sub.ABS is less than the detection threshold S.sub.TH-DET at step 416, the control circuit may determine that the space is vacant (e.g., detect a vacancy condition) at step 420, before the procedure 400 ends.
[0107]
[0108] At 512, the control circuit may receive an indication of a mode of operation of the sensor device. The control circuit may be configured to determine to operate in one of the small space mode and the large space mode in response to actuations of one or more actuators (e.g., the actuators of the user interface circuit 216) and/or in response to a message received by a communication circuit (e.g., the communication circuit 214). When the large-space mode is indicated at 514, the control circuit may enable generation of a supplemental signal V.sub.SUP in the sensor device at 516, before the procedure 500 ends. For example, the supplemental signal V.sub.SUP may be added to an ultrasonic reception signal V.sub.RX generated by an ultrasonic receiving element (e.g., the ultrasonic receiving elements 204, 304) prior to being processed by an ultrasonic receiving circuit (e.g., the ultrasonic receiving circuits 230, 330). Adding the supplemental signal V.sub.SUP to the ultrasonic reception signal V.sub.RX may ensure that the magnitudes of the signals processed by the ultrasonic receiving circuit are large enough to appropriately be processed when the sensor device is installed in a large space. The control circuit may be configured to generate a signal generation control signal V.sub.CON, which may be received by a signal generator circuit (e.g., the signal generator circuit 270, 360) for controlling the generation of the supplemental signal V.sub.SUP. For example, the control circuit may be configured to enable the generation of the supplemental signal V.sub.SUP by pulse-width modulating the signal generation control signal V.sub.CON. When the large-space mode is not indicated (e.g., the small-space mode is indicated) at 514, the control circuit may disable generation of the supplemental signal V.sub.SUP at 518 and the procedure 500 may end. For example, the control circuit may be configured to disable the generation of the supplemental signal V.sub.SUP by ceasing pulse-width modulation the signal generation control signal V.sub.CON.
[0109]
[0110] The control circuit may be configured to execute the procedure 600 during an initial configuration procedure of the sensor device and/or during one or more maintenance configuration procedures (e.g., after the initial configuration procedure). For example, the control procedure 600 may be executed periodically (e.g., once a month), in response to detecting an actuation of an actuator, and/or in response to receiving a message (e.g., via RF signals) at 610. For example, when the sensor device has two pairs of ultrasonic transmitting and receiving elements, the control circuit may individually execute the control procedure 600 for each of the respective ultrasonic receiving circuits and respective signal generator circuits. The control circuit may control the ultrasonic transmitting circuits to cause both of the ultrasonic transmitting elements to emit ultrasonic waves during each execution of the control procedure 600 (e.g., for each of the ultrasonic receiving circuits).
[0111] The control circuit may be configured to calibrate the operation of the sensor device when the space is vacant. At 612, the control circuit may be configured to determine if the space is vacant, for example, in response to the ultrasonic detection signal V.sub.DET generated by the ultrasonic receiving circuit 230, 330 and/or the PIR detect signal V.sub.PIR generated by the PIR detection circuit 290. If the space is not vacant (e.g., occupied), the procedure 600 may simply exit. At 614, the control circuit may determine if a wait time T.sub.WAIT (e.g., approximately 15 minutes) has expired. For example, the wait time T.sub.WAIT may begin when the procedure 600 is executed at 610. If the space is not vacant for the length of the wait time T.sub.WAIT, the procedure 600 may exit. When the space is vacant for the length of the wait time T.sub.WAIT, the control circuit may continue on to 616 to configure the operation of the signal generator circuit.
[0112] At 616, the control circuit may generate an ultrasonic drive signal V.sub.DR to cause the sensor device to transmit ultrasonic waves. The ultrasonic drive signal V.sub.DR may be received by the ultrasonic transmitting circuit, which may generate an ultrasonic transmission voltage V.sub.TX. The ultrasonic transmission voltage V.sub.TX may be received by the ultrasonic transmitting element, which may emit the ultrasonic waves. For example, the control circuit may be configured to pulse-width modulate the ultrasonic drive signal V.sub.DR, such that the ultrasonic drive signal V.sub.DR is a PWM voltage characterized by the ultrasonic transmission frequency f.sub.US (e.g., approximately 40 kHz) and a duty cycle of approximately 50%. The control circuit may control a phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR to control a phase Φ.sub.TX of the transmitted ultrasonic waves. For example, the control circuit may control the phase Φ.sub.TX of the transmitted ultrasonic waves to be zero. If the sensor device does not comprise an ultrasonic transmitting element and an ultrasonic transmitting circuit (e.g., the sensor devices is used in a load control system having external ultrasonic transmitters), generation of the ultrasonic drive signal V.sub.DR at 612 of the procedure 600 may be omitted.
[0113] At 618, the control circuit may be configured to disable generation of the supplemental signal V.sub.SUP. For example, the control circuit may be configured to disable the generation of the supplemental signal V.sub.SUP at 618 by ceasing pulse-width modulation of the signal generation control signal V.sub.CON and/or driving the magnitude of the generation control signal V.sub.CON to otherwise disable the signal generator circuit. At 620, the control circuit may be configured to sample the magnitude (e.g., the DC magnitude) of a voltage of the ultrasonic receiving circuit (e.g., a monitored voltage) that may indicate that one or more signals of the ultrasonic receiving circuit may be at appropriate magnitudes to be properly processed (e.g., to allow the ultrasonic receiving circuit to generate the ultrasonic detection signal V.sub.DET). For example, the monitored voltage may be the envelope signal V.sub.ENV and/or the filtered version of the envelope signal V.sub.ENV (e.g., the filtered envelope signal V.sub.ENV-F). The control circuit may be configured to sample and store the magnitude (e.g., the DC magnitude) of the monitored voltage (e.g., the magnitude of the envelope signal V.sub.ENV and/or the filtered version of the envelope signal V.sub.ENV) at 620 to generate a sample S.sub.MON.
[0114] At 622, the control circuit may be configured to determine if the magnitude of the monitored voltage (e.g., the magnitude of the envelope signal V.sub.ENV and/or the filtered version of the envelope signal V.sub.ENV as indicated by the sample S.sub.MON) indicates that the one or more signals of the ultrasonic receiving circuit are at appropriate magnitudes to be properly processed. For example, the control circuit may be configured to compare the sample S.sub.MON to a threshold S.sub.TH-MON and determine that the magnitude of the monitored voltage is at an appropriate level when the magnitude of the sample S.sub.MON exceeds the threshold S.sub.TH-MON. When the control circuit determines that the magnitude of the monitored voltage is at an appropriate level at 622, the procedure 600 may exit (e.g., with the generation of the supplemental signal V.sub.SUP disabled).
[0115] When the control circuit determines that the magnitude of the monitored voltage is not at an appropriate level at 622, the control circuit may be configured to enable the generation of the supplemental signal V.sub.SUP at 624, before the procedure 600 exits. For example, the control circuit may be configured to enable the generation of the supplemental signal V.sub.SUP at 620 by pulse-width modulating the signal generation control signal V.sub.CON and/or driving the magnitude of the generation control signal V.sub.CON to enable the signal generator circuit. The control circuit may retrieve a value for a phase Φ.sub.CON of the signal generation control signal V.sub.CON from, for example, memory (e.g., the memory 212) at 624. When the procedure 600 is executed for the first time (e.g., as part of the initial configuration procedure of the sensor device), the control circuit may be configured to initialize the phase Φ.sub.CON of the signal generation control signal V.sub.CON to zero (e.g., such that the phase Φ.sub.CON of the signal generation control signal V.sub.CON is equal to the phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR). When the procedure 600 is subsequently executed (e.g., after the initial configuration procedure of the sensor device), the control circuit may be configured to determine the phase Φ.sub.CON of the signal generation control signal V.sub.CON to be the zero if the phase Φ.sub.CON was not modified during a previous execution of the procedure 600 or another value if the phase Φ.sub.CON was modified during a previous execution of the procedure 600. When the phase Φ.sub.CON of the signal generation control signal V.sub.CON is zero (e.g., the signal generation control signal V.sub.CON is in phase with the ultrasonic drive signal V.sub.DR), the control circuit may generate the rising and falling edges of the signal generation control signal V.sub.CON at the same times as the rising and falling edges of the ultrasonic drive signal V.sub.DR, respectively.
[0116]
[0117] The control circuit may be configured to execute the procedure 700 during an initial configuration procedure of the sensor device and/or during one or more maintenance configuration procedures (e.g., after the initial configuration procedure). For example, the control procedure 700 may be executed periodically (e.g., once a month), in response to detecting an actuation of an actuator, and/or in response to receiving a message (e.g., via RF signals) at 710. For example, when the sensor device has two pairs of ultrasonic transmitting and receiving elements, the control circuit may individually execute the control procedure 700 for each of the respective ultrasonic receiving circuits and respective signal generator circuits. The control circuit may control the ultrasonic transmitting circuits to cause both of the ultrasonic transmitting elements to emit ultrasonic waves during each execution of the control procedure 700 (e.g., for each of the ultrasonic receiving circuits).
[0118] The control circuit may be configured to calibrate the operation of the sensor device when the space is vacant. At 712, the control circuit may be configured to determine if the space is vacant, for example, in response to the ultrasonic detection signal V.sub.DET generated by the ultrasonic receiving circuit 230, 330 and/or the PIR detect signal V.sub.PIR generated by the PIR detection circuit 290. If the space is not vacant (e.g., occupied), the procedure 700 may simply exit. At 714, the control circuit may determine if a wait time T.sub.WAIT (e.g., approximately 15 minutes) has expired. For example, the wait time T.sub.WAIT may begin when the procedure 700 is executed at 710. If the space is not vacant for the length of the wait time T.sub.WAIT, the procedure 700 may exit. When the space is vacant for the length of the wait time T.sub.WAIT, the control circuit may continue on to 716 to configure the operation of the signal generator circuit.
[0119] At 716, the control circuit may generate an ultrasonic drive signal V.sub.DR to cause the sensor device to transmit ultrasonic waves. The ultrasonic drive signal V.sub.DR may be received by the ultrasonic transmitting circuit, which may generate an ultrasonic transmission voltage V.sub.TX. The ultrasonic transmission voltage V.sub.TX may be received by the ultrasonic transmitting element, which may emit the ultrasonic waves. For example, the control circuit may be configured to pulse-width modulate the ultrasonic drive signal V.sub.DR, such that the ultrasonic drive signal V.sub.DR is a PWM voltage characterized by the ultrasonic transmission frequency f.sub.US (e.g., approximately 40 kHz) and a duty cycle of approximately 50%. The control circuit may control a phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR to control a phase Φ.sub.TX of the transmitted ultrasonic waves. For example, the control circuit may control the phase Φ.sub.TX of the transmitted ultrasonic waves to be zero. If the sensor device does not comprise an ultrasonic transmitting element and an ultrasonic transmitting circuit (e.g., the sensor devices is used in a load control system having external ultrasonic transmitters), generation of the ultrasonic drive signal V.sub.DR at 712 of the procedure 700 may be omitted.
[0120] At 718, the control circuit may be configured to enable the generation of the supplemental signal V.sub.SUP. For example, the control circuit may be configured to enable the generation of the supplemental signal V.sub.SUP at 718 by pulse-width modulating the signal generation control signal V.sub.CON and/or driving the magnitude of the generation control signal V.sub.CON to enable the signal generator circuit. The control circuit may retrieve a value for a phase Φ.sub.ON of the signal generation control signal V.sub.CON from, for example, memory (e.g., the memory 212) at 718. When the procedure 700 is executed for the first time (e.g., as part of the initial configuration procedure of the sensor device), the control circuit may be configured to initialize the phase Φ.sub.ON of the signal generation control signal V.sub.CON to zero (e.g., such that the phase Φ.sub.CON of the signal generation control signal V.sub.CON is equal to the phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR). When the procedure 700 is subsequently executed (e.g., after the initial configuration procedure of the sensor device), the control circuit may be configured to determine the phase Φ.sub.ON of the signal generation control signal V.sub.CON to be the zero if the phase Φ.sub.ON was not modified during a previous execution of the procedure 700 or another value if the phase Φ.sub.ON was modified during a previous execution of the procedure 700. When the phase Φ.sub.ON of the signal generation control signal V.sub.CON is zero (e.g., the signal generation control signal V.sub.CON is in phase with the ultrasonic drive signal V.sub.DR), the control circuit may generate the rising and falling edges of the signal generation control signal V.sub.CON at the same times as the rising and falling edges of the ultrasonic drive signal V.sub.DR, respectively.
[0121] At 720, the control circuit may be configured to sample the magnitude (e.g., the DC magnitude) of a voltage of the ultrasonic receiving circuit (e.g., a monitored voltage) that may indicate that one or more signals of the ultrasonic receiving circuit may be at appropriate magnitudes to be properly processed (e.g., to allow the ultrasonic receiving circuit to generate the ultrasonic detection signal V.sub.DET). For example, the monitored voltage may be the envelope signal V.sub.ENV and/or the filtered version of the envelope signal V.sub.ENV (e.g., the filtered envelope signal V.sub.ENV-F). For example, the control circuit may be configured to sample and store the magnitude (e.g., the DC magnitude) of the monitored voltage (e.g., the envelope signal V.sub.ENV and/or the filtered version of the envelope signal V.sub.ENV) at 720 to generate a sample S.sub.MON.
[0122] At 722, the control circuit may be configured to determine if the magnitude of the monitored voltage (e.g., as indicated by the sample S.sub.MON) indicates that the one or more signals of the ultrasonic receiving circuit are at appropriate magnitudes to be properly processed. For example, the control circuit may be configured to compare the sample S.sub.MON to a threshold S.sub.TH-MON and determine that the magnitude of the monitored voltage is at an appropriate level when the magnitude of the sample S.sub.MON exceeds the threshold S.sub.TH-MON. When the addition of the supplemental signal V.sub.SUP to the ultrasonic reception signal V.sub.RX is not causing the input signal V.sub.IN to have a smaller magnitude (e.g., the sample S.sub.MON of the monitored voltage exceeds the threshold S.sub.TH-MON) at 722, the control circuit may determine that the magnitude of the monitored voltage is at an appropriate level while the supplemental signal V.sub.SUP is being generated, and may store the phase Φ.sub.CON of the signal generation control signal V.sub.CON at 724, before the procedure 700 ends. For example, the control circuit may store the phase Φ.sub.CON of the signal generation control signal V.sub.CON as the initial phase when the sample S.sub.MON is at an appropriate level at 724 the first time that the procedure is executed.
[0123] When the received ultrasonic waves are out of phase with the transmitted ultrasonic waves and the addition of the supplemental signal V.sub.SUP to the ultrasonic reception signal V.sub.RX is causing the input signal V.sub.IN to have a smaller magnitude (e.g., the sample S.sub.MON is less than the threshold S.sub.TH-MON) at 722, the control circuit may determine that the magnitude of the monitored voltage is not at an appropriate level, and may adjust (e.g., increase and/or decrease) the phase Φ.sub.CON of the signal generation control signal V.sub.CON by an adjustment amount ΔΦ at 726, sample the magnitude of the monitored voltage at 720 to generate another sample S.sub.MON, and determine if the sample S.sub.MON at an appropriate level at 722. For example, the adjustment amount ΔΦ may be a fixed amount, such that the control circuit adjusts the phase Φ.sub.CON of the signal generation control signal V.sub.CON by the same amount each time that the control circuits adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON at 726. In addition, the adjustment amount ΔΦ may be a variable amount that varies each time that the control circuits adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON at 726. For example, the control circuit may adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON using an interval-halving method (e.g., a binary search method). For example, the control circuit may adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON to approximately 180° (e.g., as compared to the phase Φ.sub.R of the ultrasonic drive signal V.sub.DR) the first time that the phase Φ.sub.CON of the signal generation control signal V.sub.CON is adjusted at 726, and then adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON to a value that is approximately equal to half of the previous value of the phase Φ.sub.CON each time that the phase Φ.sub.CON of the signal generation control signal V.sub.CON is subsequently adjusted at 726 (e.g., approximately 90°, 45°, 22.5°, and so on). The control circuit may continue to adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON by the adjustment amount ΔΦ at 726 and sample the magnitude of the monitored voltage at 720 until the sample S.sub.MON is at an appropriate level at 722. At 724, the control circuit may then store the phase Φ.sub.CON of the signal generation control signal V.sub.CON as the phase last set at 726, before the procedure 700 ends.
[0124]
[0125] The control circuit may be configured to execute the procedure 800 during an initial configuration procedure of the sensor device and/or during one or more maintenance configuration procedures (e.g., after the initial configuration procedure). For example, the control procedure 800 may be executed periodically (e.g., once a month), in response to detecting an actuation of an actuator, and/or in response to receiving a message (e.g., via RF signals) at 810. For example, when the sensor device has two pairs of ultrasonic transmitting and receiving elements, the control circuit may individually execute the control procedure 800 for each of the respective ultrasonic receiving circuits and respective signal generator circuits. The control circuit may control the ultrasonic transmitting circuits to cause both of the ultrasonic transmitting elements to emit ultrasonic waves during each execution of the control procedure 800 (e.g., for each of the ultrasonic receiving circuits).
[0126] The control circuit may be configured to calibrate the operation of the sensor device when the space is vacant. At 812, the control circuit may be configured to determine if the space is vacant, for example, in response to the ultrasonic detection signal V.sub.DET generated by the ultrasonic receiving circuit 230, 330 and/or the PIR detect signal V.sub.PIR generated by the PIR detection circuit 290. If the space is not vacant (e.g., occupied), the procedure 800 may simply exit. At 814, the control circuit may determine if a wait time T.sub.WAIT (e.g., approximately 15 minutes) has expired. For example, the wait time T.sub.WAIT may begin when the procedure 800 is executed at 810. If the space is not vacant for the length of the wait time T.sub.WAIT, the procedure 800 may exit. When the space is vacant for the length of the wait time T.sub.WAIT, the control circuit may continue on to 816 to configure the operation of the signal generator circuit.
[0127] At 816, the control circuit may generate an ultrasonic drive signal V.sub.DR to cause the sensor device to transmit ultrasonic waves. The ultrasonic drive signal V.sub.DR may be received by the ultrasonic transmitting circuit, which may generate an ultrasonic transmission voltage V.sub.TX. The ultrasonic transmission voltage V.sub.TX may be received by the ultrasonic transmitting element, which may emit the ultrasonic waves. For example, the control circuit may be configured to pulse-width modulate the ultrasonic drive signal V.sub.DR, such that the ultrasonic drive signal V.sub.DR is a PWM voltage characterized by the ultrasonic transmission frequency f.sub.US (e.g., approximately 40 kHz) and a duty cycle of approximately 50%. The control circuit may control a phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR to control a phase Φ.sub.TX of the transmitted ultrasonic waves. For example, the control circuit may control the phase Φ.sub.TX of the transmitted ultrasonic waves to be zero. If the sensor device does not comprise an ultrasonic transmitting element and an ultrasonic transmitting circuit (e.g., the sensor devices is used in a load control system having external ultrasonic transmitters), generation of the ultrasonic drive signal V.sub.DR at 812 of the procedure 800 may be omitted.
[0128] At 818, the control circuit may be configured to disable generation of the supplemental signal V.sub.SUP. For example, the control circuit may be configured to disable the generation of the supplemental signal V.sub.SUP at 818 by ceasing pulse-width modulation of the signal generation control signal V.sub.CON and/or driving the magnitude of the generation control signal V.sub.CON to otherwise disable the signal generator circuit. At 820, the control circuit may be configured to sample the magnitude (e.g., the DC magnitude) of a voltage of the ultrasonic receiving circuit (e.g., a monitored voltage) that may indicate that one or more signals of the ultrasonic receiving circuit may be at appropriate magnitudes to be properly processed (e.g., to allow the ultrasonic receiving circuit to generate the ultrasonic detection signal V.sub.DET). For example, the monitored voltage may be the envelope signal V.sub.ENV and/or the filtered version of the envelope signal V.sub.ENV (e.g., the filtered envelope signal V.sub.ENV-F). The control circuit may be configured to sample and store the magnitude (e.g., the DC magnitude) of the monitored voltage (e.g., the envelope signal V.sub.ENV and/or the filtered version of the envelope signal V.sub.ENV) at 820 to generate a sample S.sub.MON.
[0129] At 822, the control circuit may be configured to determine if the magnitude of the monitored voltage (e.g., as indicated by the sample S.sub.MON) indicates that the one or more signals of the ultrasonic receiving circuit are at appropriate magnitudes to be properly processed. For example, the control circuit may be configured to compare the sample S.sub.MON to a threshold S.sub.TH-MON and determine that the magnitude of the monitored voltage is at an appropriate level when the magnitude of the sample S.sub.MON exceeds the threshold S.sub.TH-MON. When the control circuit determines that the magnitude of the monitored voltage is at an appropriate level at 822, the procedure 800 may exit (e.g., with the generation of the supplemental signal V.sub.SUP disabled).
[0130] When the control circuit determines that the magnitude of the monitored voltage is not at an appropriate level at 822, the control circuit may be configured to enable the generation of the supplemental signal V.sub.SUP at 824. For example, the control circuit may be configured to enable the generation of the supplemental signal V.sub.SUP at 820 by pulse-width modulating the signal generation control signal V.sub.CON and/or driving the magnitude of the generation control signal V.sub.CON to enable the signal generator circuit. The control circuit may retrieve a value for a phase Φ.sub.CON of the signal generation control signal V.sub.CON from, for example, memory (e.g., the memory 212) at 824. When the procedure 800 is executed for the first time (e.g., as part of the initial configuration procedure of the sensor device), the control circuit may be configured to initialize the phase Φ.sub.CON of the signal generation control signal V.sub.CON to zero (e.g., such that the phase Φ.sub.CON of the signal generation control signal V.sub.CON is equal to the phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR). When the procedure 800 is subsequently executed (e.g., after the initial configuration procedure of the sensor device), the control circuit may be configured to determine the phase Φ.sub.CON of the signal generation control signal V.sub.CON to be the zero if the phase Φ.sub.CON was not modified during a previous execution of the procedure 800 or another value if the phase Φ.sub.CON was modified during a previous execution of the procedure 800. When the phase Φ.sub.CON of the signal generation control signal V.sub.CON is zero (e.g., the signal generation control signal V.sub.CON is in phase with the ultrasonic drive signal V.sub.DR), the control circuit may generate the rising and falling edges of the signal generation control signal V.sub.CON at the same times as the rising and falling edges of the ultrasonic drive signal V.sub.DR, respectively.
[0131] At 826, the control circuit may be configured to sample the magnitude of the voltage of the ultrasonic receiving circuit (e.g., the magnitude of the monitored voltage that indicates that one or more signals of the ultrasonic receiving circuit may be at magnitudes to be properly processed) to generate a sample S.sub.MON with the generation of the supplemental signal V.sub.SUP enabled. At 828, the control circuit may be configured to determine if the magnitude of the monitored voltage (e.g., as indicated by the sample S.sub.MON) indicates that the one or more signals of the ultrasonic receiving circuit are at appropriate magnitudes to be properly processed when the generation of the supplemental signal V.sub.SUP is enabled. For example, the control circuit may be configured to compare the sample S.sub.MON to the threshold S.sub.TH-MON and determine that the magnitude of the monitored voltage is at an appropriate level when the magnitude of the sample S.sub.MON exceeds the threshold S.sub.TH-MON. When the addition of the supplemental signal V.sub.SUP to the ultrasonic reception signal V.sub.RX is not causing the input signal V.sub.IN to have a smaller magnitude (e.g., the sample S.sub.MON of the monitored voltage exceeds the threshold S.sub.TH-MON) at 828, the control circuit may determine that the magnitude of the monitored voltage is at an appropriate level while the supplemental signal V.sub.SUP is being generated, and may store the phase Φ.sub.CON of the signal generation control signal V.sub.CON at 830, before the procedure 800 ends. For example, the control circuit may store the phase Φ.sub.CON of the signal generation control signal V.sub.CON as the initial phase when the sample S.sub.MON is at an appropriate level at 828 the first time that the procedure is executed.
[0132] When the received ultrasonic waves are out of phase with the transmitted ultrasonic waves and the addition of the supplemental signal V.sub.SUP to the ultrasonic reception signal V.sub.RX is causing the input signal V.sub.IN to have a smaller magnitude (e.g., the sample S.sub.MON is less than the threshold S.sub.TH-MON) at 828, the control circuit may determine that the magnitude of the monitored voltage is not at an appropriate level, and may adjust (e.g., increase and/or decrease) the phase Φ.sub.CON of the signal generation control signal V.sub.CON by an adjustment amount ΔΦ at 830, sample the magnitude of the monitored voltage at 826 to generate another sample S.sub.MON, and determine if the sample S.sub.MON at an appropriate level at 828. For example, the adjustment amount ΔΦ may be a fixed amount, such that the control circuit adjusts the phase Φ.sub.CON of the signal generation control signal V.sub.CON by the same amount each time that the control circuit adjusts the phase Φ.sub.CON of the signal generation control signal V.sub.CON at 830. In addition, the adjustment amount ΔΦ may be a variable amount that varies each time that the control circuit adjusts the phase Φ.sub.CON of the signal generation control signal V.sub.CON at 830. For example, the control circuit may adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON using an interval-halving method (e.g., a binary search method). For example, the control circuit may adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON to approximately 180° (e.g., as compared to the phase Φ.sub.R of the ultrasonic drive signal V.sub.DR) the first time that the phase Φ.sub.CON of the signal generation control signal V.sub.CON is adjusted at 830, and then adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON to a value that is approximately equal to half of the previous value of the phase Φ.sub.CON each time that the phase Φ.sub.CON of the signal generation control signal V.sub.CON is subsequently adjusted at 830 (e.g., approximately 90°, 45°, 22.5°, and so on). The control circuit may continue to adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON by the adjustment amount ΔΦ at 830 and sample the magnitude of the monitored voltage at 826 until the sample S.sub.MON is at an appropriate level at 828. At 832, the control circuit may then store the phase Φ.sub.CON of the signal generation control signal V.sub.CON as the phase last set at 830, before the procedure 800 ends.
[0133]
[0134] The control circuit may be configured to execute the procedure 900 during an initial configuration procedure of the sensor device and/or during one or more maintenance configuration procedures (e.g., after the initial configuration procedure). For example, the control procedure 900 may be executed periodically (e.g., once a month), in response to detecting an actuation of an actuator, and/or in response to receiving a message (e.g., via RF signals) at 910. For example, when the sensor device has two pairs of ultrasonic transmitting and receiving elements, the control circuit may individually execute the control procedure 900 for each of the respective ultrasonic receiving circuits and respective signal generator circuits (e.g., for independently adjusting the peak-to-peak magnitudes V.sub.P-P of the supplemental signals V.sub.SUP of both ultrasonic receiving circuits). The control circuit may control the ultrasonic transmitting circuits to cause both of the ultrasonic transmitting elements to emit ultrasonic waves during each execution of the control procedure 900 (e.g., for each of the ultrasonic receiving circuits).
[0135] The control circuit may be configured to calibrate the operation of the sensor device when the space is vacant. At 912, the control circuit may be configured to determine if the space is vacant, for example, in response to the ultrasonic detection signal V.sub.DET generated by the ultrasonic receiving circuit 230, 330 and/or the PIR detect signal V.sub.PIR generated by the PIR detection circuit 290. If the space is not vacant (e.g., occupied), the procedure 900 may simply exit. At 914, the control circuit may determine if a wait time T.sub.WAIT (e.g., approximately 15 minutes) has expired. For example, the wait time T.sub.WAIT may begin when the procedure 900 is executed at 910. If the space is not vacant for the length of the wait time T.sub.WAIT, the procedure 900 may end. When the space is vacant for the length of the wait time T.sub.WAIT, the control circuit may determine if generation of the supplemental signal V.sub.SUP is enabled at 916. If generation of the supplemental signal V.sub.SUP is not enabled at 916, the procedure 900 may end. If generation of the supplemental signal V.sub.SUP is enabled at 916, the control circuit may continue on to 918 to configure the operation of the signal generator circuit.
[0136] At 918, the control circuit may determine the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET. For example, the magnitude of the ultrasonic detection signal V.sub.DET may indicate the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET when the space is vacant. The control circuit may be configured to sample the ultrasonic detection signal V.sub.DET at 918 to generate a sample S.sub.NF (e.g., that may indicate the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET).
[0137] At 920, the control circuit may adjust the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP based on the sample S.sub.NF of the ultrasonic detection signal V.sub.DET, before the procedure 900 ends. For example, the control circuit may be configured to compare the sample S.sub.NF of the ultrasonic detection signal V.sub.DET to a threshold S.sub.TH-NF, and set the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to a first magnitude (e.g., the nominal peak-to-peak magnitude) when the sample S.sub.NF is less than the threshold S.sub.TH-NF and to a second magnitude (e.g., the reduced peak-to-peak magnitude) when the sample S.sub.NF is greater than (e.g., greater than or equal to) the threshold S.sub.TH-NF. For example, the control circuit may be configured to drive the magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ low towards circuit common to adjust the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to the first magnitude (e.g., the nominal peak-to-peak magnitude) and drive the magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ high towards the first supply voltage V.sub.CC1 to adjust the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to the second magnitude (e.g., the reduced peak-to-peak magnitude). In some examples, the control circuit may be configured to generate multiple magnitude-adjustment control signals at 920 for adjusting the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to respective magnitudes. Additionally or alternatively, the control circuit may be configured to adjust the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP as a function of the sample S.sub.NF of the ultrasonic detection signal V.sub.DET at 920. For example, the control circuit may comprise a digital-to-analog converter (DAC) for generating the magnitude-adjustment control signal V.sub.MAG-ADJ and may be configured to adjust (e.g., continuously adjust) a magnitude (e.g., a DC magnitude) of the magnitude-adjustment control signal V.sub.MAG-ADJ between two magnitudes (e.g., between the nominal peak-to-peak magnitude and approximately zero volts). For example, the control circuit may be configured to adjust the magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ based on the sample S.sub.NF of the ultrasonic detection signal V.sub.DET according to a linear relationship between the magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ and the magnitude of the ultrasonic detection signal V.sub.DET.
[0138]
[0139] The control circuit may be configured to execute the procedure 1000 during an initial configuration procedure of the sensor device and/or during one or more maintenance configuration procedures (e.g., after the initial configuration procedure). For example, the control procedure 1000 may be executed periodically (e.g., once a month), in response to detecting an actuation of an actuator, and/or in response to receiving a message (e.g., via RF signals) at 1010. For example, when the sensor device has two pairs of ultrasonic transmitting and receiving elements, the control circuit may individually execute the control procedure 1000 for each of the respective ultrasonic receiving circuits and respective signal generator circuits (e.g., for independently adjusting the peak-to-peak magnitudes V.sub.P-P of the supplemental signals V.sub.SUP of both ultrasonic receiving circuits). The control circuit may control the ultrasonic transmitting circuits to cause both of the ultrasonic transmitting elements to emit ultrasonic waves during each execution of the control procedure 1000 (e.g., for each of the ultrasonic receiving circuits).
[0140] The control circuit may be configured to calibrate the operation of the sensor device when the space is vacant. At 1012, the control circuit may be configured to determine if the space is vacant, for example, in response to the ultrasonic detection signal V.sub.DET generated by the ultrasonic receiving circuit 230, 330 and/or the PIR detect signal V.sub.PIR generated by the PIR detection circuit 290. If the space is not vacant (e.g., occupied), the procedure 1000 may simply exit. At 1014, the control circuit may determine if a wait time T.sub.WAIT (e.g., approximately 15 minutes) has expired. For example, the wait time T.sub.WAIT may begin when the procedure 1000 is executed at 1010. If the space is not vacant for the length of the wait time T.sub.WAIT, the procedure 1000 may end. When the space is vacant for the length of the wait time T.sub.WAIT, the control circuit may determine if generation of the supplemental signal V.sub.SUP is enabled at 1016. If generation of the supplemental signal V.sub.SUP is not enabled at 1016, the procedure 1000 may end. If generation of the supplemental signal V.sub.SUP is enabled at 1016, the control circuit may continue on to 1018 to configure the operation of the signal generator circuit.
[0141] At 1018, the control circuit may determine the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET by sampling the ultrasonic detection signal V.sub.DET to generate a sample S.sub.NF. For example, the magnitude of the ultrasonic detection signal V.sub.DET may indicate the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET when the space is vacant (e.g., such the sample S.sub.NF may indicate the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET).
[0142] At 1020, the control circuit may determine if the sample S.sub.NF of the ultrasonic detection signal V.sub.DET is greater than or equal to a threshold S.sub.TH-NF. For example, the control circuit may compare the sample S.sub.NF of the ultrasonic detection signal V.sub.DET to the threshold S.sub.TH-NF at 1020. When the sample S.sub.NF of the ultrasonic detection signal V.sub.DET is less than the threshold S.sub.TH-NF at 1020, the control circuit may set the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to a first magnitude (e.g., the nominal peak-to-peak magnitude) at 1022, before the procedure 1000 ends. For example, the control circuit may be configured to drive the magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ low towards circuit common to adjust the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to the first magnitude at 1022. When the sample S.sub.NF of the ultrasonic detection signal V.sub.DET is greater than or equal to the threshold S.sub.TH-NF at 1020, the control circuit may set the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to a second magnitude (e.g., the reduced peak-to-peak magnitude) at 1024, before the procedure 1000 ends. For example, the control circuit may be configured to drive the magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ high towards the first supply voltage V.sub.CC1 to adjust the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to the second magnitude at 1024.
[0143]
[0144] The control circuit may be configured to execute the procedure 1100 during an initial configuration procedure of the sensor device and/or during one or more maintenance configuration procedures (e.g., after the initial configuration procedure). For example, the control procedure 1100 may be executed periodically (e.g., once a month), in response to detecting an actuation of an actuator, and/or in response to receiving a message (e.g., via RF signals) at 1110. For example, when the sensor device has two pairs of ultrasonic transmitting and receiving elements, the control circuit may individually execute the control procedure 1100 for each of the respective ultrasonic receiving circuits and respective signal generator circuits. The control circuit may control the ultrasonic transmitting circuits to cause both of the ultrasonic transmitting elements to emit ultrasonic waves during each execution of the control procedure 1100 (e.g., for each of the ultrasonic receiving circuits).
[0145] The control circuit may be configured to calibrate the operation of the sensor device when the space is vacant. At 1112, the control circuit may be configured to determine if the space is vacant, for example, in response to the ultrasonic detection signal V.sub.DET generated by the ultrasonic receiving circuit 230, 330 and/or the PIR detect signal V.sub.PIR generated by the PIR detection circuit 290. If the space is not vacant (e.g., occupied), the procedure 1100 may simply exit. At 1114, the control circuit may determine if a wait time T.sub.WAIT (e.g., approximately 15 minutes) has expired. For example, the wait time T.sub.WAIT may begin when the procedure 1100 is executed at 1110. If the space is not vacant for the length of the wait time T.sub.WAIT, the procedure 800 may exit. When the space is vacant for the length of the wait time T.sub.WAIT, the control circuit may continue on to 1116 to configure the operation of the signal generator circuit.
[0146] At 1116, the control circuit may generate an ultrasonic drive signal V.sub.DR to cause the sensor device to transmit ultrasonic waves. The ultrasonic drive signal V.sub.DR may be received by the ultrasonic transmitting circuit, which may generate an ultrasonic transmission voltage V.sub.TX. The ultrasonic transmission voltage V.sub.TX may be received by the ultrasonic transmitting element, which may emit the ultrasonic waves. For example, the control circuit may be configured to pulse-width modulate the ultrasonic drive signal V.sub.DR, such that the ultrasonic drive signal V.sub.DR is a PWM voltage characterized by the ultrasonic transmission frequency f.sub.US (e.g., approximately 40 kHz) and a duty cycle of approximately 50%. The control circuit may control a phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR to control a phase Φ.sub.TX of the transmitted ultrasonic waves. For example, the control circuit may control the phase Φ.sub.TX of the transmitted ultrasonic waves to be zero. If the sensor device does not comprise an ultrasonic transmitting element and an ultrasonic transmitting circuit (e.g., the sensor devices is used in a load control system having external ultrasonic transmitters), generation of the ultrasonic drive signal V.sub.DR at 1112 of the procedure 1100 may be omitted.
[0147] At 1118, the control circuit may be configured to disable generation of the supplemental signal V.sub.SUP. For example, the control circuit may be configured to disable the generation of the supplemental signal V.sub.SUP at 118 by ceasing pulse-width modulation of the signal generation control signal V.sub.CON and/or driving the magnitude of the generation control signal V.sub.CON to otherwise disable the signal generator circuit. At 1120, the control circuit may be configured to sample the magnitude (e.g., the DC magnitude) of a voltage of the ultrasonic receiving circuit (e.g., a monitored voltage) that may indicate that one or more signals of the ultrasonic receiving circuit may be at appropriate magnitudes to be properly processed (e.g., to allow the ultrasonic receiving circuit to generate the ultrasonic detection signal V.sub.DET). For example, the monitored voltage may be the envelope signal V.sub.ENV and/or the filtered version of the envelope signal V.sub.ENV (e.g., the filtered envelope signal V.sub.ENV-F). The control circuit may be configured to sample and store the magnitude (e.g., the DC magnitude) of the monitored voltage (e.g., the envelope signal V.sub.ENV and/or the filtered version of the envelope signal V.sub.ENV) at 1120 to generate a sample S.sub.MON.
[0148] At 1122, the control circuit may be configured to determine if the magnitude of the monitored voltage (e.g., as indicated by the sample S.sub.MON) indicates that the one or more signals of the ultrasonic receiving circuit are at appropriate magnitudes to be properly processed. For example, the control circuit may be configured to compare the sample S.sub.MON to a threshold S.sub.TH-MON and determine that the magnitude of the monitored voltage is at an appropriate level when the magnitude of the sample S.sub.MON exceeds the threshold S.sub.TH-MON. When the control circuit determines that the magnitude of the monitored voltage is at an appropriate level at 1122, the procedure 1100 may exit (e.g., with the generation of the supplemental signal V.sub.SUP disabled).
[0149] When the control circuit determines that the magnitude of the monitored voltage is not at an appropriate level at 1122, the control circuit may be configured to enable the generation of the supplemental signal V.sub.SUP at 1124. For example, the control circuit may be configured to enable the generation of the supplemental signal V.sub.SUP at 1120 by pulse-width modulating the signal generation control signal V.sub.CON and/or driving the magnitude of the generation control signal V.sub.CON to enable the signal generator circuit. The control circuit may retrieve a value for a phase Φ.sub.CON of the signal generation control signal V.sub.CON from, for example, memory (e.g., the memory 212) at 1124. When the procedure 1100 is executed for the first time (e.g., as part of the initial configuration procedure of the sensor device), the control circuit may be configured to initialize the phase Φ.sub.CON of the signal generation control signal V.sub.CON to zero (e.g., such that the phase Φ.sub.CON of the signal generation control signal V.sub.CON is equal to the phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR). When the procedure 1100 is subsequently executed (e.g., after the initial configuration procedure of the sensor device), the control circuit may be configured to determine the phase Φ.sub.CON of the signal generation control signal V.sub.CON to be the zero if the phase Φ.sub.CON was not modified during a previous execution of the procedure 800 or another value if the phase Φ.sub.CON was modified during a previous execution of the procedure 800. When the phase Φ.sub.CON of the signal generation control signal V.sub.CON is zero (e.g., the signal generation control signal V.sub.CON is in phase with the ultrasonic drive signal V.sub.DR), the control circuit may generate the rising and falling edges of the signal generation control signal V.sub.CON at the same times as the rising and falling edges of the ultrasonic drive signal V.sub.DR, respectively.
[0150] At 1126, the control circuit may be configured to sample the magnitude of the voltage of the ultrasonic receiving circuit (e.g., the magnitude of the monitored voltage that indicates that one or more signals of the ultrasonic receiving circuit may be at magnitudes to be properly processed) to generate a sample S.sub.MON with the generation of the supplemental signal V.sub.SUP enabled. At 1128, the control circuit may be configured to determine if the magnitude of the monitored voltage (e.g., as indicated by the sample S.sub.MON) indicates that the one or more signals of the ultrasonic receiving circuit are at appropriate magnitudes to be properly processed when the generation of the supplemental signal V.sub.SUP is enabled. For example, the control circuit may be configured to compare the sample S.sub.MON to the threshold S.sub.TH-MON and determine that the magnitude of the monitored voltage is at an appropriate level when the magnitude of the sample S.sub.MON exceeds the threshold S.sub.TH-MON. When the addition of the supplemental signal V.sub.SUP to the ultrasonic reception signal V.sub.RX is not causing the input signal V.sub.IN to have a smaller magnitude (e.g., the sample S.sub.MON of the envelope signal S.sub.MON exceeds the threshold S.sub.TH-MON) at 1128, the control circuit may determine that the magnitude of the monitored voltage is at an appropriate level while the supplemental signal V.sub.SUP is being generated, and may store the phase Φ.sub.CON of the signal generation control signal V.sub.CON at 1130, before the procedure 1100 ends. For example, the control circuit may store the phase Φ.sub.CON of the signal generation control signal V.sub.CON as the initial phase when the sample S.sub.MON is at an appropriate level at 1128 the first time that the procedure is executed.
[0151] When the received ultrasonic waves are out of phase with the transmitted ultrasonic waves and the addition of the supplemental signal V.sub.SUP to the ultrasonic reception signal V.sub.RX is causing the input signal V.sub.IN to have a smaller magnitude (e.g., the sample S.sub.MON is less than the threshold S.sub.TH-MON) at 828, the control circuit may determine that the magnitude of the monitored voltage is not at an appropriate level, and may adjust (e.g., increase and/or decrease) the phase Φ.sub.CON of the signal generation control signal V.sub.CON by an adjustment amount ΔΦ at 1130, sample the magnitude of the monitored voltage at 1126 to generate another sample S.sub.MON, and determine if the sample S.sub.MON at an appropriate level at 1128. For example, the adjustment amount ΔΦ may be a fixed amount, such that the control circuit adjusts the phase Φ.sub.CON of the signal generation control signal V.sub.CON by the same amount each time that the control circuit adjusts the phase Φ.sub.CON of the signal generation control signal V.sub.CON at 1130. In addition, the adjustment amount ΔΦ may be a variable amount that varies each time that the control circuit adjusts the phase Φ.sub.CON of the signal generation control signal V.sub.CON at 1130. For example, the control circuit may adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON using an interval-halving method (e.g., a binary search method). For example, the control circuit may adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON to approximately 180° (e.g., as compared to the phase Φ.sub.DR of the ultrasonic drive signal V.sub.DR) the first time that the phase Φ.sub.CON of the signal generation control signal V.sub.CON is adjusted at 1130, and then adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON to a value that is approximately equal to half of the previous value of the phase Φ.sub.CON each time that the phase Φ.sub.CON of the signal generation control signal V.sub.CON is subsequently adjusted at 1130 (e.g., approximately 90°, 45°, 22.5°, and so on). The control circuit may continue to adjust the phase Φ.sub.CON of the signal generation control signal V.sub.CON by the adjustment amount ΔΦ at 1130 and sample the magnitude of the monitored voltage at 1126 until the sample S.sub.MON is at an appropriate level at 1128. At 1132, the control circuit may then store the phase Φ.sub.CON of the signal generation control signal V.sub.CON as the phase last set at 1130, before the procedure 1100 ends.
[0152] At 1134, the control circuit may determine the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET by sampling the ultrasonic detection signal V.sub.DET to generate a sample S.sub.NF. For example, the ultrasonic detection signal V.sub.DET may have a magnitude that indicates the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET (e.g., such the sample S.sub.NF may indicate the magnitude of the noise floor of the ultrasonic detection signal V.sub.DET) when the space is vacant. At 1136, the control circuit may determine if the sample S.sub.NF of the ultrasonic detection signal V.sub.DET is greater than or equal to a threshold S.sub.TH-NF. For example, the control circuit may compare the sample S.sub.NF of the ultrasonic detection signal V.sub.DET to the threshold S.sub.TH-NF at 1136. When the sample S.sub.NF of the ultrasonic detection signal V.sub.DET is less than the threshold S.sub.TH-NF at 1136, the control circuit may set the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to a first magnitude (e.g., the nominal peak-to-peak magnitude) at 1138, before the procedure 1100 ends. For example, the control circuit may be configured to drive the magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ low towards circuit common to adjust the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to the first magnitude at 1138. When the sample S.sub.NF of the ultrasonic detection signal V.sub.DET is greater than or equal to the threshold S.sub.TH-NF at 1136, the control circuit may set the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to a second magnitude (e.g., the reduced peak-to-peak magnitude) at 1140, before the procedure 1100 ends. For example, the control circuit may be configured to drive the magnitude of the magnitude-adjustment control signal V.sub.MAG-ADJ high towards the first supply voltage V.sub.CC1 to adjust the peak-to-peak magnitude V.sub.P-P of the supplemental signal V.sub.SUP to the second magnitude at 1140.