Communication identification circuit based on sliding switch and electronic device
By amplifying, filtering, and shaping the AC voltage signal of the slide switch, and combining it with signal processing by a microcontroller, the problems of traditional slide switches being unable to be remotely controlled and susceptible to interference are solved, thus realizing real-time transmission and highly reliable identification of the slide switch status.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- SHENZHEN LONGOOD INTELLIGENT ELECTRIC
- Filing Date
- 2025-05-27
- Publication Date
- 2026-05-29
AI Technical Summary
Traditional slide switches cannot achieve remote control and intelligent management, and their signals are easily interfered with, making it difficult to transmit switch status information in real time.
By introducing a signal conditioning module, the AC voltage signal input from the sliding switch is amplified, filtered, and shaped. Combined with a microcontroller, the signal is processed and transmitted. The signal is optimized using current limiting, filtering, and signal amplification modules.
It enables remote monitoring and real-time information transmission of the sliding switch status, improves the accuracy and reliability of signal processing, and avoids the effects of electromagnetic interference.
Smart Images

Figure CN224304045U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to a switch identification circuit, specifically a communication identification circuit and electronic device that realizes a sliding switch through AC voltage. Background Technology
[0002] In electronic systems, slide switches, as a fundamental control element, are widely used in various devices and circuits. Slide switches are favored for their ability to switch between multiple states. However, traditional slide switches typically only achieve circuit switching through mechanical contact, making remote control and intelligent management difficult. With the continuous development of automation and intelligent technologies, higher demands are being placed on the communication and identification functions of slide switches. Summary of the Invention
[0003] The purpose of this application is to provide a communication identification circuit and electronic device based on a sliding switch, which has the advantages of being able to transmit switch status information in real time and improving the accuracy and reliability of signal processing.
[0004] This application provides a communication identification circuit based on a sliding switch, the technical solution of which is as follows:
[0005] A communication identification circuit based on a sliding switch includes a sliding switch module, a signal conditioning module, and a microcontroller. The microcontroller integrates a communication module. The input terminal of the sliding switch module is connected to AC power, and the output terminal of the sliding switch module is connected to the signal conditioning module. The signal conditioning module is connected to the microcontroller. The microcontroller and the signal conditioning module are used to amplify, filter, and shape the AC voltage signal input to the sliding switch module. The microcontroller is used to process the received voltage signal and send the switch status information outward.
[0006] Furthermore, the signal conditioning module includes a current limiting module, a filtering module, and a signal amplification module that are interconnected.
[0007] Furthermore, the signal conditioning module includes resistors RH1, RH2, and RH4, capacitors C29 and C32, and transistor Q20. Resistors RH1 and RH2 are connected in parallel, and resistor RH1 is connected to the AC voltage. Resistor RH2 is connected to capacitors C29 and C32. The base of transistor Q20 is connected to capacitor C32. The collector of transistor Q20 is connected to the input power supply, and the emitter of transistor Q20 is connected to the output interface. The output interface is connected to the microcontroller. Resistors RH1 and RH2 form a current limiting module, capacitor C29 forms a filtering module, and transistor Q20 forms a signal amplification module.
[0008] Furthermore, a resistor RL1 is connected in parallel across the two ends of the capacitor C29.
[0009] Furthermore, a voltage divider module is provided between the resistor RH4 and the capacitor C32.
[0010] Furthermore, the voltage divider module consists of resistors RH3 and RL2 connected in series, with resistor RH3 connected to the input power supply and resistor RL2 grounded.
[0011] Furthermore, the emitter of the transistor Q20 is connected to a resistor R27, and a capacitor C15 is connected in parallel across the resistor R27.
[0012] Furthermore, the emitter is connected to the output interface via resistor R21, and the output interface is connected to capacitor C33.
[0013] Furthermore, the sliding switch module includes a fuse F1, an input diode, an output diode, and a switch SW. The switch SW has at least two contact terminals at different positions. The fuse F1 is connected to AC power. One end of the input diode is connected to the fuse F1, and the other end of the input diode is connected to the switch SW. The switch SW is connected to one end of the output diode, and the other end of the output diode is connected to the signal conditioning module.
[0014] This utility model also proposes an electronic device that uses the above-mentioned communication identification circuit based on a sliding switch, including a sliding switch module, a signal conditioning module, a microcontroller, and a host computer. The input terminal of the sliding switch module is connected to AC power, the output terminal of the sliding switch module is connected to the signal conditioning module, the signal conditioning module is connected to the microcontroller, and the microcontroller is connected to the host computer.
[0015] This utility model has the following beneficial technical effects:
[0016] The AC voltage signal input from the sliding switch is amplified, filtered, and shaped by the signal conditioning module. Combined with the microcontroller, the switch status information is sent out. This solves the problems of traditional sliding switches being unable to remotely transmit status information and being susceptible to signal interference. It has the advantages of being able to transmit switch status information in real time and improving the accuracy and reliability of signal processing. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the electronic device frame in the circuit of this utility model;
[0018] Figure 2 This is a schematic diagram of the circuit principle of the sliding switch module of this utility model;
[0019] Figure 3 This is a schematic diagram of the circuit principle of the signal conditioning module in this utility model;
[0020] Figure 4 This is a schematic diagram of the signal waveform detected by this utility model. Detailed Implementation
[0021] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0022] In the description of this invention, it should be understood that if terms such as "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," and "counterclockwise" are used to indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, they are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0023] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "joining" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection. They can refer to a mechanical connection or an electrical connection. They can refer to a direct connection or an indirect connection through an intermediate medium, and they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in this invention can be understood according to the specific circumstances.
[0024] Example 1
[0025] To address these issues, researchers discovered that when traditional slide switches are directly connected to AC power, contact switching causes voltage fluctuations. The key breakthrough lies in converting the mechanical action into a recognizable electrical signal. Experiments verified that introducing AC power into the slide switch circuit can generate a characteristic signal, but signal attenuation and interference problems need to be solved. Therefore, a solution is proposed that the original signal is conditioned and processed, and then combined with a microcontroller for signal analysis and communication transmission.
[0026] refer to Figure 1As shown, a communication identification circuit based on a sliding switch includes a sliding switch module, a signal conditioning module, and a microcontroller communication identification circuit. The input terminal of the sliding switch module is connected to AC power, and the output terminal is sequentially connected to the signal conditioning module and the microcontroller. The signal conditioning module amplifies, filters, and shapes the AC voltage signal, and the microcontroller processes the voltage signal and sends the switch status information through the integrated communication module.
[0027] The sliding switch module refers to a mechanical switching component that enables multi-position switching. Specifically, it can be implemented using a combination structure with a fuse and a rectifier diode. The fuse provides overcurrent protection, and the diode eliminates reverse voltage interference. The signal conditioning module is the signal processing unit, which can be implemented using voltage division and current limiting, filtering, and signal amplification to convert weak AC signals into standard level signals. The microcontroller is an embedded processing unit, which can be implemented using an MCU chip with an integrated ADC and wireless communication interface. It is used for signal sampling and processing, as well as status information transmission, and then outputting the processed signal externally.
[0028] Specifically, when the sliding switch module switches positions, the AC circuit generates a specific voltage waveform. This signal, after being current-limited and protected, enters a filtering unit to eliminate high-frequency interference, and is then amplified by a transistor to form a standard square wave. The microcontroller samples and analyzes the processed signal, determining the switch contact position based on the waveform characteristics. The determination result is converted into a digital signal via the built-in communication module and transmitted to the host computer system wirelessly or via wired connection. Figure 4 Detect waveform.
[0029] Compared to existing technologies, traditional solutions require independent state detection sensors and signal conversion circuits, resulting in complex structures and high costs. This solution directly utilizes the inherent electrical characteristics of the sliding switch module, identifying states by using AC voltage phase differences and optimizing the signal conditioning circuit. While maintaining the simple structure of mechanical switches, it achieves digital conversion of electrical signals.
[0030] Through the above technical solution, this application realizes the remote monitoring function of the sliding switch status, and can complete the status information acquisition without changing the traditional mechanical structure. In industrial control scenarios, operators can obtain the position information of the sliding switch module in real time through a host computer, avoiding the efficiency loss and safety risks caused by manual inspection. The signal conditioning circuit effectively suppresses the impact of electromagnetic interference on the detection accuracy, ensuring the reliability of status recognition.
[0031] Example 2
[0032] refer to Figure 2 and 3 As shown, the signal conditioning module includes a current limiting module, a filtering module, and a signal amplification module that are interconnected.
[0033] The current limiting module is a circuit unit used to limit the amplitude of the input current. It can be implemented using a parallel resistor network. By adjusting the resistance value, the operating current range of the signal conditioning module input is controlled to avoid overload and damage to the device.
[0034] A filtering module is a circuit unit used to filter out high-frequency noise in AC voltage signals. Specifically, it can be implemented by grounding a capacitor. By setting the capacitance value parameter to match the interference signal in the target frequency band, the signal-to-noise ratio can be improved.
[0035] A signal amplification module is a circuit unit used to enhance the amplitude of a voltage signal. Specifically, it can be implemented using a transistor amplifier circuit. By configuring the operating point of the transistor, the output signal can meet the level detection requirements of the microcontroller.
[0036] Specifically, the AC voltage signal output by the slide switch module first undergoes current amplitude constraint by a current limiting module, then enters a filtering module to filter out high-frequency interference components, and finally, after signal amplification, the processed signal amplitude is adjusted to a recognizable range, forming a stable DC level signal that is transmitted to the microcontroller. These three modules are cascaded to achieve step-by-step signal processing, ensuring that the microcontroller can accurately identify the position state of the slide switch.
[0037] Compared to existing technologies, traditional signal conditioning circuits typically employ single filtering or simple voltage divider structures, which cannot effectively suppress current surges and high-frequency interference, resulting in a high signal misinterpretation rate. This solution systematically integrates current limiting, filtering, and amplification functions through modular design, achieving multiple protections and signal optimization while maintaining a simple circuit structure.
[0038] This application can effectively suppress transient current fluctuations and electromagnetic interference in AC voltage signals, ensuring the stability of the output level of the signal conditioning module, thereby improving the reliability and accuracy of sliding switch status detection.
[0039] The signal conditioning module includes resistors RH1, RH2, and RH4, capacitors C29 and C32, and transistor Q20. Resistors RH1 and RH2 are connected in parallel, and resistor RH1 is connected to the AC voltage. Resistor RH2 is connected to capacitors C29 and C32. The base of transistor Q20 is connected to capacitor C32. The collector of transistor Q20 is connected to the input power supply, and the emitter of transistor Q20 is connected to the output interface, which is connected to the microcontroller. Resistors RH1 and RH2 form a current limiting module, capacitor C29 forms a filtering module, and transistor Q20 forms a signal amplification module.
[0040] The parallel connection of resistors RH1 and RH2 forms a current-limiting module. This can be achieved using combinations of resistors with different values. Adjusting the parallel resistance controls the input signal current range, preventing overcurrent damage to subsequent circuits. Capacitor C29 forms a filtering module, utilizing the charging and discharging characteristics of capacitors to filter out high-frequency noise. This can be implemented using electrolytic or ceramic capacitors, thereby smoothing the signal waveform and suppressing interference. Transistor Q20 forms a signal amplification module, using the current amplification effect of the transistor to increase the amplitude of the conditioned signal. This can be implemented using bipolar transistors or field-effect transistors, enabling the microcontroller to accurately identify signal level changes.
[0041] A resistor RL1 can be connected in parallel across capacitor C29 to provide a discharge path for C29, preventing voltage drift caused by charge accumulation and adjusting the cutoff frequency characteristics of the filter module. After the AC voltage signal is processed by the current limiting module, it enters the filter module composed of capacitor C29 for high-frequency noise suppression. Since residual charge may cause signal baseline shift during the charging and discharging process, connecting resistor RL1 in parallel across capacitor C29 allows excess charge stored in the capacitor to be quickly released through the resistor, maintaining the stability of the signal voltage. For example, when the sliding switch changes state, the sudden change component of the AC voltage signal forms a discharge path through resistor RL1, preventing voltage sudden changes across the capacitor from causing distortion of the output waveform of the signal conditioning module.
[0042] The AC voltage signal, after being current-limited by resistors RH1 and RH2 connected in parallel, enters a filter module composed of capacitor C29 to filter out high-frequency noise. The signal is then coupled to the base of transistor Q20 through capacitor C32. The collector of transistor Q20 is connected to the input power supply to provide the operating voltage, and the amplified signal output from the emitter is transmitted to the microcontroller through the output interface. Through this staged processing of current limiting, filtering, and amplification, the signal conditioning module can convert the AC signal from the sliding switch into a stable digital signal that can be recognized by the microcontroller.
[0043] Compared to existing technologies, traditional sliding switch conditioning circuits typically employ single filtering or simple voltage divider designs, resulting in signal distortion or noise interference. This solution limits the input current using a current-limiting module, suppresses high-frequency interference using a filtering module, and amplifies the signal amplitude using transistors, forming a modular conditioning link. This significantly improves signal transmission stability and anti-interference capabilities, providing a reliable signal foundation for remote status identification.
[0044] A voltage divider module is provided between the resistor RH4 and the capacitor C32. The voltage divider module consists of a resistor RH3 and a resistor RL2 connected in series. The resistor RH3 is connected to the input power supply, and the resistor RL2 is grounded.
[0045] Resistor RH3 refers to the pull-up resistor in the voltage divider circuit. It can be implemented using a fixed resistance value or a variable resistor and is used to connect to the power supply terminal to form a voltage divider reference point.
[0046] Resistor RL2 refers to the pull-down resistor in the voltage divider circuit. It can be implemented with a fixed resistance value or a variable resistor. It forms a voltage divider loop through grounding to ensure the stability of the voltage divider output.
[0047] Specifically, when the input power supply voltage signal passes through the series voltage divider network consisting of resistors RH3 and RL2, the output of the voltage divider module generates a reduced signal proportional to the input voltage. For example, the resistance ratio of resistors RH3 and RL2 determines the specific voltage value of the output voltage, which is then transmitted to the subsequent signal conditioning module for processing. By connecting resistor RH3 to the input power supply and grounding resistor RL2, the voltage divider module can effectively suppress interference caused by voltage fluctuations during signal conditioning, while preventing the signal amplitude from exceeding the input range of the microcontroller.
[0048] By using a simple series resistor structure, the circuit complexity is reduced while ensuring voltage division accuracy, and the range of resistor values can be more flexible to adapt to input signals of different voltage levels.
[0049] The emitter of the transistor Q20 is connected to a resistor R27, and a capacitor C15 is connected in parallel across the two ends of the resistor R27.
[0050] In this context, resistor R27 is a current-limiting element connected between the transistor's emitter and output interface. It can be implemented using a fixed-value metal film resistor and is used to limit the emitter output current and adjust the signal amplitude. Capacitor C15 is a filter element connected in parallel across resistor R27. It can be implemented using a ceramic capacitor or an electrolytic capacitor and is used to absorb high-frequency noise and suppress signal oscillations.
[0051] Specifically, a resistor R27 is placed at the emitter output of transistor Q20 to perform impedance matching on the amplified voltage signal, preventing waveform distortion caused by impedance mismatch during signal transmission. Resistor R27 and capacitor C15 form an RC filter structure, further eliminating high-frequency interference generated within the signal conditioning module. For example, when transistor Q20 is turned on, capacitor C15 can quickly absorb transient voltage spikes in the emitter circuit, preventing accidental triggering of the microcontroller's input port. Thus, the amplified and filtered switching state signal maintains a stable DC level characteristic, facilitating accurate identification by the microcontroller.
[0052] It can significantly reduce the noise of the switch status signal output by the signal conditioning module, avoiding misjudgments caused by signal jitter in the microcontroller, thereby improving the reliability of the slider switch status recognition. Especially in environments with electromagnetic interference, the filtering effect of capacitor C15 on high-frequency noise ensures that the communication module can stably transmit accurate switch position information.
[0053] The emitter is connected to the output interface via resistor R21, and the output interface is connected to capacitor C33. Resistor R21 is a current-limiting element connecting the transistor emitter and the output interface; it can be implemented using a metal film resistor or a carbon film resistor. It limits the current at the transistor output terminal to prevent interface damage due to sudden current changes during signal transmission. Capacitor C33 is a filter element connected in parallel between the output interface and ground; it can be implemented using a ceramic capacitor or an electrolytic capacitor. It filters out high-frequency noise interference and stabilizes the DC component of the output signal.
[0054] Specifically, when transistor Q20 is in the ON state, the voltage signal output from its emitter is transmitted to the output interface through resistor R21. At this time, capacitor C33 absorbs high-frequency noise in the signal through its charging and discharging action, such as transient voltage spikes generated during switching, making the signal waveform transmitted from the output interface to the microcontroller smoother. The resistance value of resistor R21 can be adjusted according to the circuit load requirements; for example, a resistor with a resistance value of 1kΩ to 10kΩ can be selected to ensure effective signal transmission while limiting current peaks.
[0055] By introducing a combination of resistor R21 and capacitor C33, current limiting and filtering functions are simultaneously achieved in the signal transmission path.
[0056] It effectively suppresses high-frequency noise interference during signal transmission, reduces the error rate of the microcontroller in identifying the switch state, and at the same time, it prevents the output interface from being damaged due to excessive instantaneous current through current limiting protection, thereby improving the reliability of the circuit operation.
[0057] The sliding switch module includes a fuse F1, an input diode, an output diode, and a switch SW. The switch SW has at least two contact terminals at different positions. The fuse F1 is connected to AC power. One end of the input diode is connected to the fuse F1, and the other end of the input diode is connected to the switch SW. The switch SW is connected to one end of the output diode, and the other end of the output diode is connected to the signal conditioning module.
[0058] Fuse F1 refers to a circuit element used for overcurrent protection. Specifically, it can be implemented using a fusible fuse, which is connected in series in the AC input path and can cut off the circuit when the current is abnormal, preventing equipment damage.
[0059] In this embodiment, the switch SW has four different positions. The input diodes include diodes D1 and D2, and the output diodes include diodes D3, D4, D5, and D6. The switch SW has pins 1, 2, 3, 4, 5, 6, 7, and 8. Pins 2 and 7 are connected, and pins 3 and 6 are connected. The anode of diode D1 is connected to the cathode of diode D2, the cathode of diode D1 is connected to pin 2, the anode of diode D2 is connected to pin 3, pin 8 is connected to the anode of diode D3, pin 7 is connected to the cathode of diode D4, pin 6 is connected to the anode of diode D5, and pin 5 is connected to the cathode of diode D6. The cathodes of diodes D3, D4, D5, and D6 are interconnected. By utilizing the unidirectional conductivity of the diodes, the voltage signal can be effectively transmitted.
[0060] An input diode is a semiconductor device used to limit the direction of current. It can be implemented using a rectifier diode. Its anode is connected to a fuse F1 and its cathode is connected to a switch SW. It is used to convert AC signals into unidirectional pulsating signals.
[0061] Output diodes are semiconductor devices used for isolation and signal transmission. They can be implemented using switching diodes, with their anodes connected to the contacts of switch SW and their cathodes connected to the signal conditioning module to transmit the level signal corresponding to the switch state.
[0062] A switch SW refers to a mechanical switch with a multi-position switching function. Specifically, it can be implemented using a multi-contact slide switch. When its contact end is in different positions, it conducts the corresponding circuit branch, thereby generating electrical signals of different states.
[0063] Specifically, fuse F1 is directly connected to the AC power supply and melts to protect downstream components in the event of an overload or short circuit. The input diode performs half-wave rectification of the AC voltage, generating a unidirectional pulsating signal that is transmitted to switch SW. The contacts of switch SW change position with the sliding contact, selecting the corresponding circuit branch to conduct at different settings. The output diode transmits the switched signal to the signal conditioning module for further processing. Through its multi-contact design, switch SW can generate various level signals, facilitating microcontroller identification of different settings.
[0064] A switch SW can turn a circuit on and off, thereby controlling the circuit's operating state, determining whether current can pass through the relevant branches, and thus outputting different voltage signals.
[0065] Example 3
[0066] refer to Figure 1As shown, an electronic device using a communication identification circuit based on a slide switch includes a slide switch module, a signal conditioning module, a microcontroller, and a host computer. The input terminal of the slide switch module is connected to AC power, the output terminal of the slide switch module is connected to the signal conditioning module, the signal conditioning module is connected to the microcontroller, and the microcontroller is connected to the host computer.
[0067] The sliding switch module is a circuit control unit that achieves multi-state switching through mechanical sliding contacts. It can be implemented using a combination of a fuse and a rectifier diode, converting AC signals into recognizable DC signals for transmission to subsequent processing modules. The signal conditioning module amplifies and filters the input signal, typically using a transistor amplifier circuit combined with an RC filter network. This eliminates noise and increases the signal amplitude for microcontroller recognition. The microcontroller is an embedded processor with integrated communication functions, implemented using a chip with a serial or wireless communication interface. It converts the switch state into a digital signal and transmits it to a host computer. The host computer is a remote data monitoring terminal, typically an industrial computer or cloud server, used to receive and process switch state information and generate control commands.
[0068] Specifically, after receiving an AC signal, the sliding switch module rectifies and divides it internally to form a stable DC signal. This signal is then amplified and filtered by the signal conditioning module to form a standard level signal. The microcontroller samples this level signal periodically to determine the current contact position of the sliding switch and uploads the status data to the host computer in real time via the communication interface. The host computer executes corresponding device control strategies based on the received status information, such as triggering alarms, adjusting device operating modes, or recording operation logs.
[0069] Through the above technical solution, this application realizes remote acquisition and intelligent management of sliding switch status data, enabling equipment control to move beyond the physical operation level. Operators can view the status of multiple sliding switches in real time through a host computer interface and quickly locate faults in abnormal situations, effectively improving the maintainability and control flexibility of electronic equipment systems.
[0070] It should be noted that the above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. However, any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A communication identification circuit based on a slide switch, characterized in that, It includes a sliding switch module, a signal conditioning module, and a microcontroller. The microcontroller integrates a communication module. The input terminal of the sliding switch module is connected to AC power, and the output terminal of the sliding switch module is connected to the signal conditioning module. The signal conditioning module is connected to the microcontroller. The microcontroller and the signal conditioning module are used to amplify, filter, and shape the AC voltage signal input to the sliding switch module. The microcontroller is used to process the received voltage signal and send the switch status information outward.
2. The communication identification circuit based on a sliding switch according to claim 1, characterized in that, The signal conditioning module includes a current limiting module, a filtering module, and a signal amplification module that are interconnected.
3. The communication identification circuit based on a sliding switch according to claim 2, characterized in that, The signal conditioning module includes resistors RH1, RH2, and RH4, capacitors C29 and C32, and transistor Q20. Resistors RH1 and RH2 are connected in parallel, and resistor RH1 is connected to the AC voltage. Resistor RH2 is connected to capacitors C29 and C32. The base of transistor Q20 is connected to capacitor C32. The collector of transistor Q20 is connected to the input power supply, and the emitter of transistor Q20 is connected to the output interface, which is connected to the microcontroller. Resistors RH1 and RH2 form a current limiting module, capacitor C29 forms a filtering module, and transistor Q20 forms a signal amplification module.
4. The communication identification circuit based on a sliding switch according to claim 3, characterized in that, A resistor RL1 is connected in parallel across the two ends of the capacitor C29.
5. The communication identification circuit based on a sliding switch according to claim 4, characterized in that, A voltage divider module is provided between the resistor RH4 and the capacitor C32.
6. The communication identification circuit based on a sliding switch according to claim 5, characterized in that, The voltage divider module consists of resistors RH3 and RL2 connected in series. Resistor RH3 is connected to the input power supply, and resistor RL2 is grounded.
7. The communication identification circuit based on a sliding switch according to claim 6, characterized in that, The emitter of the transistor Q20 is connected to a resistor R27, and a capacitor C15 is connected in parallel across the two ends of the resistor R27.
8. The communication identification circuit based on a sliding switch according to claim 7, characterized in that, The emitter is connected to the output interface via resistor R21, and the output interface is connected to capacitor C33.
9. The communication identification circuit based on a sliding switch according to claim 1, characterized in that, The sliding switch module includes a fuse F1, an input diode, an output diode, and a switch SW. The switch SW has at least two contact terminals at different positions. The fuse F1 is connected to AC power. One end of the input diode is connected to the fuse F1, and the other end of the input diode is connected to the switch SW. The switch SW is connected to one end of the output diode, and the other end of the output diode is connected to the signal conditioning module.
10. An electronic device employing the communication identification circuit based on a slide switch according to any one of claims 1-9, characterized in that, It includes a slide switch module, a signal conditioning module, a microcontroller, and a host computer. The input terminal of the slide switch module is connected to AC power, the output terminal of the slide switch module is connected to the signal conditioning module, the signal conditioning module is connected to the microcontroller, and the microcontroller is connected to the host computer.