CN214846860U - Electronic lock system for realizing more touch keys by 12-key capacitive touch chip - Google Patents
Electronic lock system for realizing more touch keys by 12-key capacitive touch chip Download PDFInfo
- Publication number
- CN214846860U CN214846860U CN202120044581.4U CN202120044581U CN214846860U CN 214846860 U CN214846860 U CN 214846860U CN 202120044581 U CN202120044581 U CN 202120044581U CN 214846860 U CN214846860 U CN 214846860U
- Authority
- CN
- China
- Prior art keywords
- touch
- key
- pin
- chip
- touch chip
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Electronic Switches (AREA)
Abstract
The utility model discloses an electronic lock system with 12-key capacitive touch chip for realizing more touch keys, which comprises an MCU data processing module and a capacitive touch module electrically connected with the MCU data processing module; the capacitive touch module comprises a touch chip and a touch keyboard; the touch chip is respectively and electrically connected with the MCU data processing module and the touch keyboard; the number of keys of the touch keyboard is larger than that of key touch pins of the touch chip, the touch chip is used for capturing an external touch signal of the touch keyboard and outputting an interrupt signal to the MCU data processing module, and the MCU data processing module is awakened and reads key value data of the touch chip through an I2C bus. The utility model discloses a system can realize utilizing conventional 12 key electric capacity touch chip BS83B12 to realize more touch key functions, realizes electronic lock keyboard button function extension and keeps whole quick-witted cost unchangeable.
Description
Technical Field
The utility model relates to the technical field of, in particular to 12 key electric capacity touch chip realize more electronic lock systems of touch button.
Background
At present, a conventional electronic lock touch keyboard is a case corresponding to a pin of a touch chip, so that identification and response of key functions are realized, a common electronic lock touch keyboard generally uses 12 keys, and a 12-key capacitive touch chip BS83B12 is also used in a matching manner, but with the function expansion of an electronic lock, the conventional 12 keys cannot meet the use requirements of users, some commonly used functional cases such as doorbell keys and the like need to be added, but at present, if one key needs to be added, a touch chip with more functional pins, such as a touch chip with 16 pins, needs to be selected, and thus, chip packaging and cost can be increased.
SUMMERY OF THE UTILITY MODEL
The utility model aims at overcoming not enough among the above-mentioned background art, providing a 12 key electric capacity touch chip realizes more electronic lock systems of touch button, can realize utilizing conventional 12 key electric capacity touch chip BS83B12 to realize more touch button functions, realizes that electronic lock keyboard button function expands and keeps whole quick-witted cost unchangeable.
In order to achieve the technical effect, the utility model discloses take following technical scheme:
a12-key capacitive touch chip electronic lock system for realizing more touch keys comprises an MCU data processing module and a capacitive touch module electrically connected to the MCU data processing module; the capacitive touch module comprises a touch chip and a touch keyboard; the touch chip is respectively and electrically connected with the MCU data processing module and the touch keyboard;
the number of the keys of the touch keyboard is greater than that of the key touch pins of the touch chip, the touch chip is used for capturing an external touch signal of the touch keyboard and outputting an interrupt signal to the MCU data processing module, the MCU data processing module is awakened and reads key value data of the touch chip through an I2C bus, the currently read key value is judged to be a single key value or a combined key value, if the currently read key value is the single key value, a corresponding key value function is directly responded, if the currently read key value is the combined key value, the obtained combined key value is compared with a pre-stored combined data function value, and if the currently read key value is the combined key value, the corresponding pre-stored combined data function is responded.
Further, the MCU data processing module is implemented by an STM32 chip, the touch chip has a model number of BS83B12, the touch keyboard at least includes 12 basic function keys, which are respectively a first basic function key to a twelfth basic function key, wherein the first basic function key of the touch keyboard is connected to the 10 th pin of the touch chip, the second basic function key is connected to the 9 th pin of the touch chip, the third basic function key is connected to the 6 th pin of the touch chip, the fourth basic function key is connected to the 3 rd pin of the touch chip, the fifth basic function key is connected to the 11 th pin of the touch chip, the sixth basic function key is connected to the 8 th pin of the touch chip, the seventh basic function key is connected to the 5 th pin of the touch chip, the eighth basic function key is connected to the 2 nd pin of the touch chip, and the ninth basic function key is connected to the 12 th pin of the touch chip, the tenth basic function key is connected with the 7 th pin of the touch chip, the eleventh basic function key is connected with the 4 th pin of the touch chip, and the twelfth basic function key is connected with the 1 st pin of the touch chip; the 13 th pin of the touch chip is grounded, the 14 th pin of the touch chip is electrically connected to a 3.3V power supply, the 15 th, 18 th and 20 th pins of the touch chip are suspended, the 16 th pin of the touch chip is connected with the 25 th pin of an STM32 chip for transmitting clock signals, the 17 th pin of the touch chip is connected with the 26 th pin of an STM32 chip for transmitting data signals, and the 19 th pin of the touch chip is connected with the 27 th pin of an STM32 chip for transmitting interrupt signals;
when the keys of the touch keyboard are touched, the pins of the touch chip connected with the touched keys are changed in capacitance value, the touch chip outputs interrupt signals to awaken the MCU data processing module, and the MCU data processing module reads data signals of the touch chip through the 25 th pin and the 26 th pin.
Further, the 12 basic function keys are composed of a number key 0 through a number key 9, a "+" key, and a "#" key.
Furthermore, the touch keyboard further comprises a plurality of additional function keys, and one additional function key is simultaneously connected with at least two pins from the 1 st pin to the 12 th pin of the touch chip.
Furthermore, the additional function keys at least comprise a doorbell function key and an unlocking function key.
And the power supply module is used for supplying power to the MCU data processing module and the capacitance touch module.
Further, the power supply module converts a power supply input by the battery into a direct current 3.3V power supply through the low dropout regulator.
Further, the model of the low dropout linear regulator is LDO-HT 7833.
Compared with the prior art, the utility model, following beneficial effect has:
the utility model discloses an electronic lock system of more touch buttons is realized to 12 key electric capacity touch chip can realize utilizing conventional 12 key electric capacity touch chip BS83B12 to realize more touch button functions, realizes electronic lock keyboard button function extension and keeps the whole machine cost unchangeable.
Drawings
Fig. 1 is a schematic diagram of a work flow of the electronic lock system of the present invention in which the 12-key capacitive touch chip implements more touch keys.
Fig. 2 is a schematic circuit diagram of an electronic lock system in which a 12-key capacitive touch chip implements more touch keys according to an embodiment of the present invention.
Fig. 3 is a schematic circuit diagram of a power module of an electronic lock system in which a 12-key capacitive touch chip implements more touch keys according to an embodiment of the present invention.
Detailed Description
The present invention will be further illustrated and described with reference to the following examples.
Example (b):
the first embodiment is as follows:
a12-key capacitive touch chip electronic lock system for realizing more touch keys comprises an MCU data processing module and a capacitive touch module electrically connected to the MCU data processing module; the capacitive touch module comprises a touch chip and a touch keyboard; the touch chip is respectively and electrically connected with the MCU data processing module and the touch keyboard.
The number of the keys of the touch keyboard is larger than that of the key touch pins of the touch chip, as shown in fig. 1The touch chip is used for capturing an external touch signal of the touch keyboard and outputting an interrupt signal to the MCU data processing module, and the MCU data processing module is awakened and passes through I2And C, reading the key value data of the touch chip by the bus, judging that the currently read key value is a single key value or a combined key value, directly responding to the corresponding key value function if the currently read key value is the single key value, comparing the obtained combined key value with a prestored combined data function value if the currently read key value is the single key value, and responding to the corresponding prestored combined data function if the currently read key value is the combined key value.
Specifically, as shown in fig. 2, in this embodiment, the MCU data processing module is implemented by an STM32 chip, the model of the touch chip is BS83B12, the touch keyboard at least includes 12 basic function keys, which are respectively a first basic function key to a twelfth basic function key, specifically, in this embodiment, the 12 basic function keys include a number key 0 to a number key 9, a "#" key, and a "#" key.
The key assembly comprises a touch chip, a number key and a number key, wherein the number key 1 of the touch keyboard is connected with a 10 th pin of the touch chip, the number key 2 is connected with a 9 th pin of the touch chip, the number key 3 is connected with a 6 th pin of the touch chip, the number key 4 is connected with a 3 rd pin of the touch chip, the number key 5 is connected with an 11 th pin of the touch chip, the number key 6 is connected with an 8 th pin of the touch chip, the number key 7 is connected with a 5 th pin of the touch chip, the number key 8 is connected with a 2 nd pin of the touch chip, the number key 9 is connected with a 12 th pin of the touch chip, the number key is connected with a 7 th pin of the touch chip, the number key 0 is connected with a 4 th pin of the touch chip, and the # key is connected with a 1 st pin of the touch chip; the 13 th pin of the touch chip is grounded, the 14 th pin of the touch chip is electrically connected to a 3.3V power supply, the 15 th, 18 th and 20 th pins of the touch chip are suspended, the 16 th pin of the touch chip is connected with the 25 th pin of an STM32 chip for transmitting clock signals, the 17 th pin of the touch chip is connected with the 26 th pin of an STM32 chip for transmitting data signals, and the 19 th pin of the touch chip is connected with the 27 th pin of an STM32 chip for transmitting interrupt signals.
Meanwhile, in order to meet the actual use requirements of the user, a "doorbell" function key (i.e., a bell-shaped key in fig. 1) and an "unlock" function key (i.e., a lock-shaped key in fig. 1) are additionally arranged on the touch keyboard of the present embodiment, and in the present embodiment, the "doorbell" function key is specifically combined by a number key "1" key and a number key "2" key, that is, when the user touches the "doorbell" function key, the user is equivalent to simultaneously touching the number key "1" key and the number key "2" key, and the "unlock" function key is combined by a number key "3" key and a number key "4" key, that is, when the user touches the "doorbell" function key, the user is equivalent to simultaneously touching the number key "3" key and the number key "4" key.
When the keys of the touch keyboard are touched, the pins of the touch chip connected with the touched keys are changed in capacitance value, the touch chip outputs interrupt signals to awaken the MCU data processing module, and the MCU data processing module reads data signals of the touch chip through the 25 th pin and the 26 th pin.
Specifically, when the user touches the "1" key with a hand, the touch chip BS83B12 scans that the capacitance value of the 10 th pin changes, and then the touch chip BS83B12 outputs an interrupt signal to wake up the MCU data processing module via pin 19, and the MCU data processing module wakes up via pin I2The C bus (the 25 pin of the MCU data processing module is a clock signal, the 26 pin is a data signal) reads the data of the touch chip BS83B12, and the key value "1" is determined by the internal program, that is, the key value function is responded, and the other key values are sequentially operated. The internal program judgment can be realized by storing the key values corresponding to the basic function keys and the pins of the touch chip correspondingly connected with the key values, and comparing the changed pins with the pre-stored data when the capacitance value appears.
In this embodiment, when the user touches the "doorbell" function button with a hand, that is, the "1" key and the "2" key are simultaneously touched, the touch chip BS83B12 scans the 10 th pin and the 9 th pin to be simultaneously changed, at this time, the touch chip BS83B12 outputs an interrupt signal by the 19 th pin to wake up the MCU data processing module, and the MCU data processing module wakes up the MCU data processing module through the I pin2The C bus reads the data of the touch chip BS83B12, namely the data specifically obtained when the 10 th pin and the 9 th pin of the touch chip BS83B12 are simultaneously changed in capacitance valueIn the pre-stored combination key value correspondence, the function key corresponding to the combination of the 10 th pin and the 9 th pin is a doorbell key, namely, the key value is judged to be a doorbell.
When a user touches the doorbell function key by hands, namely the 3 key and the 4 key are simultaneously touched, the 6 th pin and the 3 rd pin are simultaneously scanned and changed by the touch chip BS83B12, at the moment, the touch chip BS83B12 outputs an interrupt signal by the 19 th pin to awaken the MCU data processing module, and the MCU data processing module is awakened through I2The C bus reads data of the touch chip BS83B12, that is, specifically, the touch chip BS83B12 obtains that capacitance value changes occur at the 6 th pin and the 3 rd pin at the same time, and in the pre-stored combination key value correspondence, the function key corresponding to the 6 th pin and the 3 rd pin combination is an "unlock" key, that is, the key value is determined to be "unlock", and in practice, the function key can also be expanded to function keys such as lock closing.
In practice, in order to improve the interference resistance, the situation of more key value combinations (that is, the additional function key is connected to the pins of more touch chips) can be further expanded, for example, a new touch key function is combined by a "1" key, a "5" key, and a "9" key, that is, 3 key values, so that it is possible to avoid that a user touches two adjacent keys at the same time in a digital area to cause the start of a combined function.
More specifically, the embodiment further specifically discloses a power supply module, and the power supply module is used for supplying power to the MCU data processing module and the capacitive touch module. As shown in fig. 3, the power supply module converts the battery-input power into a dc 3.3V power through the low dropout regulator. In this embodiment, the input of the power module is 4 batteries and 5 batteries, and the 4 batteries and the 5 batteries are converted into direct current 3.3V by a low dropout linear regulator U1 (model LDO-HT7833) to provide power for the whole device.
It is to be understood that the above embodiments are merely exemplary embodiments that have been employed to illustrate the principles of the present invention, and that the present invention is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.
Claims (7)
1. An electronic lock system for realizing more touch keys by a 12-key capacitive touch chip is characterized by comprising an MCU data processing module and a capacitive touch module electrically connected with the MCU data processing module; the capacitive touch module comprises a touch chip and a touch keyboard; the touch chip is respectively and electrically connected with the MCU data processing module and the touch keyboard;
the number of the keys of the touch keyboard is larger than that of the key touch pins of the touch chip, the touch chip is used for capturing an external touch signal of the touch keyboard and outputting an interrupt signal to the MCU data processing module, and the MCU data processing module is awakened and passes through I2C, reading key value data of the touch chip by the bus, judging that the currently read key value is a single key value or a combined key value, directly responding to a corresponding key value function if the currently read key value is the single key value, comparing the obtained combined key value with a prestored combined data function value if the currently read key value is the single key value, and responding to a corresponding prestored combined data function if the currently read key value is the combined key value;
the MCU data processing module is realized by an STM32 chip, the model of the touch chip is BS83B12, the touch keyboard at least comprises 12 basic function keys which are respectively a first basic function key to a twelfth basic function key, wherein the first basic function key of the touch keyboard is connected with the 10 th pin of the touch chip, the second basic function key is connected with the 9 th pin of the touch chip, the third basic function key is connected with the 6 th pin of the touch chip, the fourth basic function key is connected with the 3 rd pin of the touch chip, the fifth basic function key is connected with the 11 th pin of the touch chip, the sixth basic function key is connected with the 8 th pin of the touch chip, the seventh basic function key is connected with the 5 th pin of the touch chip, the eighth basic function key is connected with the 2 nd pin of the touch chip, and the ninth basic function key is connected with the 12 th pin of the touch chip, the tenth basic function key is connected with the 7 th pin of the touch chip, the eleventh basic function key is connected with the 4 th pin of the touch chip, and the twelfth basic function key is connected with the 1 st pin of the touch chip; the 13 th pin of the touch chip is grounded, the 14 th pin of the touch chip is electrically connected to a 3.3V power supply, the 15 th, 18 th and 20 th pins of the touch chip are suspended, the 16 th pin of the touch chip is connected with the 25 th pin of an STM32 chip for transmitting clock signals, the 17 th pin of the touch chip is connected with the 26 th pin of an STM32 chip for transmitting data signals, and the 19 th pin of the touch chip is connected with the 27 th pin of an STM32 chip for transmitting interrupt signals;
when the keys of the touch keyboard are touched, the pins of the touch chip connected with the touched keys are changed in capacitance value, the touch chip outputs interrupt signals to awaken the MCU data processing module, and the MCU data processing module reads data signals of the touch chip through the 25 th pin and the 26 th pin.
2. The electronic lock system with 12 keys and capacitive touch chips for realizing more touch keys as claimed in claim 1, wherein said 12 basic function keys are composed of number key 0 to number key 9, "+" key, "#" key.
3. The electronic lock system of claim 1, wherein the touch keyboard further comprises a plurality of additional function keys, and one additional function key simultaneously connects at least two of the 1 st pin to the 12 th pin of the touch chip.
4. The electronic lock system with the 12-key capacitive touch chip realizing more touch keys as claimed in claim 3, wherein the additional function keys at least comprise a "doorbell" function key and an "unlock" function key.
5. The electronic lock system capable of realizing more touch keys by using the 12-key capacitive touch chip as claimed in any one of claims 1 to 4, further comprising a power supply module, wherein the power supply module is used for supplying power to the MCU data processing module and the capacitive touch module.
6. The electronic lock system with 12-key capacitive touch chip for realizing more touch keys as claimed in claim 5, wherein the power supply module converts the power input by the battery into a direct current 3.3V power supply through a low dropout linear regulator.
7. The electronic lock system with a 12-key capacitive touch chip for realizing more touch keys as claimed in claim 6, wherein the low dropout linear regulator is of a type LDO-HT 7833.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202120044581.4U CN214846860U (en) | 2021-01-08 | 2021-01-08 | Electronic lock system for realizing more touch keys by 12-key capacitive touch chip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202120044581.4U CN214846860U (en) | 2021-01-08 | 2021-01-08 | Electronic lock system for realizing more touch keys by 12-key capacitive touch chip |
Publications (1)
Publication Number | Publication Date |
---|---|
CN214846860U true CN214846860U (en) | 2021-11-23 |
Family
ID=78875524
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202120044581.4U Active CN214846860U (en) | 2021-01-08 | 2021-01-08 | Electronic lock system for realizing more touch keys by 12-key capacitive touch chip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN214846860U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112734997A (en) * | 2021-01-08 | 2021-04-30 | 广西和乐金属表面处理有限公司 | Electronic lock system for realizing more touch keys by 12-key capacitive touch chip |
-
2021
- 2021-01-08 CN CN202120044581.4U patent/CN214846860U/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112734997A (en) * | 2021-01-08 | 2021-04-30 | 广西和乐金属表面处理有限公司 | Electronic lock system for realizing more touch keys by 12-key capacitive touch chip |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105159566A (en) | Terminal, method and device for processing key signals of terminal | |
CN114320029B (en) | Low-power-consumption anti-interference intelligent door lock and awakening method | |
CN104423538B (en) | A kind of information processing method and device | |
CN110166868A (en) | A kind of charging box and charging system communicated with wireless headset | |
CN214846860U (en) | Electronic lock system for realizing more touch keys by 12-key capacitive touch chip | |
CN103237123A (en) | Cellphone screen unlocking device, method for setting and unlocking cellphone screen lock | |
CN102340588A (en) | Method for expanding use functions of touch keys in mobile phone and mobile phone | |
CN204808301U (en) | Terminal | |
CN211509272U (en) | Charging box | |
CN205722202U (en) | Electronic locker | |
CN112734997A (en) | Electronic lock system for realizing more touch keys by 12-key capacitive touch chip | |
CN210168024U (en) | Single-wire transmission key circuit | |
CN114578939A (en) | Single-line awakening and key detection circuit | |
CN211207352U (en) | Fingerprint equipment awakening circuit and fingerprint equipment | |
CN204496456U (en) | A kind of other people operated wireless mouse anti-containing cell phone keyboard | |
CN108388181B (en) | Key scan apparatus and system | |
CN202998073U (en) | Keyboard scanning circuit | |
CN202798060U (en) | Cell energy saving device and electronic equipment | |
CN206563945U (en) | Switching on and shutting down bond structure and terminal | |
CN208636830U (en) | A kind of USB circuit and electronic equipment with fingerprint identification function | |
CN215219688U (en) | HOST/Slave functional circuit based on TYPE A interface | |
CN202305754U (en) | Capacitance touch button detector | |
CN216561764U (en) | Interrupt source extension architecture and electronic equipment | |
CN215265520U (en) | Display screen integrated with voice recognition | |
CN112287736A (en) | Fingerprint equipment awakening circuit and fingerprint equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: 537100 Ganhua Industrial Park, qintang District, Guigang City, Guangxi Zhuang Autonomous Region Patentee after: Guangxi Xinyang Metal Surface Treatment Co.,Ltd. Address before: 537100 Ganhua Industrial Park, qintang District, Guigang City, Guangxi Zhuang Autonomous Region Patentee before: Guangxi hele metal surface treatment Co.,Ltd. |