CN117651354A - Multiplexing method and system for touch sensing and LED control - Google Patents
Multiplexing method and system for touch sensing and LED control Download PDFInfo
- Publication number
- CN117651354A CN117651354A CN202311589966.9A CN202311589966A CN117651354A CN 117651354 A CN117651354 A CN 117651354A CN 202311589966 A CN202311589966 A CN 202311589966A CN 117651354 A CN117651354 A CN 117651354A
- Authority
- CN
- China
- Prior art keywords
- led lamp
- ports
- touch
- led
- port
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000005070 sampling Methods 0.000 claims abstract description 4
- 238000012544 monitoring process Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/30—Driver circuits
- H05B45/32—Pulse-control circuits
- H05B45/325—Pulse-width modulation [PWM]
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/155—Coordinated control of two or more light sources
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention relates to a multiplexing method for touch sensing and LED control, which comprises the following steps: the LED lamp group comprises two LED lamps with negative poles and positive poles connected in opposite directions, the main control chip comprises a plurality of ports and a common port, the plurality of capacitive touch key sensors are respectively connected with the plurality of ports through a plurality of touch acquisition channels, one pole of the plurality of LED lamp groups is respectively connected with the plurality of ports through the plurality of touch acquisition channels, and the other pole of the plurality of LED lamp groups is connected with the common port of the main control chip; the main control chip further comprises a PWM output module and a timing module, and the PWM output module is used for sampling the capacitive touch key sensor in a preset first time period so as to monitor touch; in a preset second time period, PWM square waves are input to the touch acquisition channel and the public port, the LED lamp group control method and the LED lamp group control device can control two LED lamps of the LED lamp group through 1 touch key, and multiplexing efficiency is high.
Description
Technical Field
The invention relates to the technical field of touch screens, in particular to a touch sensing and LED control method
Multiplexing method and system thereof
Background
The traditional multiplexing mode of the capacitive touch key and the LED control port is usually that 1 path of capacitive touch key is used for multiplexing and controlling 1 LED lamp, and the problems of low multiplexing efficiency, single LED display effect and complex circuit exist.
Disclosure of Invention
Based on this, it is necessary to provide a multiplexing method for touch sensing and LED control with higher multiplexing efficiency and related system thereof, aiming at the above technical problems.
A multiplexing method for touch sensing and LED control comprises the following steps: the LED lamp sets comprise two LED lamps with negative poles connected in opposite directions, the main control chip comprises a plurality of touch acquisition channels, the plurality of capacitive touch key sensors are respectively connected with the plurality of touch acquisition channels, one pole of the plurality of LED lamp sets is connected with the plurality of touch acquisition channels, and the other pole of the plurality of LED lamp sets is connected with a public port;
the main control chip further comprises a PWM output module and a timing module, and the PWM output module is used for sampling the capacitive touch key sensor in a preset first time period to monitor touch; and in a preset second time period, the two LED lamps of the LED lamp group are controlled by the 1 touch key by inputting PWM square waves to the touch acquisition channel and the public port.
In one embodiment, the plurality of touch acquisition channels are connected to a plurality of ports of the touch chip, and in the preset first period of time, the master control chip switches the plurality of ports into a touch acquisition circuit, and the common port is switched to sample an external capacitive touch key sensor; and in the preset second time period, the main control chip switches the ports and the public port into a PWM circuit.
In one embodiment, when a PWM square wave opposite to the common port is input to any one of the plurality of ports, in one PWM square wave period, two LED lamps in the LED lamp group corresponding to the touch acquisition channel connected to the any one port are both turned on.
In one embodiment, the two LED lamps are both lighted, and the two LED lamps are lighted alternately at a high frequency within one PWM square wave period.
In one embodiment, when the same PWM square wave is input to any one of the plurality of ports and the common port, in one PWM square wave period, two LED lamps in the LED lamp group corresponding to the touch acquisition channel connected to the any one port are turned off.
In one embodiment, when the continuous high level/low level is output to the port, and the common port inputs a PWM square wave, one LED lamp in the LED lamp group corresponding to the touch acquisition channel connected to the port is turned on and the other LED lamp is turned off in one PWM square wave period.
A system for multiplexing touch sensing and LED control, comprising: the LED lamp sets comprise two LED lamps with negative poles and positive poles reversely connected, the main control chip comprises a plurality of ports and a public port, the plurality of capacitive touch key sensors are respectively connected with the plurality of ports through a plurality of touch acquisition channels, one pole of the plurality of LED lamp sets is respectively connected with the plurality of ports through the plurality of touch acquisition channels, and the other pole of the plurality of LED lamp sets is connected with the public port of the main control chip.
In one embodiment, the main control chip further includes a PWM output module, a timing module, and a logic control module, where the PWM output module is configured to input PWM square waves to the touch acquisition channel and the common port, and the timing module is configured to perform timing so as to sample the capacitive touch key sensor in a preset first time period to monitor touch; and in a preset second time period, inputting PWM square waves to the touch acquisition channel and the public port.
According to the capacitance touch key and LED control multiplexing method, the connection relation among the capacitance touch key, the lamp group comprising the two LED lamps and the touch acquisition channel is set, so that the two LED lamps of the LED lamp group are controlled by the 1 touch key, and multiplexing efficiency is high.
Drawings
FIG. 1 is a system for touch sensing and LED control multiplexing in one embodiment;
FIG. 2 is a diagram of the connection between the anode and the cathode of an LED lamp set in one embodiment;
FIG. 3 is a PWM square wave state of a port corresponding to an LED lamp group and a common port when two LED lamps are both in a lit state in one embodiment;
FIG. 4 is a PWM square wave state of a port corresponding to an LED lamp group and a common port when two LED lamps are in an off state in one embodiment;
fig. 5 and 6 are PWM square wave states of two LED lamps in one embodiment, where one of the two LED lamps is in an on state and the other is in an off state, and the ports corresponding to the LED lamp groups correspond to the common ports.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the embodiment shown in fig. 1, a system for implementing multiplexing of touch sensing and LED control is provided, including: the main control chip 1, a plurality of capacitive touch key sensors 2 and a plurality of LED lamp groups 3. Each group of LED lamp sets comprises two LED lamps with negative poles and positive poles reversely connected, the main control chip comprises a plurality of ports P1, P2..Pn and a public port Pcom, the plurality of capacitive touch key sensors 2 are connected with the plurality of ports P1, P2..Pn of the main control chip 1 through a plurality of touch collecting channels, one pole of each LED lamp set is connected with the plurality of ports P1, P2..Pn of the main control chip 1 through a plurality of touch collecting channels, and the other pole of each LED lamp set 3 is connected with the public port Pcom of the main control chip 1.
The main control chip 1 further comprises a PWM output module and a timing module, and the PWM output module is used for sampling the capacitive touch key sensor in a preset first time period to monitor touch; and in a preset second time period, inputting PWM square waves to the touch acquisition channel and the public port.
In one embodiment, through the timing module, the main control chip 1 may switch the plurality of ports into a touch acquisition circuit in the preset first time period, and the common port may switch to sample an external capacitive touch key sensor, so that capacitive touch key acquisition control may be implemented in the first time period. In the preset second time period, the main control chip switches the ports and the public port into a PWM circuit so as to realize the control of the 1-capacitance touch key on one LED lamp group, namely two LED lamps, specifically the Pcom port outputs PWM square waves with fixed frequency; the waveform output from the Px port (refer to any one of the ports P1 to Pn) is determined according to the required LED lamp lighting.
Based on the system, the specific control method is as follows:
as shown in fig. 2, led_1 is defined as the connection between the positive electrode of the LED and Px, led_2 is defined as the connection between the negative electrode of the LED and Px, and when any LED lamp group needs to be controlled, opposite PWM square waves are input to the port corresponding to the LED lamp group and the common port in the plurality of ports, as shown in fig. 3. In one PWM square wave period, two LED lamps in the LED lamp group are both lighted. . That is, in one PWM square wave period, half of the two LEDs are in the on state and the other half of the two LEDs are in the off state (i.e., led_2 is turned off when led_1 is on and led_2 is on when led_1 is turned off), the on-off alternating frequency is high, and the human eyes cannot feel flickering due to the afterglow effect.
When any one of the LED lamp groups needs to be controlled, the same PWM square wave is input to the port corresponding to the LED lamp group and the common port of the plurality of ports, as shown in fig. 4. In one PWM square wave period, two LED lamps in the LED lamp group are extinguished.
When only led_1 is required to be lit, the Px port output continues to be high, as shown in fig. 5.
When only led_2 is required to be lit, the Px port output continues to be low, as shown in fig. 6.
According to the capacitance touch key and LED control multiplexing method, the connection relation among the capacitance touch key, the lamp group comprising the two LED lamps and the touch acquisition channel is set, so that the two LED lamps of the LED lamp group are controlled by the 1 touch key, and multiplexing efficiency is high.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
Claims (8)
1. The multiplexing method for touch sensing and LED control is characterized by comprising the following steps: the LED lamp sets comprise two LED lamps with negative poles connected in opposite directions, the main control chip comprises a plurality of ports and a public port, the plurality of capacitive touch key sensors are respectively connected with the plurality of ports through a plurality of touch acquisition channels, one pole of the plurality of LED lamp sets is respectively connected with the plurality of ports through a plurality of touch acquisition channels, and the other pole of the plurality of LED lamp sets is connected with the public port of the main control chip;
the main control chip further comprises a PWM output module and a timing module, and the PWM output module is used for sampling the capacitive touch key sensor in a preset first time period to monitor touch; and in a preset second time period, PWM square waves are input to the plurality of ports and the common port so as to realize the control of the LED lamp group.
2. The method of claim 1, wherein the master control chip switches the plurality of ports to a touch acquisition circuit and the common port to sample an external capacitive touch key sensor during the preset first time period; and in the preset second time period, the main control chip switches the ports and the public port into a PWM circuit.
3. The method of claim 2, wherein when a PWM square wave is input to any one of the plurality of ports opposite to the common port, in one PWM square wave period, two LED lamps in the LED lamp group corresponding to the touch acquisition channel connected to the any one port are both lighted.
4. A method according to claim 3, wherein both LED lamps are lit at a high frequency alternating in one PWM square wave period.
5. The method according to claim 2, wherein when the same PWM square wave is input to any one of the plurality of ports and the common port, in one PWM square wave period, two LED lamps in the LED lamp group corresponding to the touch acquisition channel connected to the any one port are turned off.
6. The method of claim 2, wherein when a continuous high/low level is output to the port, one LED lamp of the LED lamp group corresponding to the touch acquisition channel connected to the port is turned on and the other LED lamp is turned off in one PWM square wave period when the PWM square wave is input to the common port.
7. A system for multiplexing touch sensing and LED control, comprising: the LED lamp sets comprise two LED lamps with negative poles and positive poles reversely connected, the main control chip comprises a plurality of ports and a public port, the plurality of capacitive touch key sensors are respectively connected with the plurality of ports through a plurality of touch acquisition channels, one pole of the plurality of LED lamp sets is respectively connected with the plurality of ports through the plurality of touch acquisition channels, and the other pole of the plurality of LED lamp sets is connected with the public port of the main control chip.
8. The system of claim 7, wherein the master control chip further comprises a PWM output module, a timing module and a logic control module, wherein the PWM output module is configured to input PWM square waves to the touch acquisition channel and the common port, and the timing module is configured to time to sample the capacitive touch key sensor for monitoring touch during a preset first time period; and in a preset second time period, PWM square waves are input to the plurality of ports and the common port so as to realize the control of the LED lamp group.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311589966.9A CN117651354A (en) | 2023-11-27 | 2023-11-27 | Multiplexing method and system for touch sensing and LED control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311589966.9A CN117651354A (en) | 2023-11-27 | 2023-11-27 | Multiplexing method and system for touch sensing and LED control |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117651354A true CN117651354A (en) | 2024-03-05 |
Family
ID=90044419
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311589966.9A Pending CN117651354A (en) | 2023-11-27 | 2023-11-27 | Multiplexing method and system for touch sensing and LED control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117651354A (en) |
-
2023
- 2023-11-27 CN CN202311589966.9A patent/CN117651354A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102252226B (en) | Light-emitting diode (LED) component and LED light string adopting same | |
CN102113409B (en) | Illumination device comprising multiple LEDs | |
EP3026985A1 (en) | Led lighting drive circuit | |
CN106251811B (en) | LED dimming method | |
CN103280203B (en) | LED backlight drive circuit, liquid crystal indicator and a kind of driving method | |
CN103354453B (en) | There is indicator light and the multiplexing circuit of Key pad port and method | |
CN107135572B (en) | Sense light | |
CN101943742B (en) | Keypad test and display driver integrated circuit and control method thereof | |
US20160037596A1 (en) | Multi-Stages Power Supplying Control Circuit for Light Emitting Diode | |
CN107148121A (en) | A kind of chop control linear switch constant current and constant power circuit | |
CN102316625A (en) | Lighting device and light source control circuit thereof | |
CN117651354A (en) | Multiplexing method and system for touch sensing and LED control | |
CN103347352A (en) | LED light source short-circuit detection method and device, LED backlight and liquid crystal display device | |
CN105576951A (en) | Current limiting method, current limiting-constant current combined power circuit and control method thereof | |
CN110582144B (en) | Self-adaptive bleeder control circuit and method | |
CN208834723U (en) | Multi-channel LED backlight drive circuit and LCD TV | |
CN203399091U (en) | Indicating lamp/key port-multiplexing circuit | |
CN207321594U (en) | A kind of more pixel drive systems of LED | |
CN102105004B (en) | Multi-light source control circuit | |
CN201616872U (en) | Interface multiplexing circuit and television | |
CN213244404U (en) | Multi-LED driving and multi-key pin multiplexing circuit | |
KR101598131B1 (en) | Apparatus for Cross Drive Control of LED lighting | |
CN110189689A (en) | LED display control circuit | |
CN214481392U (en) | Induction lamp controller and system | |
MX2021007717A (en) | Self-repairing lighting system and method. |
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 |