Anti-interference synchronizer circuit
By using a linear regulator and a voltage regulator in the synchronizer circuit to power the microcontroller and the relay respectively, and using PNP and NPN transistors to control the relay, the problem of relay malfunction caused by interference signals in the existing technology is solved, and the power supply is improved. Stability and immunity to interference.
Patent Information
- Application Number
- CN202322529157.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-18
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2033-09-18
AI Technical Summary
Existing synchronizers are easily affected by interference signals in unclean static power supply environments, causing relay malfunctions and posing safety risks.
By using a linear regulator to power the K1 and K2 relays, and using a voltage regulator to power the microcontroller, it ensures that the microcontroller and relays receive stable power supplies respectively. At the same time, PNP and NPN transistors are used to implement push-pull control relays.
It improves the stability and anti-interference of the microcontroller power supply, prevents the switching operation of the relay from interfering with the microcontroller power supply, and ensures normal operation in a stable environment.
Smart Images

Figure CN221746454U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of synchronizers, in particular to an anti-interference synchronizer circuit. Background Art
[0002] Synchronizer (Flip-Flop) is a storage element commonly used in digital circuits to store and synchronize data. It can change its output state according to the state of the input signal under a specific clock signal.
[0003] Synchronizers are widely used in the safe production of pneumatic equipment. However, since the products on the market usually use an IO pin of a microcontroller to control a relay, the power supply of the microcontroller and the power supply of the driving relay are shared (5V), and the power supply environment of the equipment is usually not very clean, it is easy to cause safety accidents due to false operation of the relay due to interference signals. Utility Model Content
[0004] The utility model aims to provide an anti-interference synchronizer circuit.
[0005] To achieve the above-mentioned purpose, the utility model provides the following technical solution: an anti-interference synchronizer circuit, including a single-chip microcomputer, the single-chip microcomputer is powered by a voltage regulator, the single-chip microcomputer is connected to a K1 relay via a wire, the single-chip microcomputer is connected to a K2 relay via a wire, and both the K1 relay and the K2 relay are powered by a linear regulator.
[0006] As a preferred technical solution of the utility model: pin 14 of the single-chip microcomputer is connected to the power pin of the K2 relay through a wire, pin 15 of the single-chip microcomputer is connected to the K2 relay through a wire, pin 16 of the single-chip microcomputer is connected to the power pin of the K1 relay through a wire, and pin 17 of the single-chip microcomputer is connected to the K1 relay through a wire.
[0007] As a preferred technical solution of the utility model: pin No. 1 and pin No. 2 are input IO of the key, and pin No. 14, pin No. 15, pin No. 16 and pin No. 17 are output IO.
[0008] As a preferred technical solution of the utility model: pin No. 1 of the single-chip microcomputer is grounded through a wire, pin No. 2 of the single-chip microcomputer is grounded through a wire, pins No. 4 and No. 9 of the single-chip microcomputer are connected in series with a reset signal element and are grounded through capacitor C3, pins No. 7 and No. 8 of the single-chip microcomputer are connected in series through capacitor C4, and pin No. 7 of the single-chip microcomputer is connected to the reset signal element through capacitor C2.
[0009] As a preferred technical solution of the utility model: pin 15 of the single chip microcomputer is grounded through transistor Q2.
[0010] As a preferred technical solution of the utility model: pin No. 18 of the single-chip microcomputer is connected with a debugging interface through a wire.
[0011] As a preferred technical solution of the utility model: a debugging interface and a J4 connector, a reset signal element is connected to the debugging interface.
[0012] As a preferred technical solution of the utility model: pin 19 and pin 20 of the single chip computer are connected to the J5 connector through a wire.
[0013] As a preferred technical solution of the utility model: the linear regulator is connected to the integrated circuit chip U1 through a wire.
[0014] Compared with the prior art, the beneficial effects of the utility model are as follows: by using a linear regulator to power the K2 and K1 relays, and a voltage regulator to power the single-chip microcomputer, the single-chip microcomputer and the relay are powered separately, thereby improving the stability of the single-chip microcomputer power supply, and the switching operation of the relay will not interfere with the power supply of the single-chip microcomputer, thereby ensuring that the single-chip microcomputer can operate normally in a stable power supply environment, and the push-pull control relay is realized by connecting PNP and NPN respectively through two IO pins, thereby improving the anti-interference performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a circuit diagram of the single chip microcomputer and relay connection of the utility model;
[0016] Figure 2 It is a connection circuit diagram of the relay and the linear voltage regulator of the utility model;
[0017] Figure 3 This is the debugging interface circuit diagram of the utility model. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0019] Example
[0020] See also Figure 1-3The present embodiment provides an anti-interference synchronizer circuit, including a single-chip microcomputer, the model of the single-chip microcomputer is: STM8S003FXP, the single-chip microcomputer is powered by a voltage regulator, the model of the voltage regulator is LM2576, the single-chip microcomputer is connected to the K2 relay through the fourteenth pin and the fifteenth pin, the single-chip microcomputer is connected to the K1 relay through the sixteenth pin and the seventeenth pin, the K2 relay and the K1 relay are powered by a linear regulator, the model of the linear regulator is MC7805K. By adopting the method of energizing the single-chip microcomputer and the relay separately, the stability of the power supply of the single-chip microcomputer is improved.
[0021] The linear regulator is electrically connected to the K1 relay and the K2 relay respectively, and the linear regulator is connected to the U1 integrated circuit chip through a wire.
[0022] Pin 14 of the single-chip microcomputer is connected to the power pin of the K2 relay through the Q4 transistor. Specifically, pin 14 of the single-chip microcomputer is connected to the Q4 transistor, the emitter of the Q4 transistor is connected to the power pin of the K2 relay, the collector of the Q4 transistor is connected to pin 1 of the K2 relay through a wire, and the collector of the Q4 transistor is also connected to pin 2 of the K2 relay through the D6 diode.
[0023] Pin 15 of the single-chip microcomputer is grounded through the Q2 transistor. Pin 15 of the single-chip microcomputer is connected to the Q2 transistor. The emitter of the Q2 transistor is connected to the ground wire, and the collector of the Q2 transistor is connected to pin 2 of the K2 relay.
[0024] Pin 15 and pin 14 are connected together with the K2 relay to form a closed loop. The K2 relay is connected to the J6 connector, wherein the J6 connector is used for other external required devices connected to the relay. The K2 relay is grounded through the resistor R14.
[0025] Pin 16 of the single-chip microcomputer is connected to the power pin of the K1 relay through the Q3 transistor. Pin 16 of the single-chip microcomputer is connected to the Q3 transistor. The emitter of the Q3 transistor is connected to the power pin of the K1 relay. The collector of the Q3 transistor is connected to pin 1 of the K1 relay through a wire. The collector of the Q3 transistor is also connected to pin 2 of the K1 relay through the D5 diode.
[0026] Pin 17 of the single-chip microcomputer is connected to the K1 relay via the Q1 transistor. The Q1 transistor is connected to pin 17 of the single-chip microcomputer, the emitter of the Q1 transistor is connected to the ground wire, and the collector of the Q1 transistor is connected to pin 2 of the K1 relay.
[0027] Pin 16 and pin 17 are connected together with the K1 relay to form a closed loop. The K1 relay is connected to the J7 connector, where the J7 connector is used for other external required devices connected to the relay. The K1 relay is grounded through the resistor R15.
[0028] Pins 14, 15, 16 and 17 are output IOs.
[0029] Pin 1 of the microcontroller is grounded through the U2 integrated circuit, and the U2 integrated circuit is connected to the J2 connector through the D2 diode. Pin 1 and pin 2 are the input IO of the button.
[0030] Pin No. 2 of the microcontroller is grounded through the U3 integrated circuit, and the U3 integrated circuit is connected to the J3 connector through the D3 diode.
[0031] The 19th and 20th pins of the single-chip microcomputer are connected to the J5 connector through wires, and the 18th pin of the single-chip microcomputer is connected to the debugging interface through wires, and the debugging interface is connected to the J4 connector, and the debugging interface is connected to a reset signal element. The remaining pins are in a floating state.
[0032] By using a linear regulator to power the K2 and K1 relays and a voltage regulator to power the microcontroller, the microcontroller and the relay are powered separately, thereby improving the stability of the microcontroller power supply. The switching operation of the relay will not interfere with the power supply of the microcontroller, thereby ensuring that the microcontroller can operate normally in a stable power supply environment.
[0033] The push-pull control relay is realized by connecting PNP and NPN respectively through two IO pins, thereby improving the anti-interference performance.
[0034] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An anti-interference synchronizer circuit, characterized in that: It includes a single chip microcomputer, the single chip microcomputer is powered by a voltage regulator, the single chip microcomputer is connected to a K1 relay through a wire, the single chip microcomputer is connected to a K2 relay through a wire, and the K1 relay and the K2 relay are both powered by a linear regulator; Pin 14 of the single-chip microcomputer is connected to the power pin of the K2 relay through a wire, pin 15 of the single-chip microcomputer is connected to the K2 relay through a wire, pin 16 of the single-chip microcomputer is connected to the power pin of the K1 relay through a wire, and pin 17 of the single-chip microcomputer is connected to the K1 relay through a wire.
2. The anti-interference synchronizer circuit according to claim 1, characterized in that: The pin No. 1 and the pin No. 2 are the input IO of the key, and the pin No. 14, the pin No. 15, the pin No. 16 and the pin No. 17 are the output IO.
3. The anti-interference synchronizer circuit according to claim 1, characterized in that: Pin No. 1 of the single-chip microcomputer is grounded through a wire, pin No. 2 of the single-chip microcomputer is grounded through a wire, pins No. 4 and No. 9 of the single-chip microcomputer are connected in series with a reset signal element and are grounded through capacitor C3, pins No. 7 and No. 8 of the single-chip microcomputer are connected in series through capacitor C4, and pin No. 7 of the single-chip microcomputer is connected to the reset signal element through capacitor C2.
4. The anti-interference synchronizer circuit according to claim 1, characterized in that: Pin No. 15 of the single chip computer is grounded through transistor Q2.
5. The anti-interference synchronizer circuit according to claim 1, characterized in that: Pin No. 18 of the single-chip computer is connected to a debugging interface via a wire.
6. The anti-interference synchronizer circuit according to claim 5, characterized in that: The debugging interface is connected to the J4 connector, and a reset signal element is connected to the debugging interface.
7. The anti-interference synchronizer circuit according to claim 1, characterized in that: Pin 19 and pin 20 of the single chip computer are connected to the J5 connector via a wire.
8. The anti-interference synchronizer circuit according to claim 1, characterized in that: The linear regulator is connected to the integrated circuit chip U1 through a wire.
