CN109976206A - Intelligent key handle - Google Patents

Intelligent key handle Download PDF

Info

Publication number
CN109976206A
CN109976206A CN201810077288.0A CN201810077288A CN109976206A CN 109976206 A CN109976206 A CN 109976206A CN 201810077288 A CN201810077288 A CN 201810077288A CN 109976206 A CN109976206 A CN 109976206A
Authority
CN
China
Prior art keywords
door
time
chip microcontroller
display screen
intelligent key
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.)
Granted
Application number
CN201810077288.0A
Other languages
Chinese (zh)
Other versions
CN109976206B (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.)
Harbin Institute of Technology
Original Assignee
Harbin Institute of Technology
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 Harbin Institute of Technology filed Critical Harbin Institute of Technology
Priority to CN201810077288.0A priority Critical patent/CN109976206B/en
Publication of CN109976206A publication Critical patent/CN109976206A/en
Application granted granted Critical
Publication of CN109976206B publication Critical patent/CN109976206B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21038Special clock line, module counts clock until equal to its address

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The present invention relates to single-chip microcontrollers and sensor technical field, provide a kind of Intelligent key handle.Intelligent key handle of the invention includes: soft-touch control, single-chip microcontroller, single axis gyroscope, real-time clock module, power module and display screen;The soft-touch control is connect with the single-chip microcontroller, for sending external wake signal to the single-chip microcontroller;The ADC interface of the single-chip microcontroller is connect with the single axis gyroscope, for being locked a door movement after receiving the external wake signal according to the detection signal identification of the single axis gyroscope;The real-time clock module is connect with the single-chip microcontroller, and for timing and the time that will lock a door is supplied to the single-chip microcontroller;The power module is used to power to other each component parts;The display screen is connect with a display output end of the single-chip microcontroller, is locked a door the time for showing.It is the time that Intelligent key handle of the invention can identify the movement locked a door and record is locked a door, smaller to the change of key, without remaking, it is easy with application to implement deployment.

Description

Intelligent key handle
Technical field
The present invention relates to single-chip microcontroller and sensor technical field more particularly to a kind of Intelligent key handles.
Background technique
In daily life, for many middle-aged and the old and brain worker, it is frequently present of and withdraws from a room when locking a door not Whether wholwe-hearted situation to locking to move into one's husband's household upon marriage and producing query, causes it to have to return so that it is after a period of time that withdraws from a room It is checked, is wasted time, energy and resource.The existing available technology for solving the problems, such as this is intelligent door lock, part intelligent door lock User can be reminded to lock a door in a manner of alarm etc. when user leaves.Intelligent door lock can play the role of that user is reminded to lock a door, but Installation intelligent door lock, which needs to lock on the door, to be replaced, and the degree of difficulty of deployment is larger, and cost is relatively high, it is not easy to true The middle-aged and the old just needed receives.
The published patent application application No. is 201610292856.X (Publication No. CN105971399A) discloses A kind of Intelligent key based on photoelectric sensor, the Intelligent key are based primarily upon photoelectric sensor, can achieve record key rotation It turn-takes several purposes, but can not record user locks a door the time to reach user and can be confirmed whether specific time once locked a door Purpose, and the Intelligent key needs the key that user more renews, cannot directly be installed at it is existing on the key.Application No. is The patent application of 201120188133.8 (Publication No. CN202227786U) discloses a kind of key of door locking prompt facility, Although capableing of the time of suggestion locking door, this application records the time in such a way that triggering key detects key joint element for bar, essence Degree is not high, meanwhile, which makes more complicated modification to the mechanical structure of key itself, it is also desirable to the key that user more renews Spoon.
Summary of the invention
(1) technical problem
The technical problem to be solved in the present invention is to provide a kind of Intelligent key handle, it can identify and lock a door when user locks a door Act the time or lock a door away from the modern time that simultaneously accurate recording is locked a door.
(2) technical solution
In order to solve the above-mentioned technical problems, the present invention provides a kind of Intelligent key handles, comprising: soft-touch control, single-chip microcontroller, Single axis gyroscope, real-time clock module, power module and display screen;
The soft-touch control is connect with the single-chip microcontroller, for sending external wake signal to the single-chip microcontroller;
The ADC interface of the single-chip microcontroller is connect with the single axis gyroscope, for after receiving the external wake signal It is locked a door movement according to the detection signal identification of the single axis gyroscope;
The real-time clock module is connect with the single-chip microcontroller, and for timing and the time that will lock a door is supplied to the monolithic Machine;
The power module is used to power to other each component parts;
The display screen is connect with a display output end of the single-chip microcontroller, is locked a door the time for showing.
Further, the shell mechanism of the Intelligent key handle is a hollow the shank of the key, and the display screen is arranged described On the front shell of hollow the shank of the key, lacing hole, another side of the display screen are set on the side frame of the display screen First clamping piece and first is set on frame and tightens knob, the back side, the position opposite with the display screen in the hollow the shank of the key The soft-touch control is set, tightens rotation at the back side of the hollow the shank of the key, with the positive first clamping piece and described first The symmetrical position setting second intermediate plate of button and second tightens knob, and described first, which tightens knob and described second, tightens knob point The first clamping piece and the second intermediate plate are not fixed, make to form cavity use among the first clamping piece and the second intermediate plate In placing normal key, the single-chip microcontroller, the single axis gyroscope, the real-time clock module and power module setting exist In the shell of the hollow the shank of the key.
Further, the shell mechanism of the Intelligent key handle includes key bit and key bar, and the display screen setting exists The front of the key bit, is arranged lacing hole on the side frame of the display screen, described in the other side setting of the display screen Key bar, the back side, the position setting soft-touch control opposite with the display screen in the key bit, the single-chip microcontroller, The single axis gyroscope, the real-time clock module and the power module are arranged in the shell of the Intelligent key handle.
Further, the operating mode of the Intelligent key handle is time mode of locking a door, detailed process are as follows: power-up initializing Enter low-power consumption standby state afterwards, the screen of the display screen extinguishes, the internal clocking stalling of the single-chip microcontroller, except not receiving All interruptions except portion's wake-up interrupts, the real-time clock module follow physical time to operate normally;Described in user's contact Soft-touch control or when locking a door, the display screen last record of display is locked a door the time, starts to identify the movement that user locks a door;When It when recognition result is locked a door for user, reads, store the time in the real-time clock module and show on the display screen, it is right Time of locking a door last time is updated, and returns to low-power consumption standby state after updating;When recognition result is not that user locks a door, then It is secondary to enter low-power consumption standby state.
Further, the operating mode of the Intelligent key handle is away from modern time mode, detailed process are as follows: power-up initializing Enter low-power consumption standby state afterwards, the screen of the display screen extinguishes, the internal clocking stalling of the single-chip microcontroller, except not receiving All interruptions except portion's wake-up interrupts;When user contacts the soft-touch control or locks a door, the display screen display is last It locks a door apart from the now time, starts to identify the movement that user locks a door;When recognition result is locked a door for user, reset described real-time The time of clock module is 0 and starts timing, then returns to low-power consumption standby state;When recognition result is not that user locks a door, It is again introduced into low power consumpting state.
Further, the Intelligent key handle is the cross for being longitudinally inserted into the vertical key of door lock or being laterally inserted door lock Formula key, set gradually the display screen, the single-chip microcontroller, the real-time clock module, the power module, it is described touch open It closes;The single axis gyroscope is between the display screen and the soft-touch control, with the single-chip microcontroller, the real-time clock mould Block and the power module are side by side.
Further, movement of locking a door, detailed process are identified using the method based on sliding window are as follows: initialization, into etc. To state;Judge whether time-out, the end of identification if time-out, if otherwise further determining whether to reach the sampling period;If not reaching It to the sampling period, then returns and continues waiting for, ADC sampling is carried out to the single axis gyroscope if reaching the sampling period, will be sampled The data of acquisition are put into sliding window behind the last one data;Judge whether the sliding window is filled, if it is not, then Return continues waiting for;If so, continuing to carry out identifying processing to the sliding window;If being judged as, user locks a door, end of identification; If it is not, then further determining whether as user's enabling;If so, end of identification;If it is not, then abandoning in the sliding window One interrupt identification makes the sliding window be in discontented state, and return continues waiting for.
Further, described to continue to carry out identifying processing to the sliding window to include: to store up in the single-chip microcontroller in advance It deposits the locking a door of equivalent, open the door and the sliding window mode time sequence of noise and its corresponding mark are as training data;With DTW Algorithm measures the distance between the time series in the sliding window w and the training data obtained in use, takes wherein k K neighbour set is formed apart from the smallest training data with the sliding window w;Quantity is selected most from k neighbour set again More marks is as identification as a result, directly using the mark work of the smallest time series of distance in k neighbour set For recognition result.
Further, described, continue to carry out identifying processing to the sliding window to include: to input the sliding window Identifying processing, the number of nodes of the input layer of the feedforward neural network and the sliding window are carried out into feedforward neural network Of same size, the number of nodes of the hidden layer of the feedforward neural network is set as the section of the input layer of the feedforward neural network The 2/3 of point quantity, the output layer of the feedforward neural network include two nodes, respectively o1And o2, work as o1Output is 1 and o2 When output is 0, it is judged as that user locks a door, works as o1Output is 0 and o2When output is 1, it is judged as that user opens the door, other situations are then sentenced Break as noise.
Further, the Intelligent key handle further includes debugging display screen, and another display with the single-chip microcontroller exports End connection.
(3) beneficial effect
Above-mentioned technical proposal of the invention has the advantages that
The time that 1. Intelligent key handle of the invention can identify the movement locked a door and record is locked a door, the help middle-aged and the old, Failure of memory person and brain worker are confirming whether it locks a door when withdrawing from a room after leaving.
2. the technical solution adopted in the present invention is smaller to the change of key, and can be fit directly into existing key On, it is easy with application to implement deployment completely without change without remaking, and to door lock.
Detailed description of the invention
Fig. 1 is the comprising modules schematic diagram of Intelligent key handle of the invention;
Fig. 2A is the front plan view of a shell mechanism of Intelligent key of the invention;
Fig. 2 B is the back side top view of a shell mechanism of Intelligent key of the invention;
Fig. 2 C is the side view of a shell mechanism of Intelligent key of the invention;
Fig. 3 A is the front plan view of another shell mechanism of Intelligent key of the invention;
Fig. 3 B is the back side top view of another shell mechanism of Intelligent key of the invention;
Fig. 3 C is the side view of another shell mechanism of Intelligent key of the invention;
Fig. 4 is the time mode work flow diagram of locking a door of Intelligent key handle of the invention;
Fig. 5 is Intelligent key handle of the invention away from modern time mode work flow diagram;
Fig. 6 A is the location diagram in the vertical key of the present invention between single axis gyroscope and each module;
Fig. 6 B is the location diagram in horizontal type key of the present invention between single axis gyroscope and each module;
Fig. 7 is the flow chart that the present invention identifies method of operating of locking a door;
Fig. 8 is the physical circuit figure of Intelligent key handle of the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiments of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is the comprising modules schematic diagram of Intelligent key handle of the invention.As shown in Figure 1, Intelligent key handle of the invention It include: soft-touch control, single-chip microcontroller, single axis gyroscope, real-time clock module, power module and display screen.
Soft-touch control is connect with single-chip microcontroller, for sending external wake signal to single-chip microcontroller.The ADC interface and list of single-chip microcontroller Axis gyroscope connection, for being locked a door movement after receiving external wake signal according to the detection signal identification of single axis gyroscope.It is real When clock module connect with single-chip microcontroller, for timing and the time that will lock a door is supplied to single-chip microcontroller.Power module is used for each to other Component part power supply.One display output end connection of display screen and single-chip microcontroller, locks a door the time for showing.
In debugging, debugging can be used display screen as attachment, by another display output end of single-chip microcontroller and debugging Display screen connection.
Intelligent key handle of the invention may be designed as two kinds of structures, and one of structure is as shown in Fig. 2A, 2B, 2C, by intelligence Can the shank of the key be fabricated to the shape of hollow the shank of the key, using the structural clamps such as screw intermediate plate it is existing on the key, key is not necessarily to Again it prepares.Wherein, the front plan view of Intelligent key handle is shown in Fig. 2A, and the outer of hollow the shank of the key is arranged in display screen 21 On shell, lacing hole 22 is set on the side frame of display screen 21, intermediate plate 23 is set on another side frame of display screen 21 and is tightened Knob 24.The back side top view of Intelligent key handle is shown in Fig. 2 B, and soft-touch control 25 and display screen 21 are oppositely arranged on intelligence The back side of the shank of the key, it is user-friendly.The side view of Intelligent key handle, the two sides difference of Intelligent key handle is shown in Fig. 2 C Knob 24 is tightened with one and fixes an intermediate plate 23, and centre forms a cavity 26.It can be by Intelligent key sleeve in existing key The shank of the key part, by tightening knob 24 and the fixed key bar of intermediate plate 23.The shell mechanism of hollow the shank of the key is arranged in each module It is interior.Front and back in the above text is to describe for convenience, and do not constitute a limitation of the invention, and can also will be shown in practice Overleaf, soft-touch control 25 is arranged in front 21 setting of screen.
Second of structure can be integrated in the key bit part newly manufactured and designed as shown in Fig. 3 A, 3B, 3C.Wherein, Fig. 3 A is aobvious What is shown is the front plan view of Intelligent key handle, is arranged lacing hole 22 on the side frame of display screen 21, display screen 21 it is another Key bar 27 is arranged in side.The back side top view of Intelligent key handle is shown in Fig. 3 B, and soft-touch control 25 is arranged in Intelligent key handle The back side, be oppositely arranged with display screen 21, it is user-friendly.The side view of Intelligent key handle is shown in Fig. 3 C, and centre is Key bar 27.Front and back in the above text is to describe for convenience, and do not constitute a limitation of the invention, and in practice may be used Overleaf by the setting of display screen 21, soft-touch control 25 is arranged in front.
Intelligent key handle of the invention can work under two kinds of operating modes, one is time mode of locking a door, one is away from Modern time mode.It locks a door under time mode, when user, which wakes up, checks screen, it is shown that the last time locked a door, herein Under mode, real-time clock is as the clock work run simultaneously with physical time.Under away from modern time mode, looked into when user wakes up When seeing screen, it is shown that last lock a door away from modern time interval, in such a mode, real-time clock makes as a timer With while it is working can the timing since 00:00 (when: point).For example, when user is desired to determine whether it is leaving after leaving When lock move into one's husband's household upon marriage, the time can be locked a door by the last time of observation key record or last time locks a door away from the modern time, when leaving in conjunction with it Time and the now time be determined.The time that user leaves is 10:00, and in 10:30, user is desired to determine it and leaves When whether lock and move into one's husband's household upon marriage, Intelligent key handle can be waken up, if before and after the time showing 10:00 that locks a door of record, or display is away from modern time For 00:30 or so, then illustrate to lock a door when user leaves.In order not to increase more buttons on the key, both modes can It sets when leaving the factory.
Fig. 4 is the time mode work flow diagram of locking a door of Intelligent key handle of the invention.As shown in figure 4, completing to power on just After beginningization, into low-power consumption standby state, screen extinguishes, the stalling of single-chip microcontroller internal clocking, do not receive except external wake-up interrupts it Outer all interruptions, real-time clock follow physical time to operate normally.When user contacts soft-touch control or locks a door, due to this hair The design of bright shell mechanism, user spontaneously touch soft-touch control in the Shi Shouhui that locks a door, and single-chip microcontroller wakes up from low power consumpting state, Display screen display last time record is locked a door the time, and user can determine whether to lock when leaving by the time to move into one's husband's household upon marriage, If no relevant information uses for the first time, the prompt informations such as 99:99 can not be shown or shown herein.Start to identify that user locks a door later Movement, when recognition result is locked a door for user, read, storage real-time clock in temporal information simultaneously show on a display screen, Time of locking a door last time is updated, returns to low-power consumption standby state after updating.When recognition result is not that user locks a door, Then be again introduced into low power consumpting state, only allow external wake interrupt, Singlechip clock stop, screen extinguish, real-time clock not by Influence is remained in operation.
Fig. 5 is Intelligent key handle of the invention away from modern time mode work flow diagram.As shown in figure 5, power-up initializing Afterwards, into low-power consumption standby state, screen extinguishes, Singlechip clock stalling, does not receive all in addition to external wake-up interrupts It interrupts.When user contacts soft-touch control or locks a door, due to the design of shell mechanism of the present invention, hand can be spontaneous when locking a door by user Ground touches soft-touch control, and single-chip microcontroller wakes up from low power consumpting state, and the display screen display last time locked a door apart from the now time, User can determine whether to lock when leaving by the time to move into one's husband's household upon marriage, if using without relevant information or for the first time, can not show herein Show or show the prompt informations such as 99:99.Start to identify the movement that user locks a door later, when recognition result is locked a door for user, weight The time for setting real-time clock is 00:00 and starts timing, then returns to low-power consumption standby state.When recognition result is not user's lock Men Shi is then again introduced into low power consumpting state, and Singlechip clock stops, and only external wake is allowed to interrupt, and screen extinguishes, real-time clock It is unaffected to remain in operation.
Fig. 6 A is the location diagram in the vertical key of the present invention between single axis gyroscope and each module;Fig. 6 B is the present invention Location diagram in horizontal type key between single axis gyroscope and each module.As shown in Fig. 6 A, 6B, vertical key is set forth The schematic diagram of (being longitudinally inserted into door lock) and horizontal type key (laterally inserted door lock).Display screen 21, single-chip microcontroller and reality can be set gradually When clock module composition circuit structure 62, power module 63, soft-touch control 25, single axis gyroscope 65 be located at display screen 21 and touch It touches between switch 25, side by side with the circuit structure 62 of single-chip microcontroller and real-time clock module composition, power module 63.Single axis gyroscope 65 connect with the ADC interface of single-chip microcontroller.
Single axis gyroscope is a kind of sensor that some axis rotation angle is surrounded for detecting accompanying object, Different voltage values can be exported when rotating to different angles, by this voltage value carry out AD sampling after obtain with rotation The relevant digital quantity of gyration can be used for judging the rotation angle of accompanying object, and chip can be used to realize.During installation, The axis of single axis gyroscope should be parallel with key bar.
The method for identifying movement of locking a door is the method based on sliding window, and single-chip microcontroller can obtain to come according to certain sample frequency The perception value obtained from single axis gyroscope sensor.One time sequence is formed by the perception value continuously from different time points Column.The target of recognition methods is to identify lock a door, open the door and the mode of noise from this time series.
It acts duration due to locking a door and does not grow generally, and the power consumption of prolonged single-chip microcontroller working condition also compares Greatly, therefore a stand-by time threshold value can be set to recognition methods, it, can if it is more than the threshold value that single-chip microcontroller, which is in the time waken up, Terminate identification, enters low-power consumption standby state.
Fig. 7 is that the present invention identifies method of operating flow chart of locking a door.All Time sequence is divided based on the method for sliding window Duan Jinhang identifying processing, wherein each section with regular length is known as a sliding window, which is known as sliding The width of window needs to predefine.There is overlapping between adjacent sliding window, the latter sliding window abandons previous First data of sliding window, and a new data are added in tail portion, rest part is identical.
As shown in fig. 7, being initialized first, into wait state, judge whether time-out, the recognizer knot if time-out Beam, if it is not, then further determining whether to reach the sampling period.If the not up to sampling period, return is continued waiting for, and is adopted if reaching The sample period then carries out ADC sampling to gyroscope, and the data that sampling obtains are put into sliding window after the last one data Face.Judge whether sliding window is filled, continued waiting for if it is not, then returning, if so, a pair using following two methods is sliding Dynamic window carries out identifying processing.If being judged as, user locks a door, and recognizer terminates;If it is not, then further determine whether for It opens the door at family.If so, recognizer terminates;If it is not, first interrupt identification then abandoned in sliding window makes at sliding window In discontented state, then returns and continue waiting for.Since the processing capacity of single-chip microcontroller is limited, identify that the number of operation is relatively more, Sliding speed v can be set in practical applications, i.e., for v sliding window of arbitrary continuation, first 1 sliding window is known Not, continuous v-1 sliding window below is abandoned.
For sliding window, following two method can be used and carry out identifying processing:
Method one is that DTW algorithm (Dynamic Time Warping, dynamic time consolidation) and two kinds of k neighbour are used in combination Algorithm.
Need to store the locking a door of equivalent in single-chip microcontroller in advance, open the door and the sliding window mode time sequence of noise and its Corresponding mark, as training data.When being identified, the sliding window w obtained in use and instruction are measured with DTW algorithm Practice the distance between the time series in data, take wherein k and w form k neighbour set apart from the smallest training data.Again from The most mark of quantity is selected in k neighbour set as identification as a result, can also directly use distance in k neighbour set minimum Time series mark as recognition result.
Method two is the method based on artificial neural network.
Sliding window is input in feedforward neural network and is identified.The number of nodes of the input layer of feedforward neural network It is of same size with sliding window;The number of nodes of hidden layer can be rule of thumb configured, such as may be configured as the section of input layer The 2/3 of point quantity;Output layer includes two nodes, respectively o1And o2;Work as o1Output is 1 and o2When output is 0, it is judged as use It locks a door at family;Work as o1Output is 0 and o2When output is 1, it is judged as that user opens the door;Other situations are then judged as noise.Feedforward Neural Networks The training method of network is back-propagation algorithm, training set be process manually mark lock a door, open the door and Time sequence of noise, wherein It locks a door and corresponding is labeled as o1=1 and o2=0, enabling is labeled as o1=0 and o2=1, noise is corresponding to be labeled as o1=0 and o2= 0。
Both the above method operand is larger, is suitble to use the faster single-chip microcontroller of arithmetic speed, need using longer window Mouth width degree, can also be without using sliding window and using obtaining preferably to reflect feature that data have in this wakeup process Total data.
Fig. 8 is the physical circuit figure of Intelligent key handle of the invention.As shown in figure 8, being based on STC15W series monolithic Typical embodiments in, single-chip microcontroller STC15W60S4, real-time clock is DS1302 module, and power supply is a piece of 3V button electricity Pond, display screen are the 4-digit number liquid crystal display driven with HT1621B.Attachment debugger is LCD1602.Its specific connection relationship is such as Under:
VCC, GND of single axis gyroscope module are connected with the VCC of system and GND.The signal output end of single axis gyroscope with The P1.0 pin of single-chip microcontroller is connected (other pins with ADC function also can be used).The VCC and GND and power supply of touch tablet The VCC of module is connected with GND, and output signal D is connected with P3.2 (external interrupt 0).The VCC and GND and electricity of real-time clock module The VCC of source module is connected with GND, CLK, I/O, and RST is connected with P1.4, P1.5, P1.6 respectively.The liquid crystal display of HT1621B driving VCC and GND be connected with the VCC of power module and GND, CS, WR and DA are connected with P1.1, P1.2 with P1.3 respectively.Attachment tune Try the connection method of device screen are as follows: VSS and VDD is connected with the VCC of power module and GND respectively, RS, RW and E and P2.5, P2.6 It is connected with P2.7.DATA (8) is connected with P0.A and K points are connected with VCC and GND.
Foregoing circuit structure is a kind of typical embodiment, all single-chip microcontrollers and core for possessing same or similar function Piece all can serve as replacement technology scheme and be applied in the present invention.
The time that Intelligent key handle of the invention can identify the movement locked a door and record is locked a door helps the middle-aged and the old, note Recall power decline person and brain worker and is confirming whether it locks a door when withdrawing from a room after leaving.Used technical solution is to key Spoon change it is smaller, and can be fit directly into it is existing on the key, without remaking, and to door lock completely without changing It is dynamic, it is easy with application to implement deployment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of Intelligent key handle characterized by comprising soft-touch control, single-chip microcontroller, single axis gyroscope, real-time clock module, Power module and display screen;
The soft-touch control is connect with the single-chip microcontroller, for sending external wake signal to the single-chip microcontroller;
The ADC interface of the single-chip microcontroller is connect with the single axis gyroscope, for the basis after receiving the external wake signal The detection signal identification of the single axis gyroscope is locked a door movement;
The real-time clock module is connect with the single-chip microcontroller, and for timing and the time that will lock a door is supplied to the single-chip microcontroller;
The power module is used to power to other each component parts;
The display screen is connect with a display output end of the single-chip microcontroller, is locked a door the time for showing.
2. Intelligent key handle according to claim 1, which is characterized in that the shell mechanism of the Intelligent key handle is Heart the shank of the key, the display screen are arranged on the front shell of the hollow the shank of the key, set on the side frame of the display screen Lacing hole is set, setting first clamping piece and first tightens knob on another side frame of the display screen, in the hollow the shank of the key The back side, opposite with the display screen position soft-touch control is set, the hollow the shank of the key the back side, with it is positive The first clamping piece and described first tightens the symmetrical position setting second intermediate plate and second of knob and tightens knob, and described first Knob and described second is tightened to tighten knob and fix the first clamping piece and the second intermediate plate respectively, make the first clamping piece and A cavity is formed among the second intermediate plate for placing normal key, the single-chip microcontroller, the single axis gyroscope, it is described in real time Clock module and the power module are arranged in the shell of the hollow the shank of the key.
3. Intelligent key handle according to claim 1, which is characterized in that the shell mechanism of the Intelligent key handle includes key Key bit and key bar, the display screen are arranged in the front of the key bit, wire rope handling are arranged on the side frame of the display screen The key bar, the back side, the position opposite with the display screen in the key bit is arranged in the other side in hole, the display screen The soft-touch control, the single-chip microcontroller, the single axis gyroscope, the real-time clock module and power module setting are set In the shell of the Intelligent key handle.
4. Intelligent key handle according to claim 1, which is characterized in that the operating mode of the Intelligent key handle is to lock a door Time mode, detailed process are as follows: enter low-power consumption standby state after power-up initializing, the screen of the display screen extinguishes, described The internal clocking of single-chip microcontroller stalls, and does not receive all interruptions in addition to external wake-up interrupts, the real-time clock module follows Physical time operates normally;When user contacts the soft-touch control or locks a door, the lock of the last record of display screen display The door time starts to identify the movement that user locks a door;When recognition result is locked a door for user, reads, stores the real-time clock mould Time in block simultaneously shows on the display screen, is updated to time of locking a door last time, returns to low-power consumption after updating and wait for Machine state;When recognition result is not that user locks a door, it is again introduced into low-power consumption standby state.
5. Intelligent key handle according to claim 1, which is characterized in that the operating mode of the Intelligent key handle is away from the present Time mode, detailed process are as follows: enter low-power consumption standby state after power-up initializing, the screen of the display screen extinguishes, described The internal clocking of single-chip microcontroller stalls, and does not receive all interruptions in addition to external wake-up interrupts;When user's contact touch is opened When closing or locking a door, the display screen shows that the last time locked a door apart from the now time, starts to identify the movement that user locks a door;Work as knowledge When other result is locked a door for user, the time for resetting the real-time clock module is 0 and starts timing, then returns to low-power consumption standby State;When recognition result is not that user locks a door, it is again introduced into low power consumpting state.
6. Intelligent key handle according to any one of claims 1 to 3, which is characterized in that the Intelligent key handle is longitudinal inserts Enter the vertical key of door lock or the horizontal type key for laterally inserted door lock, sets gradually the display screen, the single-chip microcontroller, institute State real-time clock module, the power module, the soft-touch control;The single axis gyroscope is located at the display screen and the touching It touches between switch, side by side with the single-chip microcontroller, the real-time clock module and the power module.
7. Intelligent key handle according to claim 6, which is characterized in that locked a door using the method identification based on sliding window Movement, detailed process are as follows: initialization, into wait state;Judge whether time-out, the end of identification if time-out, if otherwise into one Step judges whether to reach the sampling period;If the not up to sampling period, return is continued waiting for, to described if reaching the sampling period Single axis gyroscope carries out ADC sampling, and the data that sampling obtains are put into sliding window behind the last one data;Judge institute It states whether sliding window is filled, is continued waiting for if it is not, then returning;If so, continuing to carry out identifying processing to the sliding window; If being judged as, user locks a door, end of identification;If it is not, then further determining whether as user's enabling;If so, end of identification; So that the sliding window is in discontented state if it is not, then abandoning first interrupt identification in the sliding window, return after It is continuous to wait.
8. Intelligent key handle according to claim 7, which is characterized in that described to continue to identify the sliding window Processing include: the locking a door of equivalent is stored in the single-chip microcontroller in advance, open the door and the sliding window mode time sequence of noise and Its corresponding mark is used as training data;It is measured in the sliding window w and the training data obtained in use with DTW algorithm The distance between time series, take wherein k form k neighbour set apart from the smallest training data with the sliding window w; The most mark of quantity is selected from k neighbour set again as identification as a result, directly using k neighbour set The middle mark apart from the smallest time series is as recognition result.
9. Intelligent key handle according to claim 7, which is characterized in that described to continue to identify the sliding window Processing includes: that the sliding window is input in feedforward neural network to carry out identifying processing, the feedforward neural network it is defeated Number of nodes and the sliding window for entering layer are of same size, and the number of nodes of the hidden layer of the feedforward neural network is set as The 2/3 of the number of nodes of the input layer of the feedforward neural network, the output layer of the feedforward neural network include two nodes, Respectively o1And o2, work as o1Output is 1 and o2When output is 0, it is judged as that user locks a door, works as o1Output is 0 and o2When output is 1, It is judged as that user opens the door, other situations are then judged as noise.
10. Intelligent key handle according to claim 1, which is characterized in that the Intelligent key handle further includes debugging with aobvious Display screen is connect with another display output end of the single-chip microcontroller.
CN201810077288.0A 2018-01-26 2018-01-26 Intelligent key handle Active CN109976206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810077288.0A CN109976206B (en) 2018-01-26 2018-01-26 Intelligent key handle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810077288.0A CN109976206B (en) 2018-01-26 2018-01-26 Intelligent key handle

Publications (2)

Publication Number Publication Date
CN109976206A true CN109976206A (en) 2019-07-05
CN109976206B CN109976206B (en) 2020-06-26

Family

ID=67075862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810077288.0A Active CN109976206B (en) 2018-01-26 2018-01-26 Intelligent key handle

Country Status (1)

Country Link
CN (1) CN109976206B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110084856A1 (en) * 2006-07-13 2011-04-14 Niels Kleindienst Key unit for a lock system of a vehicle
CN102913062A (en) * 2012-11-21 2013-02-06 上海市闵行第二中学 Key with function of displaying locking and unlocking state of door
CN202866418U (en) * 2012-09-11 2013-04-10 马梓馨 Multifunctional key
US20130186154A1 (en) * 2011-11-22 2013-07-25 Alfred M. Haas Kd
CN105261098A (en) * 2015-10-27 2016-01-20 上海斐讯数据通信技术有限公司 Intelligent door locking system and method
CN105735760A (en) * 2016-02-26 2016-07-06 移康智能科技(上海)有限公司 Intelligent key sleeve, intelligent key assembly and locking prompt method
CN105867201A (en) * 2015-01-19 2016-08-17 陈奎发 Smart switch
CN107296357A (en) * 2017-08-01 2017-10-27 宝鸡文理学院 A kind of key storage device and its accumulating method with memory function

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110084856A1 (en) * 2006-07-13 2011-04-14 Niels Kleindienst Key unit for a lock system of a vehicle
US20130186154A1 (en) * 2011-11-22 2013-07-25 Alfred M. Haas Kd
CN202866418U (en) * 2012-09-11 2013-04-10 马梓馨 Multifunctional key
CN102913062A (en) * 2012-11-21 2013-02-06 上海市闵行第二中学 Key with function of displaying locking and unlocking state of door
CN105867201A (en) * 2015-01-19 2016-08-17 陈奎发 Smart switch
CN105261098A (en) * 2015-10-27 2016-01-20 上海斐讯数据通信技术有限公司 Intelligent door locking system and method
CN105735760A (en) * 2016-02-26 2016-07-06 移康智能科技(上海)有限公司 Intelligent key sleeve, intelligent key assembly and locking prompt method
CN107296357A (en) * 2017-08-01 2017-10-27 宝鸡文理学院 A kind of key storage device and its accumulating method with memory function

Also Published As

Publication number Publication date
CN109976206B (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN106547415B (en) A kind of Embedded capacitance touch sensing device and its implementation
US6308279B1 (en) Method and apparatus for power mode transition in a multi-thread processor
KR100323813B1 (en) System wake-up based on joystick movement
CN104850214B (en) A method of it is intended to shorten mobile terminal wakeup time by predicting that user wakes up
CN106696863B (en) The control method and system of vehicle intelligent interactive device
CN106471455B (en) Low-power capacitance type sensor button
CN104142728B (en) Electronic installation
US9234911B2 (en) Sensor device provided with a circuit for detection of single or multiple events for generating corresponding interrupt signals
CN106648576A (en) Method for quickly starting application, and mobile terminal
CN104503565A (en) Power consumption management method and device for mobile device and mobile device
WO2018053714A1 (en) Single-chip microcomputer system, and reset method for single-chip microcomputer system
CN112530056A (en) Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium
CN106681472A (en) Heterogeneous multi-core processor power consumption control device and power consumption control method thereof
CN110424831A (en) Low power-consumption intelligent door lock
CN107577189A (en) A kind of accurate timing Rouser of automatic monitoring system
CN104597790A (en) Serial port controller and awakening method for micro-controller system based on the same
CN109788536A (en) Sensor control method, sensor control, sensor and storage medium
CN105547491B (en) A kind of automatic power-saving method of telescope-type laser ranging thermal imaging system
CN113489497A (en) Realization circuit and chip for TCK or ADC
CN206058183U (en) Microcontroller
CN106341545A (en) Method for displaying time of mobile terminal under power-off state and system using method
CN109976206A (en) Intelligent key handle
CN109972918A (en) Intelligent key
CN203870786U (en) Wireless remote meter reading equipment with ultra-low-power wakeup function
CN109462882A (en) Terminal control method and device and terminal

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