Real-time difference comparison circuit for two paths of dynamic signals
By designing a real-time difference comparison circuit for two dynamic signals, the problems of high cost and complex technology in the prior art comparison of dynamic signals are solved, real-time monitoring and comparison are realized, and the circuit is simple and low cost.
Patent Information
- Application Number
- CN202510239254.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-03
- Publication Date
- 2025-06-27
AI Technical Summary
When comparing two dynamic signals, the prior art requires the use of high-speed microcontrollers or DSPs, resulting in high costs and increased technical complexity.
A real-time difference comparison circuit for two dynamic signals is designed. Through the design of comparator A and comparator B, the input resistor and output isolation diode are combined to realize real-time monitoring and comparison of the two signals.
Real-time monitoring and comparison of two dynamic signals is realized. By adjusting the resistance value of the resistor, the percentage of signal difference that needs to be compared, the overall circuit is simple to construct, low cost, high reliability and high efficiency.
Smart Images

Figure CN120223052A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power electronic circuits, and particularly to a real-time difference comparison circuit for two-way dynamic signals. Background Art
[0002] With the progress and development of society, various intelligent control and monitoring products are more and more widely used. It is often necessary to compare two dynamic signals. Once one signal is greater than a certain percentage (which can be set) of the other signal, an alarm signal needs to be output for the device to process. Generally, it can only be solved by using a high-speed single-chip microcomputer or DSP, which not only has a high cost, but also involves software and hardware technologies, resulting in a relatively high cost. Summary of the Invention
[0003] The purpose of the present invention is to solve the technical problems existing in the background art. Therefore, a real-time difference comparison circuit for two-way dynamic signals is provided.
[0004] In order to achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0005] A real-time difference comparison circuit for two-way dynamic signals includes comparator A and comparator B;
[0006] The non-inverting input terminal of comparator A is electrically connected to one end of input resistor R1, and the other end of input resistor R1 is connected to dynamic signal one VIN1. The inverting input terminal of comparator A is electrically connected to one end of input resistor R2, and the other end of input resistor R2 is connected to dynamic signal two VIN2;
[0007] The non-inverting input terminal of comparator B is electrically connected to one end of input resistor R3, and the other end of input resistor R3 is connected to dynamic signal two VIN2. The inverting input terminal of comparator B is electrically connected to one end of input resistor R4, and the other end of input resistor R4 is connected to dynamic signal one VIN1;
[0008] The output terminal of comparator A is electrically connected to the positive electrode of output isolation diode D1, and the negative electrode of output isolation diode D1 is electrically connected to common alarm output terminal VOUT. The output terminal of comparator B is electrically connected to the positive electrode of output isolation diode D2, and the negative electrode of output isolation diode D2 is electrically connected to common alarm output terminal VOUT.
[0009] The following is a further limited technical solution of the present invention. Both output isolation diode D1 and output isolation diode D2 are set as light-emitting diodes.
[0010] The following is a further limited technical solution of the present invention. The non-inverting input terminal of comparator A is electrically connected to one end of resistor R5, and the other end of resistor R5 is grounded.
[0011] The following is a further limited technical solution of the present invention. The non-inverting input terminal of the comparator B is electrically connected to one end of the resistor R6, and the other end of the resistor R6 is grounded.
[0012] Compared with the prior art, the present invention has the following technical effects:
[0013] Through the design of the overall circuit, the present invention can monitor and compare two dynamically changing signals in real time, and by adjusting the resistance value of the resistor, the percentage of the difference between the two signals to be compared can be set. The overall circuit structure is simple and reasonable, with low cost, high reliability and high efficiency.
[0014] The following further illustrates the present invention in conjunction with the drawings and embodiments. Description of the Drawings
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required to be used in the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0016] Figure 1 It is a circuit connection relationship diagram of the present invention. Specific Embodiments
[0017] In order to make the above objects, features and advantages of the present invention more obvious and understandable, the following will make a detailed description of the specific embodiments of the present invention in conjunction with the drawings. Many specific details are set forth in the following description in order to fully understand the present invention. However, the present invention can be implemented in many other ways different from those described herein. Those skilled in the art can make similar improvements without departing from the connotation of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed below.
[0018] As Figure 1 shown, this embodiment provides a real-time difference comparison circuit for two-way dynamic signals, mainly including two comparators A and B (which can also be replaced by operational amplifiers), input resistors R1, R2, R3, R4, a resistor R5 for setting the monitoring percentage, R6, and output isolation diodes D1, D2.
[0019] The specific connection relationship is as follows:
[0020] The non-inverting input terminal of comparator A is electrically connected to one end of input resistor R1, and the other end of input resistor R1 is connected to dynamic signal VIN1. The inverting input terminal of comparator A is electrically connected to one end of input resistor R2, and the other end of input resistor R2 is connected to dynamic signal VIN2. The non-inverting input terminal of comparator B is electrically connected to one end of input resistor R3, and the other end of input resistor R3 is connected to dynamic signal VIN2. The inverting input terminal of comparator B is electrically connected to one end of input resistor R4, and the other end of input resistor R4 is connected to dynamic signal VIN1. The output terminal of comparator A is electrically connected to the positive electrode of output isolation diode D1, and the negative electrode of output isolation diode D1 is electrically connected to common alarm output terminal VOUT. The output terminal of comparator B is electrically connected to the positive electrode of output isolation diode D2, and the negative electrode of output isolation diode D2 is electrically connected to common alarm output terminal VOUT. The non-inverting input terminal of comparator A is electrically connected to one end of resistor R5, and the other end of resistor R5 is grounded. The non-inverting input terminal of comparator B is electrically connected to one end of resistor R6, and the other end of resistor R6 is grounded. Further, both output isolation diode D1 and output isolation diode D2 are provided as light-emitting diodes, and they emit lights of different colors.
[0021] Therefore, comparator A, input resistors R1, R2, resistor R5, and output isolation diode D1 form a comparison circuit. When comparator A detects that the percentage of dynamic signal VIN1 being greater than dynamic signal VIN2 exceeds the set alarm percentage, it outputs a high-level alarm signal, where the percentage formula is R1 / (R1 + R5). Comparator B, input resistors R3, R4, resistor R6, and output isolation diode D2 form a comparison circuit. When comparator B detects that the percentage of dynamic signal VIN2 being greater than dynamic signal VIN1 exceeds the set alarm percentage, it outputs a high-level alarm signal, where the percentage formula is R3 / (R3 + R6).
[0022] The high-level alarm signals output from the above two paths are isolated by output isolation diodes D1 and D2 and then output as a common alarm output signal.
[0023] In summary, the present invention can perform real-time monitoring and comparison on two dynamically changing signals to determine whether the device is operating within the normal range, ensuring the reliable and safe operation of the device.
[0024] The above are only the preferred embodiments of the present invention, and do not impose any form of limitation on the present invention. Any person skilled in the art can make many possible changes and modifications to the technical solution of the present invention, or modify it into an equivalent embodiment with equivalent changes, without departing from the scope of the technical solution of the present invention. Therefore, all equivalent changes made according to the shape, structure, and principle of the present invention without departing from the content of the technical solution of the present invention shall be covered by the protection scope of the present invention.
Claims
1. A real-time difference comparison circuit for two-way dynamic signals, characterized in that: including a comparator A and a comparator B; The non-inverting input terminal of the comparator A is electrically connected to one end of the input resistor R1, and the other end of the input resistor R1 is connected to the dynamic signal 1 VIN1. The inverting input terminal of the comparator A is electrically connected to one end of the input resistor R2, and the other end of the input resistor R2 is connected to the dynamic signal 2 VIN2. The non-inverting input terminal of the comparator B is electrically connected to one end of the input resistor R3, and the other end of the input resistor R3 is connected to the dynamic signal 2 VIN2. The inverting input terminal of the comparator B is electrically connected to one end of the input resistor R4, and the other end of the input resistor R4 is connected to the dynamic signal 1 VIN1. The output end of the comparator A is electrically connected to the positive electrode of the output isolation diode D1, and the negative electrode of the output isolation diode D1 is electrically connected to the common alarm output end VOUT. The output end of the comparator B is electrically connected to the positive electrode of the output isolation diode D2, and the negative electrode of the output isolation diode D2 is electrically connected to the common alarm output end VOUT.
2. A real-time difference comparison circuit for two-way dynamic signals as claimed in claim 1, characterized in that: The output isolation diode D1 and the output isolation diode D2 are both configured as light emitting diodes.
3. A real-time difference comparison circuit for two-way dynamic signals as claimed in claim 1, characterized in that: The non-inverting input terminal of the comparator A is electrically connected to one end of the resistor R5, and the other end of the resistor R5 is grounded.
4. A real-time difference comparison circuit for two-way dynamic signals as claimed in claim 1, characterized in that: The non-inverting input terminal of the comparator B is electrically connected to one end of the resistor R6 , and the other end of the resistor R6 is grounded.