A smoke sensing device integrated with hoisting electrical appliances and an anti-interference detection method
By introducing through-beam detection structure and FFT conversion technology into smoke alarms, the problem of photoelectric smoke alarms being insensitive to black smoke and having a high false alarm rate is solved, and accurate detection of black smoke and ambient light interference are achieved. The reduction has improved the popularity of the device and the user experience.
Patent Information
- Application Number
- CN202410969985.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-19
AI Technical Summary
Existing photoelectric smoke alarms are insensitive to black smoke and are prone to false alarms. Environmental dust, device aging and ambient light interference lead to false alarms, which affects the accuracy and popularity of the equipment.
It adopts a smoke sensor device integrated with suspended electrical appliances, combined with lighting fixtures, and extends the infrared light path through multiple reflectors to form a through-beam detection structure, which can detect white smoke and black smoke, and use the micro control unit to detect when the infrared emission tube is turned off. Collect ambient light signals, perform FFT transformation to determine the infrared light emission frequency, reduce ambient light interference, and use the decision queue and Theil-Sen Median method to make threshold and trend decisions.
It improves the detection sensitivity of black smoke, reduces the false alarm rate, enhances the accuracy and user experience of the device, optimizes the indoor decoration effect, and realizes smart home functions through wireless communication.
Smart Images

Figure CN118506544B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of electronic information technology, relates to the field of smoke sensor technology, and in particular to a smoke sensing device integrated with hoisting electrical appliances and an anti-interference detection method. Background Art
[0002] The photoelectric smoke alarm is based on the light scattering effect. The design of this alarm utilizes the propagation and scattering characteristics of light. An optical maze is designed inside the alarm for smoke to enter and exit. The inner wall of the maze is black, which has the function of blocking and absorbing light. In addition, there is an infrared light emitting device in the optical maze, which is placed at a certain angle with the infrared light receiving device. In a smoke-free environment, only a small amount of light emitted by the infrared light emitting tube can be received by the light receiving device. However, when smoke appears, smoke particles will scatter the light, causing more light to reach the light receiving device, and the current of the light receiving device will increase. The sampling circuit will collect the voltage value corresponding to the current of the infrared receiving device, which will be amplified by the operational amplifier circuit and more accurately recognized by the micro control unit. However, this scattering detection structure is not sensitive to black smoke and is more prone to missed reports.
[0003] The smoke alarm will be calibrated with an alarm threshold before leaving the factory. If the alarm threshold is exceeded, the smoke alarm will send out an audible and visual alarm signal. As the photoelectric smoke alarm is used for a longer time, the number of false alarms will also increase. The main reasons include:
[0004] (1) Fine dust particles in the environment will also enter the smoke alarm and adhere to the inner wall of the optical maze, causing accumulation. As a result, even if there is no fire, the infrared light emitted by the transmitting tube may be received by the receiving tube due to scattering, reflection, etc., causing false alarms;
[0005] (2) The outer shell and diode of the optical maze will age over time, which may cause the smoke alarm to malfunction or fail.
[0006] (3) Ambient light may also affect the detector and cause false alarms.
[0007] Liang Kun et al. proposed a photoelectric smoke detection method. The voltage data sequence is obtained by multiple stage sampling, and the difference sequence is obtained by subtracting the sequence. The features (slope, mean, standard deviation) of the two sets of sequences are extracted and input into the classifier to obtain the smoke judgment result [Liang Kun, Wang Guanliang, Zhang Xuanming et al. An anti-interference photoelectric smoke detection method and detection module: CN110675591B [P]. 2019-09-14]. This method is different from the traditional smoke alarm that collects single data and compares it with a fixed threshold. Instead, it uses the features of multiple sampled data within a period of time to make judgments, which can effectively avoid false alarms caused by smoke accumulation in the maze or aging of the maze and devices, and improve the adaptability of the equipment to the environment. However, this method does not consider the interference of ambient light on infrared light receiving devices.
[0008] At present, in the installation process of smoke alarms, lamps and smoke alarms are generally installed separately, which affects the beauty of interior decoration, and the smoke alarms do not bring a strong sense of gain to users. This also leads to a low penetration rate of smoke alarms in residential areas to a certain extent. Summary of the invention
[0009] In order to overcome the defects of the prior art, the present invention discloses a smoke sensing device integrated with a hoisting electrical appliance and an anti-interference detection method.
[0010] The anti-interference detection method of the present invention comprises the following steps:
[0011] Step S1. When the infrared emitting tube is turned off, the microcontroller unit receives a signal from the first port of the smoke detection unit at a sampling frequency f s Collect indoor ambient light signals to obtain ambient digital signals;
[0012] The ambient light frequency distribution is obtained by transforming the ambient digital signal, and the infrared light emission frequency f which is much larger than the upper limit of the ambient light frequency distribution is determined. The so-called much larger means 10 times larger than the upper limit of the ambient light frequency, and the processing window (f1, f2); f1 and f2 are the lower limit and upper limit of the processing window respectively;
[0013] Step S2. After determining the infrared light emission frequency f and the processing window (f1, f2), the microcontroller unit turns on the infrared emission tube by controlling the second port of the smoke detection unit to emit infrared light at the determined infrared light emission frequency f;
[0014] The microcontroller unit receives the sample from the first port of the smoke detection unit at a sampling frequency f s The acquisition time length is the sampling time t s Digital optical signal;
[0015] Step S3: transform the digital optical signal to obtain a spectrum; calculate the spectrum to obtain a processing window The maximum frequency domain amplitude of the internal digital optical signal A1;
[0016] Add the maximum frequency domain amplitude A1 to the decision queue C=[c1,c2,…,c m ] is to judge that the elements in queue C are shifted to the left as a whole and then the maximum frequency domain amplitude A1 is added to the end of the queue;
[0017] Step S4. Compare the difference between the first and last elements of the judgment queue with the set sequence head and tail difference threshold d, that is, c1-c m >Whether d is established, if so, proceed to step S5; otherwise, wait for the set decision queue sampling interval time tj and then return to step S2;
[0018] Step S5. Calculate the trend value K of the judgment queue C; if K<0, proceed to step S6, otherwise wait for the sampling interval time tj and jump to S2; continue to emit infrared light;
[0019] Step S6: Detect smoke information and trigger an alarm.
[0020] Preferably, the lower limit of the processing window is set in step S1 , upper limit , h is the set window coefficient, the number of sampling points N=f s *t s .
[0021] Preferably, in step S5, the trend value K of the queue C is calculated using the Theil-Sen Median method.
[0022] ;
[0023] Among them, Median() means taking the median value. , represents any symbol, c i ,c j Represents the elements with sequence numbers i and j in the decision sequence.
[0024] Preferably, the method for determining the value of the sequence head-to-tail difference threshold d is:
[0025] Set a smoke-free collection time t1, perform steps S1 to S3 within the smoke-free collection time t1 and in a smoke-free environment, and repeat steps S1 to S3 again after all initial values stored in the judgment queue are updated;
[0026] After repeating steps S1 to S3 multiple times, the difference between the first and last elements of the judgment queue is calculated after each step S3, and the largest difference is rounded up to be used as the sequence head and tail difference threshold d.
[0027] The present invention also discloses a smoke sensing device integrated with a hoisting electrical appliance, comprising an outer cover, the outer cover being provided with a power cord hole and a smoke inlet and outlet hole, and also comprising a smoke detection system installed in the outer cover, the smoke detection system comprising a microcontroller unit, and a smoke detection unit and an alarm unit connected to the microcontroller unit, the smoke detection unit being used to emit and receive infrared light, and being connected to an infrared transmitting tube and an infrared receiving tube; the smoke sensing device also comprises a plurality of reflectors, the plurality of reflectors being matched with the installation positions of the infrared transmitting tube and the infrared receiving tube, so that the infrared light emitted by the infrared transmitting tube is reflected by all the reflectors and then returned to the infrared receiving tube, the microcontroller unit being used to implement the detection method.
[0028] Preferably, an upwardly concave truncated cone is provided in the center of the outer cover, the power cord hole and the ceiling plate connection hole are provided on the top of the truncated cone, and a plurality of smoke inlet and outlet holes are evenly arranged on the side wall of the truncated cone.
[0029] Preferably, the height of the truncated cone is not lower than the height of the annular side wall of the outer cover.
[0030] Preferably, it also includes an infrared transceiver diode placement rack and a plurality of reflector placement racks, the infrared transmitting tube and the infrared receiving tube are placed back to back on the infrared transceiver diode placement rack, there are four groups of reflector placement racks, each group is equipped with a reflector, the reflector placement racks are respectively placed at the four vertices of a rectangle, and the infrared transceiver diode placement rack is placed in one of the rectangular boundaries, the infrared transmitting tube and the infrared receiving tube installed on the infrared transceiver diode placement rack are respectively facing different vertices of the rectangular boundary, and the angle between the reflector and the rectangular boundary is 45 degrees.
[0031] Preferably, the smoke detection unit includes a first port and a second port connected to the microcontroller unit, the second port is connected to the positive electrode of the infrared emitting tube through a first resistor, and the negative electrode of the infrared emitting tube is grounded; the smoke detection unit also includes an operational amplifier, the positive and negative electrodes of the infrared receiving tube are respectively connected to the positive and negative electrodes of the operational amplifier, and the positive electrode of the infrared receiving tube is grounded through a second resistor, the negative electrode of the infrared receiving tube is connected to the output end of the operational amplifier through a third resistor, and the output end of the operational amplifier is connected to the first port.
[0032] Preferably, it also includes a wireless communication unit connected to the micro control unit.
[0033] Compared with the prior art, the present invention has the following beneficial effects:
[0034] 1. The smoke sensing device of the present invention combines the smoke alarm with the lighting fixture in space, does not affect the shape of the existing lighting fixture, and optimizes the impact of the smoke alarm on indoor decoration;
[0035] 2. The smoke sensing device of the present invention has a larger space and can use a beam-type smoke detection structure, which can detect both white smoke and black smoke, thereby reducing the fire miss rate of the smoke alarm device;
[0036] 3. The smoke sensing device of the present invention, as a smart home device, can send relevant information of the device to the user end through the wireless communication unit, and can also receive control signals from the user end, so that it has both normal attributes and emergency attributes. The combination of normal and emergency attributes can effectively improve the sense of gain of fire fighting devices in daily use;
[0037] 4. The anti-interference detection method of the present invention emits infrared light at a fixed frequency, turns on the infrared receiving tube to collect the digital signal of the receiving circuit and performs FFT transformation, converts the time domain signal to the frequency domain, calculates the maximum frequency domain amplitude of the target signal in the processing window as the subsequent judgment data, effectively distinguishes the target signal from the interference signal, reduces the influence of interference such as ambient light, thereby reducing the false alarm rate and improving the accuracy rate;
[0038] 5. The anti-interference detection method performs head and tail threshold judgments and trend judgments on the judgment queue obtained after multiple samplings. Each judgment is based on data for a period of time, making full use of the sampling information, and can effectively avoid the false alarm problem caused by device aging and smoke accumulation in traditional detection methods, thereby reducing the false alarm rate and improving the accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 This is a schematic structural diagram of a specific implementation of the smoke sensing device of the present invention;
[0040] Figure 2 for Figure 1 A schematic diagram comparing the top view of the smoke sensing device and the cross-section along the AA plane in the top view;
[0041] Figure 3 A schematic diagram of a specific implementation of the infrared transmission path of the present invention;
[0042] Figure 4 This is a schematic diagram of the principle of a traditional scattering smoke sensor;
[0043] Figure 5 A schematic diagram of a specific implementation of the smoke detection system of the present invention;
[0044] Figure 6 A schematic diagram of a specific implementation of the smoke detection unit of the present invention;
[0045] Figure 7 This is a schematic diagram of a specific implementation of the present invention in which the smoke sensing device and the lamp are integrally installed on the ceiling;
[0046] Figure 8 A schematic flow chart of a specific implementation of the detection method of the present invention;
[0047] Fig. 9 A spectrum diagram of an ambient light signal detected in the second embodiment of the present invention;
[0048] Fig.10 A processing window spectrum diagram obtained in a smoke-free state in the second embodiment of the present invention;
[0049] Fig.11 A diagram showing the difference between the amplitude values at the beginning and the end of a judgment sequence obtained in the smoke-free state in the second embodiment of the present invention;
[0050] Fig.12 A processing window spectrum diagram obtained in the smoke-free state described in the third embodiment of the present invention;
[0051] The corresponding names of the figure marks in the figure are: outer cover 10, power cord hole 11, ceiling plate connecting hole 12, smoke inlet and outlet 13, infrared transceiver diode placement rack 14, reflector placement rack 15, first port 16, second port 17, infrared transmitting tube D1 and infrared receiving tube D2, hanging rod 32, ceiling plate 31, lighting lamp 33, first resistor R1, second resistor R2, third resistor R3. DETAILED DESCRIPTION
[0052] The specific embodiments of the present invention are described in further detail below.
[0053] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in combination with the specific implementation methods of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] The present invention provides a smoke sensor device integrated with a hoisting electrical appliance to solve the problem that the existing smoke alarm needs to be installed separately from lamps, ceiling fans, etc., which affects the beauty of interior decoration and is not conducive to the popularization and promotion of smoke alarms in residences. At the same time, the present invention also solves the problem that smoke alarms are not sensitive to black smoke.
[0055] In order to achieve the above object, the present invention adopts the following technical solutions:
[0056] like Figures 1 to 4As shown, the present invention provides a smoke sensing device integrated with hoisting electrical appliances, including an outer cover 10, a truncated cone recessed upwardly is arranged in the center of the outer cover, a power cord hole 11 and a ceiling plate connection hole 12 are arranged on the top of the truncated cone, and a plurality of smoke inlet and outlet holes 13 are evenly arranged on the side wall of the truncated cone. The device also includes an infrared transceiver diode placement rack 14 and a plurality of reflector placement racks 15 installed on the inner side of the outer cover. The smoke detection system is placed between the reflector placement rack 15 and the inner edge of the outer cover 10. The smoke detection system includes a micro control unit and a smoke detection unit, an alarm unit, an AC / DC unit, a battery management unit, a wireless communication unit, and a rechargeable battery connected to the micro control unit. The smoke detection system is powered by the AC / DC unit or the rechargeable battery.
[0057] By setting up a truncated table, it is convenient to open multiple smoke inlet and outlet holes on the truncated table. The smoke inlet and outlet holes are close to the infrared reflection path determined by the position of the reflector and the infrared transceiver diode, and the detection is timely and accurate. The setting of the truncated table can place multiple reflector placement racks around the truncated table to form a reflection path around the truncated table, and smoke entering from all directions can be detected.
[0058] The power cord hole allows the power cord that powers the lamp to pass through and connect to the lamp holder on the roof. The power cord is connected to the lamp and at the same time to the AC / DC unit, converting AC power into DC power and supplying power to the microprocessor and smoke detection unit. By installing all components in the outer cover, the outer cover can be fixed to the outside of the lamp holder on the roof. The power cord passes through the power cord hole to power the lamp suspended below and realize smoke detection at the same time, without occupying additional roof area, and is used in harmony with the lamp in appearance.
[0059] The infrared transmitting tube and the infrared receiving tube installed on the infrared transceiver diode placement rack 14 form a reflective light path with the reflectors installed on the multiple reflector placement racks 15, so that the infrared light emitted by the infrared transmitting tube is reflected by all the reflectors and then returns to the incident infrared receiving tube; Figure 2 In the specific embodiment shown, the infrared transmitting tube and the infrared receiving tube are placed back to back on an infrared transceiver diode placement rack 14, and the reflector is placed on a reflector placement rack 15. There are four groups of reflector placement racks, each group is equipped with a reflector, and the reflector placement racks are respectively placed at the four vertices of a rectangle, and the infrared transceiver diode placement rack 14 is placed in one of the rectangular boundaries, and the infrared transmitting tube D1 and the infrared receiving tube D2 installed on the infrared transceiver diode placement rack 14 are respectively facing different vertices of the rectangular boundary, and the reflector placed at the rectangular vertex is at an angle of 45 degrees with the rectangular boundary, thereby forming a cross-beam detection structure that extends the optical path, such as Figure 3 As shown; obviously, by further adding reflectors and adjusting the angles of the reflectors, the reflection path can be further extended and the infrared rays can be reflected back to the infrared receiving tube.
[0060] for Figure 2 In the typical embodiment shown, for a circular outer cover, the reflector mounting racks are respectively placed at the four vertices of a square centered at the center of the circle, and the infrared transceiver diode mounting rack is placed at the center of one of the square boundaries.
[0061] The power cord hole 11 is used for routing the power cord; the ceiling plate connection hole 12 is used to fix the outer cover 10 on the ceiling through the ceiling plate 31 of the hanging appliance.
[0062] The ceiling plate 31 and the lighting lamp 33 can be further connected by the suspension rod 32. Figure 7 As shown, the suspension rod passes through the ceiling cup connection holes on the ceiling cup and the outer cover, and the outer cover and the ceiling cup are fixed together by tightening bolts at the bottom of the outer cover, and the ceiling cup is fixed to the ceiling by bolts, and the outer cover is fixed between the ceiling cup and the round table. Figure 7 As shown, the ceiling-mounted electrical appliances can be lamps, ceiling fans, projectors, etc.
[0063] The smoke inlet and outlet holes 13 are used for smoke in and out; the infrared transceiver diode placement rack 14 is used to place the infrared transmitting tube and infrared receiving tube of the smoke detection unit; the reflector placement rack 15 is used to place the reflector, extend the optical path, and realize the beam detection structure. Figure 3 Rectangular box.
[0064] A specific implementation of the smoke detection system is as follows Figure 5 As shown, the microcontroller unit is used to control the operation of the smoke detection unit, the alarm unit, and the wireless communication unit; the AC / DC unit is used to power the smoke detection system and charge the rechargeable battery; the smoke detection unit is used to emit infrared light, which is reflected by multiple reflectors to the photoelectric receiving tube to generate an electrical signal for the microcontroller unit to collect and detect smoke; the alarm unit is used to realize a local sound alarm; the battery management unit is used to realize a battery management system of the rechargeable battery; and the wireless communication unit is used to send device information to the user end and receive control signals from the user end.
[0065] The inside of the outer cover can be coated black to make it light-absorbing, so as to reduce the interference of ambient light on the detection effect. The height of the central frustum can be no lower than the annular side wall of the outer cover. Figure 7 As shown, the annular side wall of the outer cover is not sealed by the ceiling or the ceiling plate, thereby forming a complete flue with the smoke inlet and outlet holes 13.
[0066] The micro control unit is the control center of the smoke detection system, responsible for the smoke data collection of the smoke detection unit, the reading of the battery management unit data, and the operation of the alarm unit and the wireless communication unit.
[0067] A specific implementation of the smoke detection unit is as follows Figure 6As shown, it includes a first port 16 and a second port 17 connected to the microcontroller unit, the second port is connected to the positive electrode of the infrared emitting tube D1 through the first resistor R1, and the negative electrode of the infrared emitting tube is grounded; the smoke detection unit also includes an operational amplifier 18, the positive and negative electrodes of the infrared receiving tube are respectively connected to the positive and negative electrodes of the operational amplifier, and the positive electrode of the infrared receiving tube is grounded through the second resistor, and the negative electrode of the infrared receiving tube is connected to the output end of the operational amplifier through the third resistor, and the output end of the operational amplifier is connected to the first port 16;
[0068] The microcontroller controls the infrared emitting tube D1 through the second port, and the infrared light is received by the infrared receiving tube D2 after being reflected by the reflector, generating a large photocurrent, and generating a voltage at the first port through the operational amplifier for collection by the microcontroller. The first resistor R1 is a current limiting resistor, used to control the working current of the infrared emitting tube, and the second resistor R2 and the third resistor R3 are working state configuration resistors of the operational amplifier, used to ensure the working state of the operational amplifier, which can generate a large gain for the voltage change on the infrared receiving tube, and output a linearly changing output voltage from the first port 16. The operational amplifier can use LMV538, the first resistor R1 has a resistance value of 47 ohms, the second resistor R2 has a resistance value of 10M ohms, and the third resistor R3 has a resistance value of 10M ohms.
[0069] Traditional scattering detection structures cannot detect black smoke. Traditional scattering detection structures such as Figure 4 As shown, under normal circumstances, the receiving device cannot receive the infrared rays emitted by the transmitting device. Only when the initial light path encounters smoke, due to the scattering effect of solid and liquid particles in the smoke, the direction of part of the infrared rays changes and is received by the receiving device, thereby determining that there is smoke.
[0070] In a fire, a large amount of black smoke produced when the combustible material enters the full combustion stage absorbs infrared rays. Under the scattering detection structure, black smoke absorbs light intensity while scattering infrared rays, causing the intensity of the scattered light to be greatly reduced, thereby reducing the sensitivity of black smoke detection.
[0071] The present invention adopts a counter-radiation structure, and uses multiple reflectors to extend the optical path. The infrared transmitting tube and the infrared receiving tube are placed back to back. The infrared light cannot directly irradiate the receiving tube, but is reflected by multiple reflectors and then irradiates the infrared receiving tube. When there is no smoke, the infrared receiving tube generates a large photocurrent. When there is smoke, the light will be scattered and absorbed, so that the current signal decreases, that is, the voltage of the second port decreases, which is opposite to the signal change of the scattering structure.
[0072] From the principle of adopting the opposed-beam structure of the present invention, it can be known that the absorption effect of black smoke will not affect the opposed-beam smoke detection. However, if direct opposed-beam is adopted, that is, the infrared transmitting tube directly transmits to the infrared receiving tube, the volume of the lamp holder or the outer cover is limited, and the straight transmission path cannot be set very long. Under short-distance transmission, the received light intensity is relatively large, and the output voltage of the infrared receiving tube is easy to reach oversaturation. At this time, even if the light intensity is attenuated due to the generation of smoke, the output voltage of the infrared receiving tube is still oversaturated or close to saturation after reduction, resulting in failure to detect.
[0073] By using multiple reflectors to extend the optical path, the infrared rays are attenuated after a long transmission path and multiple reflections, so that the output voltage of the infrared receiving tube is no longer in an oversaturated state, but in a state of decreasing with the light intensity. At this time, if smoke is generated on the transmission path, causing the light intensity to further attenuate, the output voltage will produce an obvious decrease, thus realizing the smoke detection function.
[0074] In the present invention, based on the larger internal space of the outer cover 10, an optical reflector is used to extend the light path, so that the smoke detection unit can detect black smoke and avoid voltage saturation of the infrared receiving tube, thereby greatly reducing the false alarm rate.
[0075] The alarm unit is generally composed of a buzzer and a lamp. After a fire is detected by an anti-interference detection method, the microcontroller immediately starts the buzzer to alarm. Since the present invention is integrated with the lighting lamp, the lamp can also be directly used to control its flashing to remind the alarm.
[0076] It should be noted that the user can control the opening and closing of the alarm unit by sending a control signal through the wireless communication unit to detect whether the alarm function of the device is normal. In situations where false alarms are very likely to occur, such as when it is known that someone is smoking or cooking under the smoke detection device, the alarm function of the device can be directly turned off.
[0077] When the mains is on, the AC / DC unit powers the rechargeable battery and the microcontroller unit. When the mains is off, the rechargeable battery powers the microcontroller unit. The battery management unit has charge and discharge protection, temperature protection, and calculates the state of charge (SOC) and health (SOH) of the rechargeable battery for the microcontroller unit to read.
[0078] The wireless communication unit can send the status of the device to the user end, including alarm information, battery SOC, and battery SOH, to facilitate the user to manage the device. It can also receive control information from the user end, including turning on and off the local alarm, and turning on and off the local alarm function. The wireless communication unit can be connected to the local gateway as part of the smart home to improve the user experience of the smoke alarm as an emergency device.
[0079] In a specific implementation, the wireless communication unit is LRF215C, the AC / DC unit is S-10-5 switching power supply, the microcontroller unit is STM32F103C8T6 single chip microcomputer, and the battery management unit is BQ40Z50.
[0080] The present invention also provides an anti-interference detection method, wherein the microcontroller unit controls the second port 17 of the smoke detection unit to keep the infrared transmitting tube D1 closed, collects the ambient light signal sensed by the infrared receiving tube D2 from the first port 16 of the smoke detection unit through the microcontroller unit and performs FFT transformation to obtain the spectrum distribution, emits infrared light at a fixed frequency far higher than the frequency of the interference signal, collects the digital signal of the receiving circuit through the infrared receiving tube and performs FFT transformation, converts the time domain signal to the frequency domain, effectively distinguishes the target signal from the interference signal, and reduces the influence of ambient light. The maximum frequency domain amplitude of the target signal in the processing window is calculated as the subsequent judgment data, and the data is added to the judgment queue to perform threshold judgment and trend judgment, so as to solve the false alarm problem caused by ambient light interference, device aging and smoke accumulation in the traditional detection method, thereby reducing the false alarm rate and improving the accuracy.
[0081] like Figure 8 As shown, the anti-interference detection method includes the following steps:
[0082] In the system initialization before anti-interference detection, it is necessary to set the sampling frequency f of the infrared signal received by the first port of the smoke detection unit s , sampling time t s , then the number of sampling points N=f s *t s , the frequency resolution is f s / N=1 / t s , the decision queue sampling interval tj, the decision queue length m, and the decision queue C=[c1,c2,……,c m ] The initial elements c1, c2, ..., c m The initial values are all set to the minimum value, which can usually be set to 0, and the sequence head and tail difference threshold d is set.
[0083] Step S1. When the infrared emitting tube is turned off, the microcontroller unit receives a signal from the first port of the smoke detection unit at a frequency f sCollect the indoor ambient light signal to obtain the ambient digital signal, perform FFT (Fast Fourier Transform) on the ambient digital signal to obtain the ambient light frequency. FFT transformation can reduce the influence of interference such as ambient light. The ambient light frequency is usually a distribution value. Determine the infrared light emission frequency f that is much larger than the upper limit of the ambient light frequency distribution, and the processing window (f1, f2); the so-called much larger means more than 10 times the upper limit of the ambient light frequency. For example, if the ambient light frequency is 40 to 70 Hz, the infrared light emission frequency f=700 Hz can be taken;
[0084] f1 and f2 are the lower and upper limits of the processing window respectively.
[0085] The ambient light signal is generally 50 Hz. The ambient light signal is collected and FFT transformed to obtain its frequency distribution, and the infrared light emission frequency f is further determined. Through appropriate processing in subsequent steps, the target signal and the interference signal in the receiving circuit signal can be effectively distinguished.
[0086] The processing window should be near and include the infrared light emission frequency f. Due to the microcontroller crystal oscillator frequency deviation and other reasons, the emission frequency may shift, so it is necessary to calculate the maximum amplitude of the emission frequency in the processing window;
[0087] Therefore, the processing window can be set;
[0088] Lower limit , upper limit , h is the set window coefficient, which can be a positive integer between 20 and 50. The center frequency of the processing window is the infrared light emission frequency f, and the length is 2h*f s / N;
[0089] Step S2. The microcontroller unit turns on the infrared emitting tube by controlling the second port of the smoke detection unit to emit infrared light at an infrared light emission frequency f;
[0090] The microcontroller unit receives a signal from the first port of the smoke detection unit at a frequency f s The acquisition time length is t s The digital light signal is sensed by the infrared receiving tube;
[0091] The sampling frequency f s It is generally greater than twice the transmission frequency f to prevent frequency ambiguity from occurring and affecting subsequent decisions.
[0092] The sampling time t s Inversely proportional to the frequency resolution, the longer the sampling time, the higher the spectrum resolution, which means that the frequency components in the signal can be distinguished and identified more finely. At the same time, it will also increase the calculation complexity and processing time. You can choose to set an appropriate value after comprehensive consideration.
[0093] Step S3. Perform FFT transformation on the digital optical signal to obtain a spectrum;
[0094] The maximum frequency domain amplitude A1 of the digital optical signal in the processing window (f1, f2) is obtained by calculating the spectrum after FFT transformation;
[0095] Add the maximum frequency domain amplitude A1 to the decision queue C=[c1,c2,…,c m ], that is, the elements in C are shifted to the left as a whole and then the maximum frequency domain amplitude A1 is added to the end of the queue; for example, assuming that the initial judgment queue C=[c 10 ,c 20 ,……,c m0 ], after A1 is inserted from the end of the queue, it becomes C=[A1,c 10 ,c 20 ……,c (m-1)0 ];
[0096] The judgment queue contains sampled data within a period of time, calculates the data change feature information within this period of time, and performs threshold judgment and trend judgment, which can reduce the false alarm rate of traditional detection methods and improve the accuracy.
[0097] Step S5. Compare the difference between the first and last elements of the judgment queue with the difference threshold d between the first and last elements of the sequence, i.e. c1-c m >Whether d is established, if so, proceed to step S6; otherwise, wait for the queue sampling interval tj to be determined and then return to step S2;
[0098] The c1-c m The value of is greater than the threshold d, indicating that an increase in the number of particles in the optical darkroom during the time tj*(m-1) has been detected, but it may also be a data anomaly, which requires further trend judgment.
[0099] The sequence head-to-tail difference threshold d is generally determined by experiments. The data change is very small when there is no fire smoke, and the data change is large when there is fire smoke. The judgment queue data when there is no fire smoke for a sufficiently long time can be collected through steps S1 to S3. When all the initial values stored in the judgment queue are updated, steps S1 to S3 are repeated again to obtain a head-to-tail difference of the judgment sequence each time.
[0100] The maximum value of the difference between the beginning and the end of all decision sequences is calculated and rounded up to be the decision threshold d.
[0101] In the initial state of the judgment queue, all values are generally set to the minimum value. After each processing window is completed, all data will be updated. However, the only new data actually introduced is the last data. The rest of the data is just one position forward of the queue. In the early stage, when most of the initial values are not updated, the trend value is generally an increasing trend. As the number of processing windows increases, all values in the queue are updated. Generally speaking, in the early stage, when there is no smoke, the difference between the head and the tail is small and relatively stable. However, after the smoke exists, the difference between the head and the tail is large. Once a fire is discovered, the smoke will become larger and larger, causing the difference between the head and the tail to continue to increase. After joining the queue, the numerical change trend of the queue changes. Considering the trend value can effectively avoid misjudgment.
[0102] Step S5. Calculate the trend value K of queue C using the Theil-Sen Median method.
[0103] ;
[0104] Among them, Median() means taking the median, i, j∈[1,m], Represents an arbitrary symbol, that is, for any j greater than i, calculate the value of all cases and take the median of all values to obtain the trend value K. If K is greater than zero, it indicates that the judgment sequence is an increasing trend, otherwise it is a decreasing trend.
[0105] Theil-Sen Median method is a robust nonparametric statistical trend calculation method with high computational efficiency and is suitable for trend analysis of long time series data.
[0106] If the trend value K<0, the process proceeds to step S6; otherwise, the process returns to step S3 after waiting for the sampling interval time tj to continue collecting digital optical signals.
[0107] The trend value K is less than 0, which means that the amount of smoke is increasing within the time tj*(m-1), showing an upward trend.
[0108] Step S6: Detect smoke information and trigger an alarm.
[0109] The anti-interference detection method of the present invention can be run in a micro control unit.
[0110] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. The present invention may also be described or implemented by other different specific examples. Any equivalent changes made by any person skilled in the art within the scope of the claims belong to the protection scope of the present invention.
[0111] Embodiment 1
[0112] like Figures 1 to 3As shown, this embodiment provides an outer cover 10 with an integrated lighting fixture, which is provided with a power cord hole 11, a ceiling cup connection hole 12, smoke inlet and outlet holes 13 evenly arranged on the circumference, an infrared transceiver diode placement rack 14, and a reflector placement rack 15. The smoke detection system is placed between the reflector placement rack 15 and the inner edge of the outer cover 10. The smoke detection system includes a microcontroller unit and a smoke detection unit, an alarm unit, an AC / DC unit, a battery management unit, a wireless communication unit, and a rechargeable battery connected to the microcontroller unit. The smoke detection system is powered by the AC / DC unit or the rechargeable battery.
[0113] The power cord hole 11 is used for routing the power cord; the ceiling plate connection hole 12 is used to fix the outer cover 10 to the ceiling through the ceiling plate 31, and further complete the connection between the ceiling plate 31 and the lighting lamp 33 through the suspension rod 32, such as Figure 4 As shown; the smoke inlet and outlet holes 13 are used for the smoke in and out; the infrared transceiver diode placement rack 14 is used to place the infrared transmitting tube and infrared receiving tube of the smoke detection unit; the reflector placement rack 15 is used to place the reflector, extend the optical path, and realize the beam detection structure. The reflected optical path is as shown Figure 2 Rectangular dotted box.
[0114] The microcontroller unit is used to control the operation of the smoke detection unit, the alarm unit, and the wireless communication unit; the AC / DC unit is used to power the smoke detection system and charge the rechargeable battery; the smoke detection unit is used to emit infrared light, which is reflected by the reflector to the photoelectric receiving tube to generate an electrical signal for the microcontroller unit to collect and detect smoke; the alarm unit is used to realize local sound alarm; the battery management unit is used to realize the battery management system of the rechargeable battery; the wireless communication unit is used to send device information to the user end and receive control signals from the user end.
[0115] The inside of the outer cover is coated in black to give it a certain light-absorbing effect. The central raised part is slightly higher than the edge area, so that an air gap is formed between the outer edge and the ceiling, thereby forming a complete flue with the smoke inlet and outlet holes.
[0116] The microcontroller unit is the control center of the smoke detection system, responsible for the smoke data collection of the smoke detection unit, the reading of the battery management unit data, and the operation of the alarm unit and the wireless communication unit.
[0117] The infrared transceiver diode is placed on the infrared transceiver diode placement rack 14, and the reflector is placed on the reflector placement rack 15. There are four reflectors in total, which extend the optical path to form a cross-beam detection structure.
[0118] Smoke detection unit circuit Figure 6As shown, the microcontroller controls the infrared emitting tube D1 through the second port. The infrared light is reflected by the reflector and received by the infrared receiving tube D2, generating a large photocurrent. The operational amplifier generates a voltage at the first port for collection by the microcontroller. R1 is a current limiting resistor used to control the working current of the infrared emitting tube, and its resistance value is 47Ω. R2 and R3 are configuration resistors of the operational amplifier, used to ensure the linear operation of the operational amplifier, and their resistance value is 10MΩ.
[0119] The infrared transmitting tube and the infrared receiving tube are placed back to back. The infrared light cannot directly irradiate the receiving tube, but is reflected by four reflectors and then irradiated to the infrared receiving tube. When there is no smoke, the infrared receiving tube generates a large photocurrent. When there is smoke, the light will be scattered and absorbed, so that the current signal decreases, that is, the voltage of the second port decreases, which is opposite to the signal change of the scattering structure. The alarm unit is composed of a buzzer. After the fire is detected by the anti-interference detection method, the buzzer is immediately controlled to start the alarm.
[0120] The user can send a control signal through the wireless communication unit to control the opening and closing of the alarm unit, detect whether the alarm function of the device is normal, and directly turn off the alarm function of the device in situations where false alarms are very likely to occur.
[0121] When the mains is on, the AC / DC unit powers the rechargeable battery and the microcontroller unit. When the mains is off, the rechargeable battery powers the microcontroller unit. The battery management unit has charge and discharge protection, temperature protection, and calculates the state of charge (SOC) and health (SOH) of the rechargeable battery for the microcontroller unit to read.
[0122] The battery management unit is built using TI's battery management chip, which can realize battery charge and discharge protection, temperature protection and realize real-time calculation of battery SOC and SOH through TI's impedance tracking algorithm, making it easy for users to manage the device's battery according to the remaining capacity and health status of the rechargeable battery.
[0123] The wireless communication unit can send the status of the device to the user end, including alarm information, battery charge status, battery health status and other information, so that the user can manage the device. It can also receive control information from the user end, including turning on and off the local alarm, and turning on and off the local alarm function. The wireless communication unit uses a ZigBee module and is connected to the ZigBee gateway. As part of the smart home, it improves the user's sense of gain of the device.
[0124] ZigBee has the characteristics of low power consumption, low cost, short delay, large network capacity, easy use, stable and reliable operation, and security, making it very suitable for smart home devices.
[0125] The present invention combines the smoke sensing device with the lighting fixture in space without affecting the shape of the existing lighting fixture, thereby optimizing the impact of the smoke alarm on interior decoration; based on the larger internal space of the smoke sensing device, a directed smoke detection structure is designed, which can detect both white smoke and black smoke, thereby reducing the fire omission rate of the smoke alarm device; as a smart home device, the relevant information of the device can be sent to the user end through the wireless communication unit, and the control signal of the user end can also be received, so that it has both normal use attributes and emergency attributes.
[0126] Embodiment 2
[0127] This embodiment provides an anti-interference detection method, such as Figure 8 As shown, the method comprises the following steps:
[0128] System initialization; set the sampling frequency f of the infrared signal received by the infrared receiving tube corresponding to the first port s =5000Hz, sampling time t s =0.5s, number of sampling points =2500, the frequency resolution is , the decision queue sampling interval t=6s, the decision queue length m=10, and the initial decision sequence element values are all set to the minimum value, and the sequence head and tail difference threshold d=83.
[0129] Step S1. When the infrared emitting tube is turned off, the microcontroller unit receives a signal from the first port of the smoke detection unit at a frequency f s Collect the indoor ambient light signal, get the digital signal, and perform FFT transformation on it to obtain the ambient light frequency distribution, such as Fig. 9 As shown, Fig. 9 The unit of the medium amplitude is V.
[0130] Determine the infrared light emission frequency f=2000Hz, which is much larger than the ambient light frequency, and the processing window In this embodiment, h takes the lower limit value of 20, and further calculation yields f1=1960Hz, f2=2040Hz.
[0131] Step S2: Control the second port to turn on the infrared emitting tube to emit infrared light at a frequency f; the microcontroller unit controls the first port of the smoke detection unit to emit infrared light at a frequency f s The time length of the acquisition is t s Digital optical signal;
[0132] Step S3. Perform FFT transformation on the digital optical signal to obtain the spectrum for further data processing; calculate the processing window The maximum frequency domain amplitude of the internal digital signal, such as Fig.10 As shown, at a frequency of 1988 Hz, the amplitude is 2249V. Fig.10 The unit of the medium amplitude is V.
[0133] Add the amplitude to the decision queue C=[c1,c2,…,c m ], that is, shift the elements in C one step to the left as a whole and then add the amplitude to the end of the queue;
[0134] Step S4. Compare the difference between the first and last elements of the decision queue with the threshold, i.e. c1-c m >d? If true, proceed to step S5; otherwise, wait for the sampling interval time tj and jump to step S2;
[0135] The threshold d can be determined experimentally by collecting data without fire smoke for a sufficiently long time through steps S1 to S3, such as Fig.11 As shown in the figure, the spectrum diagram of a period of time in the smoke-free state is given, and the maximum absolute value of the difference between the beginning and the end of all decision sequences is calculated as the decision threshold d. Fig.11 The unit of the medium amplitude is V.
[0136] Step S5. Calculate the trend value K of queue C using the Theil-Sen Median method.
[0137] ;
[0138] Among them, Median() means taking the median value. If K is greater than zero, it indicates that the judgment sequence is in an increasing trend, otherwise it is in a decreasing trend.
[0139] If K<0, go to step S6; otherwise, wait for the sampling interval tj and jump to step S2; K is less than 0, which means that the amount of smoke is increasing within the time tj*(m-1), showing an upward trend.
[0140] Step S6: Detect smoke information and trigger an alarm.
[0141] In this embodiment, while keeping the infrared transmitting tube closed, the microcontroller collects 0.5s ambient light signals from the first port of the smoke detection unit at a sampling rate of 5000Hz and performs FFT transformation to obtain a spectrum distribution, and emits infrared light at a fixed frequency of 2000Hz which is much higher than the frequency of the interference signal. The microcontroller collects the infrared light signal and performs FFT transformation to convert the time domain signal into the frequency domain, effectively distinguishing the target signal from the interference signal and reducing the impact of ambient light.
[0142] The maximum frequency domain amplitude of the target signal within the processing window (1960, 2040) is calculated as the subsequent decision data. After the data is added to the decision queue, threshold decision and trend decision are performed to solve the false alarm problem caused by ambient light interference, device aging and smoke accumulation in traditional detection methods, thereby reducing the false alarm rate and improving the accuracy.
[0143] Embodiment 3
[0144] The difference between this embodiment and the second embodiment is that:
[0145] In step S2, h takes the upper limit value of 50, and further calculations yield f1=1900Hz, f2=2100Hz; the maximum frequency domain amplitude of the digital signal in the processing window (1900, 2100) is calculated, such as Fig.12 As shown, at a frequency of 1996 Hz, the amplitude is 2250V. Fig.12 The unit of the medium amplitude is V.
[0146] Embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0148] The foregoing describes various preferred embodiments of the present invention. Unless the preferred implementation modes in various preferred embodiments are obviously self-contradictory or based on a certain preferred implementation mode, various preferred implementation modes can be arbitrarily superimposed and used in combination. The embodiments and specific parameters in the embodiments are only for clearly describing the invention verification process of the inventor, and are not used to limit the patent protection scope of the present invention. The patent protection scope of the present invention shall still be based on its claims. All equivalent structural changes made using the contents of the description and drawings of the present invention should be included in the protection scope of the present invention.
Claims
1. An anti-interference detection method, characterized in that , including the following steps: Step S1. When the infrared emitting tube is turned off, the microcontroller unit receives a signal from the first port of the smoke detection unit at a sampling frequency f s Collect indoor ambient light signals to obtain ambient digital signals; The ambient light frequency distribution is obtained by transforming the ambient digital signal, and the infrared light emission frequency f which is much larger than the upper limit of the ambient light frequency distribution is determined, where the so-called much larger means 10 times larger than the upper limit of the ambient light frequency; and the processing window (f1, f2); f1 and f2 are the lower limit and upper limit of the processing window respectively; Step S2. After determining the infrared light emission frequency f and the processing window (f1, f2), the microcontroller unit turns on the infrared emission tube by controlling the second port of the smoke detection unit to emit infrared light at the determined infrared light emission frequency f; The microcontroller unit receives the first port of the smoke detection unit at a sampling frequency f s The acquisition time length is the sampling time t s Digital optical signal; Step S3: transform the digital optical signal to obtain a spectrum; calculate the spectrum to obtain a processing window The maximum frequency domain amplitude of the internal digital optical signal A1; Add the maximum frequency domain amplitude A1 to the decision queue C=[c1,c2,…,c m ] is to judge that the elements in queue C are shifted to the left as a whole and then the maximum frequency domain amplitude A1 is added to the end of the queue; Step S4. Compare the difference between the first and last elements of the judgment queue with the set sequence head and tail difference threshold d, that is, c1-c m >Whether d is established, if so, proceed to step S5; otherwise, wait for the set decision queue sampling interval time tj and then return to step S2; Step S5. Calculate the trend value K of the judgment queue C; if K<0, proceed to step S6, otherwise wait for the sampling interval time tj and jump to step S2; continue to emit infrared light; Step S6. Detect smoke information and trigger an alarm; In step S1, the lower limit of the processing window is set , upper limit , h is the set window coefficient, the number of sampling points N=f s *t s .
2. The anti-interference detection method according to claim 1, characterized in that: In step S5, the Theil-SenMedian method is used to calculate the trend value K of the queue C. ; Among them, Median() means taking the median value. , represents any symbol, c i ,c j Represents the elements with sequence numbers i and j in the decision sequence.
3. The anti-interference detection method according to claim 1, characterized in that: The method for determining the value of the sequence head-to-tail difference threshold d is: Set a smoke-free collection time t1, perform steps S1 to S3 within the smoke-free collection time t1 and in a smoke-free environment, and repeat steps S1 to S3 again after all initial values stored in the judgment queue are updated; After repeating steps S1 to S3 multiple times, the difference between the first and last elements of the judgment queue is calculated after each step S3, and the largest difference is rounded up to be used as the sequence head and tail difference threshold d.
4. A smoke sensing device integrated with a hoisting electrical appliance, characterized in that: The invention comprises an outer cover (10), the outer cover being provided with a power line hole (11) and a smoke inlet and outlet hole (13), and a smoke detection system installed in the outer cover, the smoke detection system comprising a micro control unit, and a smoke detection unit and an alarm unit connected to the micro control unit, the smoke detection unit being used to emit and receive infrared light, and being connected to an infrared transmitting tube (D1) and an infrared receiving tube (D2); the smoke sensing device further comprises a plurality of reflectors, the plurality of reflectors being matched with the installation positions of the infrared transmitting tube (D1) and the infrared receiving tube (D2), so that the infrared light emitted by the infrared transmitting tube (D1) is reflected by all the reflectors and then returned to the infrared receiving tube (D2), and the micro control unit being used to implement the detection method according to any one of claims 1 to 3.
5. The smoke sensing device integrated with hoisting electrical appliances as claimed in claim 4, characterized in that: The center of the outer cover (10) is provided with an upwardly concave truncated cone, the top of which is provided with the power cord hole (11) and the ceiling plate connection hole (12), and a plurality of smoke inlet and outlet holes (13) are evenly arranged on the side wall of the truncated cone.
6. The smoke sensing device integrated with hoisting electrical appliances as claimed in claim 5, characterized in that: The height of the truncated cone is not lower than the height of the annular side wall of the outer cover (10).
7. The smoke sensing device integrated with hoisting electrical appliances as claimed in claim 4, characterized in that: It also comprises an infrared transceiver diode placement rack (14) and a plurality of reflector placement racks (15), wherein the infrared transmitting tube and the infrared receiving tube are placed back to back on the infrared transceiver diode placement rack (14), the reflector placement rack (15) comprises four groups, each group being equipped with a reflector, the reflector placement racks (15) are respectively placed at four vertices of a rectangle, and the infrared transceiver diode placement rack (14) is placed in one of the rectangular boundaries, the infrared transmitting tube (D1) and the infrared receiving tube (D2) mounted on the infrared transceiver diode placement rack (14) are respectively facing different vertices of the rectangular boundary, and the angle between the reflector and the rectangular boundary is 45 degrees.
8. The smoke sensing device integrated with hoisting electrical appliances as claimed in claim 4, characterized in that: The smoke detection unit comprises a first port (16) and a second port (17) connected to a microcontroller unit, the second port (17) being connected to the positive electrode of an infrared emitting tube (D1) via a first resistor (R1), and the negative electrode of the infrared emitting tube (D1) being grounded; the smoke detection unit also comprises an operational amplifier (18), the positive and negative electrodes of an infrared receiving tube (D2) being respectively connected to the positive and negative electrodes of the operational amplifier (18), the positive electrode of the infrared receiving tube (D2) being grounded via a second resistor (R2), the negative electrode of the infrared receiving tube (D2) being connected to the output end of the operational amplifier (18) via a third resistor (R3), and the output end of the operational amplifier (18) being connected to the first port (16).
9. The smoke sensing device integrated with hoisting electrical appliances as claimed in claim 4, characterized in that: A wireless communication unit connected to the micro control unit is also included.
