An electronic switching circuit

By combining the microcontroller main control circuit with the USB to serial port circuit and the USB four-channel output circuit, four-channel switch control is achieved using field-effect transistors, which solves the problems of complexity and high cost of traditional electronic switch circuits and realizes a simple structure and low cost switch control.

CN224319344UActive Publication Date: 2026-06-02BEIHAI BROADCASTING TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
BEIHAI BROADCASTING TECHNOLOGY CO LTD
Filing Date
2025-07-24
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

Traditional electronic switch circuits are complex and costly, especially multi-channel switch control, which occupies a large space.

Method used

The circuit employs a microcontroller main control circuit, a USB-to-serial port circuit, and a USB four-channel output circuit. By connecting the microcontroller main control circuit with the USB-to-serial port circuit and the USB four-channel output circuit, four-channel switch control is achieved. The circuit uses field-effect transistors to realize a simple structure and low cost.

Benefits of technology

It achieves four-channel switch control, with a simple circuit structure, low cost, and overcurrent, overvoltage and short-circuit protection functions, making the control safe and efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224319344U_ABST
    Figure CN224319344U_ABST
Patent Text Reader

Abstract

This utility model relates to the field of switching circuit technology and discloses an electronic switching circuit, including a microcontroller main control circuit, a USB-to-serial port circuit, and a USB four-channel output circuit. The transmitting terminal TXD and receiving terminal RXD of the microcontroller main control circuit are respectively connected to the USB-to-serial port circuit. The four output channels of the microcontroller main control circuit are respectively connected to the input terminals of USB channel one output circuit, USB channel two output circuit, USB channel three output circuit, and USB channel four output circuit of the USB four-channel output circuit. This utility model realizes four-channel switching control, with a simple circuit structure and low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of switching circuit technology, specifically to an electronic switching circuit. Background Technology

[0002] Currently, electronic switches are widely used in various switching circuits to control the connection or disconnection of power. Traditional electronic switch tubes and electronic switching circuits are relatively complex, especially for multi-channel switching control. They are usually expensive and occupy a lot of space, so there is still room for improvement. Utility Model Content

[0003] The purpose of this invention is to address the above-mentioned problems by providing an electronic switch circuit that enables four-channel switch control. The circuit has a simple structure and low cost.

[0004] To achieve the above objectives, the technical solution adopted by this utility model is as follows: an electronic switch circuit, including a microcontroller main control circuit, a USB to serial port circuit, and a USB four-channel output circuit. The transmitting end TXD and receiving end RXD of the microcontroller main control circuit are respectively connected to the USB to serial port circuit. The four output channels of the microcontroller main control circuit are respectively connected to the input ends of the USB channel one output circuit, USB channel two output circuit, USB channel three output circuit, and USB channel four output circuit of the USB four-channel output circuit.

[0005] Furthermore, the microcontroller main control circuit includes a microcontroller U2, a capacitor C17, and a 3-pin connector J6. Pins P3.1 and P3.0 of the microcontroller U2 are the transmitting end TXD and the receiving end RXD, respectively. Pins P3.2, P3.3, P3.4, and P3.5 of the microcontroller U2 are four-channel output terminals. The VCC pin of the microcontroller U2 is grounded through capacitor C17, and the GND pin of the microcontroller U2 is grounded. Pins 1 and 2 of the 3-pin connector J6 are connected to pins P3.1 and P3.0 of the microcontroller U2, respectively, and pin 3 of the 3-pin connector J6 is grounded.

[0006] Furthermore, the USB-to-serial circuit includes a CH340G chip, resistors R9 and R10, crystal oscillator Y2, capacitors C7, C8, C9, C16, and C56, and a USB interface J1. The transmitting end TXD and receiving end RXD of the CH340G chip are connected to pins P3.0 and P3.1 of the microcontroller U2, respectively. The UD+ and UD- ends of the CH340G chip are connected to the MP and DP ends of the USB interface J1, respectively. The XI end of the CH340G chip is connected to its X0 end through a parallel connection of crystal oscillator Y2 and resistor R9. The XI and X0 ends of the CH340G chip are grounded through capacitors C8 and C7, respectively. The V3 end of the CH340G chip is grounded through capacitor C9. The VCC end of the CH340G chip is grounded through capacitor C56, and the VCC end of the CH340G chip is grounded through resistor R10 and capacitor C16.

[0007] Furthermore, the USB channel one output circuit includes resistor R1, resistor R2, field-effect transistor Q1, and USB1 output interface. One end of resistor R2 is electrically connected to the P3.2 terminal of the microcontroller U2, and the other end is connected to one end of resistor R1. The other end of resistor R1 is connected to the source of field-effect transistor Q1. The gate of field-effect transistor Q1 is connected to the connection between resistor R1 and resistor R2. The drain of field-effect transistor Q1 is connected to the VCC terminal of USB1 output interface.

[0008] The USB channel output circuit includes resistor R3, resistor R4, field-effect transistor Q2, and USB2 output interface. One end of resistor R4 is electrically connected to the P3.3 terminal of the microcontroller U2, and the other end is connected to one end of resistor R3. The other end of resistor R3 is connected to the source of field-effect transistor Q2. The gate of field-effect transistor Q2 is connected to the junction of resistor R3 and resistor R4. The drain of field-effect transistor Q2 is connected to the VCC terminal of USB2 output interface.

[0009] The USB channel output circuit includes resistor R5, resistor R6, field-effect transistor Q3, and USB3 output interface. One end of resistor R6 is electrically connected to the P3.4 terminal of the microcontroller U2, and the other end is connected to one end of resistor R5. The other end of resistor R5 is connected to the source of field-effect transistor Q3. The gate of field-effect transistor Q3 is connected to the junction of resistor R5 and resistor R6. The drain of field-effect transistor Q3 is connected to the VCC terminal of USB3 output interface.

[0010] The USB channel output circuit includes resistor R7, resistor R8, field-effect transistor Q4, and USB4 output interface. One end of resistor R8 is electrically connected to the P3.5 terminal of the microcontroller U2, and the other end is connected to one end of resistor R7. The other end of resistor R7 is connected to the source of field-effect transistor Q4. The gate of field-effect transistor Q4 is connected to the junction of resistor R7 and resistor R8. The drain of field-effect transistor Q4 is connected to the VCC terminal of USB4 output interface.

[0011] The GND terminals of the USB1, USB2, USB3, and USB4 output interfaces are all grounded.

[0012] By adopting the above technical solution, this utility model has the following beneficial effects:

[0013] This invention enables four-channel switching control, with a simple circuit structure, easy operation, and low cost. Attached Figure Description

[0014] Figure 1 This is a schematic diagram of the module connection structure of an electronic switch circuit according to the present invention;

[0015] Figure 2 This is a circuit diagram of the microcontroller main control circuit of this utility model;

[0016] Figure 3 This is a circuit diagram of the USB to serial port circuit of this utility model;

[0017] Figure 4 This is a circuit diagram of the USB four-channel output circuit of this utility model;

[0018] In the diagram: 1-Microcontroller main control circuit, 2-USB to serial port circuit, 3-USB four-channel output circuit. Detailed Implementation

[0019] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the present invention pertains. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the present invention. The terms "first," "second," etc., in the specification, claims, and accompanying drawings of the present invention are used to distinguish different objects and not to describe a particular order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.

[0020] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the present invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0021] like Figure 1 As shown in the figure, an electronic switch circuit includes a microcontroller main control circuit 1, a USB to serial port circuit 2, and a USB four-channel output circuit 3. The transmitting end TXD and the receiving end RXD of the microcontroller main control circuit 1 are respectively connected to the USB to serial port circuit 2. The four output channels of the microcontroller main control circuit 1 are respectively connected to the input ends of the USB channel one output circuit, USB channel two output circuit, USB channel three output circuit, and USB channel four output circuit of the USB four-channel output circuit 3.

[0022] like Figure 2As shown in the figure, the microcontroller main control circuit 1 includes a microcontroller U2, a capacitor C17, and a 3-pin connector J6. The microcontroller U2 is model STC8GIA08A-SOP8. Pins P3.1 and P3.0 of the microcontroller U2 are the transmitting end TXD and the receiving end RXD, respectively. Pins P3.2, P3.3, P3.4, and P3.5 of the microcontroller U2 are the four-channel output terminals. The VCC pin of the microcontroller U2 is grounded through capacitor C17, and the GND pin of the microcontroller U2 is grounded. Pins 1 and 2 of the 3-pin connector J6 are connected to pins P3.1 and P3.0 of the microcontroller U2, respectively, and pin 3 of the 3-pin connector J6 is grounded. The 3-pin connector is used for data download and transmission.

[0023] like Figure 3 As shown in the figure, the USB-to-serial circuit 2 includes a CH340G chip, resistors R9 and R10, crystal oscillator Y2, capacitors C7, C8, C9, C16, and C56, and a USB interface J1. The transmitting end TXD and receiving end RXD of the CH340G chip are connected to pins P3.0 and P3.1 of the microcontroller U2, respectively. The UD+ and UD- ends of the CH340G chip are connected to the MP and DP ends of the USB interface J1, respectively. The XI end of the CH340G chip is connected to its X0 end through a parallel connection of crystal oscillator Y2 and resistor R9. The XI and X0 ends of the CH340G chip are grounded through capacitors C8 and C7, respectively. The V3 end of the CH340G chip is grounded through capacitor C9. The VCC end of the CH340G chip is grounded through capacitor C56, and the VCC end of the CH340G chip is grounded through resistor R10 and capacitor C16. USB to serial port circuit 2 can convert the computer's USB interface into a serial communication interface, enabling connection and data exchange with devices such as microcontrollers and PLCs.

[0024] like Figure 4 As shown in the figure, the USB channel 1 output circuit includes resistor R1, resistor R2, field-effect transistor Q1, and USB1 output interface. One end of resistor R2 is electrically connected to the P3.2 terminal of microcontroller U2, and the other end is connected to one end of resistor R1. The other end of resistor R1 is connected to the source of field-effect transistor Q1. The gate of field-effect transistor Q1 is connected to the connection between resistor R1 and resistor R2. The drain of field-effect transistor Q1 is connected to the VCC terminal of USB1 output interface.

[0025] The USB channel output circuit includes resistor R3, resistor R4, field-effect transistor Q2, and USB2 output interface. One end of resistor R4 is electrically connected to the P3.3 terminal of the microcontroller U2, and the other end is connected to one end of resistor R3. The other end of resistor R3 is connected to the source of field-effect transistor Q2. The gate of field-effect transistor Q2 is connected to the junction of resistor R3 and resistor R4. The drain of field-effect transistor Q2 is connected to the VCC terminal of USB2 output interface.

[0026] The USB channel output circuit includes resistor R5, resistor R6, MOSFET Q3, and USB3 output interface. One end of resistor R6 is electrically connected to P3.4 of microcontroller U2, and the other end is connected to one end of resistor R5. The other end of resistor R5 is connected to the source of MOSFET Q3. The gate of MOSFET Q3 is connected to the junction of resistor R5 and resistor R6. The drain of MOSFET Q3 is connected to the VCC terminal of USB3 output interface.

[0027] The USB channel output circuit includes resistor R7, resistor R8, field-effect transistor Q4, and USB4 output interface. One end of resistor R8 is electrically connected to the P3.5 terminal of the microcontroller U2, and the other end is connected to one end of resistor R7. The other end of resistor R7 is connected to the source of field-effect transistor Q4. The gate of field-effect transistor Q4 is connected to the junction of resistor R7 and resistor R8. The drain of field-effect transistor Q4 is connected to the VCC terminal of USB4 output interface.

[0028] The GND terminals of USB1, USB2, USB3, and USB4 output ports are all grounded. These are all power-only USB ports.

[0029] Among them, resistors R1, R2, R3, R4, R5, R6, R7, and R8 all use 0603 1K (1001) 1%. Resistors R9 and R10 use R0603.

[0030] This invention utilizes a USB-to-serial circuit 2 to achieve connection and data exchange with devices such as microcontrollers and PLCs. After receiving instructions from the computer, the microcontroller U2 controls Q1, Q2, Q3, and Q4 in the four-channel output circuit to be in the conducting state, controlling the power supply of the four channels (USB1, USB2, USB3, and USB4) to control the on / off state of the four channels. The circuit structure is simple and low-cost. The entire circuit design can realize overcurrent, overvoltage, and short-circuit protection, and the switching control is safe and efficient.

[0031] The present invention has been described in detail above. However, modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, any modifications or improvements that do not depart from the spirit of the present invention are within the protection scope of the present invention.

Claims

1. An electronic switching circuit, characterized in that, It includes a microcontroller main control circuit, a USB to serial port circuit, and a USB four-channel output circuit. The transmitting end TXD and receiving end RXD of the microcontroller main control circuit are respectively connected to the USB to serial port circuit, and the four output channels of the microcontroller main control circuit are respectively connected to the input ends of the USB channel one output circuit, USB channel two output circuit, USB channel three output circuit and USB channel four output circuit of the USB four-channel output circuit.

2. The electronic switching circuit according to claim 1, characterized in that, The microcontroller main control circuit includes a microcontroller U2, a capacitor C17, and a 3-pin connector J6. Pins P3.1 and P3.0 of the microcontroller U2 are the transmitting end (TXD) and the receiving end (RXD), respectively. Pins P3.2, P3.3, P3.4, and P3.5 of the microcontroller U2 are four-channel output terminals. The VCC pin of the microcontroller U2 is grounded through capacitor C17, and the GND pin of the microcontroller U2 is grounded. Pins 1 and 2 of the 3-pin connector J6 are connected to pins P3.1 and P3.0 of the microcontroller U2, respectively, and pin 3 of the 3-pin connector J6 is grounded.

3. The electronic switch circuit according to claim 2, characterized in that, The USB-to-serial circuit includes a CH340G chip, resistors R9 and R10, crystal oscillator Y2, capacitors C7, C8, C9, C16, and C56, and a USB interface J1. The CH340G chip's transmitting end TXD and receiving end RXD are connected to pins P3.0 and P3.1 of the microcontroller U2, respectively. The CH340G chip's UD+ and UD- ends are connected to the MP and DP ends of the USB interface J1, respectively. The CH340G chip's XI end is connected to its X0 end via a parallel connection of crystal oscillator Y2 and resistor R9. The CH340G chip's XI and X0 ends are grounded via capacitors C8 and C7, respectively. The CH340G chip's V3 end is grounded via capacitor C9. The CH340G chip's VCC end is grounded via capacitor C56, and the CH340G chip's VCC end is grounded via resistor R10 and capacitor C16.

4. An electronic switch circuit according to claim 2, characterized in that, The USB channel output circuit includes resistor R1, resistor R2, field-effect transistor Q1, and USB1 output interface. One end of resistor R2 is electrically connected to the P3.2 terminal of the microcontroller U2, and the other end is connected to one end of resistor R1. The other end of resistor R1 is connected to the source of field-effect transistor Q1. The gate of field-effect transistor Q1 is connected to the junction of resistor R1 and resistor R2. The drain of field-effect transistor Q1 is connected to the VCC terminal of USB1 output interface. The USB channel output circuit includes resistor R3, resistor R4, field-effect transistor Q2, and USB2 output interface. One end of resistor R4 is electrically connected to the P3.3 terminal of the microcontroller U2, and the other end is connected to one end of resistor R3. The other end of resistor R3 is connected to the source of field-effect transistor Q2. The gate of field-effect transistor Q2 is connected to the junction of resistor R3 and resistor R4. The drain of field-effect transistor Q2 is connected to the VCC terminal of USB2 output interface. The USB channel output circuit includes resistor R5, resistor R6, field-effect transistor Q3, and USB3 output interface. One end of resistor R6 is electrically connected to the P3.4 terminal of the microcontroller U2, and the other end is connected to one end of resistor R5. The other end of resistor R5 is connected to the source of field-effect transistor Q3. The gate of field-effect transistor Q3 is connected to the junction of resistor R5 and resistor R6. The drain of field-effect transistor Q3 is connected to the VCC terminal of USB3 output interface. The USB channel output circuit includes resistor R7, resistor R8, field-effect transistor Q4, and USB4 output interface. One end of resistor R8 is electrically connected to the P3.5 terminal of the microcontroller U2, and the other end is connected to one end of resistor R7. The other end of resistor R7 is connected to the source of field-effect transistor Q4. The gate of field-effect transistor Q4 is connected to the junction of resistor R7 and resistor R8. The drain of field-effect transistor Q4 is connected to the VCC terminal of USB4 output interface. The GND terminals of the USB1, USB2, USB3, and USB4 output interfaces are all grounded.