Doorbell without button and implementation method thereof
Technical Field
The invention relates to a doorbell and an implementation method thereof.
Background
A button is necessarily installed on a door of a traditional doorbell, and the button is connected with a buzzer. When the button is pressed, a buzzer is triggered to alarm, so that the owner is informed to open the door. For example, in the previously disclosed patent "a doorbell structure", a foot pad is arranged at the front bottom of a door, and a doorbell button is arranged in the foot pad, so that a user can easily press a bell in a foot-stepping mode no matter how tall or short the user is and whether the user conveniently uses a hand (for example, carrying things in the hand). The patent 'lazy doorbell' uses an electronic communication means, a person entering a door presses a doorbell and then triggers a camera on the door to grab a face of the person, and the face of the person is sent to a mobile phone of a host through WIFI; the owner decides whether to communicate with the door entrants (shouting) according to the needs, or can remotely control the door opening without walking to the door side. There is also a button device and the manner of triggering the door open is more complicated, more convenient, more human-friendly and automated.
From the above two examples, the doorbell has almost two components, a button and an alarm device (in the case of a lazy doorbell, a photo is sent to the owner's cell phone) that is triggered by the button being pressed. This means that both wired and wireless communication between the two parts requires a certain cost of communication and also means a certain degree of complexity of the system, and thus an increased failure rate of the system due to the complexity. Fig. 1 shows a conventional doorbell structure.
Disclosure of Invention
In order to overcome the defects of complex system and high failure rate of the existing doorbell, the invention provides the doorbell which simplifies the structure, reduces the failure rate and does not need a button and the implementation method thereof
The technical scheme adopted by the invention for solving the technical problems is as follows:
a doorbell without a button comprises a battery module, a contact microphone, a main control MCU chip and a buzzer, wherein the battery module is connected with the contact microphone, the main control MCU chip and the buzzer; the contact microphone is a sensor which can receive solid conducted sound but is insensitive to air conducted sound, is in an open state when powered and is used for monitoring solid surface sound waves transmitted by a wall surface or a door surface in real time; the main control MCU module analyzes the collected sound wave data, filters the sound wave data which accidentally touches the door face in a wrong way or blows the door face by wind, and the hitting sound of closing the door and opening the door, recognizes the hitting sound pulse with short interval and lasting two or three times, recognizes the hitting sound pulse as the hitting sound, and then starts the buzzer to give an alarm.
A realization method of a doorbell without a button comprises the following steps:
1) the contact microphone is started to be in a working state and keeps in contact with a door surface or a wall surface;
2) the contact microphone collects solid surface acoustic wave data;
3) analyzing the sound wave data by the master control MCU module, and identifying the door knocking sound;
4) the main control MCU module triggers the buzzer to sound and alarm.
Further, in the step 3), the step of detecting and recognizing the knock is as follows,
3.1) calculating real-time sound wave energy, and judging as a sound pulse when the energy of the current frame is higher than a set decibel and is a peak value on a time line;
3.2) if a pulse is encountered, buffering the data of the next 3 seconds;
3.3) analyzing whether other peak pulses exist in the 3-second data, if so, indicating that the pulses can be extracted, calculating the time intervals of the peak pulses, and if not, indicating that the pulses cannot be extracted, returning to 3.1);
3.4) judging as knocking when the time interval of the peak values is more than the set millisecond, and returning to 3.1) if the time interval of the peak values is not less than the set millisecond.
Preferably, in the 3.1), the set decibel is 60 decibels. Of course, other values are possible.
In the 3.3), the energy of the peak pulse is higher than 60 db. Of course, other values are possible.
In the above 3.4), 100 msec is set. Of course, other values are possible.
The invention has the following beneficial effects: the structure is simplified, and the failure rate is reduced.
Drawings
Fig. 1 is a binary configuration diagram of a conventional doorbell.
Fig. 2 is a view of a usage scenario of the present invention, wherein 1 is a door, 2 is a doorbell that does not require a button, and 3 is a wall.
Fig. 3 is a functional block diagram of the present invention.
Fig. 4 is a flow chart of the operation of the present invention.
Fig. 5 is a flowchart for recognizing a knock by a surface acoustic wave.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Referring to fig. 2 to 5, the doorbell without a button comprises a battery module, a contact microphone, a main control MCU chip and a buzzer, wherein the battery module is connected with the contact microphone, the main control MCU chip and the buzzer, the contact microphone is connected with the main control MCU chip, and the main control MCU chip is connected with the buzzer; the contact microphone is a sensor which can receive solid conducted sound but is insensitive to air conducted sound, is in an open state when powered and is used for monitoring solid surface sound waves transmitted by a wall surface or a door surface in real time; the main control MCU module analyzes the collected sound wave data, filters the sound wave data which accidentally touches the door face in a wrong way or blows the door face by wind, and the hitting sound of closing the door and opening the door, recognizes the hitting sound pulse with short interval and lasting two or three times, recognizes the hitting sound pulse as the hitting sound, and then starts the buzzer to give an alarm.
A realization method of a doorbell without a button comprises the following steps:
1) the contact microphone is started to be in a working state and keeps in contact with a door surface or a wall surface;
2) the contact microphone collects solid surface acoustic wave data;
3) analyzing the sound wave data by the master control MCU module, and identifying the door knocking sound;
4) the main control MCU module triggers the buzzer to sound and alarm.
Further, in a home environment, when a door is knocked by a non-visitor, the door may be touched or knocked, namely, the door is opened or closed by wind, the body of a person or a pet, and the like.
Specifically, through the analysis of the surface acoustic wave data, an algorithm block diagram is shown in fig. 5;
in the step 3), the step of detecting and recognizing the knock is as follows,
3.1) calculating real-time sound wave energy, and judging as a sound pulse when the energy of the current frame is higher than 60 decibels and is a peak value on a time line;
3.2) if a pulse is encountered, buffering the data of the next 3 seconds;
3.3) analyzing whether other peak pulses exist in the 3-second data, wherein the energy of the peak pulses is higher than 60 dB, if so, indicating that the pulses can be extracted, calculating the time interval of the peak pulses, and if not, indicating that the pulses cannot be extracted, returning to 3.1);
3.4) judging as knocking when the time interval of the peak values is more than 100 milliseconds, and returning to 3.1) if the time interval of the peak values is not less than 100 milliseconds.
The embodiment provides a doorbell design without a button, only comprises an alarm device, and is simple in structure and simple and convenient to install. The mechanism for triggering the alarm device is still that the door is knocked by traditional fingers (or the door surface is optionally lightly knocked), and the alarm device is triggered to make a ding-dong sound no matter how loud the door surface is knocked. Fig. 2 illustrates a usage scenario of a doorbell.
The device of this embodiment may be mounted on the face of the door behind the door, or on a wall surface slightly remote from the door. The structure of the device is shown in fig. 3.
The embodiments described in this specification are merely illustrative of implementations of the inventive concepts, which are intended for purposes of illustration only. The scope of the present invention should not be construed as being limited to the particular forms set forth in the examples, but rather as being defined by the claims and the equivalents thereof which can occur to those skilled in the art upon consideration of the present inventive concept.