Relay control circuit

By simplifying the design of relay control circuits and using voltage detection modules and microcontrollers to control relay movements, the multi-component and complexity problems in traditional circuits are solved, the control accuracy and system reliability are improved, and a variety of industrial control needs are adapted to various industrial control needs.

CN223167407UActive Publication Date: 2025-07-29HUARUAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421694906.3
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2025-07-29
Estimated Expiration
2034-07-17

AI Technical Summary

Technical Problem

Traditional relay control circuits require more electronic components and complex circuit designs, resulting in high cost, large size and poor system reliability and stability, especially in applications where space and cost are limited.

Method used

A relay control circuit is designed, including a voltage detection module, a microcontroller and a relay control module. The voltage detection module detects the power supply voltage in real time and sends it to the microcontroller. The microcontroller controls the relay action when the output voltage reaches the set value, simplifies circuit design and reduces the number of electronic components.

Benefits of technology

It realizes precise control when the output voltage of the power supply reaches the set value, improves control efficiency and system stability, reduces frequent switching of relays, extends the service life of relays, and reduces costs and the number of electronic components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223167407U_ABST
    Figure CN223167407U_ABST
Patent Text Reader

Abstract

The utility model discloses a relay control circuit. The relay control circuit comprises a voltage detection module, a single-chip microcomputer and a relay control module. The input end of the voltage detection module is connected with a power supply, the output end of the voltage detection module is connected with the single-chip microcomputer, the input end of the relay control module is connected with the single-chip microcomputer, and the output end of the relay control module is connected with the relay. Wherein the voltage detection module is used for detecting the output voltage of the power supply in real time and sending the output voltage of the power supply to the single chip microcomputer; the single-chip microcomputer is used for controlling the relay to act through the relay control circuit under the condition that the output voltage reaches the set voltage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of relay control, and particularly relates to a relay control circuit. Background Art

[0002] A relay is a common electromagnetic switch device and has wide applications in the field of industrial control. A relay can control the on / off of a large current through a small current to achieve automatic control, and is widely used in fields such as power systems, automatic control systems, and mechanical equipment. With the continuous improvement of the degree of industrial automation, the demand for the use of relays is also increasing continuously. Therefore, the efficient use of relays, and the improvement of control accuracy and stability have become important topics in the field of industrial control.

[0003] Traditional relay control circuits usually require more electronic components and complex circuit designs, which not only increase the cost and volume, but also reduce the reliability and stability of the system. Especially in some application scenarios with strict requirements for space and cost, traditional relay control circuits are inadequate. Summary of the Utility Model

[0004] For this reason, an embodiment of the utility model provides a relay control circuit to solve the problem that the relay control circuit in the prior art requires more electronic components and complex circuit designs.

[0005] In order to achieve the above object, the embodiment of the utility model provides the following technical solutions:

[0006] A relay control circuit, characterized in that the circuit includes a voltage detection module, a single-chip microcomputer, and a relay control module;

[0007] The input end of the voltage detection module is connected to a power supply, the output end of the voltage detection module is connected to the single-chip microcomputer, the input end of the relay control module is connected to the single-chip microcomputer, and the output end of the relay control module is connected to a relay;

[0008] Wherein, the voltage detection module is used to detect the output voltage of the power supply in real time and send the output voltage of the power supply to the single-chip microcomputer; the single-chip microcomputer is used to control the relay to act through the relay control module when the output voltage reaches a set voltage.

[0009] Optionally, the single-chip microcomputer is a single-chip microcomputer STM32F405RGT6.

[0010] Optionally, the 30th pin of the single-chip microcomputer STM32F405RGT6 is connected to the voltage detection module; the 5th and 6th pins of the single-chip microcomputer STM32F405RGT6 are respectively connected to the passive crystal oscillator X1; the 60th pin of the single-chip microcomputer STM32F405RGT6 is grounded through the tenth resistor R10; the 7th pin of the single-chip microcomputer STM32F405RGT6 is connected to the NRST network; the 31st pin of the single-chip microcomputer STM32F405RGT6 is grounded through the parallel-connected sixth capacitor C6 and seventh capacitor C7; the 47th pin of the single-chip microcomputer STM32F405RGT6 is grounded through the parallel-connected fourth capacitor C4 and fifth capacitor C5; the 21st pin of the single-chip microcomputer STM32F405RGT6 is connected to the ADC1_IN5 network; the 34th pin of the single-chip microcomputer STM32F405RGT6 is connected to the relay control module; the 1st, 19th, 32nd, 48th, 64th, and 13th pins of the single-chip microcomputer STM32F405RGT6 are all connected to one end of the tenth capacitor C10; the 18th, 63rd, and 12th pins of the single-chip microcomputer STM32F405RGT6 are all grounded;

[0011] One end of the tenth capacitor C10 is further divided into seven paths, one path is connected to the 3.3V voltage output terminal, another path is connected to one end of the eighth capacitor C8, the third path is connected to one end of the ninth capacitor C9, the fourth path is connected to one end of the eleventh capacitor C11, the fifth path is connected to one end of the twelfth capacitor C12, the sixth path is connected to one end of the thirteenth capacitor C13, and the seventh path is connected to one end of the fourteenth capacitor C14; the other ends of the eighth capacitor C8, the ninth capacitor C9, the tenth capacitor C10, the eleventh capacitor C11, the twelfth capacitor C12, the thirteenth capacitor C13, and the fourteenth capacitor C14 are all grounded.

[0012] Optionally, the voltage detection module includes a chip U1, and the chip U1 is a chip TLP185GB-S;

[0013] The 1st pin of the chip U1 is connected to one end of the first resistor R1; the 3rd pin of the chip U1 is grounded; the 4th pin of the chip U1 is connected to one end of the second resistor R2, and the 6th pin of the chip U1 is connected to the 3.3V voltage output terminal;

[0014] The other end of the first resistor R1 is connected to the VIN network, and the other end of the second resistor R2 is divided into two paths, one path is grounded through the twenty-ninth resistor R29, and the other path is connected to the 30th pin of the single-chip microcomputer STM32F405RGT6.

[0015] Optionally, the first pin of the passive crystal oscillator X1 is divided into three paths. One path is connected to one end of the first capacitor C1, another path is connected to the fifth pin of the single-chip microcomputer STM32F405RGT6, and the third path is connected to one end of the fifth resistor R5. The third pin of the passive crystal oscillator X1 is divided into three paths. One path is connected to the other end of the fifth resistor R5, the second path is connected to the sixth pin of the single-chip microcomputer STM32F405RGT6, and the third path is connected to one end of the second capacitor C2. The second pin and the fourth pin of the passive crystal oscillator X1 are both grounded.

[0016] The other ends of the first capacitor C1 and the second capacitor C2 are both grounded.

[0017] Optionally, the NRST network includes the eleventh resistor R11 and the third capacitor C3.

[0018] One end of the eleventh resistor R11 is connected to the 3.3V voltage output terminal. The other end of the eleventh resistor R11 is divided into two paths. One path is connected to the seventh pin of the single-chip microcomputer STM32F405RGT6, and the other path is connected to one end of the third capacitor C3. The other end of the third capacitor C3 is grounded.

[0019] Optionally, the ADC1_IN5 network includes the eighth resistor R8 and the ninth resistor R9.

[0020] One end of the eighth resistor R8 is connected to the VIN network. The other end of the eighth resistor R8 is divided into two paths. One path is connected to the 21st pin of the single-chip microcomputer STM32F405RGT6, and the other path is connected to one end of the ninth resistor R9. The other end of the ninth resistor R9 is grounded.

[0021] Optionally, the relay control module includes the ninth chip U9, and the ninth chip U9 is the chip TLP185GB-S.

[0022] Optionally, the first pin of the ninth chip U9 is connected to the 3.3V voltage output terminal through the twenty-fifth resistor R25. The third pin of the ninth chip U9 is connected to the 34th pin of the single-chip microcomputer STM32F405RGT6. The fourth pin of the ninth chip U9 is connected to one end of the twenty-sixth resistor R26. The sixth pin of the ninth chip U9 is connected to the 5V voltage output terminal.

[0023] The other end of the twenty-sixth resistor R26 is divided into two paths. One path is grounded through the twenty-seventh resistor R27, and the other path is connected to the base of the first triode Q1. The emitter of the first triode Q1 is grounded. The collector of the first triode Q1 is divided into two paths. One path is connected to the second pin of the relay K1, and the other path is connected to the anode of the sixth diode D6.

[0024] Optionally, the relay K1 is a relay HF115F / 005-1ZS3;

[0025] The first pin of the relay K1 is divided into two paths, one path is connected to the 5V voltage output terminal, and the other path is connected to the cathode of the sixth diode D6; the third and fourth pins of the relay K1 are left floating; the fifth and sixth pins of the relay K1 are both connected to the KA_COM network; the seventh and eighth pins of the relay K1 are both connected to the KA_NC network.

[0026] The utility model has at least the following beneficial effects:

[0027] The application provides a relay control circuit, including a voltage detection module, a single-chip microcomputer and a relay control module; the input end of the voltage detection module is connected to a power supply, the output end of the voltage detection module is connected to the single-chip microcomputer, the input end of the relay control module is connected to the single-chip microcomputer, and the output end of the relay control module is connected to the relay; wherein, the voltage detection module is used to detect the output voltage of the power supply in real time and send the output voltage of the power supply to the single-chip microcomputer; the single-chip microcomputer is used to control the relay to act through the relay control module when the output voltage reaches the set voltage. By simplifying the circuit design and only using a small number of electronic components, the application realizes the precise control of the single-chip microcomputer over the relay when the output voltage of the power supply reaches the set value. This innovative design not only improves the control efficiency and system stability, but also can adapt to various industrial control requirements, effectively reducing the number and cost of electronic components. At the same time, since the relay only acts when necessary, the frequent switching of the relay is reduced, the service life of the relay is improved, and the reliability and economy of the entire control system are enhanced. Description of the Drawings

[0028] In order to more clearly illustrate the prior art and the present utility model, the drawings required for describing the prior art and the embodiments of the present utility model will be briefly introduced below. Obviously, the drawings described below are only exemplary, and those of ordinary skill in the art can also obtain other drawings according to the provided drawings without creative work.

[0029] The structures, ratios, sizes, etc. illustrated in this specification are only used to cooperate with the content disclosed in the specification for those who are familiar with this technology to understand and read, and are not used to limit the limiting conditions under which the present utility model can be implemented. Any modification of the structure, change of the proportional relationship or adjustment of the size, without affecting the effects that the present utility model can produce and the purposes that can be achieved, should still fall within the scope covered by the technical content disclosed in the present utility model.

[0030] Figure 1The circuit principle block diagram of a relay control circuit provided by the present utility model;

[0031] Figure 2 One of the circuit schematic diagrams of a relay control circuit provided by the present utility model;

[0032] Figure 3 Another circuit schematic diagram of a relay control circuit provided by the present utility model. Detailed implementation manners

[0033] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0034] In the description of the present utility model, unless otherwise specified, the meaning of "a plurality of" is two or more. Terms such as "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present utility model and the above-mentioned drawings are intended to distinguish the objects being referred to. For a solution with a time sequence process, such a term expression does not necessarily need to be understood as describing a specific order or sequence, and for a solution of a device structure, such a term expression also does not distinguish the importance level, positional relationship, etc.

[0035] In addition, the terms "comprising", "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 does not necessarily have to be limited to those steps or units that are clearly listed, but may also include other steps or units that are inherent to these processes, methods, products or devices although not clearly listed, or steps or units added based on the further optimized solutions conceived by the present utility model.

[0036] Relay: An electrical control device, which is an electrical appliance that causes a predetermined step change in the controlled quantity in the electrical output circuit when the change of the input quantity (excitation quantity) reaches the specified requirement.

[0037] Electronic components: They are components of electronic elements and small machines and instruments. They are often composed of several parts and can be used interchangeably in similar products; they often refer to certain parts in industries such as electrical appliances, radio, and instruments, and are the general term for electronic devices such as capacitors, transistors, hairsprings, and mainsprings. Commonly seen ones include diodes, etc.

[0038] Circuit: A conductive loop composed of metal wires and electrical and electronic components is called a circuit.

[0039] Single-chip microcomputer: The Microcontroller Unit (MCU), also known as a single-chip microcomputer or microcontroller, is a computer-on-a-chip that appropriately reduces the frequency and specifications of the Central Processing Unit (CPU) and integrates peripherals such as memory, Timer, USB, A / D conversion, UART, PLC, DMA, and even LCD driver circuits on a single chip to perform different combinations of control for different application scenarios.

[0040] As Figure 1 shown, a relay control circuit includes a voltage detection module, a single-chip microcomputer, and a relay control module;

[0041] The input end of the voltage detection module is connected to the power supply, the output end of the voltage detection module is connected to the single-chip microcomputer, the input end of the relay control module is connected to the single-chip microcomputer, and the output end of the relay control module is connected to the relay;

[0042] Among them, the voltage detection module is used to detect the output voltage of the power supply in real time and send the output voltage of the power supply to the single-chip microcomputer; the single-chip microcomputer is used to control the relay to act through the relay control module when the output voltage reaches the set voltage.

[0043] In the embodiment of the present application, the relay control circuit includes a voltage detection module, a single-chip microcomputer, and a relay control module; the input end of the voltage detection module is connected to the power supply, the output end of the voltage detection module is connected to the single-chip microcomputer, the input end of the relay control module is connected to the single-chip microcomputer, and the output end of the relay control module is connected to the relay; among them, the voltage detection module is used to detect the output voltage of the power supply in real time and send the output voltage of the power supply to the single-chip microcomputer; the single-chip microcomputer is used to control the relay to act through the relay control module when the output voltage reaches the set voltage. By simplifying the circuit design and using only a small number of electronic components, the present application realizes the precise control of the relay by the single-chip microcomputer when the output voltage of the power supply reaches the set value. This innovative design not only improves the control efficiency and system stability but also adapts to various industrial control requirements, effectively reducing the number and cost of electronic components. At the same time, since the relay only operates when necessary, the frequent switching of the relay is reduced, the service life of the relay is increased, and the reliability and economy of the entire control system are enhanced.

[0044] As Figure 2 shown, in an embodiment of the present application, the single-chip microcomputer is the single-chip microcomputer STM32F405RGT6.

[0045] As Figure 2 shown, in an embodiment of the present application, the 30th pin of the single-chip microcomputer STM32F405RGT6 is connected to the voltage detection module; the 5th and 6th pins of the single-chip microcomputer STM32F405RGT6 are respectively connected to the passive crystal oscillator X1; the 60th pin of the single-chip microcomputer STM32F405RGT6 is grounded through the tenth resistor R10; the 7th pin of the single-chip microcomputer STM32F405RGT6 is connected to the NRST network; the 31st pin of the single-chip microcomputer STM32F405RGT6 is grounded through the parallel-connected sixth capacitor C6 and seventh capacitor C7; the 47th pin of the single-chip microcomputer STM32F405RGT6 is grounded through the parallel-connected fourth capacitor C4 and fifth capacitor C5; the 21st pin of the single-chip microcomputer STM32F405RGT6 is connected to the ADC1_IN5 network; the 34th pin of the single-chip microcomputer STM32F405RGT6 is connected to the relay control module; the 1st, 19th, 32nd, 48th, 64th, and 13th pins of the single-chip microcomputer STM32F405RGT6 are all connected to one end of the tenth capacitor C10; the 18th, 63rd, and 12th pins of the single-chip microcomputer STM32F405RGT6 are all grounded;

[0046] One end of the tenth capacitor C10 is further divided into seven paths, one path is connected to the 3.3V voltage output terminal, another path is connected to one end of the eighth capacitor C8, the third path is connected to one end of the ninth capacitor C9, the fourth path is connected to one end of the eleventh capacitor C11, the fifth path is connected to one end of the twelfth capacitor C12, the sixth path is connected to one end of the thirteenth capacitor C13, and the seventh path is connected to one end of the fourteenth capacitor C14; the other ends of the eighth capacitor C8, the ninth capacitor C9, the tenth capacitor C10, the eleventh capacitor C11, the twelfth capacitor C12, the thirteenth capacitor C13, and the fourteenth capacitor C14 are all grounded.

[0047] As Figure 2 shown, in an embodiment of the present application, the voltage detection module includes a chip U1, and the chip U1 is a chip TLP185GB-S;

[0048] The 1st pin of the chip U1 is connected to one end of the first resistor R1; the 3rd pin of the chip U1 is grounded; the 4th pin of the chip U1 is connected to one end of the second resistor R2, and the 6th pin of the chip U1 is connected to the 3.3V voltage output terminal;

[0049] The other end of the first resistor R1 is connected to the VIN network. The other end of the second resistor R2 is divided into two paths. One path is grounded through the twenty-ninth resistor R29, and the other path is connected to the 30th pin of the single-chip microcomputer STM32F405RGT6.

[0050] As Figure 2 shown, in an embodiment of the present application, the first pin of the passive crystal oscillator X1 is divided into three paths. One path is connected to one end of the first capacitor C1, another path is connected to the 5th pin of the single-chip microcomputer STM32F405RGT6, and the third path is connected to one end of the fifth resistor R5. The third pin of the passive crystal oscillator X1 is divided into three paths. One path is connected to the other end of the fifth resistor R5, the second path is connected to the 6th pin of the single-chip microcomputer STM32F405RGT6, and the third path is connected to one end of the second capacitor C2. The second pin and the fourth pin of the passive crystal oscillator X1 are both grounded.

[0051] The other ends of the first capacitor C1 and the second capacitor C2 are both grounded.

[0052] As Figure 2 shown, in an embodiment of the present application, the NRST network includes the eleventh resistor R11 and the third capacitor C3.

[0053] One end of the eleventh resistor R11 is connected to the 3.3V voltage output terminal. The other end of the eleventh resistor R11 is divided into two paths. One path is connected to the 7th pin of the single-chip microcomputer STM32F405RGT6, and the other path is connected to one end of the third capacitor C3. The other end of the third capacitor C3 is grounded.

[0054] In an embodiment of the present application, the ADC1_IN5 network includes the eighth resistor R8 and the ninth resistor R9.

[0055] One end of the eighth resistor R8 is connected to the VIN network. The other end of the eighth resistor R8 is divided into two paths. One path is connected to the 21st pin of the single-chip microcomputer STM32F405RGT6, and the other path is connected to one end of the ninth resistor R9. The other end of the ninth resistor R9 is grounded.

[0056] It should be noted that the voltage detection module and the single-chip microcomputer are for information detection and processing, and will detect the voltage in real time. When the set voltage value is reached, the single-chip microcomputer will control the relay to perform corresponding actions.

[0057] As Figure 2As shown, the 30th pin of the single-chip microcomputer with the model number STM32F405RGT6 at the reference number U10.1 is connected to the JC network and one end of the surface mount resistors with the reference numbers R2 and R29. The 5th pin is connected to the 1st pin of the passive crystal oscillator with the reference number X1, one end of the surface mount capacitor with the reference number C1, and one end of the surface mount resistor with the reference number R5. The 6th pin is connected to the 3rd pin of the passive crystal oscillator with the reference number X1, one end of the surface mount capacitor with the reference number C2, and one end of the surface mount resistor with the reference number R5. The 60th pin is connected to one end of the surface mount resistor with the reference number R10. The 7th pin is connected to the NRST network and one end of the surface mount resistor with the reference number R11 and one end of the surface mount capacitor with the reference number C3. The 31st pin is connected to one end of the surface mount resistors with the reference numbers C6 and C7. The 47th pin is connected to one end of the surface mount resistors with the reference numbers C4 and C5. The 34th pin is connected to the KA_XQ network. The 21st pin is connected to the ADC1_IN5 network. The remaining pins are floating. One end of the surface mount capacitors with the reference numbers C8, C9, C10, C11, C12, C13, C14 is connected to the 1st, 19th, 32nd, 48th, 64th, 13th pins of the single-chip microcomputer with the model number STM32F405RGT6 at the reference number U10.2 and are commonly connected to the 3.3V network. One end of the surface mount capacitors with the reference numbers C8, C9, C10, C11, C12, C13, C14 is connected to the 18th, 63rd, 12th pins of the single-chip microcomputer with the model number STM32F405RGT6 at the reference number U10.2 and are commonly connected to the GND network. One end of the surface mount capacitors with the reference numbers C1 and C2 is connected to the GND network. The 2nd and 4th pins of the passive crystal oscillator with the reference number X1 are connected to the GND network. One end of the surface mount resistor with the reference number R10 is connected to the GND network. One end of the surface mount capacitors with the reference numbers C4, C5, C6, C7 is connected to the GND network. One end of the surface mount resistor with the reference number R11 is connected to the 3.3V network. One end of the surface mount capacitor with the reference number C3 is connected to the GND network. The 1st pin of the optocoupler with the model number TLP185GB-S at the reference number U1 is connected to one end of the surface mount resistor with the reference number R1. The 3rd pin is connected to the GND network. The 4th pin is connected to one end of the surface mount resistor with the reference number R2. The 6th pin is connected to the 3.3V network. One end of the surface mount resistor with the reference number R1 is connected to the VIN network. One end of the surface mount resistor with the reference number R29 is connected to the GND network. One end of the surface mount resistor with the reference number R11 is connected to the 3.3V network. One end of the surface mount capacitor with the reference number C3 is connected to the GND network. One end of the surface mount resistor with the reference number R8 is connected to the VIN network. One end of the surface mount resistor with the reference number R9 is connected to the GND network.

[0058] As Figure 3 shown, in an embodiment of the present application, the relay control circuit includes a ninth chip U9, and the ninth chip U9 is a chip TLP185GB-S.

[0059] As Figure 3As shown, in an embodiment of the present application, the first pin of the ninth chip U9 is connected to the 3.3V voltage output terminal via the twenty-fifth resistor R25; the third pin of the ninth chip U9 is connected to the 34th pin of the single-chip microcomputer STM32F405RGT6; the fourth pin of the ninth chip U9 is connected to one end of the twenty-sixth resistor R26; the sixth pin of the ninth chip U9 is connected to the 5V voltage output terminal;

[0060] The other end of the twenty-sixth resistor R26 is divided into two paths. One path is grounded via the twenty-seventh resistor R27, and the other path is connected to the base of the first triode Q1. The emitter of the first triode Q1 is grounded. The collector of the first triode Q1 is divided into two paths. One path is connected to the second pin of the relay K1, and the other path is connected to the anode of the sixth diode D6.

[0061] As Figure 3 shown, in an embodiment of the present application, the relay K1 is a relay HF115F / 005-1ZS3;

[0062] The first pin of the relay K1 is divided into two paths. One path is connected to the 5V voltage output terminal, and the other path is connected to the cathode of the sixth diode D6; the third and fourth pins of the relay K1 are left floating; the fifth and sixth pins of the relay K1 are both connected to the KA_COM network; the seventh and eighth pins of the relay K1 are both connected to the KA_NC network.

[0063] It should be noted that Figure 3 This is a relay execution circuit. A freewheeling diode is connected in parallel with the relay coil to eliminate the impact of the back electromotive force after the relay coil loses power on other circuits.

[0064] As Figure 3 shown, the first pin of the relay with the reference number K1 and the model HF115F / 005-1ZS3 is connected to the cathode of the diode with the reference number D6 and the model 1N4007, and they are jointly connected to the 5V network. The second pin is connected to the anode of the diode with the reference number D6 and the model 1N4007, and the collector of the triode with the reference number Q1 and the model S8050. The third and fourth pins are left floating. The fifth and sixth pins are connected to the KA_COM network. The seventh and eighth pins are connected to the KA_NC network; the first pin of the optocoupler with the reference number U9 and the model TLP185GB-S is connected to one end of the chip resistor with the reference number R25. The third pin is connected to the KA_XQ network. The fourth pin is connected to one end of the chip resistor with the reference number R26. The sixth pin is connected to the 5V network; the base of the triode with the reference number Q1 is connected to one end of the chip resistors with the reference numbers R26 and R27. The emitter is connected to one end of the chip resistor R27, and they are jointly connected to the GND network.

[0065] This circuit can be applied to industrial circuit boards. The specific steps include: drawing the schematic diagram; drawing the PCB; having the PCB fabricated by an external PCB manufacturer; performing SMT soldering on the PCB board; testing; and finalizing.

[0066] Components: According to the BOM list of the PCB, purchase resistors, capacitors, IC chips, connectors, etc. from reliable component manufacturers.

[0067] Circuit board: Fabricated by a professional circuit board manufacturer. Send the Gerber file to the PCBA manufacturer and also provide the purchased components to the manufacturer for SMT soldering.

[0068] The above specific embodiments can be combined with each other. For the same or similar concepts or processes, they may not be described in some embodiments.

[0069] The technical features of the above embodiments can be combined arbitrarily (as long as there is no contradiction in the combination of these technical features). For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described; these embodiments not explicitly written out should also be considered to be within the scope described in this specification.

[0070] In the above text, the present utility model has been described in a relatively specific and detailed manner through general descriptions and specific embodiments. It should be noted that without departing from the concept of the present utility model, obviously several modifications and improvements can still be made to these specific embodiments, and these all belong to the protection scope of this application. Therefore, the protection scope of the patent of this application should be subject to the appended claims.

Claims

1. A relay control circuit, characterized in that, The circuit includes a voltage detection module, a single-chip microcomputer, and a relay control module; The input end of the voltage detection module is connected to the power supply, the output end of the voltage detection module is connected to the single-chip microcomputer, the input end of the relay control module is connected to the single-chip microcomputer, and the output end of the relay control module is connected to the relay; Among them, the voltage detection module is used to detect the output voltage of the power supply in real time and send the output voltage of the power supply to the single-chip microcomputer; the single-chip microcomputer is used to control the relay to act through the relay control module when the output voltage reaches the set voltage.

2. The relay control circuit according to claim 1, wherein The single-chip microcomputer is the single-chip microcomputer STM32F405RGT6.

3. A relay control circuit according to claim 1, wherein, The 30th pin of the single-chip microcomputer STM32F405RGT6 is connected to the voltage detection module; the 5th and 6th pins of the single-chip microcomputer STM32F405RGT6 are respectively connected to the passive crystal oscillator X1; the 60th pin of the single-chip microcomputer STM32F405RGT6 is grounded through the tenth resistor R10; the 7th pin of the single-chip microcomputer STM32F405RGT6 is connected to the NRST network; the 31st pin of the single-chip microcomputer STM32F405RGT6 is grounded through the parallel-connected sixth capacitor C6 and seventh capacitor C7; the 47th pin of the single-chip microcomputer STM32F405RGT6 is grounded through the parallel-connected fourth capacitor C4 and fifth capacitor C5; the 21st pin of the single-chip microcomputer STM32F405RGT6 is connected to the ADC1_IN5 network; the 34th pin of the single-chip microcomputer STM32F405RGT6 is connected to the relay control module; the 1st, 19th, 32nd, 48th, 64th, and 13th pins of the single-chip microcomputer STM32F405RGT6 are all connected to one end of the tenth capacitor C10; the 18th, 63rd, and 12th pins of the single-chip microcomputer STM32F405RGT6 are all grounded; One end of the tenth capacitor C10 is also divided into seven paths, one path is connected to the 3.3V voltage output end, another path is connected to one end of the eighth capacitor C8, the third path is connected to one end of the ninth capacitor C9, the fourth path is connected to one end of the eleventh capacitor C11, the fifth path is connected to one end of the twelfth capacitor C12, the sixth path is connected to one end of the thirteenth capacitor C13, and the seventh path is connected to one end of the fourteenth capacitor C14; the other ends of the eighth capacitor C8, the ninth capacitor C9, the tenth capacitor C10, the eleventh capacitor C11, the twelfth capacitor C12, the thirteenth capacitor C13, and the fourteenth capacitor C14 are all grounded.

4. A relay control circuit according to claim 3, characterized in that, The voltage detection module includes a chip U1, and the chip U1 is the chip TLP185GB-S; The first pin of the chip U1 is connected to one end of the first resistor R1; the third pin of the chip U1 is grounded; the fourth pin of the chip U1 is connected to one end of the second resistor R2, and the sixth pin of the chip U1 is connected to the 3.3V voltage output terminal; The other end of the first resistor R1 is connected to the VIN network. The other end of the second resistor R2 is divided into two paths. One path is grounded through the twenty-ninth resistor R29, and the other path is connected to the 30th pin of the microcontroller STM32F405RGT6.

5. A relay control circuit according to claim 3, characterized in that, The first pin of the passive crystal oscillator X1 is divided into three paths. One path is connected to one end of the first capacitor C1, another path is connected to the 5th pin of the microcontroller STM32F405RGT6, and the third path is connected to one end of the fifth resistor R5; the third pin of the passive crystal oscillator X1 is divided into three paths. One path is connected to the other end of the fifth resistor R5, the second path is connected to the 6th pin of the microcontroller STM32F405RGT6, and the third path is connected to one end of the second capacitor C2; the second pin and the fourth pin of the passive crystal oscillator X1 are both grounded; The other ends of the first capacitor C1 and the second capacitor C2 are both grounded.

6. A relay control circuit according to claim 3, characterized in that, The NRST network includes the eleventh resistor R11 and the third capacitor C3; One end of the eleventh resistor R11 is connected to the 3.3V voltage output terminal. The other end of the eleventh resistor R11 is divided into two paths. One path is connected to the 7th pin of the microcontroller STM32F405RGT6, and the other path is connected to one end of the third capacitor C3. The other end of the third capacitor C3 is grounded.

7. A relay control circuit according to claim 3, characterized in that, The ADC1_IN5 network includes the eighth resistor R8 and the ninth resistor R9; One end of the eighth resistor R8 is connected to the VIN network. The other end of the eighth resistor R8 is divided into two paths. One path is connected to the 21st pin of the microcontroller STM32F405RGT6, and the other path is connected to one end of the ninth resistor R9. The other end of the ninth resistor R9 is grounded.

8. A relay control circuit according to claim 1, characterized in that, The relay control module includes the ninth chip U9, and the ninth chip U9 is the chip TLP185GB-S.

9. A relay control circuit according to claim 8, characterized in that, The first pin of the ninth chip U9 is connected to the 3.3V voltage output terminal through the twenty-fifth resistor R25; the third pin of the ninth chip U9 is connected to the 34th pin of the microcontroller STM32F405RGT6; the fourth pin of the ninth chip U9 is connected to one end of the twenty-sixth resistor R26; the sixth pin of the ninth chip U9 is connected to the 5V voltage output terminal; The other end of the twenty-sixth resistor R26 is divided into two paths. One path is grounded through the twenty-seventh resistor R27, and the other path is connected to the base of the first triode Q1. The emitter of the first triode Q1 is grounded. The collector of the first triode Q1 is divided into two paths. One path is connected to the second pin of the relay K1, and the other path is connected to the anode of the sixth diode D6.

10. A relay control circuit according to claim 9, characterized in that, The relay K1 is the relay HF115F / 005-1ZS3; The first pin of the relay K1 is divided into two paths, one path is connected to the 5V voltage output terminal, and the other path is connected to the cathode of the sixth diode D6; the third and fourth pins of the relay K1 are left floating; the fifth and sixth pins of the relay K1 are both connected to the KA_COM network; the seventh and eighth pins of the relay K1 are both connected to the KA_NC network.