Intelligent key handle control circuit based on I2C communication

By using an intelligent button handle control circuit based on I2C communication, the problems of high circuit complexity, weak anti-interference ability and poor scalability caused by traditional parallel communication methods are solved. This achieves hardware simplification, cost reduction and reliability improvement, and supports modular expansion and low power consumption design.

CN224096145UActive Publication Date: 2026-04-07SHENZHEN TENGHUI MICRON TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Traditional button-operated controller circuits use parallel communication, resulting in high circuit complexity, weak anti-interference capability, poor scalability, high hardware cost, difficulty in power consumption control, and insufficient compatibility.

Method used

The intelligent button handle control circuit based on I2C communication is adopted. It adopts a two-wire serial communication architecture, including a first control circuit, a second control circuit, a third control circuit and a fourth control circuit. The STC8H8K64U microcontroller is used as the sixth control chip, which supports I2C controller. The circuit design with capacitors and resistors realizes power supply and button input.

Benefits of technology

It achieves hardware simplification, cost reduction, and improved reliability, with a 60% reduction in connection harness cost, a 90% reduction in standby power consumption, a 40% improvement in anti-interference capability, enhanced compatibility, and support for modular expansion and low-power design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224096145U_ABST
    Figure CN224096145U_ABST
Patent Text Reader

Abstract

The utility model discloses an intelligent key handle control circuit based on I2C communication. The circuit comprises a first control circuit used for processing data and controlling each circuit; the second control circuit is electrically connected with the first control circuit and is used for transmitting data; one side of the first control circuit is also electrically connected with a third control circuit for realizing power supply; the fourth control circuit is used for realizing key input; through a double-wire system serial communication architecture, the problems of data line redundancy, weak anti-interference capability, poor expandability and the like of a traditional parallel scheme are solved, and hardware simplification, cost reduction and reliability improvement are realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The utility model belongs to the technical field of electronic circuit control, specifically related to a kind of intelligent key handle control circuit based on I2C communication, for laser engraving machine, cnc, 3D printer online operation use. BACKGROUND

[0002] At present, traditional key handle control circuit generally adopts parallel communication mode (such as 8-bit parallel bus) and is connected with host device, and multiple data lines (such as data line, address line, control line) need to be configured.Circuit complexity is high: multiple data lines increase the difficulty of PCB wiring, especially the connection cable between handle and host (such as the common USB handle needs 4 power lines + 8 data lines) is bloated;Weak anti-interference ability: crosstalk is easy to produce when parallel signal is transmitted at high frequency, especially in complex electromagnetic environment (such as industrial control scene), the error rate is significantly increased;Poor scalability: if key or function module needs to be increased, data line needs to be increased simultaneously, resulting in hardware design re-layout.

[0003] That is, the hardware cost of traditional key handle control circuit is high: taking 8 handles as an example, parallel scheme needs 8 I / O ports + 4 power lines, while the cost of general I / O port of microcontroller (such as STC8H8K64U) accounts for about 15% of chip cost;Power consumption control is difficult: parallel bus needs to be kept in level state, standby power consumption is about 5-10mA, and portable device (such as wireless handle) has very high requirement for low power consumption (ideal standby power consumption <1mA);Insufficient compatibility: there are differences in parallel interface protocols (such as SPI, UART) of different host devices, and drive circuit needs to be designed accordingly, which increases adaptation cost.

[0004] Therefore, in view of the above technical problems and defects, it is urgent to design and develop an intelligent key handle control circuit based on I2C communication. INVENTION CONTENTS

[0005] The utility model aims at providing an intelligent key handle control circuit based on I2C communication;

[0006] The utility model aims at providing an intelligent key handle control circuit based on I2C communication;

[0007] One side of the first control circuit is also electrically connected with third control circuit for realizing power supply and fourth control circuit for realizing key input.

[0008] Further, the sixth control chip is arranged in the first control circuit.

[0009] The sixth control chip is a microcontroller STC8H8K64U with a hardware I2C interface, and its built-in I2C controller supports standard mode and fast mode.

[0010] Furthermore, the sixth control chip is model STC8H8K64U-45I-TSSOP20.

[0011] Furthermore, the second control circuit is provided with a first interface terminal;

[0012] The third pin of the first interface terminal is connected to one end of the thirty-third resistor; the other end of the thirty-third resistor is connected to the power supply terminal and one end of the thirty-fourth resistor, respectively.

[0013] The other end of the thirty-fourth resistor is connected to the second pin of the first interface terminal.

[0014] Furthermore, the third control circuit is equipped with a first USB interface and a seventh control chip.

[0015] The fourth pin of the seventh control chip is connected to the power supply terminal, one end of the thirty-first capacitor, and one end of the thirty-second capacitor, respectively; the third pin of the seventh control chip is connected to the power supply terminal, one end of the thirty-first capacitor, and one end of the twenty-ninth capacitor, respectively.

[0016] The first pin of the seventh control chip, the other end of the thirty-first capacitor, the other end of the thirty-second capacitor, the other end of the thirty-third capacitor, and the other end of the twenty-ninth capacitor are all grounded.

[0017] Furthermore, the seventh control chip is an AMS1117-3.3.

[0018] Furthermore, in the fourth control circuit, one end of the twenty-first capacitor is connected to one end of the seventh switch and one end of the twenty-fifth resistor; one end of the twenty-second capacitor is connected to one end of the sixth switch and one end of the twenty-sixth resistor; one end of the twenty-third capacitor is connected to one end of the fifth switch and one end of the twenty-seventh resistor; one end of the twenty-fourth capacitor is connected to one end of the fourth switch and one end of the twenty-eighth resistor; one end of the twenty-fifth capacitor is connected to one end of the third switch and one end of the twenty-ninth resistor; one end of the twenty-sixth capacitor is connected to one end of the second switch and one end of the thirtieth resistor; one end of the twenty-seventh capacitor is connected to one end of the first switch and one end of the thirty-first resistor; and one end of the twenty-eighth capacitor is connected to one end of the zeroth switch and one end of the thirty-second resistor.

[0019] The other ends of the 25th resistor, the 26th resistor, the 27th resistor, the 28th resistor, the 29th resistor, the 30th resistor, the 31st resistor, and the 32nd resistor are all grounded.

[0020] The other ends of the 21st capacitor, the 7th switch, the 22nd capacitor, the 6th switch, the 23rd capacitor, the 5th switch, the 24th capacitor, the 4th switch, the 25th capacitor, the 3rd switch, the 26th capacitor, the 2nd switch, the 27th capacitor, the 1st switch, the 28th capacitor, and the 0th switch are all grounded.

[0021] This utility model includes a first control circuit for processing data and controlling various circuits; a second control circuit electrically connected to the first control circuit for transmitting data; a third control circuit electrically connected to one side of the first control circuit for power supply; and a fourth control circuit for key input. Through a two-wire serial communication architecture, it solves the problems of data line redundancy, weak anti-interference capability, and poor scalability in traditional parallel solutions, achieving hardware simplification, cost reduction, and improved reliability. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this utility model, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this utility model. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a schematic diagram of a smart button handle control circuit based on I2C communication according to this utility model;

[0024] Figure 2 This is a schematic diagram of the key input module (fourth control circuit) of an embodiment of the intelligent keypad handle control circuit based on I2C communication according to this utility model.

[0025] Figure 3 This is a schematic diagram of a microcontroller unit (first control circuit) of an embodiment of an intelligent button handle control circuit based on I2C communication according to this utility model.

[0026] Figure 4This is a schematic diagram of the I2C communication module (second control circuit) of an embodiment of the intelligent button handle control circuit based on I2C communication according to this utility model.

[0027] Figure 5 This is a schematic diagram of the power management module (third control circuit) of an embodiment of an intelligent button handle control circuit based on I2C communication according to this utility model.

[0028] In the diagram: U6 - Sixth control chip; U7 - Seventh control chip; CN1 - First interface terminal; R25 - Twenty-fifth resistor; R26 - Twenty-sixth resistor; R27 - Twenty-seventh resistor; R28 - Twenty-eighth resistor; R29 - Twenty-ninth resistor; R30 - Thirtieth resistor; R31 - Thirty-first resistor; R32 - Thirty-second resistor; R33 - Thirty-third resistor; R34 - Thirty-fourth resistor; C29 - Twenty-ninth capacitor; C30 - Thirtieth capacitor; C31 - ... Capacitor 31; C32 - Thirty-second capacitor; C21 - Twenty-first capacitor; C22 - Twenty-second capacitor; C23 - Twenty-third capacitor; C24 - Twenty-fourth capacitor; C25 - Twenty-fifth capacitor; C26 - Twenty-sixth capacitor; C27 - Twenty-seventh capacitor; C28 - Twenty-eighth capacitor; K0 - Zero switch; K1 - First switch; K2 - Second switch; K3 - Third switch; K4 - Fourth switch; K5 - Fifth switch; K6 - Sixth switch; K7 - Seventh switch. Detailed Implementation

[0029] To facilitate a clearer understanding of the purpose, technical solution, and advantages of this utility model, the following description, in conjunction with the accompanying drawings and specific embodiments, will further illustrate this utility model. Those skilled in the art can easily understand other advantages and effects of this utility model from the content disclosed in this specification.

[0030] This utility model can also be implemented or applied through other different specific examples. The details in this specification can also be modified and changed based on different viewpoints and applications without departing from the spirit of this utility model.

[0031] It should be noted that if the embodiments of this utility model involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.

[0032] Furthermore, if the embodiments of this utility model involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Secondly, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this utility model.

[0033] The present invention will be further described below with reference to the accompanying drawings.

[0034] like Figures 1-5 As shown, this utility model provides an intelligent button handle control circuit based on I2C communication. The circuit includes a first control circuit for processing data and controlling various circuits; and a second control circuit electrically connected to the first control circuit for transmitting data.

[0035] The first control circuit is also electrically connected to a third control circuit for power supply and a fourth control circuit for key input.

[0036] The first control circuit includes a sixth control chip; the sixth control chip is a single-chip microcontroller STC8H8K64U with a hardware I2C interface, and has a built-in I2C controller that supports standard mode and fast mode.

[0037] The sixth control chip is model STC8H8K64U-45I-TSSOP20.

[0038] The second control circuit is provided with a first interface terminal; the third pin of the first interface terminal is connected to one end of the thirty-third resistor; the other end of the thirty-third resistor is connected to the power supply terminal and one end of the thirty-fourth resistor respectively;

[0039] The other end of the thirty-fourth resistor is connected to the second pin of the first interface terminal.

[0040] The third control circuit is equipped with a first USB interface and a seventh control chip.

[0041] The fourth pin of the seventh control chip is connected to the power supply terminal, one end of the thirty-first capacitor, and one end of the thirty-second capacitor, respectively; the third pin of the seventh control chip is connected to the power supply terminal, one end of the thirty-first capacitor, and one end of the twenty-ninth capacitor, respectively.

[0042] The first pin of the seventh control chip, the other end of the thirty-first capacitor, the other end of the thirty-second capacitor, the other end of the thirty-third capacitor, and the other end of the twenty-ninth capacitor are all grounded.

[0043] The seventh control chip is an AMS1117-3.3.

[0044] In the fourth control circuit, one end of the 21st capacitor is connected to one end of the 7th switch and one end of the 25th resistor; one end of the 22nd capacitor is connected to one end of the 6th switch and one end of the 26th resistor; one end of the 23rd capacitor is connected to one end of the 5th switch and one end of the 27th resistor; one end of the 24th capacitor is connected to one end of the 4th switch and one end of the 28th resistor; one end of the 25th capacitor is connected to one end of the 3rd switch and one end of the 29th resistor; one end of the 26th capacitor is connected to one end of the 2nd switch and one end of the 30th resistor; one end of the 27th capacitor is connected to one end of the 1st switch and one end of the 31st resistor; and one end of the 28th capacitor is connected to one end of the 0th switch and one end of the 32nd resistor.

[0045] The other ends of the 25th resistor, the 26th resistor, the 27th resistor, the 28th resistor, the 29th resistor, the 30th resistor, the 31st resistor, and the 32nd resistor are all grounded.

[0046] The other ends of the 21st capacitor, the 7th switch, the 22nd capacitor, the 6th switch, the 23rd capacitor, the 5th switch, the 24th capacitor, the 4th switch, the 25th capacitor, the 3rd switch, the 26th capacitor, the 2nd switch, the 27th capacitor, the 1st switch, the 28th capacitor, and the 0th switch are all grounded.

[0047] Specifically, in a specific embodiment of this utility model, the key input module comprises the following hardware components: It employs an independent key structure, with each key (K0-K7) connected in series with a 10kΩ pull-up resistor (R25-R32) and then connected to the microcontroller's I / O port. The other end of the key is grounded. Signal principle: When the key is not pressed, the I / O port remains at a high level through the pull-up resistor; when the key is pressed, the port is grounded, the level transitions to low, and the microcontroller detects the level change via a GPIO interrupt.

[0048] The microcontroller unit's core component is the STC8H8K64U microcontroller with a hardware I2C interface. Its built-in I2C controller supports standard mode (100kHz) and fast mode (400kHz). The processing logic involves periodically scanning the button status (scanning cycle 5-10ms) and generating an 8-bit button code (e.g., 0x01 indicates K1 is pressed, 0x02 indicates K2 is pressed, and 0x00 indicates no button press). The button code is encapsulated into an I2C data frame (following the Slave device communication protocol), containing the device address (7 bits, e.g., 0x50), register address (8 bits, e.g., 0x01), and data content (8 bits). It supports interrupt wake-up functionality, entering standby mode (power consumption <0.5mA) when no button is pressed and waking up the CPU when a button is pressed.

[0049] I2C communication module, bus architecture: adopts two-wire system (SCL clock line + SDA data line), external 10kΩ pull-up resistor to the positive power supply, supports a maximum bus length of 400cm (standard mode).

[0050] Communication Flow: A. The microcontroller acts as an I2C slave, and the external master device acts as the master; B. The master sends a start signal → slave address (write operation) → slave acknowledge → register address → slave acknowledge → data transmission → stop signal; C. Error checking is supported; if the slave does not acknowledge (ACK=0), the master retransmits the data frame. Interface Design: The PH2.0-4P terminal is used as the external interface, including four pins: VCC, GND, SCL, and SDA, reducing the number of pins by 50% compared to the traditional 8-pin interface.

[0051] In the attached diagram, the SCL / SDA lines are connected to a 4.7KΩ pull-up resistor to a 3.3V power supply. The interface terminal CN1 uses PH2.0-4P, with the following pin definitions: 1-VCC, 2-GND, 3-SCL, 4-SDA.

[0052] Power management module, power supply scheme: When an external 5V power supply is connected, it is converted to 3.3V via AMS1117-3.3 to provide a stable power supply for the main control system. Interface design: It adopts a universal TYPE-C interface for convenient and practical connection.

[0053] In the attached diagram, the power supply passes through the USB1 (TYPE-C) socket, then through filter capacitors C29 and C30 into U7 (AMS1117-3.3), and the output voltage is regulated to 3.3V. C31 and C32 are filter capacitors.

[0054] Key component selection:

[0055] Module Element model Function description Microcontroller STC8H8K64U Built-in hardware I2C, 8051 core, 3.3V power supply Key 6x6x5mm tactile switch Mechanical key, life ≥ 100,000 times I2C interface PH2.0-4P terminal Pitch 2.0mm, with lock to prevent falling off Power supply AMS1117-3.3 Support USB power supply

[0056] This utility model includes a first control circuit for processing data and controlling various circuits; a second control circuit electrically connected to the first control circuit for transmitting data; a third control circuit electrically connected to one side of the first control circuit for power supply; and a fourth control circuit for key input. Through a two-wire serial communication architecture, it solves the problems of data line redundancy, weak anti-interference capability, and poor scalability in traditional parallel solutions, achieving hardware simplification, cost reduction, and improved reliability.

[0057] In other words, the key points and protections of this solution lie in its innovative communication architecture: It's the first time the I2C bus has been applied to button-operated gamepad control, replacing the traditional 8-16 line parallel transmission with a two-wire system, reducing wiring costs by 60%; low-power design: combining the microcontroller's sleep mode with the I2C bus's asynchronous wake-up mechanism, standby power consumption is reduced by 90% compared to traditional solutions; modular expansion: the I2C bus supports up to 127 slave devices, allowing for gamepad function expansion (such as adding sensor modules or LED lighting control modules) through software upgrades without changing the hardware interface; and simplified hardware: PCB design... The area is reduced by 30% (for example, a traditional solution requires 50 solder points for an 8-button controller, while this solution only requires 20 solder points); reliability is improved: the differential signal transmission characteristics of the I2C bus improve anti-interference capability by 40% (EMC testing shows that the bit error rate drops from 0.1% to 0.01% under 100MHz electromagnetic interference); cost advantage: the material cost per controller is reduced from 15 yuan to 8 yuan (mainly saving on data cable, interface terminal, and PCB wiring costs); flexible adaptation: compatible with the I2C interface of mainstream MCUs (such as Arduino and Raspberry Pi), shortening the driver development cycle by 50%.

[0058] The embodiments described above are merely illustrative of several implementations of this utility model, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of this utility model patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this utility model, and these all fall within the protection scope of this utility model. Therefore, the protection scope of this utility model patent should be determined by the appended claims.

Claims

1. A smart button handle control circuit based on I2C communication, characterized in that, The circuit includes a first control circuit for processing data and controlling each circuit; and a second control circuit electrically connected to the first control circuit for transmitting data. The first control circuit is also electrically connected to a third control circuit for power supply and a fourth control circuit for key input.

2. The intelligent button handle control circuit based on I2C communication according to claim 1, characterized in that, The first control circuit is equipped with a sixth control chip; The sixth control chip is a microcontroller STC8H8K64U with a hardware I2C interface, and its built-in I2C controller supports standard mode and fast mode.

3. The intelligent button handle control circuit based on I2C communication according to claim 2, characterized in that, The sixth control chip is model STC8H8K64U-45I-TSSOP20.

4. The intelligent button handle control circuit based on I2C communication according to claim 1, characterized in that, The second control circuit is provided with a first interface terminal; The third pin of the first interface terminal is connected to one end of the thirty-third resistor; the other end of the thirty-third resistor is connected to the power supply terminal and one end of the thirty-fourth resistor, respectively. The other end of the thirty-fourth resistor is connected to the second pin of the first interface terminal.

5. The intelligent button handle control circuit based on I2C communication according to claim 1, characterized in that, The third control circuit is equipped with a first USB interface and a seventh control chip. The fourth pin of the seventh control chip is connected to the power supply terminal, one end of the thirty-first capacitor, and one end of the thirty-second capacitor, respectively; the third pin of the seventh control chip is connected to the power supply terminal, one end of the thirty-first capacitor, and one end of the twenty-ninth capacitor, respectively. The first pin of the seventh control chip, the other end of the thirty-first capacitor, the other end of the thirty-second capacitor, the other end of the thirty-third capacitor, and the other end of the twenty-ninth capacitor are all grounded.

6. The intelligent button handle control circuit based on I2C communication according to claim 5, characterized in that, The seventh control chip is an AMS1117-3.

3.

7. The intelligent button handle control circuit based on I2C communication according to claim 1, characterized in that, In the fourth control circuit, one end of the 21st capacitor is connected to one end of the 7th switch and one end of the 25th resistor; one end of the 22nd capacitor is connected to one end of the 6th switch and one end of the 26th resistor; one end of the 23rd capacitor is connected to one end of the 5th switch and one end of the 27th resistor; one end of the 24th capacitor is connected to one end of the 4th switch and one end of the 28th resistor; one end of the 25th capacitor is connected to one end of the 3rd switch and one end of the 29th resistor; one end of the 26th capacitor is connected to one end of the 2nd switch and one end of the 30th resistor; one end of the 27th capacitor is connected to one end of the 1st switch and one end of the 31st resistor; and one end of the 28th capacitor is connected to one end of the 0th switch and one end of the 32nd resistor. The other ends of the 25th resistor, the 26th resistor, the 27th resistor, the 28th resistor, the 29th resistor, the 30th resistor, the 31st resistor, and the 32nd resistor are all grounded. The other ends of the 21st capacitor, the 7th switch, the 22nd capacitor, the 6th switch, the 23rd capacitor, the 5th switch, the 24th capacitor, the 4th switch, the 25th capacitor, the 3rd switch, the 26th capacitor, the 2nd switch, the 27th capacitor, the 1st switch, the 28th capacitor, and the 0th switch are all grounded.