Summary of the invention
The purpose of the utility model is: the electromagnetic flowmeter transducer that 4-20mA standard output interface is provided; Gather flow signal through electromagnetic flow transducer; Through the special-purpose amplifier of INA128 instrument flow signal is amplified; The modulate circuit that TL072 and 0P07 operational amplifier are formed carries out signal amplification and conditioning, and the flow signal that will be amplified after nursing one's health by the AD652 voltage to frequency converter then carries out the electric voltage frequency conversion, then the frequency signal of exporting is transferred to the C8051F020 single-chip microcomputer and carries out signal Processing; C8051F020 single-chip microcomputer delivery rate frequency data amplify and modulate circuit to signal through the quick optical electric coupler; And convert voltage signal into, and the 4-20mA current signal that converts standard through the DH4-20 voltage current transducer into is exported, and the C8051F020 single-chip microcomputer outputs to LCD with measured data on flows simultaneously and realizes that flow shows in real time; The flow of setting is high and low prescribes a time limit when measured real-time flow data surpasses; Export high and low limit alerting signal,, export to the warning performer after Darlington drives and report to the police through light-coupled isolation.
The technical solution of the utility model is: the output signal of master controller cycle acquisition stream quantity sensor, carry out data presentation according to the data of gathering and export with data on flows, alerting signal.
System software architecture mainly comprises master routine, interrupt handling routine, subroutine.Master routine is mainly realized MCU chip initiation, output interface initialization etc., and the tranmitting data register signal is through electric voltage frequency conversion acquisition stream quantity sensor data, with also demonstration of the data operation of gathering, control.
The electromagnetic flow transducer of the utility model comprises U1 part, U2 part, U3 part, U4 part, U5 part, U6 part, U7 part, U8 part, U9 part, U10 part, U11 part and U12 part; U1 part, U2 part and U3 partly interconnect signal condition and the amplifying circuit that constitutes electromagnetic flow transducer, and U4 partly is a voltage frequency conversioning circuit, and U5 partly is the core of electromagnetic flowmeter transducer; Mainly constitute by the C8051F020 singlechip chip; Accomplish the input of signal and handle and demonstration, control output, U6 partly is the quick optical electric coupler, accomplishes the isolation of input and output signal; U7 partly is an amplifying circuit; Realize the amplification of current signal, U8 partly is a voltage-current converter circuit, realizes the conversion of input voltage to output current; U9 part and U10 partly constitute the isolation of controlling input and output signal, and U11 is partly for exporting the amplification driving circuit of signal.Physical circuit connects as follows:
INA128 part (U1):
The 1st pin of INA128 is connected to the end of R11; The 2nd pin of INA128 is connected to the end of C1, C3 and R1, the other end ground connection of C1, the 1st pin of another termination JP1 of R1; The 3rd pin of INA128 is connected to the end of C2, R2 and the other end of C3, the other end ground connection of C2, the 3rd pin of another termination JP1 of R2; The 4th pin of INA128 is connected to-the 12V power supply; The 5th pin of INA128 is unsettled; The 6th pin of INA128 is connected to the end of C4, R3 and the 5th pin of U2; The 7th pin of INA128 is connected to+the 12V power supply; The 8th pin of INA128 is connected to the other end of R11;
TL072 part (U2):
The 1st pin of TL072 is connected to the end of C7, R7 and the 3rd pin of U3; The 2nd pin of TL072 is connected to an end and the R7 of R6, the other end of C7, the other end ground connection of R6; The 3rd pin of TL072 is connected to the end of R5; The 4th pin of TL072 is connected to-the 12V power supply; The 5th pin of TL072 is connected to the end of C5 and the other end of R3; The 6th pin of TL072 is connected to the other end of C5 and the 7th pin of U2; The 7th pin of TL072 is connected to the end of C6 and the 6th pin of U2, and the other end of C6 is connected to the end of R4 and the end of R5, the other end ground connection of R4; The 8th pin of TL072 is connected to+the 12V power supply;
OP07 part (U3):
The 1st pin of OP07 is unsettled; The 2nd pin of OP07 is connected to the 6th pin of OP07; The 3rd pin of OP07 is connected to the end of R7, C7 and the 1st pin of U2; The 4th pin of OP07 is connected to-the 12V power supply; The 5th pin of OP07 is unsettled; The 6th pin of OP07 is connected to the end of R8 and the 2nd pin of OP07, and the other end of R8 is connected to the 5th, 7,15 and 16 pins of U4; The 7th pin of OP07 is connected to+the 12V power supply; The 8th pin of OP07 is unsettled;
AD652 part (U4):
The 1st pin of AD652 is connected to+the 12V power supply; The 2nd, 3 and 4 pins of AD652 are unsettled; The 5th pin of AD652 is connected to the other end of R8 and the 7th, 15 and 16 pins of AD652; The 6th pin of AD652 is unsettled; The 7th pin of AD652 is connected to the 5th, 15 and 16 pins of AD652; The 8th pin of AD652 is connected to-the 12V power supply; The 9th pin of AD652 is connected to the 43rd pin of U5; The 10th pin of AD652 is connected to+the 12V power supply; The 11st pin of AD652 is connected to the end of R10 and the 44th pin of U5, another termination VCC of R10; The 12nd pin and the 13rd of AD652 draws ground connection; The 14th pin of AD652 is connected to the end of C11, and the end of another termination R9 of C11, the other end of R9 are connected to the 5th, 7,15 and 16 pins of AD652; The 15th pin of AD652 is connected to the 5th, 7 and 16 pins of AD652; The 16th pin of AD652 is connected to the 5th, 7 and 15 pins of AD652;
C8051F020 part (U5):
The 1st pin to the 9 pins of C8051F020 are unsettled; The 10th pin ground connection of C8051F020; The 11st pin and the 12nd pin of C8051F020 are unsettled; The 13rd pin ground connection of C8051F020; The 14th pin to the 25 pins of C8051F020 are unsettled; The 26th pin of C8051F020 is connected to the end of C19 and Y1; The 27th pin of C8051F020 is connected to the other end of C20 and Y1, and the other end of C19 links to each other with the other end of C20; The 28th pin to the 36 pins of C8051F020 are unsettled; The 37th pin of C8051F020 meets VCC; The 38th pin ground connection of C8051F020; The 39th pin to the 42 pins of C8051F020 are unsettled; The 43rd pin of C8051F020 is connected to the 9th pin of AD652; The 44th pin of C8051F020 is connected to the 11st pin of AD652; The 50th pin of C8051F020 is unsettled; The 51st pin of C8051F020 is connected to the 2nd pin of JP2; The 52nd pin of C8051F020 is connected to the 1st pin of JP2; The 53rd pin of C8051F020 is unsettled; The 54th pin of C8051F020 is connected to the end of R41, and the other end of R41 is connected to the 3rd pin of U6; The 55th pin to the 62 pins of C8051F020 are unsettled; The 63rd pin ground connection of C8051F020; The 64th pin of C8051F020 meets VCC; The 65th pin to the 72 pins of C8051F020 are unsettled; The 73rd pin of C8051F020 is connected to the 8th pin of JP5; The 74th pin of C8051F020 is connected to the 7th pin of JP5; The 75th pin of C8051F020 is connected to the 6th pin of JP5; The 76th pin of C8051F020 is connected to the 5th pin of JP5; The 77th pin of C8051F020 is connected to the 4th pin of JP5; The 78th pin of C8051F020 is connected to the 3rd pin of JP5; The 79th pin of C8051F020 is connected to the 2nd pin of JP5; The 80th pin of C8051F020 is connected to the 1st pin of JP5; The 81st pin of C8051F020 is connected to the 10th pin of JP5; The 82nd pin of C8051F020 is connected to the 11st pin of JP5; The 83rd pin of C8051F020 is connected to the 12nd pin of JP5; The 84th pin to the 88 pins of C8051F020 are unsettled; The 89th pin ground connection of C8051F020; The 90th pin of C8051F020 meets VCC; The 91st pin to the 100 pins of C8051F020 are unsettled;
6N136 part (U6):
The 1st pin of 6N136 is unsettled; The 2nd pin of 6N136 meets VCC; The 3rd pin of 6N136 is connected to the end of R41, and the other end of R41 is connected to the 54th pin of U5; The 4th pin of 6N136 is unsettled; The 5th pin of 6N136 is connected to the end of R36, and the other end of R36 is connected to the 3rd pin of U7; The 6th pin of 6N136 is connected to the 8th pin of 6N136 and the negative pole of D4, and the positive pole of D4 is connected to the 1st pin of JP3; The 7th pin of 6N136 is unsettled; The 8th pin of 6N136 is connected to the 6th pin of 6N136 and the negative pole of D4;
TL072 part (U7):
The 1st pin of TL072 is connected to the end of R35, R37 and C43, and the other end of R35 is connected to the end of R34 and C42, and the other end of R37 and C43 is connected to the 2nd pin of TL072, and the other end of C42 is connected to the negative terminal of C41; The 2nd pin of TL072 is connected to the end of R38 and the other end of R37 and C43; The 3rd pin of TL072 is connected to the end of R36, and the other end of R36 is connected to the 5th pin of U6; The 4th pin of TL072 is connected to the other end of R38 and the negative terminal of C41; The 5th pin of 6N136 is connected to the end of R34, and the other end of R34 is connected to the other end of R34 and C42; The 6th pin of TL072 is connected to the 7th pin of TL072 and the 1st pin of U8; The 7th pin of TL072 is connected to the 6th pin of TL072 and the 1st pin of U8; The 8th pin of TL072 is connected to the negative pole of D4;
DH4-20 part (U8):
The 1st pin of DH4-20 is connected to the 6th pin and the 7th pin of U7; The 2nd pin of DH4-20 is connected to the end of PR17, and the other end of PR17 is connected to the negative terminal of C41; The 3rd pin of DH4-20 is connected to the negative pole of D6, and the positive pole of D6 is connected to the negative pole of D4; The positive pole of ZD1 is connected to the negative pole of D4; The anode of C41 is connected to the negative pole of D4, and the end of C41 is connected to the negative pole of D4, and the end of C40 is connected to the negative pole of D4; The other end of C40 is connected to an end and the ZD1 of R30, R31, negative pole and R38, the other end of C42 and the 4th pin of U7 of C41; And the 2nd pin of JP3, the other end ground connection of R30 and R31, the 3rd pin ground connection of JP3;
P181 part (U9):
The 1st pin of P181 meets VCC; The 2nd pin of P181 is connected to the end of R46, and the other end of R46 is connected to the 48th pin of U5; The 3rd pin of P181 is connected to the end of R47, and the other end of R47 is connected to the 3rd pin of U11; The 4th pin of P181 is connected to+the 12V power supply;
P181 part (U10):
The 1st pin of P181 meets VCC; The 2nd pin of P181 is connected to the end of R48, and the other end of R48 is connected to the 49th pin of U5; The 3rd pin of P181 is connected to the end of R49, and the other end of R49 is connected to the 7th pin of U11; The 4th pin of P181 is connected to+the 12V power supply;
UL2003A part (U11):
The 1st pin ground connection of UL2003A; The 2nd pin ground connection of UL2003A; The 3rd pin of UL2003A is connected to the other end of R47, and the end of R47 is connected to the 3rd pin of U9; The 4th, 5, the 6 pin ground connection of UL2003A; The 7th pin of UL2003A is connected to the other end of R49, and the end of R49 is connected to the 3rd pin of U10; The 8th pin ground connection of UL2003A; The 9th pin of UL2003A is connected to+the 24V power supply; The 10th pin of UL2003A is connected to the 3rd pin of JP4; The 11st, 12,13 pins of UL2003A are connected to+the 24V power supply; The 14th pin of UL2003A is connected to the 2nd pin of JP4; The 15th, 16 pins of UL2003A are connected to+the 24V power supply;
Wherein, Connect input interface and output interface on the circuit of the utility model and accomplish signals collecting and data output; Input interface is a sensor interface, and output interface is that LCD shows output interface, alerting signal output interface and 4-20mA normalized current output interface.
The utlity model has following advantage: 1, use 51 single-chip microcomputer assembly language to write software, the systemic-function expansion is convenient; Measuring accuracy does not receive the influence of fluid density, viscosity, temperature, pressure and conductivity variations, and sensor sensing voltage signal and mean flow rate are linear, so measuring accuracy is high; Adopt microcontroller embedded technology, realize digital excitation; Possessing high lower bound sets and warning function; Electromagnetic flow transmitter can also be exported 4~20mA normalized current signal and supply record, regulates and control usefulness when satisfying on-the-spot the demonstration, and is convenient interconnected with peripheral hardware.
2, the volume of this electromagnetic flowmeter transducer is little, and cost is low, and is low in energy consumption, and read or write speed is fast, realize that the LCD of Electromagnetic Flow shows and the output of 4~20mA normalized current in real time, and antijamming capability is strong, long working life.
Embodiment
Further specify the technical solution of the utility model below in conjunction with accompanying drawing.
As shown in Figure 1, the electromagnetic flowmeter transducer comprises U1 part, U2 part, U3 part, U4 part, U6 part, U7 part, U8 part, U9 part, U10 part and U11 part, and physical circuit connects as follows:
INA128 part (U1):
The 1st pin of INA128 is connected to the end of R11; The 2nd pin of INA128 is connected to the end of C1, C3 and R1, the other end ground connection of C1, the 1st pin of another termination JP1 of R1; The 3rd pin of INA128 is connected to the end of C2, R2 and the other end of C3, the other end ground connection of C2, the 3rd pin of another termination JP1 of R2; The 4th pin of INA128 is connected to-the 12V power supply; The 5th pin of INA128 is unsettled; The 6th pin of INA128 is connected to the end of C4, R3 and the 5th pin of U2; The 7th pin of INA128 is connected to+the 12V power supply; The 8th pin of INA128 is connected to the other end of R11;
TL072 part (U2):
The 1st pin of TL072 is connected to the end of C7, R7 and the 3rd pin of U3; The 2nd pin of TL072 is connected to an end and the R7 of R6, the other end of C7, the other end ground connection of R6; The 3rd pin of TL072 is connected to the end of R5; The 4th pin of TL072 is connected to-the 12V power supply; The 5th pin of TL072 is connected to the end of C5 and the other end of R3; The 6th pin of TL072 is connected to the other end of C5 and the 7th pin of U2; The 7th pin of TL072 is connected to the end of C6 and the 6th pin of U2, and the other end of C6 is connected to the end of R4 and the end of R5, the other end ground connection of R4; The 8th pin of TL072 is connected to+the 12V power supply;
OP07 part (U3):
The 1st pin of OP07 is unsettled; The 2nd pin of OP07 is connected to the 6th pin of OP07; The 3rd pin of OP07 is connected to the end of R7, C7 and the 1st pin of U2; The 4th pin of OP07 is connected to-the 12V power supply; The 5th pin of OP07 is unsettled; The 6th pin of OP07 is connected to the end of R8 and the 2nd pin of OP07, and the other end of R8 is connected to the 5th, 7,15 and 16 pins of U4; The 7th pin of OP07 is connected to+the 12V power supply; The 8th pin of OP07 is unsettled;
AD652 part (U4):
The 1st pin of AD652 is connected to+the 12V power supply; The 2nd, 3 and 4 pins of AD652 are unsettled; The 5th pin of AD652 is connected to the other end of R8 and the 7th, 15 and 16 pins of AD652; The 6th pin of AD652 is unsettled; The 7th pin of AD652 is connected to the 5th, 15 and 16 pins of AD652; The 8th pin of AD652 is connected to-the 12V power supply; The 9th pin of AD652 is connected to the 43rd pin of U5; The 10th pin of AD652 is connected to+the 12V power supply; The 11st pin of AD652 is connected to the end of R10 and the 44th pin of U5, another termination VCC of R10; The 12nd pin and the 13rd of AD652 draws ground connection; The 14th pin of AD652 is connected to the end of C11, and the end of another termination R9 of C11, the other end of R9 are connected to the 5th, 7,15 and 16 pins of AD652; The 15th pin of AD652 is connected to the 5th, 7 and 16 pins of AD652; The 16th pin of AD652 is connected to the 5th, 7 and 15 pins of AD652;
C8051F020 part (U5):
The 1st pin to the 9 pins of C8051F020 are unsettled; The 10th pin ground connection of C8051F020; The 11st pin and the 12nd pin of C8051F020 are unsettled; The 13rd pin ground connection of C8051F020; The 14th pin to the 25 pins of C8051F020 are unsettled; The 26th pin of C8051F020 is connected to the end of C19 and Y1; The 27th pin of C8051F020 is connected to the other end of C20 and Y1, and the other end of C19 links to each other with the other end of C20; The 28th pin to the 36 pins of C8051F020 are unsettled; The 37th pin of C8051F020 meets VCC; The 38th pin ground connection of C8051F020; The 39th pin to the 42 pins of C8051F020 are unsettled; The 43rd pin of C8051F020 is connected to the 9th pin of AD652; The 44th pin of C8051F020 is connected to the 11st pin of AD652; The 50th pin of C8051F020 is unsettled; The 51st pin of C8051F020 is connected to the 2nd pin of JP2; The 52nd pin of C8051F020 is connected to the 1st pin of JP2; The 53rd pin of C8051F020 is unsettled; The 54th pin of C8051F020 is connected to the end of R41, and the other end of R41 is connected to the 3rd pin of U6; The 55th pin to the 62 pins of C8051F020 are unsettled; The 63rd pin ground connection of C8051F020; The 64th pin of C8051F020 meets VCC; The 65th pin to the 72 pins of C8051F020 are unsettled; The 73rd pin of C8051F020 is connected to the 8th pin of JP5; The 74th pin of C8051F020 is connected to the 7th pin of JP5; The 75th pin of C8051F020 is connected to the 6th pin of JP5; The 76th pin of C8051F020 is connected to the 5th pin of JP5; The 77th pin of C8051F020 is connected to the 4th pin of JP5; The 78th pin of C8051F020 is connected to the 3rd pin of JP5; The 79th pin of C8051F020 is connected to the 2nd pin of JP5; The 80th pin of C8051F020 is connected to the 1st pin of JP5; The 81st pin of C8051F020 is connected to the 10th pin of JP5; The 82nd pin of C8051F020 is connected to the 11st pin of JP5; The 83rd pin of C8051F020 is connected to the 12nd pin of JP5; The 84th pin to the 88 pins of C8051F020 are unsettled; The 89th pin ground connection of C8051F020; The 90th pin of C8051F020 meets VCC; The 91st pin to the 100 pins of C8051F020 are unsettled;
6N136 part (U6):
The 1st pin of 6N136 is unsettled; The 2nd pin of 6N136 meets VCC; The 3rd pin of 6N136 is connected to the end of R41, and the other end of R41 is connected to the 54th pin of U5; The 4th pin of 6N136 is unsettled; The 5th pin of 6N136 is connected to the end of R36, and the other end of R36 is connected to the 3rd pin of U7; The 6th pin of 6N136 is connected to the 8th pin of 6N136 and the negative pole of D4, and the positive pole of D4 is connected to the 1st pin of JP3; The 7th pin of 6N136 is unsettled; The 8th pin of 6N136 is connected to the 6th pin of 6N136 and the negative pole of D4;
TL072 part (U7):
The 1st pin of TL072 is connected to the end of R35, R37 and C43, and the other end of R35 is connected to the end of R34 and C42, and the other end of R37 and C43 is connected to the 2nd pin of TL072, and the other end of C42 is connected to the negative terminal of C41; The 2nd pin of TL072 is connected to the end of R38 and the other end of R37 and C43; The 3rd pin of TL072 is connected to the end of R36, and the other end of R36 is connected to the 5th pin of U6; The 4th pin of TL072 is connected to the other end of R38 and the negative terminal of C41; The 5th pin of 6N136 is connected to the end of R34, and the other end of R34 is connected to the other end of R34 and C42; The 6th pin of TL072 is connected to the 7th pin of TL072 and the 1st pin of U8; The 7th pin of TL072 is connected to the 6th pin of TL072 and the 1st pin of U8; The 8th pin of TL072 is connected to the negative pole of D4;
DH4-20 part (U8):
The 1st pin of DH4-20 is connected to the 6th pin and the 7th pin of U7; The 2nd pin of DH4-20 is connected to the end of PR17, and the other end of PR17 is connected to the negative terminal of C41; The 3rd pin of DH4-20 is connected to the negative pole of D6, and the positive pole of D6 is connected to the negative pole of D4; The positive pole of ZD1 is connected to the negative pole of D4; The anode of C41 is connected to the negative pole of D4, and the end of C41 is connected to the negative pole of D4, and the end of C40 is connected to the negative pole of D4; The other end of C40 is connected to an end and the ZD1 of R30, R31, negative pole and R38, the other end of C42 and the 4th pin of U7 of C41; And the 2nd pin of JP3, the other end ground connection of R30 and R31, the 3rd pin ground connection of JP3;
P181 part (U9):
The 1st pin of P181 meets VCC; The 2nd pin of P181 is connected to the end of R46, and the other end of R46 is connected to the 48th pin of U5; The 3rd pin of P181 is connected to the end of R47, and the other end of R47 is connected to the 3rd pin of U11; The 4th pin of P181 is connected to+the 12V power supply;
P181 part (U10):
The 1st pin of P181 meets VCC; The 2nd pin of P181 is connected to the end of R48, and the other end of R48 is connected to the 49th pin of U5; The 3rd pin of P181 is connected to the end of R49, and the other end of R49 is connected to the 7th pin of U11; The 4th pin of P181 is connected to+the 12V power supply;
UL2003A part (U11):
The 1st pin ground connection of UL2003A; The 2nd pin ground connection of UL2003A; The 3rd pin of UL2003A is connected to the other end of R47, and the end of R47 is connected to the 3rd pin of U9; The 4th, 5, the 6 pin ground connection of UL2003A; The 7th pin of UL2003A is connected to the other end of R49, and the end of R49 is connected to the 3rd pin of U10; The 8th pin ground connection of UL2003A; The 9th pin of UL2003A is connected to+the 24V power supply; The 10th pin of UL2003A is connected to the 3rd pin of JP4; The 11st, 12,13 pins of UL2003A are connected to+the 24V power supply; The 14th pin of UL2003A is connected to the 2nd pin of JP4; The 15th, 16 pins of UL2003A are connected to+the 24V power supply;
The explanation of product running environment:
The development system environment:
This software uses 51 single-chip microcomputer assembly language to write, and the JTAG emulator debug is passed through, and the MCU chip model of using is C8051F020.
Product running environment: flow measurement application place.