CN207601158U - A kind of detection circuit and its microprocessor of voltage and current analog signals - Google Patents

A kind of detection circuit and its microprocessor of voltage and current analog signals Download PDF

Info

Publication number
CN207601158U
CN207601158U CN201721738085.9U CN201721738085U CN207601158U CN 207601158 U CN207601158 U CN 207601158U CN 201721738085 U CN201721738085 U CN 201721738085U CN 207601158 U CN207601158 U CN 207601158U
Authority
CN
China
Prior art keywords
circuit
signal
voltage
output terminal
detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201721738085.9U
Other languages
Chinese (zh)
Inventor
曾宪金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Invt Electric Co Ltd
Original Assignee
Shenzhen Invt Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Invt Electric Co Ltd filed Critical Shenzhen Invt Electric Co Ltd
Priority to CN201721738085.9U priority Critical patent/CN207601158U/en
Application granted granted Critical
Publication of CN207601158U publication Critical patent/CN207601158U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

This application discloses a kind of detection circuit of voltage and current analog signals, including:Output terminal of the input terminal of first filter circuit respectively with the input terminal of the second filter circuit and resistance adjustment circuit is connect, as detection signal input part;First filter circuit output terminal is connect with the input terminal of the first bleeder circuit;The output terminal of first bleeder circuit is as voltage detection signal output terminal;The input terminal of second bleeder circuit is connect with the output terminal of the second filter circuit;Output terminal is as current detection signal output terminal;The input terminal of resistance adjustment circuit is as voltage and current switching control end, and when inputting the first signal, output resistance is the first resistance value;When inputting second signal, output resistance is the second resistance value less than the first resistance value.The application selects to be detected voltage or current signal by electric signal, relatively simple convenience.Disclosed herein as well is a kind of for controlling the microprocessor of above-mentioned detection circuit, it may have above-mentioned advantageous effect.

Description

A kind of detection circuit and its microprocessor of voltage and current analog signals
Technical field
This application involves power electronics field, the detection circuit of more particularly to a kind of voltage and current analog signals and Its microprocessor.
Background technology
In the extensive application occasion at modern industry scene, analog signals are used as control signal or feedback signal In controlling and adjusting industrial progress, thus, the detection technique of analog signals is most important.
Specifically, the analog signals used in industry spot are usually the voltage signal or 0-20mV of 0-10V Current signal.In the prior art, when selection is to carry out voltage analog signal detection or current-mode analog quantity signal detection, Specifically realized by the way of toggle switch or wire jumper needle.But either toggle switch or wire jumper needle, it is required for User goes to operate manually, and this often brings many inconvenience in practical applications.On the one hand, toggle switch or wire jumper needle will Its layout on control panel is asked to contact and operate convenient for user, this brings limitation to the layout designs of PCB;The opposing party Face when in face of certain equipment with special mounting requirement, such as can be generally installed in the mechanical mechanisms such as electrical cabinet Frequency converter, user are often limited by installation site and installation space size and are difficult to adjust manually.
It can be seen that using which kind of voltage and current analog signals detection circuit, to select voltage using electric signal Analog signals detect or current-mode analog quantity signal detection, mechanical switch selection are manually operated, and then improve to avoid user User experience is those skilled in the art's technical issues that need to address.
Utility model content
The application's is designed to provide a kind of detection circuit and its microprocessor of voltage and current analog signals, so as to Voltage analog signal detection or current-mode analog quantity signal detection are selected using electric signal, to avoid user's manual operation machine Tool switch selection, and then improve user experience.
In order to solve the above technical problems, the application provides a kind of detection circuit of voltage and current analog signals, for even It is connected between detected signal and microprocessor, including resistance adjustment circuit, the first filter circuit, the second filter circuit, first Bleeder circuit and the second bleeder circuit;
Wherein, the input terminal of first filter circuit respectively with the input terminal of second filter circuit and the resistance The output terminal connection of circuit is adjusted, and as the detection signal input part of the detection circuit;
The output terminal of first filter circuit is connect with the input terminal of first bleeder circuit;The first partial pressure electricity Voltage detection signal output terminal of the output terminal on road as the detection circuit, for voltage sense signal to micro- place Manage device;The dividing ratios of first bleeder circuit are predeterminated voltage magnification ratio;
The output terminal of second filter circuit is connect with the input terminal of second bleeder circuit;The second partial pressure electricity Current detection signal output terminal of the output terminal on road as the detection circuit, for output electric current measure signal to micro- place Manage device;
Voltage and current switching control end of the input terminal of the resistance adjustment circuit as the detection circuit, for institute The control output end connection of microprocessor is stated, when input the first signal, the output resistance of the resistance adjustment circuit is the One resistance value;When inputting second signal, the output resistance of the resistance adjustment circuit is less than the second of first resistance value The product of resistance value, second resistance value and the dividing ratios of second bleeder circuit is predetermined current magnification ratio.
Optionally, the resistance adjustment circuit includes first resistor, second resistance, third bleeder circuit and controllable switch Pipe;
Wherein, input terminal of the input terminal of the third bleeder circuit as the resistance adjustment circuit, for it is described The control output end connection of microprocessor, output terminal are connect with the control terminal of the controlled tr tube;The controlled tr tube First end is grounded, and second end is connect with the first end of the second resistance;The second end of the second resistance and the described first electricity The first end connection of resistance, and as the output terminal of the resistance adjustment circuit;The second end ground connection of the first resistor;
When the input signal of the third bleeder circuit is first signal, the controlled tr tube shutdown;Work as institute When the input signal for stating third bleeder circuit is the second signal, the controlled tr tube conducting.
Optionally, the controlled tr tube is NMOS tube, and first signal is low level, and the second signal is high electricity It is flat.
Optionally, the first clamp circuit and the second clamp circuit are further included;
Wherein, the output terminal of first clamp circuit is connect with the voltage detection signal output terminal, for described The voltage detection signal of voltage detection signal output terminal output carries out amplitude limit;
The output terminal of second clamp circuit is connect with the current detection signal output terminal, for being examined to the electric current The current detection signal for surveying signal output end output carries out amplitude limit.
Optionally, further including first voltage follows circuit, second voltage to follow circuit, third clamp circuit and the 4th clamper Circuit;
Wherein, the output terminal of first filter circuit follows the input terminal of circuit and described with the first voltage respectively The output terminal connection of third clamp circuit;The first voltage follows the output terminal of circuit and the input of first bleeder circuit End connection;The third clamp circuit is used to carry out amplitude limit to the first filtering signal that first filter circuit exports, and avoids First filtering signal follows the input range of circuit beyond the first voltage;
The output terminal of second filter circuit follows the input terminal and the described 4th of circuit with the second voltage respectively The output terminal connection of clamp circuit;The second voltage follows the output terminal of circuit to connect with the input terminal of second bleeder circuit It connects;4th clamp circuit is used to carry out amplitude limit to the second filtering signal that second filter circuit exports, and avoids described Second filtering signal follows the input range of circuit beyond the second voltage.
Optionally, first clamp circuit, second clamp circuit, the third clamp circuit and the 4th pincers Position circuit is double Schottky diode clamp circuits.
Optionally, third filter circuit is further included;
Wherein, the output terminal of the third filter circuit respectively with the input terminal of first filter circuit, described second The input terminal of filter circuit is connected with the output terminal of the resistance adjustment circuit, the input terminal of the third filter circuit with it is described Detected signal connects, the detection signal input part as the detection circuit.
Optionally, the third filter circuit includes magnetic bead and capacitance;
Wherein, input terminal of the first end of the magnetic bead as the third filter circuit, second end and the capacitance First end connects, and as the output terminal of the third filter circuit, and the second end of the capacitance is grounded.
Optionally, the predeterminated voltage magnification ratio is less than theoretical voltage magnification ratio;The predetermined current magnification ratio Less than theoretical current magnification ratio;In order to be corrected to the voltage detection signal or the current detection signal.
Present invention also provides a kind of for controlling micro- place of the detection circuit of voltage and current analog signals as described above Device is managed, the output terminal of the microprocessor is connect with the voltage and current switching control end of the detection circuit, micro- place Reason implement body is used for:
Obtain the signal type of signal to be detected input by user;
When the signal type is voltage signal, sent to the voltage and current switching control end of the detection circuit First signal;To obtain the voltage detection signal from the voltage detection signal output terminal;
When the signal type is current signal, sent to the voltage and current switching control end of the detection circuit The second signal;To obtain the current detection signal from the current detection signal output terminal.
The detection circuit of voltage and current analog signals provided herein, including resistance adjustment circuit, the first filtering Circuit, the second filter circuit, the first bleeder circuit and the second bleeder circuit;Wherein, the input terminal of first filter circuit point Output terminal not with the input terminal of second filter circuit and the resistance adjustment circuit is connect, and is used as the detection circuit Detection signal input part;The output terminal of first filter circuit is connect with the input terminal of first bleeder circuit;It is described Voltage detection signal output terminal of the output terminal of first bleeder circuit as the detection circuit is detected for output voltage and is believed Number;The dividing ratios of first bleeder circuit are predeterminated voltage magnification ratio;The output terminal of second filter circuit and institute State the input terminal connection of the second bleeder circuit;Current detecting of the output terminal of second bleeder circuit as the detection circuit Signal output end, for output electric current measure signal;Electricity of the input terminal of the resistance adjustment circuit as the detection circuit Current voltage switching control end, when inputting the first signal, the output resistance of the resistance adjustment circuit is the first resistance value;When defeated When entering second signal, the output resistance of the resistance adjustment circuit is the second resistance value less than first resistance value, described the Two resistance values and the product of the dividing ratios of second bleeder circuit are predetermined current magnification ratio.
As it can be seen that compared with the prior art, in the detection circuit of voltage and current analog signals provided herein, resistance Its output resistance can be adjusted, and then change according to the signal that voltage and current switching control end is inputted to switch by adjusting circuit Load resistance size in detection circuit for access, to be done to voltage analog signal detection or current-mode analog quantity signal detection Go out selection.Due to the detection circuit of voltage and current analog signals provided herein utilize be electric signal and on-mechanical is opened It closes, user switchs without hand operating mechanism, thus uses more convenient, greatly improves user experience.The application What is provided is used to control the microprocessor of the detection circuit of above-mentioned voltage and current analog signals, equally with above-mentioned beneficial to effect Fruit.
Description of the drawings
In order to illustrate more clearly of the technical solution in the prior art and the embodiment of the present application, below will to the prior art and Attached drawing to be used is needed to make brief introduction in the embodiment of the present application description.Certainly, the attached drawing in relation to the embodiment of the present application below Part of the embodiment in only the application of description, to those skilled in the art, is not paying creativeness Under the premise of labour, other attached drawings can also be obtained according to the attached drawing of offer, the other accompanying drawings obtained also belong to the application Protection domain.
The structure diagram of the detection circuit of a kind of voltage and current analog signals that Fig. 1 is provided by the embodiment of the present application;
The circuit structure of the detection circuit of a kind of voltage and current analog signals that Fig. 2 is provided by the embodiment of the present application Figure.
Specific embodiment
The core of the application is to provide a kind of detection circuit and its microprocessor of voltage and current analog signals, so as to Voltage analog signal detection or current-mode analog quantity signal detection are selected using electric signal, to avoid user's manual operation machine Tool switch selection, and then improve user experience.
In order to more clearly and completely be described to the technical solution in the embodiment of the present application, below in conjunction with this Shen Attached drawing that please be in embodiment, is introduced the technical solution in the embodiment of the present application.Obviously, described embodiment is only Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art All other embodiments obtained without making creative work shall fall in the protection scope of this application.
It please refers to Fig.1, the detection circuit of a kind of voltage and current analog signals that Fig. 1 is provided by the embodiment of the present application Structure diagram, the detection circuit for being connected between detected signal and microprocessor, mainly include resistance adjustment circuit 1, First filter circuit 2, the second filter circuit 3, the first bleeder circuit 4 and the second bleeder circuit 5;
Wherein, the input terminal of the first filter circuit 2 respectively with the input terminal of the second filter circuit 3 and resistance adjustment circuit 1 Output terminal connection, and as the detection signal input part of detection circuit;
The output terminal of first filter circuit 2 is connect with the input terminal of the first bleeder circuit 4;The output of first bleeder circuit 4 The voltage detection signal output terminal as detection circuit is held, for voltage sense signal to microprocessor;First partial pressure electricity The dividing ratios on road 4 are predeterminated voltage magnification ratio;
The output terminal of second filter circuit 3 is connect with the input terminal of the second bleeder circuit 5;The output of second bleeder circuit 5 The current detection signal output terminal as detection circuit is held, for output electric current measure signal to microprocessor;
Voltage and current switching control end of the input terminal of resistance adjustment circuit 1 as detection circuit, is used for and microprocessor Control output end connection, when input the first signal, the output resistance of resistance adjustment circuit 1 is the first resistance value;Work as input During second signal, the output resistance of resistance adjustment circuit 1 is the second resistance value less than the first resistance value, the second resistance value with second point The product of the dividing ratios of volt circuit 5 is predetermined current magnification ratio.
Specifically, the output of analog signals detection circuit including voltage detection signal or current detection signal, needs The input range for meeting microprocessor analog-to-digital conversion in subsequent conditioning circuit (Analog-Digital Conversion, ADC) port will It asks, is in general 0-3V.Therefore, analog signals detection circuit needs to carry out the voltage signal of input or current signal After certain ratio enlargement, voltage detection signal or current detection signal in the range of target amplitude can be just obtained.As a result, Magnification ratio in voltage analog signal detection process should be with the magnification ratio in current-mode analog quantity signal detection process not Together.Therefore, in the detection circuit of voltage and current analog signals that the embodiment of the present application is provided, the first filter circuit 2 and Branch where one bleeder circuit 4 is the branch for voltage sense signal, and magnification ratio is predeterminated voltage magnification ratio; And the branch where the second filter circuit 3 and the second bleeder circuit 5 is for the branch of output electric current measure signal, magnification ratio For predetermined current magnification ratio.It should be noted that amplification mentioned here is intended to process rather than as a result, therefore also includes putting Big multiple is less than 1 situation.
Since voltage signal is different with the property of current signal, the resistance value size of load resistance needed for detection circuit Also it is different.Specifically, for voltage signal, in order to ensure the reliability of measurement result, load resistance can use larger value;It is and right It is required negative since it needs to divide output again after being converted to voltage signal using load resistance in current signal The resistance value for carrying resistance is smaller.The effect of resistance adjustment circuit 1 is exactly to carry out resistance adjustment in the application, so as in microprocessor institute Change the resistance value of its output resistance under the action of the voltage and current switch-over control signal of output, that is, change and electricity is loaded in detection circuit The resistance value size of resistance, and then the magnification ratio of entire detection circuit is influenced, the detection pattern of detection circuit is switched over.
Specifically, when voltage and current switch-over control signal is the first signal, resistance adjustment circuit 1 exports larger resistance Value, i.e. the first resistance value so that can be worked normally for the branch of voltage sense signal according to predeterminated voltage magnification ratio; When voltage and current switch-over control signal is second signal, the smaller resistance value of output of resistance adjustment circuit 1, i.e. the second resistance value, And the second resistance value size and the product of the dividing ratios of the second bleeder circuit are predetermined current magnification ratio so that for exporting The branch of current detection signal can be worked normally according to predetermined current magnification ratio.
Also, resistance adjustment circuit 1 can adjust the resistance value in access circuit using the break-make of controlled tr tube to realize Purpose, and those skilled in the art with designed, designed and can realize specific circuit structure, the embodiment of the present application to this not It is defined.
As it can be seen that in the detection circuit of voltage and current analog signals that the embodiment of the present application is provided, resistance adjustment circuit 1 Can its output resistance be adjusted, and then change access to switch according to the voltage and current switch-over control signal that microprocessor exports Load resistance size in detection circuit, to make choosing to voltage analog signal detection or current-mode analog quantity signal detection It selects.What is utilized due to the detection circuit of voltage and current analog signals provided herein is electric signal rather than mechanical switch, User switchs without hand operating mechanism, thus uses more convenient, greatly improves user experience.
The detection circuit of voltage and current analog signals provided herein, on the basis of above-described embodiment:
As a kind of preferred embodiment, resistance adjustment circuit 1 include first resistor, second resistance, third bleeder circuit and Controlled tr tube;
Wherein, input terminal of the input terminal of third bleeder circuit as resistance adjustment circuit 1, for defeated with microprocessor Outlet connects, and the control terminal of output terminal and controlled tr tube connects;The first end ground connection of controlled tr tube, second end and the second electricity The first end connection of resistance;The second end of second resistance and the first end of first resistor connect, and as the defeated of resistance adjustment circuit 1 Outlet;The second end ground connection of first resistor;
When the input signal of third bleeder circuit is the first signal, controlled tr tube shutdown;When third bleeder circuit When input signal is second signal, controlled tr tube conducting.
Specifically, in order to realize the resistance adjustment function of resistance adjustment circuit 1, the embodiment of the present application is employed can with control The method for controlling the break-make of switching tube resistance is controlled whether to access in circuit.The input terminal of third bleeder circuit is as detection circuit Voltage and current switching control end and microprocessor output terminal connect, receive microprocessor send voltage and current switching control Signal, to control the break-make of controlled tr tube according to the corresponding signal of voltage and current switch-over control signal output.
According to circuit connecting relation it is found that when controlled tr tube turns off, second resistance is in open-circuit condition, therefore resistance The output resistance for adjusting circuit 1 is the resistance value of first resistor, i.e., the resistance value of first resistor is the first resistance value.Work as controllable switch When pipe is connected, the conducting resistance very little of controlled tr tube can be ignored, and second resistance is in parallel with first resistor, then resistance adjustment electricity The equivalent resistance when output resistance on road 1 is first resistor and second resistance parallel connection;And because in practical applications The resistance value of first resistor is much larger than the resistance value of second resistance, therefore the equivalent resistance after the two parallel connection can almost be thought just It is the resistance value of the smaller second resistance of resistance value, therefore, the resistance value of second resistance can be taken as the second resistance value;
As a kind of preferred embodiment, controlled tr tube is NMOS tube, and the first signal is low level, and second signal is high electricity It is flat.
NMOS tube is a kind of common low-power consumption controlled tr tube in field of power electronics, certainly, those skilled in the art Other controlled tr tubes and corresponding microprocessor, the embodiment of the present application can also be used not to be defined this.
As a kind of preferred embodiment, the first clamp circuit 6 and the second clamp circuit 7 are further included;
Wherein, the output terminal of the first clamp circuit 6 is connect with voltage detection signal output terminal, for voltage detection signal The voltage detection signal of output terminal output carries out amplitude limit;
The output terminal 7 of second clamp circuit is connect with current detection signal output terminal, for being exported to current detection signal The current detection signal of end output carries out amplitude limit.
Specifically, it as previously mentioned, the detection signal of output generally requires amplitude in the range of 0-3V, is otherwise likely to damage Microprocessor in bad subsequent conditioning circuit.It therefore, can be in electricity in order to ensure the output of detection circuit is no more than output amplitude range Pressure detection signal output end and current detection signal output terminal set clamp circuit to carry out limited amplitude protection respectively.
As a kind of preferred embodiment, further include first voltage and circuit 8, second voltage is followed to follow circuit 9, third clamper 10 and the 4th clamp circuit 11 of circuit;
Wherein, the output terminal of the first filter circuit 2 follows the input terminal of circuit 8 and third clamper electricity with first voltage respectively The output terminal connection on road 10;First voltage follows the output terminal of circuit 8 to be connect with the input terminal of the first bleeder circuit 4;Third clamps Position circuit 10 is used for the first filtering signal export to the first filter circuit 2 and carries out amplitude limit, and the first filtering signal is avoided to exceed the The input range of one voltage follower circuit;
The output terminal of second filter circuit 3 follows the input terminal and the 4th clamp circuit 11 of circuit 9 with second voltage respectively Output terminal connection;Second voltage follows the output terminal of circuit 9 to be connect with the input terminal of the second bleeder circuit 5;4th clamper electricity Road 11 is used to carry out amplitude limit to the second filtering signal that the second filter circuit 3 exports, and avoids the second filtering signal beyond the second electricity Pressure follows the input range of circuit.
Specifically, the first filter circuit 2 and the second filter circuit 3 can be common RC low-pass filter circuits.In order to increase The driving force on forceful electric power road, and influencing each other between filter circuit and bleeder circuit is avoided, it can also be respectively in voltage analog Setting first voltage follows circuit and second voltage to follow electricity in amount signal detection branch and current-mode analog quantity signal detection branch Road.Also, for the normal work for ensureing voltage follower circuit, can respectively first voltage follow circuit and second voltage with Third clamp circuit and the 4th clamp circuit are set with the input terminal of circuit, carry out limited amplitude protection.
As a kind of preferred embodiment, the first clamp circuit 6, the second clamp circuit 7, third clamp circuit 10 and the 4th clamp Position circuit 11 is double Schottky diode clamp circuits.
Schottky diode has relatively low conduction voltage drop, therefore, can be had using double Schottky diode clamp circuits Effect improves the protective capability of clamp circuit.
As a kind of preferred embodiment, third filter circuit 12 is further included;
Wherein, the output terminal of third filter circuit 12 respectively with the input terminal of the first filter circuit 2, the second filter circuit 3 Input terminal connected with the output terminal of resistance adjustment circuit 1, the input terminal of third filter circuit 12 is connect with detected signal, make Detection signal input part for detection circuit.
Specifically, due to being highly susceptible to interfere in signal processing, two stage filter can be set, with into one Step improves filter effect.
As a kind of preferred embodiment, third filter circuit 12 includes magnetic bead and capacitance;
Wherein, the first end connection of input terminal of the first end of magnetic bead as third filter circuit, second end and capacitance, and As the output terminal of third filter circuit, the second end of capacitance is grounded.
Specifically, the filter circuit formed using magnetic bead and capacitance can be effectively prevented surge input, improve circuit Antijamming capability.
As a kind of preferred embodiment, predeterminated voltage magnification ratio is less than theoretical voltage magnification ratio;Predetermined current is amplified Ratio is less than theoretical current magnification ratio;In order to be corrected to voltage detection signal or current detection signal.
Specifically, due to analog signals detection hardware circuit, generally by linear component, (such as resistance, capacitance and operation are put Big device) it forms, and the value of the components such as resistance, capacitance can be there are error, for example, the precision of resistance is 1%, operational amplifier is deposited In input offset voltage, therefore, analog signals detect hardware circuit, and there is also certain deviations, influence the detection essence of signal Degree.The embodiment of the present application is set by surplus as a result, can also be by software approach to deviation unavoidable in hardware circuit It compensates,
For example, the output amplitude range of the voltage signal and 0-3V to be detected for 0-10V, theoretical voltage magnification ratio 0.3 is should be, and the predeterminated voltage magnification ratio in circuit can be set as to the value more slightly smaller than 0.3 in the embodiment of the present application, such as 0.291 can be set as, then when the voltage signal of input is the 10V of full scale, output is only 0.291V, will pass through surplus setting The deviation generated in hardware circuit is compensated with software correction algorithm.For the current signal and 0-3V to be detected of 0-20mA Output amplitude range, theoretical current magnification ratio should be 150, and can be by the predetermined current in circuit in the embodiment of the present application Magnification ratio sets the value more slightly smaller than 150, such as can be set as 141, then defeated when the current signal of input is the 20mA of full scale Going out only 2.82V, the deviation generated in hardware circuit being compensated with will pass through surplus setting and software correction algorithm.
It please refers to Fig.2, the detection circuit of a kind of voltage and current analog signals that Fig. 2 is provided by the embodiment of the present application Circuit structure diagram.
As shown in Fig. 2, wherein, AI is detection signal input part, for inputting detected signal, including voltage signal or Current signal.AI_V_AD is voltage detection signal output terminal, connectable to the first ADC ports of microprocessor, for exporting electricity Pressure detection signal;AI_I_AD is current detection signal output terminal, connectable to the 2nd ADC ports of microprocessor, for exporting Current detection signal.SEL_I is voltage and current switching control end, can be connect with the digital I/O port of microprocessor, for receiving The voltage and current switch-over control signal that microprocessor is sent to control the shutdown of controlled tr tube Q or conducting, and then selects Carry out voltage analog signal detection or current-mode analog quantity signal detection.
Specifically, resistance R8 and capacitance C2 constitutes the first filter circuit 2;Resistance R9 and capacitance C4 constitute the second filtering Circuit 3;Magnetic bead L1 and capacitance C1 constitute third filter circuit 12;Resistance R4 and resistance R5 constitutes the first bleeder circuit 4, electricity Resistance R11 and resistance R12 constitutes the second bleeder circuit 5;Resistance R6 and resistance R7 constitute third bleeder circuit;Third partial pressure electricity Road, controlled tr tube Q, resistance R1 and resistance R2 constitute resistance adjustment circuit 1, wherein, resistance R1 is the first described electricity Resistance, resistance value is specifically as follows 20K Ω, and resistance R2 is described second resistance, and resistance value is specifically as follows 250 Ω;Xiao Special base diode D3 and D4, D7 and D8 have respectively constituted the first clamp circuit 6, the second clamp circuit 7, clamp supply 3V;Fortune Amplifier U1-A, resistance R13, resistance R3 and capacitance C3 is calculated to constitute first voltage and follow circuit 8;Operational amplifier U1-B, electricity Resistance R14, resistance R10 and capacitance C5 constitute second voltage and follow circuit 9;Schottky diode D1 and D2, D5 and D6 difference structures Into third clamp circuit 10, the 4th clamp circuit 11, clamp supply 15V.
Also, as before, the embodiment of the present application employs voltage analog signal or 0-20mA of the surplus setting to 0-10V Current-mode analog quantity signal be detected.Specifically, set by appropriate electric resistance partial pressure, the embodiment of the present application may be implemented in by When detectable voltage signals reach full scale 10V, detection circuit output voltage detection signal than microprocessor ADC ports full amount The low about 0.09V of journey voltage (3V);And when sensed current signal reaches full scale 20mA, the current detection signal ratio of output The low about 0.14V of full range voltage (3V) of ADC ports.By regarding described 0.09V or 0.14V as correction surplus, and profit It is compensated with software correction algorithm, can effectively reach reduction because of resistance value variations and the input offset voltage of operational amplifier And the detection error generated, improve signal detection precision.
The microprocessor of the detection circuit of voltage and current analog signals provided below the embodiment of the present application carries out It introduces.
The output terminal for the microprocessor that the embodiment of the present application is provided and the voltage and current switching control end of detection circuit connect It connects, is specifically used for:
Obtain the signal type of signal to be detected input by user;
When signal type is voltage signal, the first signal is sent to the voltage and current switching control end of detection circuit;With Just voltage detection signal is obtained from voltage detection signal output terminal;
When signal type is current signal, second signal is sent to the voltage and current switching control end of detection circuit;With Just current detection signal is obtained from current detection signal output terminal.
Specifically, user can select to carry out voltage using functions such as the touch-screen input of control terminal or key-press inputs Analog signals detect or current-mode analog quantity signal detection, so that microprocessor obtains the signal type of signal to be detected.
It, can be to the electricity of detection circuit after microprocessor gets the signal type of signal to be detected input by user Current voltage switching control end inputs corresponding voltage and current switch-over control signal, and the defeated of circuit 1 is adjusted to switch regulation resistance Go out resistance value.Specifically, when carrying out voltage analog signal detection, corresponding voltage and current switch-over control signal is the first letter Number, and when carrying out current-mode analog quantity signal detection, corresponding voltage and current switch-over control signal is second signal.
As it can be seen that the microprocessor of the detection circuit of voltage and current analog signals provided herein, by control to The voltage and current switch-over control signal of voltage and current switching control end input can switch the output electricity that regulation resistance adjusts circuit 1 Resistance value, and then change the load resistance size in detection circuit for access, so as to voltage analog signal detection or current-mode Analog quantity signal detection makes a choice.Due to the microprocessor of the detection circuit of voltage and current analog signals provided herein What is utilized is electric signal rather than mechanical switch, and user switchs without hand operating mechanism, thus uses more convenient, pole The earth improves user experience.
The specific embodiment of the microprocessor of the detection circuit of voltage and current analog signals provided herein with The detection circuit of voltage and current analog signals as described above can correspond reference, just repeat no more here.
Each embodiment is described by the way of progressive in the application, the highlights of each of the examples are with other realities Apply the difference of example, just to refer each other for identical similar portion between each embodiment.For method disclosed in embodiment Speech, due to its with embodiment disclosed in circuit it is corresponding, so description is fairly simple, related part is referring to method part illustration .
It should be noted that in present specification, the relational terms of such as " first " and " second " etc are used merely to One entity is either operated and is distinguished with another entity or operation, without necessarily requiring or implying these entities or There are any actual relationship or orders between person's operation.In addition, term " comprising ", "comprising" or its any other Variant is intended to non-exclusive inclusion, so that process, method, article or equipment including a series of elements are not only Including those elements, but also including other elements that are not explicitly listed or further include as this process, method, object Product or the intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", It is not precluded in the process, method, article or apparatus that includes the element that also there are other identical elements.
Technical solution provided herein is described in detail above.Specific case used herein is to this Shen Principle and embodiment please is expounded, the explanation of above example is only intended to help understand the present processes and its Core concept.It should be pointed out that for those skilled in the art, in the premise for not departing from the application principle Under, can also to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection of the application claim In the range of.

Claims (10)

1. a kind of detection circuit of voltage and current analog signals, for being connected between detected signal and microprocessor, It is characterized in that, the detection circuit of the voltage and current analog signals includes resistance adjustment circuit, the first filter circuit, the second filter Wave circuit, the first bleeder circuit and the second bleeder circuit;
Wherein, the input terminal of first filter circuit respectively with the input terminal of second filter circuit and the resistance adjustment The output terminal connection of circuit, and as the detection signal input part of the detection circuit;
The output terminal of first filter circuit is connect with the input terminal of first bleeder circuit;First bleeder circuit Voltage detection signal output terminal of the output terminal as the detection circuit, for voltage sense signal to the microprocessor Device;The dividing ratios of first bleeder circuit are predeterminated voltage magnification ratio;
The output terminal of second filter circuit is connect with the input terminal of second bleeder circuit;Second bleeder circuit Current detection signal output terminal of the output terminal as the detection circuit, for output electric current measure signal to the microprocessor Device;
Voltage and current switching control end of the input terminal of the resistance adjustment circuit as the detection circuit, for it is described micro- The output terminal connection of processor, when inputting the first signal, the output resistance of the resistance adjustment circuit is the first resistance value;When When inputting second signal, the output resistance of the resistance adjustment circuit is the second resistance value less than first resistance value, described Second resistance value and the product of the dividing ratios of second bleeder circuit are predetermined current magnification ratio.
2. detection circuit according to claim 1, which is characterized in that the resistance adjustment circuit includes first resistor, the Two resistance, third bleeder circuit and controlled tr tube;
Wherein, input terminal of the input terminal of the third bleeder circuit as the resistance adjustment circuit, for micro- place The output terminal connection of device is managed, output terminal is connect with the control terminal of the controlled tr tube;First termination of the controlled tr tube Ground, second end are connect with the first end of the second resistance;The second end of the second resistance and the first of the first resistor End connection, and as the output terminal of the resistance adjustment circuit;The second end ground connection of the first resistor;
When the input signal of the third bleeder circuit is first signal, the controlled tr tube shutdown;When described When the input signal of three bleeder circuits is the second signal, the controlled tr tube conducting.
3. detection circuit according to claim 2, which is characterized in that the controlled tr tube be NMOS tube, described first Signal is low level, and the second signal is high level.
4. detection circuit according to claim 1, which is characterized in that further include the first clamp circuit and the second clamper electricity Road;
Wherein, the output terminal of first clamp circuit is connect with the voltage detection signal output terminal, for the voltage The voltage detection signal for detecting signal output end output carries out amplitude limit;
The output terminal of second clamp circuit is connect with the current detection signal output terminal, for believing the current detecting The current detection signal of number output terminal output carries out amplitude limit.
5. detection circuit according to claim 4, which is characterized in that further include first voltage and follow circuit, second voltage Follow circuit, third clamp circuit and the 4th clamp circuit;
Wherein, the output terminal of first filter circuit follows the input terminal of circuit and the third with the first voltage respectively The output terminal connection of clamp circuit;The first voltage follows the output terminal of circuit to connect with the input terminal of first bleeder circuit It connects;The third clamp circuit is used to carry out amplitude limit to the first filtering signal that first filter circuit exports, and avoids described First filtering signal follows the input range of circuit beyond the first voltage;
The output terminal of second filter circuit follows the input terminal of circuit and the 4th clamper with the second voltage respectively The output terminal connection of circuit;The second voltage follows the output terminal of circuit to be connect with the input terminal of second bleeder circuit; 4th clamp circuit is used to carry out amplitude limit to the second filtering signal that second filter circuit exports, and avoids described second Filtering signal follows the input range of circuit beyond the second voltage.
6. detection circuit according to claim 5, which is characterized in that first clamp circuit, second clamper electricity Road, the third clamp circuit and the 4th clamp circuit are double Schottky diode clamp circuits.
7. detection circuit according to claim 1, which is characterized in that further include third filter circuit;
Wherein, the output terminal of the third filter circuit filters respectively with the input terminal of first filter circuit, described second The input terminal of circuit is connected with the output terminal of the resistance adjustment circuit, and the input terminal of the third filter circuit is detected with described Survey signal connection, the detection signal input part as the detection circuit.
8. detection circuit according to claim 7, which is characterized in that the third filter circuit includes magnetic bead and capacitance;
Wherein, input terminal of the first end of the magnetic bead as the third filter circuit, second end and the first of the capacitance End connection, and as the output terminal of the third filter circuit, the second end of the capacitance is grounded.
9. according to claim 1 to 8 any one of them detection circuit, which is characterized in that the predeterminated voltage magnification ratio is small In theoretical voltage magnification ratio;The predetermined current magnification ratio is less than theoretical current magnification ratio;In order to the voltage Detection signal or the current detection signal are corrected.
10. a kind of detection circuit for being used to control voltage and current analog signals as described in any one of claim 1 to 9 is micro- Processor, which is characterized in that the output terminal of the microprocessor and the voltage and current switching control end of the detection circuit Connection, the microprocessor are specifically used for:
Obtain the signal type of signal to be detected input by user;
When the signal type is voltage signal, to described in the voltage and current switching control end transmission of the detection circuit First signal;To obtain the voltage detection signal from the voltage detection signal output terminal;
When the signal type is current signal, to described in the voltage and current switching control end transmission of the detection circuit Second signal;To obtain the current detection signal from the current detection signal output terminal.
CN201721738085.9U 2017-12-08 2017-12-08 A kind of detection circuit and its microprocessor of voltage and current analog signals Active CN207601158U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201721738085.9U CN207601158U (en) 2017-12-08 2017-12-08 A kind of detection circuit and its microprocessor of voltage and current analog signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201721738085.9U CN207601158U (en) 2017-12-08 2017-12-08 A kind of detection circuit and its microprocessor of voltage and current analog signals

Publications (1)

Publication Number Publication Date
CN207601158U true CN207601158U (en) 2018-07-10

Family

ID=62763717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201721738085.9U Active CN207601158U (en) 2017-12-08 2017-12-08 A kind of detection circuit and its microprocessor of voltage and current analog signals

Country Status (1)

Country Link
CN (1) CN207601158U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110763994A (en) * 2019-12-04 2020-02-07 新阳荣乐(上海)汽车电子有限公司 Automobile switch detection working circuit structure
CN111025008A (en) * 2019-12-31 2020-04-17 深圳市有方科技股份有限公司 Voltage detection method and device
CN113109617A (en) * 2021-03-11 2021-07-13 北京怡和嘉业医疗科技股份有限公司 Circuit and method for adjusting effective value of electric signal and ventilation treatment equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110763994A (en) * 2019-12-04 2020-02-07 新阳荣乐(上海)汽车电子有限公司 Automobile switch detection working circuit structure
CN111025008A (en) * 2019-12-31 2020-04-17 深圳市有方科技股份有限公司 Voltage detection method and device
CN113109617A (en) * 2021-03-11 2021-07-13 北京怡和嘉业医疗科技股份有限公司 Circuit and method for adjusting effective value of electric signal and ventilation treatment equipment
CN113109617B (en) * 2021-03-11 2023-06-20 北京怡和嘉业医疗科技股份有限公司 Circuit and method for adjusting effective value of electric signal and ventilation treatment equipment

Similar Documents

Publication Publication Date Title
CN207601158U (en) A kind of detection circuit and its microprocessor of voltage and current analog signals
TWI783068B (en) Method of or power delivering from a rf supply generator to at least one vacuum plasma processing module, rf vacuum plasma processing module, plasma treatment plant and method of manufacturing a substrate
KR20090064390A (en) Apparatus and method for switching between matching impedances
CN101930031A (en) Multi-point simultaneous-measurement digital grounding resistance tester
CN103969487A (en) Digital multi-meter (DMM) having LCR measuring function
CN109884384A (en) A kind of signal acquisition circuit of compatible electric current and voltage input
CN102289293A (en) Press key detection device and method
CN113075439A (en) Input impedance protection circuit and method of digital oscilloscope and digital oscilloscope
CN206559040U (en) A kind of electric equipment and its power supply output overvoltage regulating circuit
CN106505856B (en) Input voltage auto-adjusting circuit and electronic equipment
CN103650600B (en) Remote Radio Unit and relevant device
US6794859B2 (en) Automatic multimeter
CN106378513B (en) The communication control system of the compatible welding equipment based on analog interface
CN106849002B (en) Voltage protection circuit and terminal device
US20190123919A1 (en) Switching device
CN109814653A (en) A kind of high bias voltage power supply system
CN106557105B (en) Voltage regulator circuit
CN106385184A (en) Adjustable switching power supply
CN115308469A (en) Method and measuring device for detecting leakage current in ungrounded single-phase alternating current power supply system
CN209056923U (en) Switching power circuit
CN209201022U (en) A kind of amplifying circuit and electronic equipment
CN109782660B (en) Control circuit and device compatible with voltage-type and current-type analog input
CN105553427B (en) AC coupled amplifying circuit
CN109067173A (en) A kind of server and its POL for promoting power supply conversion efficiency
CN102520238A (en) Intelligent programmable-control microcurrent measurement display system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant