Multifunctional switch control circuit

Through the design of the multifunctional switch control circuit, the combination of toggle switches and different resistance values ​​is used to solve the problem of complex resource occupation and wiring in the switch design, and achieve low-cost and high-anti-interference multifunctional signal control.

CN223296303UActive Publication Date: 2025-09-02UNIPOE IOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422657585.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-09-02
Estimated Expiration
2034-10-31

AI Technical Summary

Technical Problem

The design of existing multi-function switches has led to an increase in the resource usage of chip IO ports, high hardware costs and difficult layout and wiring, and the design needs to be simplified to reduce costs and complexity.

Method used

A multi-function switch control circuit is adopted, which uses a combination of toggle switches and resistors of different resistance values ​​to realize multiple functions through voltage division, and adds TVS tubes for electrostatic protection to eliminate interference.

Benefits of technology

It has achieved low hardware cost and strong signal anti-interference ability. It can realize multiple functions through one signal line, reduce microcontroller resource consumption and simplify layout and wiring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223296303U_ABST
    Figure CN223296303U_ABST
Patent Text Reader

Abstract

The utility model relates to the technical field of switch switch circuits, in particular to a multifunctional switch control circuit, which comprises a toggle switch SW1, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6 and a capacitor C1, and is characterized in that each functional pin is respectively connected with one end of the resistor R2, one end of the resistor R4, one end of the resistor R5 and one end of the resistor R6; the other end of the resistor R2, the other end of the resistor R4, the other end of the resistor R5 and the other end of the resistor R6 are connected together and then connected to one end of a resistor R1, one end of a capacitor C1 and one end of a resistor R3, the other end of the capacitor C1 is grounded, and the other end of the resistor R3 is connected with the MCU; wherein the resistance values of the resistor R2, the resistor R4, the resistor R5 and the resistor R6 are different. According to the utility model, the structure is novel, multiple functions can be realized by one signal, and the gear function can be realized without consuming more single-chip microcomputer resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of switch circuits of exchangers, in particular to a multifunctional switch control circuit. Background Art

[0002] The market is increasingly demanding multifunctional switches. However, these increased functionality consumes chip I / O resources, requiring more microcontroller resources for signal control, increasing design material costs. This also complicates circuitry and makes PCB layout engineers more difficult. Therefore, a simple, multifunctional switch control design is urgently needed to completely avoid these issues. Summary of the Invention

[0003] The utility model provides a multifunctional switch control circuit to solve the problems of the prior art. The circuit has a novel structure and low hardware cost. One signal can realize multiple functions without consuming more single-chip computer resources to realize the gear function.

[0004] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0005] The utility model provides a multifunctional switch control circuit, which includes a toggle switch SW1, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6 and a capacitor C1. The four function pins of the toggle switch SW1 are each connected to one end of the resistor R2, one end of the resistor R4, one end of the resistor R5 and one end of the resistor R6, the other ends of the resistor R2, the other ends of the resistor R4, the other ends of the resistor R5 and the other ends of the resistor R6 are connected together and then connected to one end of the resistor R1, one end of the capacitor C1 and one end of the resistor R3. The other end of the capacitor C1 is grounded, and the other end of the resistor R3 is connected to the MCU; wherein the resistance values ​​of the resistors R2, R4, R5 and R6 are different.

[0006] The multifunctional switch control circuit further includes a TVS tube D1 , and two ends of the TVS tube D1 are respectively connected to the other end of the resistor R2 and the other end of the capacitor C1 .

[0007] Wherein, the capacity of the capacitor C1 is 0.1uF.

[0008] The resistance of the resistor R1 is 4.7K, the resistance of the resistor R2 is 75K, the resistance of the resistor R4 is 1.5K, the resistance of the resistor R5 is 4.7K, and the resistance of the resistor R6 is 10K.

[0009] The resistance of the resistor R3 is 1.5K.

[0010] Beneficial effects of the utility model:

[0011] The utility model has a novel structure and low hardware cost. One signal can realize multiple functions, and there is no need to consume more single-chip computer resources to realize the gear function. The ADC signal has a strong anti-interference ability. A resistor R1 is pulled up on the ADC signal to 3.3V, and then the signal is connected to the pin of the toggle switch SW1 with resistors of different resistance values, and the toggle switch realizes different functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 The utility model is a circuit diagram of a multifunctional switch control circuit. DETAILED DESCRIPTION

[0013] In order to facilitate the understanding of those skilled in the art, the present invention is further described below in conjunction with the embodiments and drawings. The contents mentioned in the embodiments are not intended to limit the present invention. The present invention is described in detail below in conjunction with the drawings.

[0014] A multifunctional switch control circuit, such as Figure 1 As shown, it includes a toggle switch SW1, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6 and a capacitor C1. The four function pins of the toggle switch SW1 are each connected to one end of the resistor R2, one end of the resistor R4, one end of the resistor R5 and one end of the resistor R6, and the other ends of the resistors R2, R4, R5 and R6 are connected together and then connected to one end of the resistor R1, one end of the capacitor C1 and one end of the resistor R3. The other end of the capacitor C1 is grounded, and the other end of the resistor R3 is connected to the MCU; wherein the resistance values ​​of the resistors R2, R4, R5 and R6 are different; wherein the resistance value of the resistor R1 is 4.7K, the resistance value of the resistor R2 is 75R, the resistance value of the resistor R4 is 1.5K, the resistance value of the resistor R5 is 4.7K, and the resistance value of the resistor R6 is 10K; wherein the resistance value of the resistor R3 is 1.5K.

[0015] Specifically, the utility model has a novel structure and low hardware cost. One signal can realize multiple functions, and there is no need to consume more microcontroller resources to realize the gear function; the ADC signal has strong anti-interference ability; the implementation method in the embodiment of the present application is as follows: the toggle switch realizes different functions: pull up a 4.7K resistor R1 to 3.3V on the ADC signal, and then connect the signal to the pin of the toggle switch SW1 with resistors of different resistance values.

[0016] 1) When the switch is set to gear 1, resistors R1 (4.7K) and R2 (75R) divide the 3.3V voltage, and the voltage detected by the ADC is 0.052V.

[0017] 2) When the switch is switched to gear 2, resistors R1 (4.7K) and R4 (1.5K) divide the 3.3V voltage, and the voltage detected by the ADC is 0.798V.

[0018] 3) When the switch is switched to level 3, resistors R1 (4.7K) and R5 (4.7K) divide the 3.3V voltage, and the voltage detected by the ADC is 1.65V.

[0019] 4) When the switch is turned to the 4th gear, resistors R1 (4.7K) and R6 (10K) divide the 3.3V voltage, and the voltage detected by the ADC is 2.245V.

[0020] Based on the above principles, the embodiment of the present application only needs one signal line to realize four functions; by analogy with this principle, more functions can also be realized.

[0021] In this embodiment of the present application, the multi-function switch control circuit further includes a TVS diode D1, the two ends of which are connected to the other end of the resistor R2 and the other end of the capacitor C1, respectively. Specifically, under the above configuration, TVS diode D1 (BV03C-K) is used for ESD protection. Static electricity is conducted to the ground by TVS diode D1, and then resistor R3 (1.5K) is connected in series with the ADC signal to prevent static electricity from being conducted to the chip (MCU).

[0022] In the embodiment of the present application, the capacitance of the capacitor C1 is 0.1 uF. Specifically, under the above setting, a small capacitance capacitor C1 (0.1 uF) is added to the toggle switch to eliminate the jitter generated when toggling different gears and filter out high-frequency interference.

[0023] The above description is only a preferred embodiment of the present invention and does not constitute any form of limitation to the present invention. Although the present invention is disclosed as a preferred embodiment as above, it is not intended to limit the present invention. Any technician familiar with the profession can make some changes or modifications to equivalent embodiments of the above-disclosed technical contents without departing from the scope of the technical solution of the present invention. However, any simple modifications, equivalent changes and modifications made to the above embodiments according to the technology of the present invention, which do not depart from the content of the technical solution of the present invention, are within the scope of the technical solution of the present invention.

Claims

1. A multifunctional switch control circuit, characterized in that: The present invention comprises a toggle switch SW1, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6 and a capacitor C1. The four function pins of the toggle switch SW1 are each connected to one end of the resistor R2, one end of the resistor R4, one end of the resistor R5 and one end of the resistor R6 respectively. The other ends of the resistors R2, R4, R5 and R6 are connected together and then connected to one end of the resistor R1, one end of the capacitor C1 and one end of the resistor R3. The other end of the capacitor C1 is grounded, and the other end of the resistor R3 is connected to the MCU. The resistance values ​​of the resistors R2, R4, R5 and R6 are different.

2. The multifunctional switch control circuit according to claim 1, characterized in that: The multifunctional switch control circuit further includes a TVS tube D1 , and two ends of the TVS tube D1 are respectively connected to the other end of the resistor R2 and the other end of the capacitor C1 .

3. The multifunctional switch control circuit according to claim 1, characterized in that: The capacity of the capacitor C1 is 0.1uF.

4. The multifunctional switch control circuit according to claim 1, characterized in that: The resistance value of the resistor R1 is 4.7K, the resistance value of the resistor R2 is 75R, the resistance value of the resistor R4 is 1.5K, the resistance value of the resistor R5 is 4.7K, and the resistance value of the resistor R6 is 10K.

5. The multifunctional switch control circuit according to claim 1, characterized in that: The resistance of the resistor R3 is 1.5K.