Toggle switch circuit and atomization equipment
By using multiple level generation units to generate different level signals in the toggle switch circuit, the problem of toggle switches occupying too many controller I/O ports is solved, achieving resource saving and cost reduction.
Patent Information
- Application Number
- CN202520082432.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2035-01-14
AI Technical Summary
Existing toggle switches require a significant amount of controller I/O port resources, leading to resource waste and increased costs.
At least two level generation units are used to generate different level signals. These units are selectively connected by a toggle switch to output to the controller. The controller drives the device to respond according to the received signals, thereby reducing the occupation of controller resources.
This effectively reduces the resource consumption of the controller, saving resources and reducing equipment costs.
Smart Images

Figure CN223744695U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of switch detection, and more particularly to a toggle switch circuit and an atomization device. BACKGROUND
[0002] In a toggle switch application, when the number of gears of the toggle switch is more than two, two or more controller interfaces are usually required to receive the level generated by the toggle switch during the toggle process to determine the current state of the toggle switch, for example, to determine whether the current toggle switch corresponds to a high level or a low level. Therefore, more controller IO ports are required, which occupies more controller resources. However, the number of IO ports of the controller is generally fixed, and if too many resources are occupied, the functions of other controllers will be limited. If a controller with more IO ports is used, the cost of the entire circuit will also increase. CONTENT OF THE UTILITY MODEL
[0003] The present application provides a toggle switch circuit and an atomization device to solve the problem that the toggle switch in the prior art requires more resources.
[0004] The present application provides a toggle switch circuit, comprising: at least two level generating units for generating different level signals respectively; a toggle switch, an input end of the toggle switch being configured to selectively connect one of the level generating units, and an output end of the toggle switch being used to output the level signal corresponding to the level generating unit; and a controller connected to the output end of the toggle switch, for receiving the level signal output by the toggle switch and sampling the level signal; wherein the controller is configured to drive a corresponding device to respond according to the received level signal.
[0005] In some embodiments, in the toggle switch circuit described in the present application, the at least two level generating units include a first level generating unit and a second level generating unit; the first level generating unit is used to generate a first level signal meeting a first preset range; and the second level generating unit is used to generate a second level signal meeting a second preset range, the minimum value of the first preset range being greater than the maximum value of the second preset range.
[0006] In some embodiments, in the toggle switch circuit described in the present application, the level generating unit includes at least two first level generating units, and the at least two first level generating units generate different first level signals respectively; and / or the level generating unit includes at least two second level generating units, and the at least two second level generating units generate different second level signals respectively.
[0007] In some embodiments, in the toggle switch circuit described in the present application, at least one of the first level generating units is configured as a power supply unit; wherein the input end of the toggle switch is configured to be selectively connected to the power supply unit.
[0008] In some embodiments, in the toggle switch circuit described in the present application, the first level generating unit further comprises a first resistor and a second resistor; the first end of the first resistor is configured to be connected to the power supply unit, the second end of the first resistor is connected to the first end of the second resistor, and the second end of the second resistor is grounded; wherein the second end of the first resistor is configured as a high-level contact, and the high-level contact is used to connect the toggle switch to input a level signal to the controller.
[0009] In some embodiments, in the toggle switch circuit described in the present application, the ratios of the first resistor to the second resistor of different first level generating units are different.
[0010] In some embodiments, in the toggle switch circuit described in the present application, the second level generating unit further comprises a third resistor and a fourth resistor; the first end of the third resistor is configured to be connected to the power supply unit, the second end of the third resistor is connected to the first end of the fourth resistor, and the second end of the fourth resistor is grounded; wherein the second end of the third resistor is configured as a low-level contact, and the low-level contact is used to connect the toggle switch to input a level signal to the controller.
[0011] In some embodiments, in the toggle switch circuit described in the present application, the ratios of the third resistor to the fourth resistor of different second level generating units are different.
[0012] In some embodiments, in the toggle switch circuit described in the present application, the second level generating unit is configured as a grounding unit, one end of the grounding unit is configured as a low-level contact, and the low-level contact is used to connect the toggle switch to input a level signal to the controller.
[0013] The present application provides an atomization device comprising the toggle switch circuit described above.
[0014] The toggle switch circuit and the atomization device according to the present application have the following beneficial effects: the resource occupation of the controller in the circuit can be effectively reduced, and the purpose of saving resources can be achieved. BRIEF DESCRIPTION OF DRAWINGS
[0015] The present application will be further described below with reference to the accompanying drawings and embodiments, in which:
[0016] Figure 1 FIG. 1 is a structural schematic diagram of a toggle switch circuit according to an embodiment of the present application;
[0017] Figure 2 Structure diagram of a toggle switch circuit in another embodiment;
[0018] Figure 3 Structure diagram of a toggle switch circuit in another embodiment;
[0019] Figure 4 Structure diagram of a toggle switch circuit in another embodiment;
[0020] Figure 5 Structure diagram of a toggle switch circuit in another embodiment;
[0021] Figure 6 Circuit schematic diagram of a toggle switch circuit in an embodiment;
[0022] Figure 7 Circuit schematic diagram of a toggle switch circuit in another embodiment.
[0023] In which the reference signs are as follows:
[0024] 110-controller, 120-toggle switch, 130-level generating unit, 131-first level generating unit, 132-second level generating unit. DETAILED DESCRIPTION
[0025] In order to have a clearer understanding of the technical features, objects and effects of the present application, the specific embodiments of the present application will be described in detail with reference to the drawings.
[0026] As shown in Figure 1 , an embodiment of the toggle switch circuit of the present application is shown. In Figure 1 the toggle switch circuit of the present application shown, the toggle switch circuit comprises: at least two level generating units 130 for generating different level signals respectively; a toggle switch 120, an input end of the toggle switch 120 is configured to be selectively connected to one of the level generating units 130, and an output end of the toggle switch 120 is used to output the level signal corresponding to the level generating unit 130; a controller 110 connected to the output end of the toggle switch 120, for receiving the level signal output by the toggle switch 120 and sampling the level signal; wherein the controller 110 is configured to drive the corresponding device to respond according to the received level signal.
[0027] In some embodiments, the level generation units 130 generate different level signals, and the input end of the toggle switch 120 is connected to different level generation units 130 respectively, so that the output end of the toggle switch 120 is connected to different level generation units 130 according to the toggle operation of the toggle switch 120. When the output end of the toggle switch 120 is connected to one of the level generation units 130, the output end of the toggle switch 120 outputs the level signal corresponding to the level generation unit 130. The controller 110 is connected to the output end of the toggle switch 120 to receive the level signal output by the output end of the toggle switch 120 and sample the level signal. After obtaining the sampling result corresponding to the level signal, the controller 110 can drive the corresponding device to respond according to the sampling result. For example, driving the circuit of the device to wake up or switching the working mode of the device. In this circuit, the controller 110 only needs to occupy one interface to form a connection relationship with the output end of the toggle switch 120, that is, the detection of different states of the toggle switch 120 can be realized, and different operations can be performed according to different detection results, so as to reduce the occupation of the controller 110 resources. In some application scenarios, the cost of the entire device can be effectively reduced.
[0028] As shown in Figure 2 In some embodiments, the at least two level generation units 130 include a first level generation unit 131 and a second level generation unit 132; the first level generation unit 131 is configured to generate a first level signal satisfying a first preset range; and the second level generation unit 132 is configured to generate a second level signal satisfying a second preset range, and the minimum value of the first preset range is greater than the maximum value of the second preset range. In some embodiments, the first level generation unit 131 is configured to generate a corresponding first level signal in the first preset range, and the second level generation unit 132 is configured to generate a corresponding second level signal in the second preset range. Because the minimum value of the first preset range is greater than the maximum value of the second preset range, the first level signal generated by the first level generation unit 131 is higher than the second level signal generated by the second level generation unit 132. Wherein, the first level signal is defined as a high level signal, and the second level signal is defined as a low level signal.
[0029] Furthermore, the first and second preset ranges can be set as needed. For example, the first preset range can be between 2.7V and 5V, and the corresponding level signal within this range is defined as a high-level signal. The second preset range can be between 0V and 1.7V, and the corresponding level signal within this range is defined as a low-level signal. The controller 110 can determine whether the received signal is a high-level or low-level signal to perform corresponding operations. For example, when the device is in sleep mode, if the controller 110 is currently receiving a high-level signal, by switching the toggle switch 120, the controller 110 is switched to receive a low-level signal, indicating that the device needs to be triggered. The controller 110 can then wake up the device based on the received level change. Similarly, when the device is in sleep mode, if the controller 110 is currently receiving a low-level signal, by switching the toggle switch 120, the controller 110 is switched to receive a high-level signal, indicating that the device needs to be triggered. The controller 110 can then wake up the device based on the received level change.
[0030] like Figure 3 As shown, in some embodiments, the level generation unit 130 includes at least two first level generation units 131, each generating a different first level signal. When the toggle switch 120 includes three or more input pins, the level generation unit 130 can be configured to include two or more first level generation units 131, each generating a different first level signal. This allows the input terminal of the toggle switch 120 to be configured to connect to different first level generation units 131. When the controller 110 is in a wake-up state, the toggle switch 120 can be configured to switch between receiving different first level signals to obtain the corresponding detection result based on the specific level of the first level signal.
[0031] For example, one first level generation unit 131 generates a first level signal with a level value of 3V, and another first level generation unit 131 generates a first level signal with a level value of 3.3V. When the controller 110 receives a 3V level signal, it can determine the operation performed by the toggle switch 120 based on the level signal and control the corresponding working module to respond accordingly. When the controller 110 receives a 3.3V level signal, it can also determine the operation performed by the toggle switch 120 based on the level signal and then control the corresponding working module to respond accordingly. The number of first level generation units 131 can be set according to specific needs. In some embodiments, the voltage generated by the first level generation unit 131 can also be varied according to a preset step.
[0032] In some embodiments, the plurality of first level generating units 131 are respectively connected with non-adjacent input pins of the toggle switch 120, i.e., any two input pins of the toggle switch 120 connected with the first level generating units 131 are non-adjacent, so that the high level signal and the low level signal can be switched during the switching of the toggle switch 120, and the controller 110 can be quickly woken up from the sleep state.
[0033] As shown in FIG. 1, in some embodiments, the level generating unit 130 includes at least two second level generating units 132, which respectively generate different second level signals. When the toggle switch 120 includes three or more input pins, the level generating unit 130 can be configured to include two or more second level generating units 132, each of which generates a different second level signal. The input end of the toggle switch 120 can be configured to be connected with different second level generating units 132. When the controller 110 is in the wake-up working state, the toggle switch 120 can be switched to receive different second level signals, so as to obtain corresponding detection results according to the specific level of the second level signal. Figure 4 For example, one second level generating unit 132 generates a second level signal with a level value of 1V, and another second level generating unit 132 generates a second level signal with a level value of 1.2V. When the controller 110 receives the 1V level signal, the operation of the current toggle switch 120 can be determined according to the level signal, and the corresponding working module related to the operation can be controlled to respond. When the controller 110 receives the 1.2V level signal, the operation of the current toggle switch 120 can also be determined according to the level signal, and the corresponding working module related to the operation can be controlled to respond. The number of second level generating units 132 can be set according to specific needs. In some embodiments, the voltage generated by the second level generating unit 132 can also be changed according to a preset step.
[0034] In some embodiments, the plurality of second level generating units 132 are respectively connected with non-adjacent input pins of the toggle switch 120, i.e., any two input pins of the toggle switch 120 connected with the second level generating units 132 are non-adjacent, so that the high level signal and the low level signal can be switched between each other during the switching of the toggle switch 120, and the controller 110 can be quickly woken up from the sleep state.
[0035] As shown in FIG. 1, in some embodiments, the level generating unit 130 includes at least two second level generating units 132, which respectively generate different second level signals. When the toggle switch 120 includes three or more input pins, the level generating unit 130 can be configured to include two or more second level generating units 132, each of which generates a different second level signal. The input end of the toggle switch 120 can be configured to be connected with different second level generating units 132. When the controller 110 is in the wake-up working state, the toggle switch 120 can be switched to receive different second level signals, so as to obtain corresponding detection results according to the specific level of the second level signal.
[0036] Figure 5 As shown in some embodiments, when the toggle switch 120 includes four or more input pins, the level generating unit 130 can be configured to include two or more first level generating units 130 and two or more second level generating units 130, each first level generating unit 130 generates a different first level signal, and each second level generating unit 130 generates a different second level signal. The input end of the toggle switch 120 can be configured to be connected to different first level generating units 130 or second level generating units 130.
[0037] In some embodiments, the plurality of first level generating units 131 are respectively connected to non-adjacent input pins of the toggle switch 120, that is, any two input pins of the toggle switch 120 connected to the first level generating units 131 are non-adjacent, and the plurality of second level generating units 132 are respectively connected to non-adjacent input pins of the toggle switch 120, that is, any two input pins of the toggle switch 120 connected to the second level generating units 132 are non-adjacent, so that during the switching of the toggle switch 120, a clear switching between the high level signal and the low level signal can be achieved, and the controller 110 can be quickly awakened when it is in sleep.
[0038] As shown in some embodiments, Figure 6 and Figure 7 In some embodiments, at least one first level generating unit 131 is configured as a power supply unit; wherein the input end of the toggle switch 120 is configured to be selectively connected to the power supply unit. That is, a high level signal can be directly provided by the power supply unit, for example, a 3.3V level signal is provided by the power supply unit, or a 5V level signal is provided by the power supply unit.
[0039] In some embodiments, as shown in Figure 6 and Figure 7 In some embodiments, the first level generating unit 131 further includes a first resistor and a second resistor; the first end of the first resistor is configured to be connected to the power supply unit, the second end of the first resistor is connected to the first end of the second resistor, and the second end of the second resistor is grounded; wherein the second end of the first resistor is configured as a high level contact, and the high level contact is used to connect the toggle switch 120 to input a level signal to the controller 110.
[0040] In some embodiments, including but not limited to by a resistor to form a voltage dividing circuit, the supply voltage of the power supply unit is divided to obtain a corresponding first level signal. At this time, the second end of the first resistor is a high level contact, and the input pin of the toggle switch 120 receives a high level signal through the high level contact. The controller 110 responds accordingly according to the high level signal.
[0041] Further, in different first level generating units 131, the ratio of the first resistance to the second resistance is different. In order to distinguish different states of the toggle switch 120, different first level generating units 131 are set, and the ratio of the first resistance to the second resistance in each first level generating unit 131 is different. So that based on the same supply voltage, the obtained voltage division is also different. That is, the input first level signal at different input pins of the toggle switch 120 is also different, so that the controller 110 can obtain specific detection results according to the specific first level signal and respond accordingly.
[0042] As shown in Figure 6 and Figure 7 In some embodiments, the second level generating unit 132 further includes a third resistance and a fourth resistance; the first end of the third resistance is configured to be connected to the power supply unit, the second end of the third resistance is connected to the first end of the fourth resistance, and the second end of the fourth resistance is grounded; wherein the second end of the third resistance is configured as a low-level contact, and the low-level contact is used to connect the toggle switch 120 to input a level signal to the controller 110.
[0043] In some embodiments, the supply voltage of the power supply unit is divided by a voltage division circuit composed of resistances to obtain a corresponding second level signal. At this time, the second end of the third resistance is a low-level contact, and the input pin of the toggle switch 120 receives a low-level signal through the low-level contact. The controller 110 responds accordingly according to the low-level signal.
[0044] Further, in different second level generating units 132, the ratio of the third resistance to the fourth resistance is different. In order to distinguish different states of the toggle switch 120, different second level generating units 132 are set, and the ratio of the third resistance to the fourth resistance in each second level generating unit 132 is different, so that based on the same supply voltage, the obtained voltage division is also different. That is, the input second level signal at different input pins of the toggle switch 120 is also different, so that the controller 110 can obtain specific detection results according to the specific second level signal and respond accordingly.
[0045] In some embodiments, as shown in Figure 6As shown, the first resistor includes resistor R5, the second resistor includes resistor R6, the toggle switch 120 includes switch chip K1, the first input pin of the switch chip K1 is divided by the resistor R5 and the resistor R6 to obtain a high-level signal from the supply voltage VDD, the second input pin of the switch chip K1 is directly grounded to obtain a low-level signal, and the third input pin of the switch chip K1 is directly supplied with the supply voltage VDD to obtain another high-level signal. The adjacent input pins of the switch chip K1 correspond to the high-level signal and the low-level signal respectively, and different high-level signals correspond to different voltage values. When the conduction pin of the output pin of the switch chip K1 is switched from one input pin to another input pin, the controller 110 receives the conversion of the high and low levels, and then performs the corresponding wake-up action. When the controller 110 is in the wake-up state, the specific voltage detection process can be directly performed based on the level signal of the output pin of the current switch chip K1, and the corresponding operation is performed according to the voltage detection result.
[0046] In some embodiments, as Figure 7 As shown, the first resistor includes resistor R7, the second resistor includes resistor R8, the third resistor includes resistor R10, and the fourth resistor includes resistor R9. The toggle switch 120 includes switch chip K2, the first input pin of the switch chip K2 is divided by the resistor R7 and the resistor R8 to obtain a high-level signal from the supply voltage VDD, the second input pin of the switch chip K2 is directly grounded to obtain a low-level signal, and the third input pin of the switch chip K2 is directly supplied with the supply voltage VDD to obtain another high-level signal. The fourth input pin of the switch chip K2 is divided by the resistor R10 and the resistor R9 to obtain another low-level signal from the supply voltage VDD. The adjacent input pins of the switch chip K2 correspond to the high-level signal and the low-level signal respectively, and different high-level signals have different voltage values, and different low-level signals have different voltage values. When the conduction pin of the output pin of the switch chip K2 is switched from one input pin to another input pin, the controller 110 receives the conversion of the high and low levels, and then performs the corresponding wake-up action. When the controller 110 is in the wake-up state, the specific voltage detection process can be directly performed based on the level signal of the output pin of the current switch chip K2, and the corresponding operation is performed according to the voltage detection result.
[0047] The controller 110 includes but is not limited to an MCU chip configured to include an ADC circuit, and when the controller 110 receives the detection voltage corresponding to the output end of the toggle switch 120, different ADC values are obtained by analog-to-digital conversion, and different ADC values can be used to identify the conduction state corresponding to the toggle switch 120.
[0048] In addition, in the embodiments of the present application, a nebulization device is also provided, in which the above-mentioned toggle switch circuit is arranged to realize the recognition process of the controller 110 to the toggle switch 120. For example, the nebulization device realizes the wake-up or function setting of the device through the toggle switch circuit. By using the circuit, the occupation of the circuit resources of the nebulization device by the toggle switch circuit can be reduced, and the cost of the nebulization device can be reduced.
[0049] It can be understood that the above embodiments only express the preferred embodiments of the present application, and the description is more specific and detailed, but it cannot be understood as a limitation on the patent scope of the present application; it should be pointed out that for ordinary skilled in the art, the above technical features can be freely combined without departing from the concept of the present application, and a number of modifications and improvements can be made, which all belong to the protection scope of the present application; therefore, any equivalent transformation and modification within the scope of the claims of the present application shall belong to the scope of the claims of the present application.
Claims
1. A toggle switch circuit, characterized by, The application relates to a toggle switch circuit, comprising: at least two level generating units for generating different level signals respectively; a toggle switch, an input end of the toggle switch being configured to selectively connect one of the level generating units, and an output end of the toggle switch being used for outputting a level signal corresponding to the level generating unit; a controller connected to the output end of the toggle switch, used for receiving the level signal output by the toggle switch and sampling the level signal; wherein the controller is configured to drive a corresponding device to respond according to the received level signal.
2. The toggle switch circuit of claim 1, wherein, The at least two level generating units comprise a first level generating unit and a second level generating unit; the first level generating unit is used for generating a first level signal meeting a first preset range; the second level generating unit is used for generating a second level signal meeting a second preset range, the minimum value of the first preset range being greater than the maximum value of the second preset range.
3. The toggle switch circuit of claim 2, wherein, The level generating unit comprises at least two first level generating units, and the at least two first level generating units generate different first level signals respectively; and / or, the level generating unit comprises at least two second level generating units, and the at least two second level generating units generate different second level signals respectively.
4. The toggle switch circuit of claim 2, wherein, At least one of the first level generating units is arranged as a power supply unit; wherein the input end of the toggle switch is configured to selectively connect the power supply unit.
5. The toggle switch circuit of claim 4, wherein, The first level generating unit further comprises a first resistor and a second resistor; a first end of the first resistor is configured to be connected to the power supply unit, a second end of the first resistor is connected to a first end of the second resistor, and a second end of the second resistor is grounded; wherein the second end of the first resistor is configured as a high-level contact, and the high-level contact is used for connecting the toggle switch to input a level signal to the controller.
6. The toggle switch circuit of claim 5, wherein, The first resistors of different first level generating units have different ratios with the second resistors.
7. The toggle switch circuit of claim 4, wherein, The second level generating unit further comprises a third resistor and a fourth resistor; a first end of the third resistor is configured to be connected to the power supply unit, a second end of the third resistor is connected to a first end of the fourth resistor, and a second end of the fourth resistor is grounded; wherein the second end of the third resistor is configured as a low-level contact, and the low-level contact is used for connecting the toggle switch to input a level signal to the controller.
8. The toggle switch circuit of claim 7, wherein, The third resistors of different second level generating units have different ratios with the fourth resistors.
9. The toggle switch circuit of claim 2, wherein, The second level generating unit is configured as a grounding unit, one end of the grounding unit is configured as a low-level contact, and the low-level contact is used for connecting the toggle switch to input a level signal to the controller.
10. An atomising device characterised in that, The application further relates to a toggle switch circuit comprising the toggle switch circuit according to any one of claims 1 to 9.