Prompting method for judging opening and closing of door and opening and closing of window

By detecting acceleration and angular velocity through the acceleration sensor and main control chip, it can judge the movement of doors and windows and provide sound and light reminders, which solves the problem of complex installation of existing door magnetic reminders, realizes movement detection and reminders for various doors and windows, and expands the use scope.

CN118658249APending Publication Date: 2024-09-17LANXI HONGJING ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410667548.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing door magnet reminders are complicated to install and cannot be used on some doors or windows.

Method used

By setting an acceleration sensor to control the main control chip to detect acceleration and angular velocity, the total value of angular velocity and positive and negative continuous values ​​are used to determine the actions of opening, closing, opening and closing windows, and through sound and light reminders, the installation process is simplified.

Benefits of technology

It achieves accurate detection and reminder of door and window movements, and is suitable for various types of doors and windows, whether they are sliding doors, sliding doors, sliding windows or refrigerator doors, etc., expanding the scope of use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658249A
    Figure CN118658249A
Patent Text Reader

Abstract

The invention relates to the technical field of door lock control, in particular to a prompting method for judging opening and closing of a door and a window, which comprises the following steps: an acceleration sensor is arranged to control a main control chip to detect acceleration and angular velocity; adding the angular velocities to obtain a total angular velocity value, and when the total angular velocity value is greater than a first preset threshold value, indicating that a person opens and closes the door, and reminding through sound and light; detecting positive and negative continuous values of the accelerated speed and the angular speed, when the positive and negative continuous values of the accelerated speed reach a preset second threshold value, detecting the positive and negative continuous values of the angular speed, and comparing the positive and negative continuous values of the angular speed with the second threshold value to judge whether the window is opened or closed. The acceleration sensor and the main control chip are used for processing the values of the acceleration and the angular speed to judge the action recognition of door opening and closing and window opening and closing, finally, the voice chip makes a sound for prompting, the acceleration sensor and the main control chip are easy to install, only one body needs to be installed on a door or a window, the application range is wide, and the device can be used for sliding doors, sliding doors, sliding windows, sliding windows, refrigerator doors and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of door lock control, and in particular to a prompting method for determining a door switch and a window switch. Background Art

[0002] The movement detection of doors and windows is particularly important in the field of security. Existing door and window movement detection products are designed based on the principle that the magnet approaches or moves away from the reed switch and drives the reed switch to close or disconnect. The product is specifically composed of two parts: a permanent magnet and a door magnet body. Among them, the door magnet body contains a normally open reed switch. When the permanent magnet and the reed switch are close, the door magnet sensor is in a working standby state; when the permanent magnet and the reed switch are far away, the door magnet sensor is in a normally open state. Therefore, the state of the door magnet sensor can be used to determine whether the door or window is open.

[0003] Door magnetic reminders require the installation of the main body and the magnet. The installation operation is relatively cumbersome, and there are distance requirements between the main body and the magnet. It cannot be installed far away from the door and the door frame, and cannot be used on some doors or windows. Summary of the invention

[0004] The object of the present invention is to provide a prompt method for determining door switches and window switches, aiming to solve the problem that existing door magnetic prompters are complicated to install and cannot be used on some doors or windows.

[0005] To achieve the above object, the present invention provides a method for determining a door switch and a window switch prompt, comprising the following steps:

[0006] The acceleration sensor is arranged to control the main control chip to detect acceleration and angular velocity;

[0007] The angular velocities are added to obtain a total angular velocity value. When the total angular velocity value is greater than a first preset threshold value, it indicates a door opening signal, indicating that someone is opening or closing the door, and an audible and visual reminder is provided.

[0008] Detect the positive and negative continuous values ​​of the acceleration and the angular velocity. When the positive and negative continuous values ​​of the acceleration reach a preset second threshold, detect the positive and negative continuous values ​​of the angular velocity, and then compare the positive and negative continuous values ​​of the angular velocity with the second threshold to determine whether to open or close the window.

[0009] The positive or negative value of the total angular velocity indicates opening or closing the door.

[0010] The magnitude of the total angular velocity represents the angle of opening and closing the door.

[0011] The acceleration sensor wakes up the main control chip when the door is opened or closed, or the window is opened, and the main control chip is usually in a dormant state.

[0012] The specific method of comparing the continuous positive and negative values ​​of the angular velocity with the second threshold to determine whether to open or close the window is:

[0013] If the positive and negative continuous values ​​of the angular velocity also reach the second threshold, it indicates that it is not a window opening signal and there is no response. If the positive and negative continuous values ​​of the angular velocity are less than the second threshold, it is indicated as a window opening signal, and the positive and negative continuous values ​​are used to indicate whether the window is opened or closed, and an audio and visual reminder is given.

[0014] The present invention provides a prompt method for determining whether a door switch or a window switch is opened or closed. The method comprises the following steps: an acceleration sensor is arranged to control a main control chip to detect acceleration and angular velocity; the angular velocities are added to obtain a total angular velocity value. When the total angular velocity value is greater than a first preset threshold value, it indicates a door opening signal, indicating that someone is opening or closing the door, and a sound and light reminder is provided; the positive and negative continuous values ​​of the acceleration and the angular velocity are detected. When the positive and negative continuous values ​​of the acceleration reach a preset second threshold value, the positive and negative continuous values ​​of the angular velocity are detected. The positive and negative continuous values ​​of the angular velocity are then compared with the second threshold value to determine whether the window is opened or closed. The method uses a main control chip to obtain the total angular velocity value. The acceleration and angular velocity (gyroscope) values ​​are taken, and then the action recognition of opening and closing doors and windows is judged by processing the acceleration and angular velocity (gyroscope) values, and finally a voice chip is used to give a prompt. The acceleration sensor and main control chip used in this method are simple to install. A main body can be installed on doors and windows. Different actions such as opening and closing doors, opening and closing windows, and the angle of opening the door can be detected. It has a wide range of use and can be used for sliding doors, sliding doors, sliding windows, sliding windows and refrigerator doors, etc., solving the problem that the existing door magnetic reminders are complicated to install and cannot be used on some doors or windows. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 The present invention provides a flowchart of a method for determining a prompt of a door switch and a window switch. DETAILED DESCRIPTION

[0017] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0018] See also Figure 1 The present invention provides a method for determining a door switch and a window switch prompt, comprising the following steps:

[0019] S1 is set in the acceleration sensor to control the main control chip to detect acceleration and angular velocity;

[0020] Specifically, an acceleration sensor is set and the interrupt of the acceleration sensor is turned on. When there is any action, the acceleration sensor will send a signal to wake up the main control chip. Normally, the main control chip is in a dormant state to achieve low power consumption. When the main control chip is awakened, it means there is an action and starts to simultaneously detect the values ​​of door and window acceleration and angular velocity.

[0021] S2 adds the angular velocities to obtain a total angular velocity value. When the total angular velocity value is greater than a first preset threshold value, it indicates a door opening signal, indicating that someone is opening or closing the door, and an audible and visual reminder is provided;

[0022] Specifically, door opening and closing detection: add the angular velocity values ​​of the X-axis, add the angular velocity values ​​of the Y-axis, add the angular velocity values ​​of the Z-axis, and then detect the total angular velocity value of the X, Y, and Z axes. The size of the total angular velocity value represents the angle of opening and closing the door, and the positive or negative value of the total angular velocity represents whether the door is open or closed. Set a first threshold value. When the total value of any axis of the X, Y, and Z axes is greater than this threshold value, it indicates that the door is open or closed.

[0023] S3 detects the positive and negative continuous values ​​of the acceleration and the angular velocity. When the positive and negative continuous values ​​of the acceleration reach a preset second threshold, the positive and negative continuous values ​​of the angular velocity are detected, and then the positive and negative continuous values ​​of the angular velocity are compared with the second threshold to determine whether to open or close the window.

[0024] Specifically, there will be continuous positive values ​​or continuous negative values ​​at the moment of opening the window. The acceleration value will keep changing between positive and negative during the continuous process of opening the window. There will also be continuous positive values ​​or continuous negative values ​​at the moment of stopping. The positive and negative values ​​of window knocking or vibration are constantly changing and there will not be many continuous positive or negative values. By detecting continuous positive and negative values, window knocking and external vibrations can be shielded.

[0025] It is necessary to detect the continuous value of the positive and negative values ​​of acceleration. When the value of X acceleration is positive, X acceleration register 1 is added by 1 and X acceleration register 2 is cleared to 0. When the acceleration value is negative, X acceleration register 2 is added by 1 and X acceleration register 1 is cleared to 0. The same is true for the Y and Z axes. By judging X acceleration register 1 and X acceleration register 2, it can be determined whether the window is opened or closed.

[0026] When opening the door, there will also be continuous acceleration values, and the window opening operation will be performed, which will lead to incorrect judgment of door opening and closing, so it is necessary to further determine whether it is opening and closing the door or opening and closing the window. In order to completely distinguish between opening and closing the door and opening and closing the window, we also need to detect the continuous value of the angular velocity. Because there will also be angular velocity values ​​in the process of opening the window, it is impossible to directly determine whether there is an angular velocity value to determine whether it is opening and closing the door or opening the window. However, during the process of opening and closing the door, the angular velocity has always been a continuous positive value or a continuous negative value. When in the process of opening and closing the window, the angular velocity is a value that changes between positive and negative. Therefore, by judging the continuous value of the angular velocity, we can know whether there is a door opening action at present.

[0027] Detect the continuous value of the positive and negative values ​​of acceleration and record the continuous value of the positive and negative values ​​of angular velocity. When the X angular velocity value is positive, the X angular velocity register 1 is added by 1 and the X angular velocity register 2 is cleared to 0. When the angular velocity value is negative, the X angular velocity register 2 is added by 1 and the X angular velocity register 1 is cleared to 0. The same is true for the Y and Z axes. No matter which axis or register, as long as one register reaches the threshold we set, the window opening and closing operation will not be performed even if the conditions for the continuous value of the window opening and closing are met.

[0028] First, when the continuous value of the positive and negative values ​​of the acceleration reaches the condition for opening and closing the window, the window opening and closing trigger is not executed immediately, but the continuous values ​​of the following N angular velocities are continued to be detected. N can be determined according to the speed. When the Nth time is detected, see if the continuous value of the angular velocity is greater than the threshold we set. If it is greater, it means that there is a door opening action and the window opening and closing action will not be executed. If it is not greater, the window opening and closing action will be executed directly.

[0029] This method uses a 6-axis acceleration sensor to detect the actions of opening and closing doors and windows. Angular velocity is used to determine opening and closing doors, and acceleration is used to determine opening and closing windows. First, set the 6-axis sensor to open the interrupt so that the sensor can wake up the main control chip when there is an action, so that low power consumption can be achieved with battery power. When there is an action of opening and closing doors and windows, the sensor will give a signal to wake up the chip. The chip detects acceleration and angular velocity at the same time. Door opening detection only needs to add the angular velocity values. The positive and negative total angular velocity value indicates the opening and closing of the door, and the size of the total angular velocity value indicates the angle of the opening and closing of the door. Set a threshold when the angular velocity total If the value is greater than the threshold, it means that someone is opening or closing the door, and the product will remind you through sound and light. Window opening detection requires detecting the continuous positive and negative values ​​of acceleration and angular velocity at the same time. When the continuous value of acceleration reaches the threshold we set, we will detect the continuous value of angular velocity. If the continuous value of angular velocity also reaches the threshold, it means that it is not a window opening or closing signal and no response will be given. If the continuous value of angular velocity is less than the threshold, it means that it is a window opening or closing signal. By detecting whether it is triggered by a continuous positive value or a continuous negative value, the window opening or closing detection can be realized. When the conditions for opening or closing the window are met, it means that someone is opening or closing the window, and the product will remind you through sound and light.

[0030] What is disclosed above is only a preferred embodiment of a method for determining a door switch and a window switch prompt of the present invention. Of course, this cannot be used to limit the scope of rights of the present invention. A person skilled in the art can understand that all or part of the processes of the above embodiment can be implemented, and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A method for determining door switches and window switches, characterized in that: The following steps are involved: The acceleration sensor is arranged to control the main control chip to detect acceleration and angular velocity; The angular velocities are added to obtain a total angular velocity value. When the total angular velocity value is greater than a first preset threshold value, it indicates a door opening signal, indicating that someone is opening or closing the door, and an audible and visual reminder is provided. Detect the positive and negative continuous values ​​of the acceleration and the angular velocity. When the positive and negative continuous values ​​of the acceleration reach a preset second threshold, detect the positive and negative continuous values ​​of the angular velocity, and then compare the positive and negative continuous values ​​of the angular velocity with the second threshold to determine whether to open or close the window.

2. A method for determining door switches and window switches as claimed in claim 1, characterized in that: The positive or negative value of the total angular velocity indicates opening or closing of the door.

3. A method for determining door switches and window switches as claimed in claim 1, characterized in that: The magnitude of the total angular velocity value represents the angle at which the door is opened or closed.

4. A method for determining door switches and window switches as claimed in claim 1, characterized in that: The acceleration sensor wakes up the main control chip when the door is opened or closed, or the window is opened. The main control chip is usually in a dormant state.

5. A method for determining door switches and window switches as claimed in claim 1, characterized in that: The specific method of comparing the continuous positive and negative values ​​of the angular velocity with the second threshold to determine whether to open or close the window is: If the positive and negative continuous values ​​of the angular velocity also reach the second threshold, it indicates that it is not a window opening signal and there is no response. If the positive and negative continuous values ​​of the angular velocity are less than the second threshold, it is indicated as a window opening signal, and the positive and negative continuous values ​​are used to indicate whether the window is opened or closed, and an audio and visual reminder is given.