1. Field of the Invention
The present invention generally relates to a temperature variation sensing apparatus and a method thereof. Particularly, the present invention relates a temperature variation sensing apparatus and a method thereof that utilizes software to perform temperature compensation and accordingly achieve a better sensitivity curve and higher sensing accuracy.
2. Description of the Prior Art
Passive infrared sensors (PIR sensor), based on the pyroelectric effect, sense the variation in temperature from the temperature difference between moving objects and the background environment and thus generate a corresponding electrical signal. The generated electrical signal can be outputted to electrical devices such as lamps, bells or alarms to control the operation of the electrical device.
Since the PIR sensor senses the flow of thermal energy in a passive manner, the temperature variation sensing device using the PIR sensor is readily interfered by environmental factors, resulting in sensing errors. For example, when used in outdoor, the environment conditions such as variations in temperature and climate can greatly affect the temperature variation sensing device by falsely triggering the PIR sensor. In addition, when the ambient temperature reaches a certain temperature (for example, a body temperature), warm air blowing over the PIR sensor is easily recognized as motions of human. Under such circumstances, temperature compensation can be performed to compensate for environmental influences on the temperature variation sensing device.
Temperature compensation is typically accomplished by a temperature compensation circuit consisting of thermistors. The temperature compensation circuit can correspondingly adjust the trigger sensitivity (sensitivity) of the temperature variation sensing device according to the ambient temperature. For example, at higher ambient temperature, the increase in trigger sensitivity is diminished to prevent from recognizing warm air blowing over the sensing device as motions of human.
A practical and desirable solution, however, is to reduce the sensitivity at higher ambient temperature.
One object of the present invention is to provide a temperature variation sensing apparatus and a method thereof, so that in comparison with the prior art, a better sensitivity curve and higher sensing accuracy can be achieved.
The temperature variation sensing apparatus of the present invention includes a sensing unit and a control unit. The sensing unit senses a variation in temperature to generate a temperature difference signal, while the control unit executes a program code to determine a non-trigger range based on the ambient temperature. When the level of the temperature difference signal is out of the non-trigger range, the control unit generates a control signal, wherein the non-trigger range varies with the ambient temperature and forms a first curve. The first curve includes a first extreme point, wherein the product of slopes of the first curve on two ends of the first extreme point is negative. The present invention utilizes software to determine the sensitivity at different ambient temperatures. That is, the present invention utilizes the program code to perform temperature compensation on the temperature difference signal generated by the sensing unit, so that a better sensitivity curve is obtained and the sensing accuracy is accordingly enhanced.
The method of sensing temperature for use in the temperature variation sensing apparatus includes the following steps: executing a program code to determine a sensitivity level based on an ambient temperature, wherein the sensitivity level varies with the ambient temperature and forms a second curve, the second curve includes at least one second extreme point, a product of slopes of the second curve on two ends of the second extreme point is negative; adjusting a sensitivity of the temperature variation sensing apparatus based on the sensitivity level; and sensing a variation in temperature by means of the temperature variation sensing apparatus. The method of sensing temperature of the present invention utilizes the program code to determine the sensitivity at different ambient temperatures. That is, the temperature compensation is performed by software, resulting in a better sensitivity curve and higher sensing accuracy.
The present invention provides a temperature variation sensing apparatus and a method thereof. In a preferred embodiment, the temperature variation sensing apparatus and the method thereof are applied to PIR-based sensors, such as PIR lights or PIR door bells.
Table 2 shows the association of the ambient temperature T and the non-trigger range ΔV, wherein each increment of the ambient temperature T corresponds to one non-trigger range ΔV with respective lower limit voltage VL and upper limit voltage VH. The temperature difference signal ST generated by the sensing unit 10 is inputted at the terminal 10 of the control unit 20. When the program code executed by the control unit 20 determines that the voltage of the temperature difference signal ST is out of the voltage range corresponding to the non-trigger range ΔV, the control unit 20 generates the control signal SC and outputs the control signal SC from the terminal 6 of the control unit 20 to the electrical device 100. For example, for the ambient temperature T between 25° C. and 27.5° C., the non-trigger range ΔV is ±0.8, so that the lower limit voltage VL is 1.7V by subtracting the non-trigger range ΔV (0.8V) from the reference voltage of 2.5 V (i.e. 2.5V−0.8 V=1.7 V), and the upper limit voltage VH is 3.3V by adding the non-trigger range ΔV (0.8V) into the reference voltage of 2.5V (i.e. 2.5 V+0.8 V=3.3 V). Therefore, when the ambient temperature T is between 25° C. and 27.5° C. (VNTC1=2.15 to 2.34 V), the control unit 20 will generate the control signal SC only if the program code executed by the control unit 20 determines that the voltage of the temperature difference signal ST sent from the sensing unit 10 to the control unit 20 is lower than the lower limit voltage VL or higher than the upper limit voltage VH. For example, the ambient temperatures T and corresponding non-trigger ranges ΔV in Table 2 are stored in an array of the program code. It is determined from the table that when the ambient temperature T is between 25° C. and 27.5° C., the control unit 20 will generate the control signal SC only if the voltage of the temperature difference signal ST is lower than 1.7 V or higher than 3.3 V.
When the non-trigger range ΔV is smaller, the possibility of the voltage value of the temperature difference signal ST falls out of the non-trigger range ΔV is relatively larger, increasing the chance of generating the control signal SC by the control unit 20 and in turn increasing the sensitivity. In contrast, when the non-trigger range ΔV is larger, the possibility of the voltage value of the temperature difference signal ST falls out of the non-trigger range ΔV is relatively smaller, decreasing the chance of generating the control signal SC by the control unit 20 and in turn reducing the sensitivity. In other words, the value of the non-trigger range ΔV is inversely proportional to the sensitivity of the temperature variation sensing apparatus.
The maximum ΔVmax is the absolute maximum of the first curve CA. The product of slopes of the first curve CA on two ends of the maximum ΔVmax is negative, so that the portion of the first corner CA that corresponds to the maximum ΔVmax is a downward U curve. In this case, the maximum ΔVmax corresponds to a low-limit temperature TL. When the ambient temperature T is close to the low-limit temperature TL, the control unit 20 reduces the non-trigger range ΔV as the ambient temperature T increases or decreases. That is, the trigger sensitivity of the temperature variation sensing apparatus is increased so that the sensing accuracy of the motion of people wearing heavy clothes can be enhanced at low ambient temperature T. Preferably, the low-limit temperature TL is between 15° C. and 20° C. (in this embodiment, between 15° C. and 17.5° C.). In other embodiments, however, the low-limit temperature TL may have other values.
Moreover, in other embodiments, the first curve CA can includes only the minimum ΔVmin or the maximum ΔVmax. That is, the non-trigger range ΔV increases when the ambient temperature T is close to the low-limit temperature TL. Alternatively, the non-trigger range ΔV reduces when the ambient temperature T is close to the high-limit temperature TH. In such cases, the association of the ambient temperature T and the non-trigger range ΔV in Table 2 is adjusted accordingly.
In the temperature variation sensing apparatus of the present invention, the sensitivity is adjusted by a program code for different ambient temperatures. That is, the temperature difference signal ST generated by the sensing unit 10 is compensated by means of software. In comparison with the prior art of using thermistor for temperature compensation, the temperature variation sensing apparatus of the present invention can realize a substantial ideal sensitivity curve and enhance the sensing accuracy.
Step 420 includes enabling a program code to adjust the sensitivity of the temperature variation sensing apparatus based on the sensitivity level. In a preferred embodiment, as shown in
Step 430 includes sensing a variation in temperature by means of the temperature variation sensing apparatus. At this point, the temperature compensation of the temperature variation sensing apparatus has been performed to achieve a higher sensing accuracy.
In the present invention, the method of sensing temperature utilizes a program code to determine the sensitivity at different ambient temperature. That is, the temperature compensation is performed by means of software. In comparison with the prior art of using thermistor for temperature compensation, the method of the present invention can realize a substantial ideal sensitivity curve and enhance the sensing accuracy.
Although the preferred embodiments of the present invention have been described herein, the above description is merely illustrative. Further modification of the invention herein disclosed will occur to those skilled in the respective arts and all such modifications are deemed to be within the scope of the invention as defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
099129089 | Aug 2010 | TW | national |