Dial switch circuit, motor driving device and range hood
By using a preset pin to receive the detection voltage value through a DIP switch circuit, the problem of insufficient MCU pin count is solved, realizing the integration and cost optimization of the range hood, and improving detection accuracy and anti-interference capability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2026-06-16
AI Technical Summary
In existing technologies, MCUs use multiple IO pins to detect DIP switches, resulting in larger chip sizes or more complex peripheral circuits, which cannot meet the miniaturization and integration requirements of range hoods.
A DIP switch circuit is adopted, which receives the detected voltage value through a preset pin, saving the number of IO pins of the control module, reducing the size requirements of the control module and the complexity of the peripheral circuit. The ES32H0403LQ chip is used to achieve high-performance data processing and signal acquisition.
It fulfills the integration requirements of range hoods, simplifies PCB circuit board wiring, reduces hardware costs, and improves testing accuracy and anti-interference capabilities.
Smart Images

Figure CN224367810U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of range hood technology, and in particular to a DIP switch circuit, a motor drive device, and a range hood. Background Technology
[0002] In existing technologies, MCUs (Microcontroller Units) typically use multiple IO (Input / Output) pins to individually detect the high and low levels of each DIP switch in a range hood to determine the corresponding switch state. Different combinations of DIP switches are used to switch gears or models. MCUs typically use 4 IO pins to detect 4 DIP switches. For some MCUs with fewer package pins, it may be necessary to replace or add more pins, resulting in a larger MCU chip size or more complex peripheral circuits. This leads to insufficient PCB (Printed Circuit Board) space, making it impossible to meet integration requirements or causing an increase in the cost of peripheral components. This contradiction is particularly prominent when pursuing miniaturization and integration of equipment, such as range hoods. Utility Model Content
[0003] This utility model aims to solve at least one of the technical problems existing in the prior art.
[0004] Therefore, one objective of this utility model is to provide a DIP switch circuit that facilitates PCB circuit board wiring, meets integration requirements, and saves costs.
[0005] Therefore, the second objective of this utility model is to provide a motor drive device.
[0006] Therefore, the third objective of this utility model is to provide a range hood.
[0007] To achieve the above objectives, an embodiment of the first aspect of this utility model provides a DIP switch circuit, comprising: a switch identification circuit, which includes a DIP switch unit, a first terminal of which is connected to a power supply voltage and a third terminal of which is grounded, for outputting the detection voltage value of the DIP switch unit; and a control module, wherein a preset pin of the control module is connected to the second terminal of the switch identification circuit, for receiving the detection voltage value and outputting the combination state of the DIP switch unit.
[0008] According to the DIP switch circuit of this utility model embodiment, a preset pin of the control module is connected to the switch identification circuit. That is, one pin of the control module is connected to the switch identification circuit, and the combination state of the DIP switch unit is determined based on the detection voltage value received by the control module. By using a preset pin to receive the detection voltage value, the number of IO pins used by the control module is reduced, the requirement for the number of control module pins is reduced, thereby reducing the size requirement of the control module and the complexity of the peripheral circuit, facilitating PCB circuit board wiring, meeting integration requirements, and saving costs.
[0009] In some embodiments, the switch identification circuit includes: a DIP switch sub-circuit, the first terminal of which is connected to the power supply voltage and the third terminal of which is grounded, for outputting a voltage divider value; and a filter sub-circuit, the first terminal of which is connected to the second terminal of the DIP switch sub-circuit, the second terminal of which is connected to a preset pin and the third terminal of which is grounded, for blocking the high-frequency signal of the voltage divider value and outputting a detection voltage value.
[0010] In some embodiments, the DIP switch sub-circuit includes: a voltage divider unit, a first terminal of which is connected to the power supply voltage, a second terminal of which is connected to the first terminal of the filter sub-circuit and the input pin of the DIP switch unit, a third terminal of which is connected to the output pin of the DIP switch unit, and a fourth terminal of which is grounded for outputting the divided voltage value.
[0011] In some embodiments, the voltage divider unit includes: a first resistor, one end of which is connected to the output pin of the first switch of the DIP switch unit, and the other end of which is grounded; a second resistor, one end of which is connected to the output pin of the second switch of the DIP switch unit, and the other end of which is grounded; a third resistor, one end of which is connected to the output pin of the third switch of the DIP switch unit, and the other end of which is grounded; a fourth resistor, one end of which is connected to the output pin of the fourth switch of the DIP switch unit, and the other end of which is grounded; and a fifth resistor, one end of which is connected to the power supply voltage, and the other end of which is connected to the first terminal of the filter sub-circuit and the input pins of the first switch, the second switch, the third switch, and the fourth switch of the DIP switch unit.
[0012] In some embodiments, the filter sub-circuit includes: a sixth resistor, one end of which is connected to the other end of a fifth resistor, and the other end of which is connected to a preset pin; and a capacitor, one end of which is connected to the preset pin, and the other end of which is grounded.
[0013] In some embodiments, the control module is also used to output the gear position and DIP switch corresponding to the combined state of the DIP switch unit.
[0014] In some embodiments, the preset pin has a first analog-to-digital conversion function or a second analog-to-digital conversion function.
[0015] In some embodiments, the control module includes an ES32H0403LQ chip.
[0016] To achieve the above objectives, a second aspect of the present invention provides a motor drive device, which includes the DIP switch circuit described in the above embodiment.
[0017] According to the motor drive device of this utility model embodiment, the preset pin of the control module is connected to the switch identification circuit. That is, one pin of the control module is connected to the switch identification circuit, and the combination state of the DIP switch unit is determined based on the detection voltage value received by the control module. By using a preset pin to receive the detection voltage value, the number of IO pins used by the control module is reduced, the requirement for the number of control module pins is reduced, thereby reducing the size requirement of the control module and the complexity of the peripheral circuit, facilitating PCB circuit board wiring, meeting integration requirements, and saving costs.
[0018] To achieve the above objectives, a third aspect of this utility model provides a range hood that includes the motor drive device described in the above embodiment.
[0019] According to the range hood of this utility model embodiment, the preset pin of the control module is connected to the switch identification circuit. That is, one pin of the control module is connected to the switch identification circuit, and the combination state of the DIP switch unit is determined based on the detection voltage value received by the control module. By using a preset pin to receive the detection voltage value, the number of IO pins used by the control module is reduced, the requirement for the number of control module pins is reduced, thereby reducing the size requirement of the control module and the complexity of the peripheral circuit, facilitating PCB circuit board wiring, meeting integration requirements, and saving costs.
[0020] Additional aspects and advantages of this invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0021] The above and / or additional aspects and advantages of this utility model will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0022] Figure 1 This is a hardware connection diagram of a DIP switch circuit according to an embodiment of the present invention;
[0023] Figure 2 This is a structural block diagram of a motor drive device according to an embodiment of the present invention;
[0024] Figure 3 This is a structural block diagram of a range hood according to an embodiment of the present utility model.
[0025] Figure label:
[0026] DIP switch circuit 1;
[0027] Switch recognition circuit 10;
[0028] DIP switch unit SW1;
[0029] DIP switch sub-circuit 101; Filter sub-circuit 102;
[0030] First resistor R1; Second resistor R2; Third resistor R3; Fourth resistor R4; Fifth resistor R5; Sixth resistor R6;
[0031] Capacitor C.
[0032] Motor drive device 2;
[0033] 3. Range hood. Detailed Implementation
[0034] The embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. The embodiments of the present invention are described in detail below.
[0035] In existing technologies, MCUs typically use multiple I / O pins to individually detect the high and low levels of each DIP switch in a range hood to determine the corresponding switch state. Different combinations of DIP switches are used to switch between gear levels or model types. MCUs typically use four I / O pins to detect four DIP switches. For some MCUs with fewer pins in their packages, it may be necessary to replace or add more pins, resulting in a larger MCU chip size or more complex peripheral circuitry. This leads to insufficient PCB board space, failing to meet integration requirements, or increasing the cost of external components. Based on the aforementioned shortcomings, this application uses a preset pin to receive the detected voltage value, saving the number of I / O pins used in the control module MCU. This reduces the pin count requirement of the control module MCU, thereby reducing the size requirements of the control module MCU and the complexity of the peripheral circuitry, facilitating PCB layout, meeting integration requirements, and saving costs.
[0036] The following is combined Figure 1 The present invention describes the DIP switch circuit 1.
[0037] like Figure 1 As shown, the DIP switch circuit 1 of this embodiment includes: a switch identification circuit 10 and a control module, i.e., an MCU.
[0038] The switch identification circuit includes a DIP switch unit, for example, SW1. The first terminal of the switch identification circuit 10 is connected to the power supply voltage, and the third terminal of the switch identification circuit 10 is grounded, which is used to output the detection voltage value of the DIP switch unit SW1. The preset pin of the control module MCU is connected to the second terminal of the switch identification circuit 10, which is used to receive the detection voltage value and output the combination state of the DIP switch unit SW1.
[0039] The third terminal of the switch identification circuit 10 is grounded, i.e., GND. This point is the 0V reference potential point of the switch identification circuit 10, providing a return path for the current in the switch identification circuit 10, allowing the signal and power supply current in the switch identification circuit 10 to flow completely. For example, when the combination state of the DIP switch unit SW1 changes, the current forms a complete path through the ground. At the same time, the control module, i.e., the MCU, identifies changes in the detection voltage and operating voltage by the potential difference with the ground, ensuring the accuracy of voltage detection and logic judgment. In addition, noise and interference signals in the switch identification circuit 10 are directed to the ground to avoid affecting the detection accuracy and normal operation of the MCU.
[0040] The power supply voltage can be +5V or +3.3V. The default pin of the control module MCU, namely pin PB10, has a first analog-to-digital conversion function, such as a 12-bit analog-to-digital converter (ADC), or a second analog-to-digital conversion function, such as a 10-bit ADC, which can convert analog voltages from 0 to 5V into digital signals. The following example illustrates the 12-bit ADC function on pin PB10 with a power supply voltage of +5V.
[0041] In this embodiment, the DIP switch unit SW1 in the switch identification circuit 10 has multiple combination states. A corresponding preset voltage range is determined based on these multiple combination states of the DIP switch unit SW1. The preset pin PB10 of the control module MCU is connected to the switch identification circuit 10 to monitor the detected voltage value output by the switch identification circuit 10 in real time. Through the 12-bit analog-to-digital converter (ADC) function of the PB10 pin, the received detected voltage value is converted into a digital signal. The preset voltage range in which the converted detected voltage value falls is determined, and thus the combination state of the preset voltage range DIP switch unit SW1 is output. By receiving the detected voltage value through a single preset pin PB10 of the control module MCU, the number of IO pins occupied by the control module MCU can be effectively reduced, optimizing the pin resource configuration of the control module MCU, reducing the rigid requirement for the number of MCU pins, thereby reducing the physical size of the MCU, simplifying the complexity of peripheral circuits, significantly improving the convenience of PCB circuit board routing, meeting the requirements of high-density integrated design, and simultaneously achieving effective control of hardware costs.
[0042] According to the DIP switch circuit 1 of this utility model embodiment, a preset pin of the control module MCU is connected to the switch identification circuit 10. That is, one pin of the control module MCU is used to connect to the switch identification circuit 10, and the combination state of the DIP switch unit SW1 is determined based on the detection voltage value received by the control module MCU. By using a preset pin of the control module MCU to receive the detection voltage value, the number of IO pins used by the control module MCU is reduced, the requirement for the number of pins of the control module MCU is reduced, thereby reducing the size requirement of the control module MCU and the complexity of the peripheral circuit, facilitating PCB circuit board wiring, meeting integration requirements, and saving costs.
[0043] In some embodiments, the switch identification circuit 10 includes: a DIP switch sub-circuit 101 and a filter sub-circuit 102, wherein,
[0044] The first terminal of the DIP switch sub-circuit 101 in the switch identification circuit 10 is connected to the power supply voltage +5V, and the third terminal of the DIP switch sub-circuit 101 in the switch identification circuit 10 is grounded, which is used to output the voltage divider value. The first terminal of the filter sub-circuit 102 in the switch identification circuit 10 is connected to the second terminal of the DIP switch sub-circuit 101 in the switch identification circuit 10, and the second terminal of the filter sub-circuit 102 in the switch identification circuit 10 is connected to the preset pin PB10 of the control module MCU. The third terminal of the filter sub-circuit 102 in the switch identification circuit 10 is grounded, which is used to block the high-frequency signal of the voltage divider value and output the detection voltage value.
[0045] In this embodiment, after receiving the +5V power supply voltage, the DIP switch sub-circuit 101 in the switch identification circuit 10 outputs the corresponding divided voltage value according to different resistor combinations and the principle of resistor voltage division. Based on the connection relationship between the first end of the filter sub-circuit 102 in the switch identification circuit 10 and the second end of the DIP switch sub-circuit 101 in the switch identification circuit 10, after receiving the divided voltage value, in order to prevent the unstable operation of the +5V power supply voltage from causing the unstable divided voltage value at point A, the filter sub-circuit 102 in the switch identification circuit 10 blocks the high-frequency signal of the divided voltage value, reduces the voltage fluctuation at point A, and outputs a stable detection voltage value, thereby improving the anti-interference capability and detection accuracy of the DIP switch circuit 1 and enhancing the reliability of the DIP switch circuit 1.
[0046] In some embodiments, the DIP switch sub-circuit 101 in the switch identification circuit 10 includes: a DIP switch unit SW1 and a voltage divider unit (not shown in the figure), wherein...
[0047] The first terminal of the voltage divider unit in the DIP switch sub-circuit 101 is connected to the power supply voltage. The second terminal of the voltage divider unit in the DIP switch sub-circuit 101 is connected to the first terminal of the filter sub-circuit 102 in the switch recognition circuit 10 and the input pin of the DIP switch unit SW1. The third terminal of the voltage divider unit in the DIP switch sub-circuit 101 is connected to the output pin of the DIP switch unit SW1. The fourth terminal of the voltage divider unit in the DIP switch sub-circuit 101 is grounded and used to output the divided voltage value.
[0048] In an embodiment, such as Figure 1 As shown, the 4-bit DIP switch unit SW1 has a total of 2 4 There are 16 possible combinations of states. Assuming the input pin of the first switch of the DIP switch unit SW1 is denoted as 1 and the output pin as 5, the input pin of the second switch of the DIP switch unit SW1 is denoted as 2 and the output pin as 6, the input pin of the third switch of the DIP switch unit SW1 is denoted as 3 and the output pin as 7, and the input pin of the fourth switch of the DIP switch unit SW1 is denoted as 4 and the output pin as 8, then DIP codes 1-5 are denoted as S1, 2-6 as S2, 3-7 as S3, and 4-8 as S4. There are a total of 16 combinations: S1, S2, S3, S4, S12, S13, S14, S23, S24, S34, S123, S124, S134, S234, S1234, and no DIP code. These combinations satisfy the quantization signal requirements of the DIP switch circuit 1. The voltage divider unit in the DIP switch sub-circuit 101 outputs corresponding voltage divider values according to the different combinations of the first, second, third, and fourth switches of the DIP switch, thereby realizing the dynamic configuration of the resistor combination.
[0049] In some embodiments, the voltage divider unit in the DIP switch sub-circuit 101 includes: a first resistor, for example denoted as R1; a second resistor, for example denoted as R2; a third resistor, for example denoted as R3; a fourth resistor, for example denoted as R4; and a fifth resistor, for example denoted as R5, wherein...
[0050] One end of the first resistor R1 is connected to the output pin 5 of the first switch of the DIP switch unit SW1, and the other end of the first resistor R1 is grounded; one end of the second resistor R2 is connected to the output pin of the second switch of the DIP switch unit SW1, and the other end of the second resistor R2 is grounded; one end of the third resistor R3 is connected to the output pin of the third switch of the DIP switch unit SW1, and the other end of the third resistor R3 is grounded; one end of the fourth resistor R4 is connected to the output pin of the fourth switch of the DIP switch unit SW1, and the other end of the fourth resistor R4 is grounded; one end of the fifth resistor R5 is connected to the power supply voltage, and the other end of the fifth resistor R5 is connected to the first terminal of the filter sub-circuit 102 in the switch recognition circuit 10 and the input pins of the first switch, the second switch, the third switch and the fourth switch of the DIP switch unit SW1.
[0051] In this embodiment, based on the principle of resistor voltage division, when only DIP switch S1 is active, the voltage drop at point A is Vout = 5 × R1 / (R1 + R5). Similarly, when S2 is active alone, the voltage drop at point A is Vout = 5 × R2 / (R2 + R5), when S3 is active alone, the voltage drop at point A is Vout = 5 × R3 / (R3 + R5), and when S4 is active alone, the voltage drop at point A is Vout = 5 × R4 / (R4 + R5).
[0052] When two or more DIP switches are active, the parallel resistance must be calculated first before the voltage drop at point A can be calculated. For example, when DIP switches S1 and S2 are active simultaneously, the parallel resistance can be calculated using the formula: 1 / R12 = 1 / R1 + 1 / R2. The parallel resistance R12 = R1 × R2 / (R1 + R2). Then, the voltage at point A can be calculated as 5 × R12 / (R12 + R5). Similarly, the voltage drop at point A, Vout, can be calculated for different combinations.
[0053] First, we take the first resistor R1=100kΩ, the second resistor R2=68kΩ, the third resistor R3=51kΩ, the fourth resistor R4=24kΩ, and the fifth resistor R5=20kΩ as an example for illustration. The voltage drop value Vout at point A is shown in Table 1.
[0054] Table 1
[0055]
[0056] After determining Table 1 above, the voltage values of point A are sorted from largest to smallest as shown in Table 2. The control module MCU outputs the current combination state of the DIP switch unit SW1 based on the real-time monitored detection voltage value output by the switch identification circuit 10 within a certain voltage range. The control module MCU is also used to output the custom gear and custom DIP switch corresponding to the combination state of the DIP switch unit SW1.
[0057] Table 2
[0058]
[0059] It should be noted that the above applies to resistors R1=100kΩ, R2=68kΩ, R3=51kΩ, R4=24kΩ, and R5=20kΩ. This example uses a 12-bit ADC MCU chip powered by a +5V supply. 12 =4096, the minimum AD value V that point A can detect. AD=5 / 4096=0.001220703, calculate the AD value interval = voltage difference of the divider voltage / V AD Since the smallest voltage difference value in Table 2 is 0.077003168V, which is greater than the smallest AD value V... AD The smallest value in the AD value interval is 63, which is relatively large. Therefore, the current resistance is considered to be a better resistance combination, which can be used to detect the combination state of the DIP switch unit SW1.
[0060] In addition, the Excel spreadsheet lists common resistor values from smallest to largest, such as 1kΩ, 2kΩ, 3.3kΩ, 4.7kΩ, 5.1kΩ, 6.8kΩ, 8.2kΩ, 10kΩ, 20kΩ, 24kΩ, 33kΩ, 47kΩ, 51kΩ, 68kΩ, 82kΩ, 100kΩ, 200kΩ, and so on. By manually or automatically changing the values of the first resistor R1, the second resistor R2, the third resistor R3, the fourth resistor R4, and the fifth resistor R5, different voltage division values Vout are obtained at point A. Through Excel calculations or programming, the difference between adjacent voltage division values is automatically calculated, and combinations of resistor values with large differences between two adjacent voltage division values or large intervals between AD values are selected, enabling the MCU to more effectively distinguish different DIP switches.
[0061] In some embodiments, the filter sub-circuit 102 in the switch identification circuit 10 includes: a sixth resistor, for example R6, and a capacitor, for example C, wherein one end of the sixth resistor R6 is connected to the other end of the fifth resistor, and the other end of the sixth resistor R6 is connected to the preset pin PB10 of the control module MCU; one end of the capacitor C is connected to the preset pin PB10 of the control module MCU, and the other end of the capacitor C is grounded.
[0062] In this embodiment, to prevent unstable voltage at point A caused by unstable operation of the +5V power supply voltage, the sixth resistor R6 and capacitor C constitute a simple RC hardware filter circuit. This RC hardware filter circuit utilizes the characteristic of capacitors to pass AC and block DC to filter high-frequency noise in the DIP switch circuit 101, block the high-frequency signal of the voltage divider, and reduce the voltage fluctuation at point A, so as to output a stable detection voltage value to the control module MCU.
[0063] In some embodiments, the control module MCU includes an ES32H0403LQ chip. By integrating the ES32H0403LQ chip, the control module MCU can achieve high-performance data processing, multi-channel signal acquisition, and precise control output within a small PCB size, making it particularly suitable for industrial and consumer-grade smart devices with high requirements for size, power consumption, and reliability.
[0064] The DIP switch circuit 1 of this utility model embodiment can expand the gears and applicable range of some motor drive devices, and provide a variety of combined use scenarios with different priorities.
[0065] According to the DIP switch circuit 1 of this utility model embodiment, a preset pin of the control module MCU is connected to the switch identification circuit 10. That is, one pin of the control module MCU is used to connect to the switch identification circuit 10, and the combination state of the DIP switch unit SW1 is determined based on the detection voltage value received by the control module MCU. By using a preset pin of the control module MCU to receive the detection voltage value, the number of IO pins used by the control module MCU is reduced, the requirement for the number of pins of the control module MCU is reduced, thereby reducing the size requirement of the control module MCU and the complexity of the peripheral circuit, facilitating PCB circuit board wiring, meeting integration requirements, and saving costs.
[0066] The following is combined Figure 2 The motor drive device 2 of this utility model is described in an embodiment.
[0067] like Figure 2 As shown, the motor drive device 2 of this utility model embodiment includes the DIP switch circuit 1 of the above embodiment.
[0068] According to the motor drive device 2 of this utility model embodiment, the preset pin of the control module MCU is connected to the switch identification circuit 10. That is, one pin of the control module MCU is connected to the switch identification circuit 10, and the combination state of the DIP switch unit SW1 is determined based on the detection voltage value received by the control module MCU. By using a preset pin of the control module MCU to receive the detection voltage value, the number of IO pins of the control module MCU is saved, the requirement for the number of pins of the control module MCU is reduced, thereby reducing the size requirement of the control module MCU and the complexity of the peripheral circuit, facilitating PCB circuit board wiring, meeting integration requirements, and saving costs.
[0069] The following is combined Figure 3 The present invention describes an embodiment of the range hood 3.
[0070] like Figure 3 As shown, the range hood 3 of this utility model embodiment includes the motor drive device 2 of the above embodiment.
[0071] According to the range hood 3 of this utility model embodiment, the preset pin of the control module MCU is connected to the switch identification circuit 10. That is, one pin of the control module MCU is connected to the switch identification circuit 10, and the combination state of the DIP switch unit SW1 is determined based on the detection voltage value received by the control module MCU. By using a preset pin of the control module MCU to receive the detection voltage value, the number of IO pins of the control module MCU is saved, the requirement for the number of pins of the control module MCU is reduced, thereby reducing the size requirement of the control module MCU and the complexity of the peripheral circuit, facilitating PCB circuit board wiring, meeting integration requirements, and saving costs.
[0072] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example.
[0073] Although embodiments of the present invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the present invention, the scope of which is defined by the claims and their equivalents.
Claims
1. A DIP switch circuit, characterized in that, include: A switch identification circuit, comprising a DIP switch unit, wherein a first terminal of the switch identification circuit is connected to a power supply voltage and a third terminal is grounded, for outputting the detection voltage value of the DIP switch unit; The control module has a preset pin connected to the second terminal of the switch identification circuit, which is used to receive the detected voltage value and output the combination state of the DIP switch unit.
2. The DIP switch circuit according to claim 1, characterized in that, The switch identification circuit includes: A DIP switch circuit, wherein the first terminal of the DIP switch circuit is connected to the power supply voltage and the third terminal of the DIP switch circuit is grounded, and is used to output a voltage divider value; A filter sub-circuit is provided, wherein the first end of the filter sub-circuit is connected to the second end of the DIP switch sub-circuit, the second end of the filter sub-circuit is connected to the preset pin, and the third end of the filter sub-circuit is grounded, which is used to block the high-frequency signal of the voltage divider value and output the detection voltage value.
3. The DIP switch circuit according to claim 2, characterized in that, The DIP switch sub-circuit includes: The voltage divider unit has a first terminal connected to the power supply voltage, a second terminal connected to the first terminal of the filter sub-circuit and the input pin of the DIP switch unit, a third terminal connected to the output pin of the DIP switch unit, and a fourth terminal grounded for outputting the divided voltage value.
4. The DIP switch circuit according to claim 3, characterized in that, The voltage divider unit includes: A first resistor, one end of which is connected to the output pin of the first switch of the DIP switch unit, and the other end of which is grounded; The second resistor has one end connected to the output pin of the second switch of the DIP switch unit, and the other end grounded. The third resistor has one end connected to the output pin of the third switch of the DIP switch unit, and the other end grounded. The fourth resistor has one end connected to the output pin of the fourth switch of the DIP switch unit, and the other end grounded. The fifth resistor has one end connected to the power supply voltage and the other end connected to the first terminal of the filter sub-circuit and the input pins of the first, second, third, and fourth switches of the DIP switch unit.
5. The DIP switch circuit according to claim 4, characterized in that, The filter sub-circuit includes: A sixth resistor, one end of which is connected to the other end of the fifth resistor, and the other end of which is connected to the preset pin; A capacitor, one end of which is connected to the preset pin, and the other end of which is grounded.
6. The DIP switch circuit according to claim 1, characterized in that, The control module is also used to output the gear position and DIP switch corresponding to the combined state of the DIP switch unit.
7. The DIP switch circuit according to claim 1, characterized in that, The preset pin has a first analog-to-digital conversion function or a second analog-to-digital conversion function.
8. The DIP switch circuit according to claim 1, characterized in that, The control module includes an ES32H0403LQ chip.
9. A motor drive device, characterized in that, include: The DIP switch circuit as described in any one of claims 1-8.
10. A range hood, characterized in that, include: The motor drive device as described in claim 9.