General touch key control module based on ESP32

By using a universal touch button control module based on ESP32, the problem of inconsistent number, sensitivity, and brightness of touch buttons in different application scenarios is solved, enabling flexible configuration and cost reduction of the module, and improving the adaptability and durability of the device.

CN223582463UActive Publication Date: 2025-11-21AVIC EAST CHINA OPTOELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202520296193.3
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-02-24
Publication Date
2025-11-21
Estimated Expiration
2035-02-24

AI Technical Summary

Technical Problem

Existing touch button solutions suffer from design and compatibility issues in different application scenarios. The number of touch buttons, sensitivity, and brightness requirements vary, leading to complex and inflexible development.

Method used

It adopts a general-purpose touch button control module based on ESP32, and realizes flexible configuration of communication interface through ESP32S3 main control chip. It supports TTL serial port and IIC mode, and controls the brightness of button indicator lights through PWM. The configuration parameters are stored in the on-chip Flash.

Benefits of technology

It enables flexible configuration of the button control module to adapt to different scenario requirements, shorten the development cycle, reduce BOM costs, and improve service life and protection capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223582463U_ABST
    Figure CN223582463U_ABST
Patent Text Reader

Abstract

The utility model discloses a general touch key control module based on ESP32, which belongs to the technical field of metal hose performance testing, and comprises an ESP32S3 main control chip, a communication interface is mounted at the outer end of the ESP32S3 main control chip, a pin end of one path of the communication interface is electrically connected with a touch keyboard, and a pin end of the other path of the communication interface is electrically connected with a pin end of the other path of the touch keyboard. The other path of pin end of the communication interface is a PWM output end and is electrically connected with a key indicating lamp; the touch keyboard converts finger touch actions into electric signals, the communication interface sends the electric signals of key actions to external equipment, and the external equipment controls the state and brightness of the key indicator lamps through the communication interface. The communication interface can be configured to be a mainstream serial port or IIC in the market according to the level of the pin, and meanwhile, the number of touch keyboards, the sensitivity of the touch keyboards, the number of key indicator lights and the brightness of the key indicator lights can be configured according to different use scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of metal hose performance testing technology, and more specifically, to a universal touch button control module based on ESP32. Background Technology

[0002] Capacitive touch buttons can penetrate insulating material shells to accurately detect valid finger touches; and ensure that the product's sensitivity, stability, and reliability will not change due to changes in environmental conditions or long-term use. They are also waterproof, have strong anti-interference capabilities, superior protection, and a wide temperature range.

[0003] However, current touch button solutions have design and compatibility issues. The number of touch buttons, button sensitivity, number of button lights, and button light brightness requirements may vary in different application scenarios. To address this, this solution proposes a universal touch button control module based on ESP32. Utility Model Content

[0004] 1. Technical problem to be solved:

[0005] To address the problems existing in the prior art, the purpose of this utility model is to provide a universal touch button control module based on ESP32. When in use, its communication interface can be configured to the mainstream serial port or IIC according to the pin level. At the same time, the number of touch keys, touch key sensitivity, number of button indicator lights, and brightness of button indicator lights can be configured according to different usage scenarios.

[0006] 2. Technical Solution:

[0007] To solve the above problems, the present invention adopts the following technical solution.

[0008] A general-purpose touch button control module based on ESP32 includes an ESP32S3 main control chip. The external end of the ESP32S3 main control chip is equipped with a communication interface. One pin of the communication interface is electrically connected to a touch keyboard, and the other pin of the communication interface is a PWM output terminal and is electrically connected to a button indicator light.

[0009] The touch keyboard converts finger touch actions into electrical signals, and the communication interface sends the electrical signals of key presses to external devices. The external devices control the status and brightness of the key indicator lights through the communication interface.

[0010] A further improvement is that the communication interface is configured to either TTL serial port mode or IIC slave device mode according to the power-on level of a specific pin of the ESP32S3 master control chip, and the TTL serial port and the IIC slave device share a single interface.

[0011] A further improvement is that the brightness value of the button indicator light is controlled by the PWM pulse width of the ESP32S3 main control chip.

[0012] A further improvement is that the ESP32S3 main control chip has an on-chip Flash memory for storing information on communication interface configuration parameters.

[0013] 3. Beneficial effects:

[0014] Compared with the prior art, the technical solution provided by this utility model has the following advantages:

[0015] (1) By using the touch button control module, the number of touch keyboards, touch keyboard sensitivity, number of button indicator lights and brightness of button indicator lights can be configured through external interface according to different usage scenarios, which shortens the development cycle and makes the design more flexible.

[0016] (2) Compared with traditional buttons, it has no mechanical structure, is not easy to wear and has a long service life, and has a seamless surface that prevents moisture and impurities from penetrating.

[0017] (3) Reduce the use of components. The main control chip is ESP32S3, which can directly collect the changes in the capacitance of the touch keyboard, drive the key indicator lights, and control the brightness of the lights by adjusting the PWM duty cycle. The configuration parameters are directly stored inside the main control chip, without the need for additional storage chips, thus reducing the BOM cost.

[0018] It should be noted that the structures not described in this utility model are the same as or can be implemented using existing technology, and will not be elaborated here, as they do not involve the design points and improvement directions of this utility model. Attached Figure Description

[0019] Figure 1 This is a flowchart of the present invention;

[0020] Figure 2 This is a modular framework diagram of the present invention. Detailed Implementation

[0021] To facilitate understanding of this utility model, a more comprehensive description of the utility model will be given below with reference to the accompanying drawings, which show several embodiments of the utility model. However, the utility model can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that the disclosure of the utility model will be more thorough and complete.

[0022] The purpose of this invention is to provide a universal touch button control module based on ESP32. This module includes a communication interface, a touch keyboard, and button indicator lights. The touch keyboard can accurately detect finger touch actions and send the button actions to external devices through the communication interface. External devices can control the status and brightness of the button indicator lights through the communication interface.

[0023] The feature of this utility model is its versatility. The communication interface can be configured as a mainstream serial port or IIC according to the pin level. The number of touch keyboards, touch keyboard sensitivity, number of key indicator lights, and brightness of key indicator lights can be configured using the communication interface according to different usage scenarios.

[0024] To achieve the above objectives, this utility model provides the following technical solution:

[0025] 1. Parameter configuration:

[0026] Configure the number of touch keys, touch key sensitivity, number of key indicator lights, and brightness of key indicator lights of the general touch key control module through the communication interface.

[0027] 2. Touch recognition:

[0028] When a finger approaches the touch keyboard, it triggers a change in capacitance, which can accurately detect the finger touch action (the ESP32S3 main control chip is packaged into a touch chip, and the key action can cause a change in capacitance that is collected by the touch chip, which then sends the key value to an external device through an external interface).

[0029] 3. Button indicator light control:

[0030] The brightness of different lights can be controlled by adjusting the pulse width of the button indicator.

[0031] To more clearly illustrate the specific embodiments of this utility model, the present utility model will be further described below through specific examples.

[0032] like Figures 1-2 As shown, the main control chip of this invention is the ESP32S3, which supports up to 16 channels of PWM control and 14 channels of capacitive touch. The external interface can be configured as a TTL serial port or an IIC slave device mode according to the power-on level of a specific pin of the main control chip. The serial port and IIC share a single interface, which provides greater flexibility.

[0033] Depending on the application scenario, users can configure via an external interface which pins are used as the touch keyboard to collect touch actions, and which pins are used as PWM outputs to drive the button indicator lights.

[0034] Due to differences in the design of the insulating material casing and touch pads, different touch keyboards have different sensitivities. Users can configure the sensitivity of different touch keyboards through an external interface.

[0035] The brightness of the touch button indicator light can be controlled by the pulse width of PWM. Users can configure different brightness values ​​for the touch indicator light through an external interface.

[0036] External interface configuration parameters are written into the chip for storage and are called upon power-up to perform initialization.

[0037] During module power-on initialization, the module reads the voltage levels of the external interface configuration pins. When the pull-up pin is high, the external interface is initialized as a serial port; when the pull-down pin is low, it is initialized as an IIC interface. Then, it retrieves the configuration information stored in the chip's internal Flash memory. Based on this information, it configures the preset pin functions as either a touch keyboard or PWM output to drive the button indicator lights.

[0038] The following logic is then processed in a subsequent loop:

[0039] The ESP32 uses the electrical characteristics of the human body as input. When a finger touches the keyboard, some charge is attracted to the contact point, causing a change in capacitance. The ESP32 converts this analog signal into a digital signal via an ADC, and then converts it into a key value. If the external communication is configured as a serial port, the value is sent directly to the user via the serial port. If the external communication is configured as an IIC slave, the interrupt pin is pulled low to prompt the user to read the key value.

[0040] Users control the brightness of the indicator lights by sending PWM duty cycle through an external communication interface. Each indicator light can be controlled independently, and the light turns off when the duty cycle is 0.

[0041] Users configure parameters through an external communication interface. After receiving the configuration information, the module stores it inside the ESP32 and it takes effect after a reset.

[0042] The above-described embodiments are merely illustrative of certain implementations of this utility model, and their descriptions are relatively specific and detailed. However, 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 modifications and improvements 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 general touch key control module based on ESP32, comprising an ESP32S3 master control chip, characterized in that: The outer end of the ESP32S3 master control chip is provided with a communication interface, one pin end of the communication interface is electrically connected with a touch keyboard, the other pin end of the communication interface is a PWM output end and is electrically connected with a key indicator light, wherein; The touch keyboard converts the finger touch action into an electric signal, the communication interface sends the electric signal of the key action to an external device, and the external device controls the state and brightness of the key indicator light through the communication interface.

2. The universal touch key control module based on ESP32 according to claim 1, characterized in that: The communication interface configures one of a TTL serial port mode or an IIC slave device mode according to the level state of the power-on of the specific pin of the ESP32S3 master control chip, and the TTL serial port and the IIC slave device share one interface.

3. The universal touch key control module based on ESP32 according to claim 1, characterized in that: The key indicator light controls the brightness value through the PWM pulse width of the ESP32S3 master control chip.

4. The universal touch key control module based on ESP32 according to claim 1, characterized in that: The internal part of the ESP32S3 master control chip is provided with an on-chip Flash for storing information of the configuration parameters of the communication interface.