CN111577059B - Door switch detection system based on digital gyroscope - Google Patents

Door switch detection system based on digital gyroscope Download PDF

Info

Publication number
CN111577059B
CN111577059B CN202010307311.8A CN202010307311A CN111577059B CN 111577059 B CN111577059 B CN 111577059B CN 202010307311 A CN202010307311 A CN 202010307311A CN 111577059 B CN111577059 B CN 111577059B
Authority
CN
China
Prior art keywords
door
distance
angle value
value
closing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010307311.8A
Other languages
Chinese (zh)
Other versions
CN111577059A (en
Inventor
刘柄鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Foshan University
Original Assignee
Foshan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Foshan University filed Critical Foshan University
Priority to CN202010307311.8A priority Critical patent/CN111577059B/en
Publication of CN111577059A publication Critical patent/CN111577059A/en
Application granted granted Critical
Publication of CN111577059B publication Critical patent/CN111577059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05FDEVICES FOR MOVING WINGS INTO OPEN OR CLOSED POSITION; CHECKS FOR WINGS; WING FITTINGS NOT OTHERWISE PROVIDED FOR, CONCERNED WITH THE FUNCTIONING OF THE WING
    • E05F15/00Power-operated mechanisms for wings
    • E05F15/70Power-operated mechanisms for wings with automatic actuation
    • EFIXED CONSTRUCTIONS
    • E06DOORS, WINDOWS, SHUTTERS, OR ROLLER BLINDS IN GENERAL; LADDERS
    • E06BFIXED OR MOVABLE CLOSURES FOR OPENINGS IN BUILDINGS, VEHICLES, FENCES OR LIKE ENCLOSURES IN GENERAL, e.g. DOORS, WINDOWS, BLINDS, GATES
    • E06B7/00Special arrangements or measures in connection with doors or windows
    • E06B7/28Other arrangements on doors or windows, e.g. door-plates, windows adapted to carry plants, hooks for window cleaners
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C19/00Gyroscopes; Turn-sensitive devices using vibrating masses; Turn-sensitive devices without moving masses; Measuring angular rate using gyroscopic effects
    • G01C19/56Turn-sensitive devices using vibrating masses, e.g. vibratory angular rate sensors based on Coriolis forces
    • G01C19/5776Signal processing not specific to any of the devices covered by groups G01C19/5607 - G01C19/5719

Abstract

The invention discloses a door switch detection system based on a digital gyroscope, which comprises: the gyroscope sensor is arranged in an external door body and outputs a real-time angle value according to the movement of the door body; the distance sensor is used for detecting a first distance value between the door body and an external door frame; a controller storing: closing the angle interval, comparing the distance with the door state and corresponding the angle with the distance; when the real-time angle value is in the closing angle range, outputting a door closing signal; and when the error between the real-time angle value and the reference angle value is greater than a preset error, obtaining the opening and closing state of the door from the distance and door state comparison table according to the first distance value. This technique uses distance sensor to detect whether the gyroscope sensor is in normal detection error, improves the system and judges the degree of accuracy of the on-off state of door.

Description

Door switch detection system based on digital gyroscope
Technical Field
The invention relates to the technical field of door locking detection, in particular to a door opening and closing detection system based on a digital gyroscope.
Background
With the development of technology and the improvement of safety requirements of people, a detection system capable of detecting the opening and closing state of a door appears, the door is detected to be in an opening state or a closing state, and people can know the opening and closing state of the door through the detection system.
The existing door opening and closing detection system uses a gyroscope sensor as a detection element, the gyroscope sensor is installed on a door body, and the gyroscope sensor generates a position value along with the movement of the door body, so that the position of a current front door can be known, and the opening and closing state of the door can be known. However, when the gyro sensor is opened and closed many times along with the door, the detection is inaccurate, such as a large position error or a signal drift, and the detection error of the gyro sensor is large, so that the detection system erroneously determines the opening and closing state of the door, and the accuracy is lowered.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a door switch detection system based on a digital gyroscope.
A digital gyroscope based door switch detection system according to an embodiment of the invention comprises:
the gyroscope sensor is arranged in an external door body, outputs an angle value according to the movement of the door body, and records the angle value as a real-time angle value;
the distance sensor is used for detecting a distance value between the door body and an external door frame, and the distance value is recorded as a first distance value;
a controller storing: closing the angle interval, comparing the distance with the door state and corresponding the angle with the distance;
the controller is configured to include: when the real-time angle value is in a closing angle range, outputting a door closing signal;
when the real-time angle value is not located in the closing angle interval, acquiring a first distance value, finding an angle value corresponding to the first distance value according to an angle and distance correspondence table, and marking the angle value as a reference angle value;
comparing the reference angle value with a real-time angle value, and when the error between the real-time angle value and the reference angle value is greater than a preset error, obtaining the opening and closing state of the door from the distance and door state comparison table according to the first distance value, and outputting a corresponding signal according to the opening and closing state of the door;
and outputting a signal for opening the door when the error between the real-time angle value and the reference angle value is smaller than or equal to a preset error.
The door switch detection system based on the digital gyroscope provided by the embodiment of the invention at least has the following beneficial effects: the gyroscope sensor moves along with the door body and outputs a moving real-time angle value, and the distance sensor detects a distance value between the door body and the door frame; when the real-time angle value is within the closing angle interval, the controller outputs a door closing signal; when the real-time angle value is not positioned in the closing angle interval, in order to judge whether the gyroscope sensor works normally, the distance value between the door body and the door frame, namely a first distance value, is obtained firstly, the angle value corresponding to the first distance value, namely a reference angle value, is found according to the angle and distance correspondence table, and the reference angle value is compared with the real-time angle value; when the error between the real-time angle value and the reference angle value is smaller than or equal to a preset error, indicating that the gyroscope sensor is within a normal detection error, outputting a signal for opening the door; when the error between the real-time angle value and the reference angle value is larger than the preset error, the gyroscope sensor exceeds the normal detection error, the door opening and closing state is detected by using the distance sensor, the door opening and closing state is obtained from the distance and door state comparison table according to the first distance value, and the controller outputs a corresponding signal according to the door opening and closing state. The technology uses the distance sensor to detect whether the gyroscope sensor is within a normal detection error, so that the accuracy of the system for judging the opening and closing state of the door is improved; in addition, the distance sensor is also used for standby detection, and when the gyroscope sensor exceeds a normal detection error, the distance sensor is used for continuously judging the opening and closing state of the door, so that the normal work of the detection system is kept.
According to some embodiments of the invention, the distance sensor is an infrared distance measuring sensor, and the distance sensor is provided on the door frame.
According to some embodiments of the invention, the distance sensor is provided at an upper portion of the door frame.
According to some embodiments of the invention, the closing angle interval is greater than or equal to 0 degrees and less than or equal to 3 degrees.
According to some embodiments of the invention, the controller is a single chip microcomputer.
The invention is used for door switch detection.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings. It is clear that the described figures are only some embodiments of the invention, not all embodiments, and that a person skilled in the art can also derive other designs and figures from them without inventive effort.
FIG. 1 is a schematic structural diagram of a door switch detection system according to an embodiment of the present invention;
FIG. 2 is a simplified flow chart of a detection method according to an embodiment of the present invention.
In the drawings: 101-door frame, 102-door body, 103-gyroscope sensor, 104-distance sensor and 105-controller.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, unless otherwise explicitly defined, terms such as provided, connected and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention by combining the specific contents of the technical solutions.
A digital gyro-based door switch detection system according to an embodiment of the present invention will be described with reference to fig. 1 and 2.
The door switch detection system based on the digital gyroscope comprises:
a fixed door frame 101;
the door body 102 is rotatably connected with the door frame 101;
the gyroscope sensor 103 is arranged in the door body 102, outputs an angle value according to the movement of the door body 102, and the angle value is recorded as a real-time angle value;
the distance sensor 104 is used for detecting a distance value between the door body 102 and the door frame 101, and the distance value is recorded as a first distance value;
the controller 105 stores: closing the angle interval, comparing the distance with the door state and corresponding the angle with the distance; the closing angle interval refers to an angle range in which the door body 102 is determined to be in a closed state; the corresponding relation between the distance value between the door body 102 and the door frame 101 and the opening and closing state of the door is stored in the distance and door state comparison table, the corresponding door closing state when the distance value between the door body 102 and the door frame 101 is smaller than a certain value is arranged in the distance and door state comparison table, and the corresponding door opening state when the distance value between the door body 102 and the door frame 101 is larger than a certain value is arranged in the distance and door state comparison table; the angle-distance correspondence table stores a correspondence between a distance value detected by the distance sensor 104 and a movement angle value of the door in a normal state, and is used for obtaining the movement angle value of the door in the normal state according to the distance value detected by the distance sensor 104 so as to judge whether the gyro sensor 103 has a large error. The controller 105 may be an ARM system or a single chip.
The controller 105 is configured to include:
when the real-time angle value is in the closing angle range, outputting a door closing signal;
when the real-time angle value is not in the closing angle range, the door body 102 may be in an opening state or a large error occurs in the gyroscope sensor 103, acquiring a first distance value, finding an angle value corresponding to the first distance value according to the angle and distance correspondence table, and marking the angle value as a reference angle value;
comparing the reference angle value with the real-time angle value, setting a preset error in the controller 105, wherein the preset error is set in consideration of the detection error of the gyroscope sensor 103, and when the error between the real-time angle value and the reference angle value is greater than the preset error, obtaining the opening and closing state of the door from the distance and door state comparison table according to the first distance value, and outputting a corresponding signal according to the opening and closing state of the door;
and outputting a signal for opening the door when the error between the real-time angle value and the reference angle value is smaller than or equal to the preset error.
When the detection system is installed, the door body 102 is moved to the door closing position, the initial angle value of the gyro sensor 103 at the door closing position is set, and the real-time angle values output by the gyro sensor 103 are all the angle differences relative to the initial angle value.
The gyroscope sensor 103 moves along with the door 102 and outputs a real-time moving angle value, and the distance sensor 104 detects a distance value between the door 102 and the doorframe 101. When the real-time angle value is within the closing angle interval, the controller 105 outputs a door closing signal; when the real-time angle value is not within the closing angle range, in order to judge whether the gyroscope sensor 103 works normally, the distance value between the door body 102 and the door frame 101, namely a first distance value, is obtained first, the angle value corresponding to the first distance value, namely a reference angle value, is found according to the angle and distance correspondence table, and the reference angle value is compared with the real-time angle value. When the error between the real-time angle value and the reference angle value is smaller than or equal to a preset error, indicating that the gyroscope sensor 103 is within a normal detection error, outputting a signal for opening the gate; when the error between the real-time angle value and the reference angle value is larger than the preset error, which indicates that the gyro sensor 103 exceeds the normal detection error, the switch is switched to the state of detecting the opening and closing of the door by using the distance sensor 104, the opening and closing state of the door is obtained from the distance and door state comparison table according to the first distance value, and the controller 105 outputs a corresponding signal according to the opening and closing state of the door.
The invention uses the distance sensor 104 to detect whether the gyroscope sensor 103 is within a normal detection error, and improves the accuracy of the system for judging the opening and closing state of the door. In addition, the distance sensor 104 also serves as a backup detection, when the gyro sensor 103 exceeds a normal detection error, the gyro sensor 103 cannot be used in a short time, but the opening and closing state of the door still needs to be detected at this time, the door opening and closing state can be detected by using the distance sensor 104, the normal operation of the detection system is kept, and the door opening and closing state is switched back to use the gyro sensor 103 after the gyro sensor 103 returns to a normal state.
In some embodiments of the present invention, when the error between the real-time angle value and the reference angle value is greater than the preset error, it indicates that the gyroscope sensor 103 exceeds the normal detection error, the real-time angle value can be calibrated to the reference angle value, the real-time angle value is compared with the reference angle value after the door 102 moves, if the error between the real-time angle value and the reference angle value is still greater than the preset error, the gyroscope sensor 103 cannot be automatically calibrated, and needs to be manually maintained or replaced; if the error between the real-time angle value and the reference angle value is smaller than the preset error, the detection can be switched back to the gyroscope sensor 103.
In some embodiments of the present invention, the distance sensor 104 is an infrared distance measuring sensor, and the distance sensor 104 is disposed on the door frame 101. The infrared ranging sensor is installed on the door frame 101, and the infrared ranging sensor faces the door body 102, so that infrared rays emitted by the infrared ranging sensor can reach the door body 102 in the rotating process of the door body 102, and the distance from the infrared rays emitted by the infrared ranging sensor to the door body 102 changes along with the rotation of the door body 102. The distance and gate state comparison table and the angle and distance correspondence table can be calculated or measured in advance and stored. The distance sensor 104 may also use a magnetic distance sensor 104, an ultrasonic distance sensor 104, or the like, and both the magnetic distance sensor 104 and the ultrasonic distance sensor 104 may measure the distance from the door body 102 to the doorframe 101.
In some embodiments of the invention, the distance sensor 104 is provided at an upper portion of the door frame 101. The distance sensor 104 is arranged on the upper portion of the door frame 101 and is arranged at a position close to the top of the door body 102, so that the detection position of the distance sensor 104 is higher, and the influence of people walking through a doorway on detection is reduced.
In some embodiments of the invention, the closing angle interval is greater than or equal to 0 degrees and less than or equal to 3 degrees. When the real-time angle value output from the gyro sensor 103 is in the range of 0 to 3 degrees, it indicates that the door is in a closed state.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the embodiments, and various equivalent modifications or substitutions can be made within the knowledge of those skilled in the art without departing from the gist of the present invention, and these equivalent modifications or substitutions are included in the scope defined by the claims of the present application.

Claims (4)

1. A digital gyroscope-based door switch detection system, comprising:
the gyroscope sensor is arranged in an external door body, outputs an angle value according to the movement of the door body, and records the angle value as a real-time angle value;
the distance sensor is used for detecting a distance value between the door body and an external door frame, and the distance value is recorded as a first distance value;
a controller storing: closing the angle interval, comparing the distance with the door state and corresponding the angle with the distance;
the controller is configured to include: when the real-time angle value is in a closing angle range, outputting a door closing signal;
when the real-time angle value is not located in the closing angle interval, acquiring a first distance value, finding an angle value corresponding to the first distance value according to an angle and distance correspondence table, and marking the angle value as a reference angle value;
comparing the reference angle value with a real-time angle value, and when the error between the real-time angle value and the reference angle value is greater than a preset error, obtaining the opening and closing state of the door from the distance and door state comparison table according to the first distance value, and outputting a corresponding signal according to the opening and closing state of the door;
when the error between the real-time angle value and the reference angle value is smaller than or equal to a preset error, outputting a signal for opening the door;
the closing angle interval is greater than or equal to 0 degrees and less than or equal to 3 degrees.
2. The digital gyroscope-based door switch detection system of claim 1, wherein the distance sensor is an infrared distance measurement sensor, the distance sensor being located on the door frame.
3. The digital gyroscope-based door opening and closing detection system of claim 1, wherein the distance sensor is provided at an upper portion of the door frame.
4. The digital gyroscope-based door switch detection system of claim 1, wherein the controller is a single-chip microcomputer.
CN202010307311.8A 2020-04-17 2020-04-17 Door switch detection system based on digital gyroscope Active CN111577059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010307311.8A CN111577059B (en) 2020-04-17 2020-04-17 Door switch detection system based on digital gyroscope

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010307311.8A CN111577059B (en) 2020-04-17 2020-04-17 Door switch detection system based on digital gyroscope

Publications (2)

Publication Number Publication Date
CN111577059A CN111577059A (en) 2020-08-25
CN111577059B true CN111577059B (en) 2021-09-28

Family

ID=72124464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010307311.8A Active CN111577059B (en) 2020-04-17 2020-04-17 Door switch detection system based on digital gyroscope

Country Status (1)

Country Link
CN (1) CN111577059B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113639789A (en) * 2021-07-20 2021-11-12 支付宝(杭州)信息技术有限公司 System and method for detecting closing of cabinet door
CN114320074B (en) * 2022-01-11 2023-07-18 东屋世安物联科技(江苏)股份有限公司 Turning door switch detection and control device, control system and control method

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101750060A (en) * 2008-12-22 2010-06-23 财团法人工业技术研究院 Locating and detecting system by utilizing sensing element and method
CN204833563U (en) * 2015-08-06 2015-12-02 杭州海康威视数字技术股份有限公司 Monitoring devices that door and window removed
CN105629324A (en) * 2014-12-01 2016-06-01 丰唐物联技术(深圳)有限公司 Method and device for detecting opening and closed state of door
CN107239042A (en) * 2017-05-31 2017-10-10 华南理工大学 The device and its application method of a kind of open and close status for judging door
KR101796247B1 (en) * 2017-07-12 2017-11-13 류재환 Intelligent IoT device and system for detection of door state based on context-awareness
CN108179925A (en) * 2017-12-21 2018-06-19 广东汇泰龙科技有限公司 A kind of method, system based on acceleration transducer and gyroscope judgement door switch
CN109368434A (en) * 2018-11-23 2019-02-22 张勇 A kind of elevator control system with video surveillance
CN109493464A (en) * 2018-10-09 2019-03-19 深圳中泰智丰物联网科技有限公司 Low power-consumption intelligent opal door lock monitoring system and door lock monitoring method
CN109959392A (en) * 2019-04-04 2019-07-02 上海扩博智能技术有限公司 Motion sensor calibration method, system, equipment and medium for intelligent refrigerator
CN110160485A (en) * 2018-02-16 2019-08-23 塞德斯股份公司 Door sensor with rotational angle encoder
CN110596780A (en) * 2018-06-13 2019-12-20 盖慈有限公司 Monitoring device
CN110853269A (en) * 2019-11-20 2020-02-28 四川研宝科技有限公司 Door state detection method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101750060A (en) * 2008-12-22 2010-06-23 财团法人工业技术研究院 Locating and detecting system by utilizing sensing element and method
CN105629324A (en) * 2014-12-01 2016-06-01 丰唐物联技术(深圳)有限公司 Method and device for detecting opening and closed state of door
CN204833563U (en) * 2015-08-06 2015-12-02 杭州海康威视数字技术股份有限公司 Monitoring devices that door and window removed
CN107239042A (en) * 2017-05-31 2017-10-10 华南理工大学 The device and its application method of a kind of open and close status for judging door
KR101796247B1 (en) * 2017-07-12 2017-11-13 류재환 Intelligent IoT device and system for detection of door state based on context-awareness
CN108179925A (en) * 2017-12-21 2018-06-19 广东汇泰龙科技有限公司 A kind of method, system based on acceleration transducer and gyroscope judgement door switch
CN110160485A (en) * 2018-02-16 2019-08-23 塞德斯股份公司 Door sensor with rotational angle encoder
CN110596780A (en) * 2018-06-13 2019-12-20 盖慈有限公司 Monitoring device
CN109493464A (en) * 2018-10-09 2019-03-19 深圳中泰智丰物联网科技有限公司 Low power-consumption intelligent opal door lock monitoring system and door lock monitoring method
CN109368434A (en) * 2018-11-23 2019-02-22 张勇 A kind of elevator control system with video surveillance
CN109959392A (en) * 2019-04-04 2019-07-02 上海扩博智能技术有限公司 Motion sensor calibration method, system, equipment and medium for intelligent refrigerator
CN110853269A (en) * 2019-11-20 2020-02-28 四川研宝科技有限公司 Door state detection method and device

Also Published As

Publication number Publication date
CN111577059A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CA2416912A1 (en) Vehicle closure anti-pinch assembly having a non-contact sensor
CN111577059B (en) Door switch detection system based on digital gyroscope
US9576449B2 (en) Door and window contact systems and methods that include time of flight sensors
KR20130099977A (en) Sensor unit for contactlessly actuating a vehicle door
JP4617041B2 (en) Method for electronic monitoring and control of a process for positioning a movable member
EP3211613B1 (en) Door and window contact system and method that include a mems accelerometer and a mems magnetometer
GB2312971A (en) Anti-trapping device
US7260917B2 (en) Balance control system for a movable barrier operator
US10400473B2 (en) Apparatus for detecting the position of window handles or door handles based on the sensing of magnetic fields, and operating method for it
US11581829B2 (en) Pinch detection based on motor current increase
JP4703190B2 (en) Magnetic detection type sensor
AU2023237072A1 (en) Laser scanner for monitoring a monitoring region
US20060086050A1 (en) Automatic door opening/closing detection system and automatic door opening/closing detection method
US7283887B2 (en) Method for determining a change in direction of rotation of a motor
US20220235595A1 (en) A swing door operator for moving a swing door leaf in a swing path between an open and closed position, a swing door and a room with a swing door
JPH08240071A (en) Method for determining catch detection range
CN109612508A (en) A kind of rail traffic shield door barrier secondary detection device and its detection method
US11761254B2 (en) Method and device for detecting potential pinches
EP4001565B1 (en) Method and device for detecting potential pinches
CN211594668U (en) Online data acquisition control device for elevator transportation quality measurement
US20240133224A1 (en) Method And Device For Detecting Potential Pinches
JP2005001543A (en) Door closing checking device
CN115372037A (en) Door body opening and closing detection method and device and vibration filtering door body
JPH0564992U (en) Mobile object detection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant