SUMMERY OF THE UTILITY MODEL
To the problem that the intelligent lock consumption is high, the security is not enough and the intelligent degree is not enough that exists among the above-mentioned prior art, the utility model discloses in providing a gesture recognition low-power consumption intelligent lock based on bluetooth, concrete technical scheme is as follows:
a gesture recognition low-power-consumption intelligent lock based on Bluetooth comprises a gesture recognition module, a Bluetooth module, a human body infrared induction module, an embedded controller, a power module and a lock body, wherein the gesture recognition module is in communication connection with the Bluetooth module in a wireless serial port mode, and the Bluetooth module is in communication connection with the embedded controller in a wired serial port mode; the human body infrared sensing module and the lock body are connected with the embedded controller through an I/O (input/output) port to realize data interaction with the embedded controller, and the power supply module is connected with a power supply input pin of the embedded controller; the intelligent lock comprises a power module, a gesture recognition module, a Bluetooth module and a lock body, wherein the power module is used for supplying power to the intelligent lock, the gesture recognition module is used for collecting human body gesture information and sending the human body gesture information to the embedded controller through the Bluetooth module, and based on the human body gesture information, the embedded controller feeds back a control instruction to the lock body and controls the on-off state of the lock body; the human body infrared sensing module is used for monitoring the designated space near the intelligent lock, judging whether a person exists in the designated space or not and transmitting the judgment result to the embedded controller.
Preferably, the human body infrared sensing module arranged in the intelligent lock is used for detecting whether a person is in the designated space near the intelligent lock, and the judgment result is used for changing the operation mode of the intelligent lock, such as a low power consumption mode and a gesture recognition mode.
Preferably, the lock body comprises a motor and an LED warning lamp, and the motor is controlled by the embedded controller to realize the on-off state of the lock body; the on-off state of the LED warning lamp is controlled through the embedded controller; the lighting time of the LED warning lamp can be adjusted by adjusting the keys, so that the warning functions of different degrees can be customized.
Preferably, the motor is a direct current speed reduction motor.
Preferably, the LED warning lamp is an RGB (red, green and blue) three-color LED lamp, the LED warning lamp adjusts the lightening time according to the keys on the embedded controller, and if the gesture recognition mode is entered and the time lasts 15/25/35 seconds, the LED warning lamp gives out a light warning.
Compared with the prior art, the utility model discloses a gesture recognition low-power consumption intelligence lock based on bluetooth's beneficial effect embodies: the utility model utilizes the human body infrared induction module to judge whether the intelligent lock needs to be provided with electric energy, thereby reducing the power consumption of the intelligent lock and being beneficial to prolonging the service life of the intelligent lock; meanwhile, the monitoring function beside the intelligent lock is realized by utilizing the human body infrared sensing module within a certain range near the intelligent lock, the anti-theft and anti-peeping functions of the intelligent lock are favorably perfected, and the safety performance of the intelligent lock is improved; utilize gesture recognition module to accomplish the switch of long-range gesture control lock, further improve the intellectuality and the automation of lock, be applicable to the place that the user is not convenient for directly open the door with the hand, be particularly useful for disabled person and old age crowd etc..
Detailed Description
In order to make the technical field person understand the scheme of the present invention better, the following will combine the drawings in the embodiments of the present invention to clearly and completely describe the technical scheme in the embodiments of the present invention.
The embodiment of the utility model provides an in, provide a gesture recognition low-power consumption intelligence lock based on bluetooth, through the invention of this intelligence lock, realized that the user need not direct contact tool to lock alright with the change through the on off state who makes different gesture remote control locks, when realizing simultaneously nobody around the operation consumption of intelligence lock greatly reduces and outdoors continuously have the man-hour, the intelligence lock sends warning information, improves its energy-conservation, intelligent degree greatly.
Referring to fig. 1, in the embodiment of the present invention, the intelligent lock includes a gesture recognition module 1, a bluetooth module 2, a human body infrared sensing module 3, an embedded controller 4, a power module 5 and a lock body 6, the gesture recognition module 1 is in communication connection with the bluetooth module 2 in a wireless serial port manner, and the bluetooth module 2 is in communication connection with the embedded controller 4 in a wired serial port manner; the power supply module 5 is connected to a power supply input pin of the embedded controller 4 and used for supplying power to the whole intelligent lock; the human body infrared sensing module 3 and the lock body 6 are both connected to an I/O port of the embedded controller 4 so as to realize data interaction with the embedded controller 5; specifically, the gesture recognition module 1 is configured to collect human gesture information when a user wants to unlock the lock, and then send the collected human gesture information to the embedded controller 4 through the bluetooth module 2, in a specific embodiment, different corresponding human gesture information is preset in the embedded controller 4, and different control instructions (such as unlocking and locking action instructions) of the lock body 6 are sent by the embedded controller 4, so that after the collected human gesture information and the human gesture information stored in the embedded controller 4 are subjected to comparative analysis, if the matching degree reaches more than 95%, the embedded controller 4 feeds back a corresponding control instruction to the lock body to control the switch state of the lock body 6, thereby implementing an intelligent switch operation on the intelligent lock, and otherwise, the embedded controller 4 does not execute any action.
Further, the utility model discloses a still include human infrared induction module 3 on the intelligence lock, it is concrete, human infrared induction module 3 specifically is used for monitoring near the scope in intelligence lock place space, judge whether someone exists, on the one hand, if nobody is near the intelligence lock, human infrared induction module 3 will correspond information transmission to in embedded controller 4, embedded controller 4 control intelligence lock is in a dormant state this moment, under low-power mode, embedded controller makes intelligence lock part function peripheral hardware and function (like general input output pin, watchdog function etc.) can not be in order to reduce the consumption of intelligence lock through the procedure, the part source code of concrete realization process is as follows:
#include "msp430x42x.h"
void main( void )
{
WDTCTL = WDTPW + WDTHOLD// stop watchdog function
FLL _ CTL0| = XCAP18PF |/configure crystal oscillator load capacitance
P1DIR |= BIT0+BIT1+BIT2+BIT3+BIT4;
P2DIR | = BIT0+ BIT1+ BIT2+ BIT3, the unused IO port is output
Pulling P1OUT pin low, the uncertain level will cause IO power consumption
P2OUT = 0;
BTCTL = BT _ fCLK2_ DIV 256// BasicTimer interrupt period is set to 1/128 seconds
IE2 | = BTIE;/BasicTimer interrupt enabled
EINT (),/open Total interrupt
LPM3, enter Low Power consumption mode
}
#pragma vector = BASICTIMER_VECTOR
__ interrupt void BT _ ISR (void)// 1/128 seconds one interrupt
{
if((P1IN&BIT5)==0) P2OUT |= BIT0;
else P2OUT&=~BIT0;
}
Therefore, the overall power consumption of the whole intelligent lock can be reduced, and the service life of the intelligent lock can be prolonged; on the other hand, when monitoring that someone is near the intelligent lock, can send corresponding alarm, play the warning effect, perfect its function of effectively avoiding theftproof and peep-proof, promoted the security performance of intelligent lock to a certain extent. For the alarm, the utility model discloses be provided with the LED warning light in lock body 6, for example, monitor someone and detain in the intelligent lock near space and exceed 10s when human infrared induction module 3, human infrared induction module 3 can send the monitoring result to embedded controller 4, embedded controller 4 feedback control instruction is to the LED warning light scintillation, play the warning effect, refer to fig. 2, the picture shows the actual circuit connection picture of embedded controller 4 and motor and LED warning light in the invention, wherein through connecting the LED warning light on embedded controller 4's settlement pin, control chip U13 through sending corresponding control instruction and realize realizing the change of going on and off with RGB realization different colours warning light, in order to play the warning effect; specifically, the embedded controller 4 controls the LED warning light to flash according to the control command, and the specific implementation code is as follows:
#include "msp430x42x.h"
#include<stdio.h>
void Init _ Port (void)// define Port initialization function
{
P6DIR = 0 XFF// direction register; the orientation of the P6 port is set as output
P1DIR = 0X 40// direction register; latch enable pin set to output
P1OUT = 0X 40// output register with latch set to high level
}
void main( void )
{
WDTCTL = WDTPW + WDTHOLD// close watchdog
Init _ Port ()/initialization Port
while(1)
{
P6OUT = 0XFE;
delay(200);
P6OUT = 0XFD;
delay(200);
}
}
In the embodiment of the present invention, the lock body 6 is further provided with a motor therein, referring to fig. 2 again, the embedded controller 4 controls the motor to move to realize the intelligent switching operation of the intelligent lock state and the control operation of the switch state, and the specific implementation process is as follows: the I/O pin of the embedded controller 4 drives the direct current motor in a PWM output mode, so as to drive the lock tongue to act, and the door lock is opened and closed. The embedded controller 4 controls part of the configuration and driving program of the dc motor as follows:
#include "msp430x42x.h"
void main()
{
WDTCTL = WDTPW + WDTHOLD;
FLL_CTL0 |= XCAP14PF;
TACTL = TACSEL 0+ TACLR// ACLK, eliminating TAR
CCR0 = 512-1, setting PWM output period
CCTL1 = OUMOD _ 7// capture/compare control register set output mode 7
CCR1 = 0;// initial duty cycle 0%
CCTL 2= OUMOD _ 7// capture/compare control register set output mode 7
CCR 2= 0;// initial duty cycle 0%
P1DIR | = 0x 04;// P1.2 output
P1SEL | = 0x 04;/P1.2 is peripheral module TA1
P2DIR | = 0x 01;// P2.0 output
P2SEL | = 0x 01;/P2.0 is peripheral module TA2
TACTL | = MC 0;/Timer _ A control register set to count up mode
while(1)
{
cCR1 = 0// door opening action: duty ratio of 0%
cCR 2= 256// door opening action: duty cycle 256/512=50%
Delay _ ms (500)// Delay 500 ms
cCR1 = 256// door closing action: duty cycle 256/512=50%
cCR 2= 0// door closing action: duty ratio of 0%
}
}
Preferably, in the embodiment of the present invention, one or more human body infrared sensing modules may be provided, for example, one human body infrared sensing module 3 is provided at any specified position within a range of 5m square and circle with the intelligent lock as a center, and one human body infrared sensing module 3 is provided outside the range of 5m square and circle, so as to increase the whole monitoring range of the intelligent lock; as for the specific setting condition of the human body infrared induction module 3, the setting can be carried out according to the actual condition, and the utility model is not limited and fixed to the setting condition.
In the embodiment of the utility model, the motor is a DC gear motor; the LED warning light is an RGB three-color LED light, and the power module 5 adopts a 5V direct-current lithium battery for power supply.
In the present embodiment, the gesture recognition module 1 employs PAJ7620 gesture recognition sensors; in this embodiment, the gesture recognition module 1 is provided with 4 recognizable gestures, including upward movement, downward movement, leftward movement, and rightward movement of a palm; in practical application, the upward movement of the palm is set as a locking operation, the downward movement of the palm is set as an unlocking operation, the leftward movement of the palm is set as an opening half operation, and the rightward movement of the palm is set as an closing half operation; of course, in other embodiments, the gesture recognition sensor not limited to PAJ7620 may be selected, and the gesture different from the upward movement, the downward movement, the leftward movement, and the rightward movement of the palm may be set to control the switch state of the smart lock, which is not limited and fixed by the present invention.
In the embodiment of the present invention, the bluetooth module 2 is not limited to use a bluetooth communication module based on a CC2640 chip; specifically, the CC2640 chip has the advantages of low power consumption, programmability and the like, and on one hand, receives gesture information from the gesture recognition module by using wireless bluetooth communication, and on the other hand, communicates with the embedded controller 4 by using a wired serial port, and sends the received gesture information to the embedded controller 4 for analysis and processing.
In the embodiment of the present invention, the human body infrared sensing module 3 is not limited to HC-SR501 module; specifically, the HC-SR501 module has the characteristics of adjustable range, high sensitivity, low cost and the like; the human body infrared sensing module 3 is powered by direct current 5V voltage, and in the sensing range of the human body infrared sensing module 3, when no person is detected, the output pin of the HC-SR501 module outputs low level, and when a person is sensed, the output pin of the HC-SR501 module outputs high level.
In the embodiment of the present invention, the embedded controller 4 is not limited to an MSP430 embedded microprocessor, but may also be a microprocessor such as an STM32 series microprocessor, which is not limited and fixed by the present invention, and can be selected according to the actual situation.
In the embodiment of the present invention, the embedder controller 4 is provided with a built-in key, and the lighting time of the RGB three-color LED lamp can be adjusted by the key, and can be adjusted according to the difference of the key as follows: enter gesture recognition mode and illuminate an alert after 15/25/35 seconds.
Compared with the prior art, the utility model discloses a gesture recognition low-power consumption intelligence lock based on bluetooth's beneficial effect embodies: the utility model utilizes the human body infrared induction module to judge whether the intelligent lock needs to be provided with electric energy, thereby reducing the power consumption of the intelligent lock and being beneficial to prolonging the service life of the intelligent lock; meanwhile, the monitoring function beside the intelligent lock is realized by utilizing the human body infrared sensing module within a certain range near the intelligent lock, the anti-theft and anti-peeping functions of the intelligent lock are favorably perfected, and the safety performance of the intelligent lock is improved; utilize gesture recognition module to accomplish the switch of long-range gesture control lock, further improve the intellectuality and the automation of lock, be applicable to the place that the user is not convenient for directly open the door with the hand, be particularly useful for disabled person and old age crowd etc..
Although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described in the foregoing detailed description, or equivalent replacements may be made for some of the technical features of the embodiments. All utilize the equivalent structure that the content of the utility model discloses a specification and attached drawing was done, direct or indirect application is in other relevant technical field, all is in the same way the utility model discloses within the patent protection scope.