CN111190359A - Logging parameter simulator - Google Patents

Logging parameter simulator Download PDF

Info

Publication number
CN111190359A
CN111190359A CN202010169932.4A CN202010169932A CN111190359A CN 111190359 A CN111190359 A CN 111190359A CN 202010169932 A CN202010169932 A CN 202010169932A CN 111190359 A CN111190359 A CN 111190359A
Authority
CN
China
Prior art keywords
pin
resistor
capacitor
grounded
respectively connected
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.)
Pending
Application number
CN202010169932.4A
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.)
Liaoning Zhonglian Oil And Gas Co Ltd
Original Assignee
Liaoning Zhonglian Oil And Gas 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 Liaoning Zhonglian Oil And Gas Co Ltd filed Critical Liaoning Zhonglian Oil And Gas Co Ltd
Priority to CN202010169932.4A priority Critical patent/CN111190359A/en
Publication of CN111190359A publication Critical patent/CN111190359A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Power Sources (AREA)

Abstract

Logging parameter simulator belongs to simulator technical field, especially relates to a logging parameter simulator. The invention provides a logging parameter simulator. The invention comprises a controller, and is characterized in that a signal output port of the controller is respectively connected with a 4-20mA output part, a 0-5V output part, a frequency quantity output part and a counting quantity output part.

Description

Logging parameter simulator
Technical Field
The invention belongs to the technical field of simulators, and particularly relates to a logging parameter simulator.
Background
The logging technology is a well drilling field service, the main task of logging is to extract first-hand reliable various data information for oil and gas exploration and development in real time, the logging technology takes three technologies of communication network, sensing instrument and application of computer as a support column, and is a high and new technology geometry integrating multiple sciences and multiple technologies, and the logging technology has obvious information technical characteristics, so that the logging technology can obtain a large amount of parameters and data information of drilling, geology and the like on a construction site, and transmitted information has the characteristics of timeliness, diversity and rapid explanation and evaluation, so the logging technology becomes the most basic and necessary technology in oil and gas exploration and development industries.
The comprehensive logging instrument collects and analyzes logging data and completes the logging data by means of mutual cooperation of sensors, data collecting, transmitting and processing units and computer technologies. At present, the data acquisition, transmission and processing unit is debugged by connecting the entity sensor when acquiring data. The comprehensive logging instrument has large measurement data volume and various signals needing to be collected, the performance of the comprehensive logging instrument is tested by using the method, more than 20 physical sensors are required to be connected for testing, the efficiency is seriously influenced, and the method is not intelligent enough. Therefore, the demand of a parameter simulator which issues various analog quantity, frequency quantity and counting quantity is greatly increased.
Disclosure of Invention
The invention aims at the problems and provides a logging parameter simulator.
In order to achieve the purpose, the invention adopts the following technical scheme that the controller comprises a controller, and is characterized in that a signal output port of the controller is respectively connected with a 4-20mA output part, a 0-5V output part, a frequency quantity output part and a counting quantity output part.
As a preferred scheme, the display signal output port of the controller is connected with the display circuit, the alarm signal output port of the controller is connected with the alarm circuit, and the signal input port of the controller is connected with the key input part.
As another preferred scheme, a power supply port of the controller is connected with an output port of a regulated power supply, an input port of the regulated power supply is connected with an output port of a charging management part, and the charging management part is respectively connected with a lithium battery and a USB port.
As a preferable scheme, the controller adopts an STMCU _ LQFP64 chip U5, a pin 5 of U5 is connected with one end of a crystal oscillator X3, the other end of the X3 is connected with a pin 6 of U5, a pin 1 of U5 is respectively connected with a VBAT/VLCD end, a VDD end and one end of a capacitor C29, and the other end of the C29 is grounded;
the pin 13 of U5 is connected with AVDD terminal, one end of inductance L1, the other end of L1 is connected with VDD terminal, 32 pin of U5, 64 pin of U5, 48 pin of U5 and 19 pin of U5, pin 18 of U5 is grounded, pin 47 of U5 is grounded through capacitor C22, pin 63 of U5 is grounded, pin 31 of U5 is grounded through capacitor C25, pin 12 of U5 is grounded, pin 60 of U5 is grounded through resistor R55, pin 7 of U5 is connected with one end of resistor R54, one end of switch S2 and one end of capacitor C14, the other end of R54 is connected with VDD terminal, and the other ends of S2 and C14 are grounded.
As another preferable scheme, the charging management part of the invention adopts a bq24195 chip U9, wherein pin 1 of U9 is respectively connected with one end of a capacitor C39, one end of a capacitor C38, a VBUS end and pin 24 of U9, and the other ends of C39 and C38 are grounded;
the pin 2 of the U9 is connected with the pin 3 of the U9 through a CB 2;
the 4 pins of the U9 are connected with the cathode of the LED1 through a resistor R50, and the anode of the LED1 is connected with the VREG end;
the pin 5 of U9 is connected with the VCC3.3 end through a resistor R48;
the pin 6 of the U9 is connected with the VCC3.3 end through a resistor R49;
the 8 feet of U9 are connected with one end of a resistor R52 and the collector of an NPN triode Q7 respectively, the other end of R52 is connected with the VSYS end, the base of Q7 is connected with one end of a resistor R51 and one end of a resistor R62 respectively, the other end of R51 is connected with the VBUS _ IN end, and the other end of R62 is connected with the collector of Q7 and the ground wire respectively;
pin 9 of U9 is connected to ground through resistor R58;
the pin 10 of U9 is grounded through a resistor R59;
the pin 11 of the U9 is respectively connected with the pin 12 of the U9, one end of a resistor R53, one end of a resistor R60 and one end of a resistor R61, the other end of the R53 is connected with a VREG end, and the other end of the R60 and the other end of the R61 are grounded;
a pin 13 of the U9 is respectively connected with a pin 14 of the U9, one end of a capacitor C44, one end of a capacitor C43 and a VBAT end, and the other end of the C44 and the other end of the C43 are grounded;
the pin 15 of U9 is respectively connected with the pin 16 of U9, one end of an inductor L6, one end of a capacitor C42, one end of a capacitor C40, one end of a capacitor C41 and a VSYS end, the other end of C42, the other end of C40 and the other end of C41 are grounded, the other end of L6 is respectively connected with one end of the capacitor C37, the pin 19 of U9 and the pin 20 of U9, and the other end of C37 is connected with the pin 21 of U9;
pins 17 and 18 of U9 are grounded;
a pin 22 of the U9 is respectively connected with one end of a capacitor C35 and the VREG end, and the other end of the capacitor C35 is grounded;
the pin 23 of the U9 is connected to one end of a capacitor C36, one end of a capacitor C34, one end of a capacitor C33, the end of VBST5V1 and one end of a resistor R45, the other end of the C36, the other end of the C34 and the other end of the C33 are grounded, the other end of the R45 is connected to one end of a resistor R46 and the end of lowbat, and the other end of the R46 is grounded.
As another preferable scheme, the regulated power supply adopts an RT9193-33GB chip U2, a pin 1 of U2 is respectively connected with a VSYS end, one end of a capacitor C9 and one end of a resistor R1, the other end of C9 is grounded, the other end of R1 is respectively connected with a pin 3 of U2 and a switch SW1, a pin 2 of U2 is grounded, a pin 4 of U2 is respectively connected with a ground wire and one end of a capacitor C11 through the capacitor C10, the other end of C11 is respectively connected with a pin VCC3.3, a pin 5 of U2 and one end of an inductor L3, and the other end of L3 is connected with VDD.
As another preferable scheme, the key input part of the invention comprises SW-PB4 switches S1, S3, S4 and S5, wherein 1 and 4 pins of S1 are respectively connected with a BTN1 end and one end of a resistor R2, the other end of R2 is connected with a VCC3.3 end, and 2 and 3 pins of S1 are grounded; pins 1 and 4 of the S3 are respectively connected with a BTN2 end and one end of a resistor R3, the other end of the R3 is connected with a VCC3.3 end, and pins 2 and 3 of the S3 are grounded; pins 1 and 4 of the S4 are respectively connected with a BTN3 end and one end of a resistor R4, the other end of the R4 is connected with a VCC3.3 end, and pins 2 and 3 of the S4 are grounded; pins 1 and 4 of the S5 are respectively connected with a BTN4 end and one end of a resistor R5, the other end of the R5 is connected with a VCC3.3 end, and pins 2 and 3 of the S1 are grounded.
As another preferable scheme, the 4-20mA output part of the invention adopts a DAC7311IDCKR chip U3, the 0-5V output part adopts an LM358 chip U7, a pin 2 of U3 is connected to a PA5 end and a resistor R11 end through a resistor R15, a pin 3 of U3 is connected to a PA7 end through a resistor R17, a pin 1 of U3 is connected to a PA4 end through a resistor R19, a pin 4 of U3 is connected to a REF3 end, a capacitor C16 end, a resistor R10 end, a capacitor C12 end, a pin 1 of TL431 chip Q1, a resistor R8 end, and a resistor R7 end;
the other end of the C16 is grounded, a pin 6 of the U3 is respectively connected with the other end of the R11 and a pin 4 of the BL1551 chip U4, a pin 5 of the U4 is respectively connected with the REF3 end and one end of the capacitor C17, the other end of the C17 is grounded, and the pin 6 of the U4 is connected with the PA6 end through a resistor R18;
the pin 2 of the U4 is grounded, the pin 3 of the U4 is respectively connected with one end of a resistor R12, one end of a resistor R20 and the pin 3 of an OPA365 AIDBRR chip U6 through resistors R13 and R14 in sequence, and the other end of the R12 is connected with the other end of the R10;
the other end of the C12 is respectively connected with a pin 2 of the U6, a ground wire, a pin 3 of the Q1 and one end of a resistor R9, and the other end of the resistor R9 is respectively connected with a pin 2 of the Q1 and the other end of the resistor R8;
the other end of R7 is respectively connected with an NPN triode Q2 collector, one end of an inductor L4 and one end of a capacitor C13, the other end of L4 is respectively connected with a diode D1 cathode and one end of a TVS tube D5, the other end of D5 is connected with one end of the inductor L5, and the other end of L5 is respectively connected with the other end of C13, one end of a resistor R21 and the other end of R20; the other end of R21 is respectively connected with the 4 pin of U6, one end of a capacitor C15 and one end of a resistor R16, and the other end of C15 is respectively connected with the 5 pin of U6 and the REF3 end; the other end of R16 is connected with the emitter of Q2;
pin 1 of U4 is connected to one end of capacitor C19 and one end of resistor R26 through resistor R25, the other end of R26 is connected to one end of capacitor C20 and pin 3 of LM358 chip U7, the other end of C20 is connected to pin 4 of U7 and ground wire, pin 2 of U7 is connected to one end of resistor R22, one end of resistor R23 and one end of varistor VR1, the other end of VR1 is connected to the other end of C19, the other end of R23, pin 1 of U7 and pin 5 of U7, pin 6 of U7 is connected to pin 7 of U7 and one end of resistor R24, the other end of R24 is connected to one end of capacitor C18 and cathode of PESD3V3U1UA diode D6, and anode of D6 is grounded.
As another preferred scheme, the frequency output part and the count output part of the invention adopt a 74LVCH2T45DC chip U8, pin 1 of U8 is respectively connected to VCC3.3 terminal, one end of a capacitor C21, one end of a resistor R30, the other end of C21 is grounded, the other end of R30 is respectively connected to DO _ EN terminal and pin 5 of U8, pin 2 of U8 is connected to DO _ a terminal through a resistor R31, pin 3 of U8 is connected to DO _ B terminal through a resistor R32, pin 8 of U8 is respectively connected to VCC5 terminal and one end of a capacitor C26, and the other end of C26 is grounded;
a pin 7 of the U8 is respectively connected with one end of a resistor R29 and the base electrode of an NPN triode Q3 through a resistor R28, the other end of the R29 is respectively connected with the ground wire, the emitter of the Q3 and the anode of a PESD24VS1UB diode D7, the collector of the Q3 is respectively connected with one end of a resistor R27 and the cathode of a diode D7, and the other end of the R27 is respectively connected with a DEXT end and the cathode of a diode D2;
the pin 6 of the U8 is connected with one end of a resistor R35 and the base of an NPN triode Q4 through a resistor R34, the other end of the R35 is connected with the ground wire, the emitter of the Q4 and the anode of a PESD24VS1UB diode D8, the collector of the Q4 is connected with one end of a resistor R33 and the cathode of the D8, and the other end of the R33 is connected with a DEXT end.
As another preferable scheme, the invention further includes an SGM41000 chip U10, pin 1 of U10 is respectively connected to one end of a resistor R63 and one end of a capacitor C46, the other end of R63 is connected to VBAT, pins 2, 3 and 7 of U10 are grounded, pins 4 and 5 of U10 are grounded, pin 6 of U10 is grounded through capacitor C45, and the other end of C46 is grounded.
As another preferable scheme, the alarm circuit of the invention comprises buzzers BZ1 and BZ2, wherein the positive electrode of BZ1 is respectively connected with the VCC3.3 end, the positive electrode of BZ2 and the cathode of a diode D10, the negative electrode of BZ1 is respectively connected with the positive electrode of D10, the negative electrode of BZ1, the negative electrode of BZ2 and the collector of an SS8050 triode Q10, the base of Q10 is respectively connected with one end of a resistor R74 and one end of a resistor R75, the other end of R74 is connected with a BEEP end, and the other end of R75 is respectively connected with the emitter of Q10 and the ground wire.
The invention has the beneficial effects.
The 4-20mA output part and the 0-5V output part are used as analog quantity outputs and have frequency quantity and counting quantity outputs at the same time; convenient to use, it is efficient.
Drawings
The invention is further described with reference to the following figures and detailed description. The scope of the invention is not limited to the following expressions.
Fig. 1 is a schematic block diagram of the circuit of the present invention.
FIGS. 2, 3 and 4 are schematic circuit diagrams of 4-20mA output part and 0-5V output part of the invention.
FIG. 5 is a schematic circuit diagram of the frequency quantity output section and the count quantity output section of the present invention.
FIG. 6 is a diagram showing the connection relationship of the parts of the present invention.
FIG. 7 is a schematic diagram of a regulated power supply circuit of the present invention.
Fig. 8 is a schematic diagram of the controller circuit of the present invention.
Fig. 9 is a schematic diagram of the display circuit and the key input section of the present invention.
Fig. 10 and 11 are schematic circuit diagrams of the charge management part of the invention.
FIG. 12 is a wiring diagram of the LCD of the present invention.
Fig. 13 is a schematic diagram of an alarm circuit of the present invention.
FIG. 14 is a schematic diagram of a memory circuit of the present invention.
Fig. 15 is a simplified schematic diagram of the voltage/current converter of the present invention.
Detailed Description
As shown in the figure, the invention comprises a controller, and the signal output port of the controller is respectively connected with a 4-20mA output part, a 0-5V output part, a frequency quantity output part and a counting quantity output part.
The display signal output port of the controller is connected with the display circuit, the alarm signal output port of the controller is connected with the alarm circuit, and the signal input port of the controller is connected with the key input part. The display circuit is connected with the display equipment, and the display equipment can be used for displaying the current analog quantity, the voltage analog quantity, the frequency quantity and the counting quantity.
The power supply port of the controller is connected with the output port of the stabilized voltage power supply, the input port of the stabilized voltage power supply is connected with the output port of the charging management part, and the charging management part is respectively connected with the lithium battery and the USB port.
The controller adopts an STMCU _ LQFP64 chip U5, a pin 5 of U5 is connected with one end of a crystal oscillator X3, the other end of the X3 is connected with a pin 6 of U5, a pin 1 of U5 is respectively connected with a VBAT/VLCD end, a VDD end and one end of a capacitor C29, and the other end of the C29 is grounded;
the pin 13 of U5 is connected with AVDD terminal, one end of inductance L1, the other end of L1 is connected with VDD terminal, 32 pin of U5, 64 pin of U5, 48 pin of U5 and 19 pin of U5, pin 18 of U5 is grounded, pin 47 of U5 is grounded through capacitor C22, pin 63 of U5 is grounded, pin 31 of U5 is grounded through capacitor C25, pin 12 of U5 is grounded, pin 60 of U5 is grounded through resistor R55, pin 7 of U5 is connected with one end of resistor R54, one end of switch S2 and one end of capacitor C14, the other end of R54 is connected with VDD terminal, and the other ends of S2 and C14 are grounded.
And the 8MHz crystal oscillator X3 is used for a system main clock after being processed by a frequency multiplier circuit in the MCU to 72 MHz.
The invention adopts RC RESET, when the system is just powered on, the capacitor C14 is charged through the resistor R54, the RESET pin is at low level, and the STM is in a RESET state. When the charging is completed, the RESET pin is restored to a high level, and the system works normally.
The PWM function frequency quantity and counting quantity output of the STMCU _ LQFP64 chip timer provides original signals, and finally the frequency quantity and counting quantity of the specified voltage value are obtained through level conversion.
The 12-bit DAC function built in the STMCU _ LQFP64 chip provides DAC signals for 4-20mA analog quantity output and 0-5V analog quantity output, and corresponding current values and voltage values are obtained finally through conversion of the transmitter.
The STMCU _ LQFP64 chip of the invention uses hardware I2C to communicate with a charging management chip, thereby realizing the state monitoring function in the charging and discharging process of the lithium battery.
The STMCU _ LQFP64 chip uses hardware SPI communication and displays signal output information through an OLED screen.
The STMCU _ LQFP64 chip realizes the switching of working modes and the setting of output parameters through a common IO port key.
The STMCU _ LQFP64 chip is a control chip with timer hardware resources supporting PWM output and a DA converter, and can have the output functions of analog quantity, frequency quantity and counting quantity.
The charging management part adopts a bq24195 chip U9, a pin 1 of U9 is respectively connected with one end of a capacitor C39, one end of a capacitor C38, a VBUS end and a pin 24 of U9, and the other ends of C39 and C38 are grounded;
the pin 2 of the U9 is connected with the pin 3 of the U9 through CB2 (which can be a 0 ohm resistor);
the 4 pins of the U9 are connected with the cathode of the LED1 through a resistor R50, and the anode of the LED1 is connected with the VREG end;
the pin 5 of U9 is connected with the VCC3.3 end through a resistor R48;
the pin 6 of the U9 is connected with the VCC3.3 end through a resistor R49;
the 8 feet of U9 are connected with one end of a resistor R52 and the collector of an NPN triode Q7 respectively, the other end of R52 is connected with the VSYS end, the base of Q7 is connected with one end of a resistor R51 and one end of a resistor R62 respectively, the other end of R51 is connected with the VBUS _ IN end, and the other end of R62 is connected with the collector of Q7 and the ground wire respectively;
pin 9 of U9 is connected to ground through resistor R58;
the pin 10 of U9 is grounded through a resistor R59;
the pin 11 of the U9 is respectively connected with the pin 12 of the U9, one end of a resistor R53, one end of a resistor R60 and one end of a resistor R61, the other end of the R53 is connected with a VREG end, and the other end of the R60 and the other end of the R61 are grounded;
a pin 13 of the U9 is respectively connected with a pin 14 of the U9, one end of a capacitor C44, one end of a capacitor C43 and a VBAT end, and the other end of the C44 and the other end of the C43 are grounded;
the pin 15 of U9 is respectively connected with the pin 16 of U9, one end of an inductor L6, one end of a capacitor C42, one end of a capacitor C40, one end of a capacitor C41 and a VSYS end, the other end of C42, the other end of C40 and the other end of C41 are grounded, the other end of L6 is respectively connected with one end of the capacitor C37, the pin 19 of U9 and the pin 20 of U9, and the other end of C37 is connected with the pin 21 of U9;
pins 17 and 18 of U9 are grounded;
a pin 22 of the U9 is respectively connected with one end of a capacitor C35 and the VREG end, and the other end of the capacitor C35 is grounded;
the pin 23 of the U9 is connected to one end of a capacitor C36, one end of a capacitor C34, one end of a capacitor C33, the end of VBST5V1 and one end of a resistor R45, the other end of the C36, the other end of the C34 and the other end of the C33 are grounded, the other end of the R45 is connected to one end of a resistor R46 and the end of lowbat, and the other end of the R46 is grounded.
The voltage used in the hardware circuit is 5V and 3.3V, and the system input power supply is a lithium battery with 3.7-4.2V.
The 5V power output circuit is the battery voltage obtained through the charge management chip BQ24195 in boost mode. The power inductor L6, the capacitors C33, C34 and C36 are all used for filtering, and the ripple of the power supply is reduced.
The regulated power supply adopts an RT9193-33GB chip U2, a pin 1 of U2 is respectively connected with a VSYS end, one end of a capacitor C9 and one end of a resistor R1, the other end of C9 is grounded, the other end of R1 is respectively connected with a pin 3 of U2 and a switch SW1, a pin 2 of U2 is grounded, a pin 4 of U2 is respectively connected with a ground wire and one end of a capacitor C11 through the capacitor C10, the other end of C11 is respectively connected with a VCC3.3 end, a pin 5 of U2 and one end of an inductor L3, and the other end of L3 is connected with VDD.
The 3.3V voltage output circuit obtains 3.3V voltage by the battery voltage through a low-voltage difference linear voltage stabilization chip RT9193-33GB, and the maximum output current is 300 mA.
The key input part comprises SW-PB4 switches S1, S3, S4 and S5, wherein pins 1 and 4 of S1 are respectively connected with a BTN1 end and one end of a resistor R2, the other end of R2 is connected with a VCC3.3 end, and pins 2 and 3 of S1 are grounded;
pins 1 and 4 of the S3 are respectively connected with a BTN2 end and one end of a resistor R3, the other end of the R3 is connected with a VCC3.3 end, and pins 2 and 3 of the S3 are grounded;
pins 1 and 4 of the S4 are respectively connected with a BTN3 end and one end of a resistor R4, the other end of the R4 is connected with a VCC3.3 end, and pins 2 and 3 of the S4 are grounded;
pins 1 and 4 of the S5 are respectively connected with a BTN4 end and one end of a resistor R5, the other end of the R5 is connected with a VCC3.3 end, and pins 2 and 3 of the S1 are grounded.
The keys may be used to set analog current mode, analog voltage mode, frequency mode, count mode and output parameters. One end of the key is connected to the normal IO of the controller and the other end is connected to ground. When the key is not pressed down, the high level is pulled through an external pull-up resistor, when the key is pressed down, the controller reads the low level through IO, and the high level is recovered after the low level is released.
JTAG is used to transmit debug information. The upper computer carries out debugging programs, downloading programs, registers in the control chip, memories, related peripherals and the like through the interface.
The SWD can complete debugging by adopting 4 lines, and main signal lines comprise SWDIO and SWCLK. The invention adopts a 4-pin SWD debugging interface. The key and SWD debug interface circuit design is shown in fig. 9.
The 4-20mA output part adopts a DAC7311IDCKR chip U3, the 0-5V output part adopts an LM358 chip U7, a pin 2 of U3 is respectively connected with a PA5 end and one end of a resistor R11 through a resistor R15, a pin 3 of U3 is connected with the PA7 end through a resistor R17, a pin 1 of U3 is connected with the PA4 end through a resistor R19, a pin 4 of U3 is respectively connected with a REF3 end, one end of a capacitor C16, one end of a resistor R10, one end of a capacitor C12, one pin 1 of a TL431 chip Q1, one end of a resistor R8 and one end of a resistor R7;
the other end of the C16 is grounded, a pin 6 of the U3 is respectively connected with the other end of the R11 and a pin 4 of the BL1551 chip U4, a pin 5 of the U4 is respectively connected with the REF3 end and one end of the capacitor C17, the other end of the C17 is grounded, and the pin 6 of the U4 is connected with the PA6 end through a resistor R18;
the pin 2 of the U4 is grounded, the pin 3 of the U4 is respectively connected with one end of a resistor R12, one end of a resistor R20 and the pin 3 of an OPA365 AIDBRR chip U6 through resistors R13 and R14 in sequence, and the other end of the R12 is connected with the other end of the R10;
the other end of the C12 is respectively connected with a pin 2 of the U6, a ground wire, a pin 3 of the Q1 and one end of a resistor R9, and the other end of the resistor R9 is respectively connected with a pin 2 of the Q1 and the other end of the resistor R8;
the other end of R7 is respectively connected with an NPN triode Q2 collector, one end of an inductor L4 and one end of a capacitor C13, the other end of L4 is respectively connected with a diode D1 cathode and one end of a TVS tube D5, the other end of D5 is connected with one end of the inductor L5, and the other end of L5 is respectively connected with the other end of C13, one end of a resistor R21 and the other end of R20; the other end of R21 is respectively connected with the 4 pin of U6, one end of a capacitor C15 and one end of a resistor R16, and the other end of C15 is respectively connected with the 5 pin of U6 and the REF3 end; the other end of R16 is connected with the emitter of Q2;
pin 1 of U4 is connected to one end of capacitor C19 and one end of resistor R26 through resistor R25, the other end of R26 is connected to one end of capacitor C20 and pin 3 of LM358 chip U7, the other end of C20 is connected to pin 4 of U7 and ground wire, pin 2 of U7 is connected to one end of resistor R22, one end of resistor R23 and one end of varistor VR1, the other end of VR1 is connected to the other end of C19, the other end of R23, pin 1 of U7 and pin 5 of U7, pin 6 of U7 is connected to pin 7 of U7 and one end of resistor R24, the other end of R24 is connected to one end of capacitor C18 and cathode of PESD3V3U1UA diode D6, and anode of D6 is grounded.
The voltage range of the DAC analog signal output by the microcontroller is only 0-3.3V limited by the power supply input voltage of the microcontroller, and the DAC signal needs to be subjected to voltage amplification for realizing the output of 0-5V at the interface end. Meanwhile, in order to improve the driving capability of analog output, a voltage follower is added at the rear stage, so that the output interface has enough load carrying capability. The invention adopts a structure of a homodromous proportional amplifier and a follower.
The working principle and the design steps are as follows:
the output voltage transfer function is:
Figure BDA0002408821770000111
selecting a suitable VR1/R22 ratio:
Figure BDA0002408821770000112
vout is calculated from the DAC zero scale voltage (0V), gain ratio (VR 1/R22).
Figure BDA0002408821770000121
Vout is calculated from the DAC full scale voltage (here 3V), the gain ratio (VR 1/R22).
Figure BDA0002408821770000122
The 4-20mA signaling standard, first appeared in the 1950 s, was an analog signaling standard adopted by the International Electrotechnical Commission (IEC) process control system and is commonly used for signaling and electronic control in an industrial environment. China also adopts the international standard signal system, the instrument transmission signal adopts 4-20mA, and the receiving signal adopts 1-5V, namely, a signal system of current transmission and voltage receiving is adopted. Because of adopting current signal transmission, have advantages such as difficult quilt disturbs, safe and reliable, should make it become the signal transmission mode of industry common use.
The 4-20mA interface circuit designed by the invention is composed of a voltage stabilizing circuit, a voltage/current conversion circuit and an interface protection circuit as shown in figures 2, 3 and 4.
A simplified schematic diagram of a voltage/current converter is shown in fig. 15 for a loop powered or 2 wire 4-20mA transmitter. The transmitter has only two external input terminals. The transmitter communicates with the host by precisely controlling the magnitude of its return current, thereby communicating with the host.
The working principle and the design steps are as follows:
the output current transfer function is:
Figure BDA0002408821770000123
a larger R3/R4 ratio was selected:
Figure BDA0002408821770000124
r2 is calculated from the zero scale current (4mA), the regulator voltage and the gain ratio (R3/R4).
Figure BDA0002408821770000125
R1 was calculated from the full-scale DAC voltage and the 16mA current range to set the full-scale current.
Figure BDA0002408821770000131
The zero scale current is calculated from the selected resistor value.
Figure BDA0002408821770000132
The full-scale current is calculated from the selected resistor value.
Figure BDA0002408821770000133
The voltage stabilizing circuit adopts a TL431 programmable parallel voltage stabilizing chip, the precision specification is 0.5 percent, the cost is low, and the performance is good. The regulator output will remain relatively consistent even if the load changes.
Since instrumentation using the 4-20mA signal standard is often used in industrial environments that can be very dangerous for sensitive electronic components, protection circuitry is added at the interface end to prevent electrical overstress or poor performance environmental hazards that may result from miswiring. The invention prevents system faults caused by wiring errors and external signal interference by utilizing the unidirectional conductivity of the diode D1 and the reverse breakdown characteristic of the TVS tube D5.
The frequency quantity output part and the counting quantity output part adopt a 74LVCH2T45DC chip U8, a pin 1 of U8 is respectively connected with a VCC3.3 end, one end of a capacitor C21 and one end of a resistor R30, the other end of C21 is grounded, the other end of R30 is respectively connected with a DO _ EN end and a pin 5 of U8, a pin 2 of U8 is connected with a DO _ A end through a resistor R31, a pin 3 of U8 is connected with a DO _ B end through a resistor R32, a pin 8 of U8 is respectively connected with a VCC5 end and one end of a capacitor C26, and the other end of C26 is grounded;
a pin 7 of the U8 is respectively connected with one end of a resistor R29 and the base electrode of an NPN triode Q3 through a resistor R28, the other end of the R29 is respectively connected with the ground wire, the emitter of the Q3 and the anode of a PESD24VS1UB diode D7, the collector of the Q3 is respectively connected with one end of a resistor R27 and the cathode of a diode D7, and the other end of the R27 is respectively connected with a DEXT end and the cathode of a diode D2;
the pin 6 of the U8 is connected with one end of a resistor R35 and the base of an NPN triode Q4 through a resistor R34, the other end of the R35 is connected with the ground wire, the emitter of the Q4 and the anode of a PESD24VS1UB diode D8, the collector of the Q4 is connected with one end of a resistor R33 and the cathode of the D8, and the other end of the R33 is connected with a DEXT end.
The frequency quantity output (digital quantity output) outputs a PWM signal of a programmable frequency using a timer function of the controller. The conversion of signal voltage from 3.3V to 5V is completed by using a 74LVCH2T45DC chip. The output end of the interface is designed to be an NPN open-drain type output, and the design allows a user to provide an external voltage reference and output the frequency quantity output under the specified voltage through an external load.
The counting output utilizes the IO port function and the timer function of the controller to output a low-speed switching signal. The conversion of signal voltage from 3.3V to 5V is completed by using a 74LVCH2T45DC chip. The output end of the interface is designed to be an NPN open-drain type output, and the design allows a user to provide an external voltage reference and output a counting quantity output under a specified voltage through an external load.
The invention also comprises an SGM41000 chip U10, wherein a pin 1 of U10 is respectively connected with one end of a resistor R63 and one end of a capacitor C46, the other end of R63 is connected with a VBAT end, pins 2, 3 and 7 of U10 are grounded, pins 4 and 5 of U10 are grounded, a pin 6 of U10 is grounded through the capacitor C45, and the other end of C46 is grounded.
The alarm circuit comprises a buzzer BZ1 and a BZ2, wherein the positive electrode of BZ1 is respectively connected with the VCC3.3 end, the positive electrode of BZ2 and the cathode of a diode D10, the negative electrode of BZ1 is respectively connected with the positive electrode of D10, the negative electrode of BZ1, the negative electrode of BZ2 and the collector of an SS8050 triode Q10, the base electrode of Q10 is respectively connected with one end of a resistor R74 and one end of a resistor R75, the other end of R74 is connected with a BEEP end, and the other end of R75 is respectively connected with the emitter of Q10 and the ground wire.
The signals of the invention can be divided into: four analog quantities, one frequency quantity and one counting quantity.
Analog quantity (the range can be set to be 5-6 adjustable, such as 4-20mA, 4, 8, 12, 16, 20MA can be output, and the voltage is 0, 1, 2, 3, 4, 5): (1)4-20mA, two-wire system, wherein the power supply is 24V. (2)4-20mA, two-wire system, wherein no power is required and the signal is directly output. (3)0-5V, two-wire system, wherein the power supply is 24V. (4)0-5V, two-wire system, where no power is required and the signal is output directly.
Frequency quantity: power supply 24V, two-wire system, output 60HZ, 120HZ, 360HZ, 540HZ, 720HZ, 1200HZ, 1800HZ,24000 HZ.
Counting: the initial count value is 40000, the number of the initial count values is sequentially increased or decreased, 1 pulse can be added each time, the speed can reach 1HZ, and 4 wiring terminals can be led out from the channel and are respectively a power supply positive (8V), a power supply negative, a signal A and a signal B. The direct signal A and the signal B output electric signals of +8,0, 0 and-8 (positive direction increment) and-8, 0,0 and +8 (negative direction decrement).
The invention can be powered by a battery, and is convenient to hold and carry.
It should be understood that the detailed description of the present invention is only for illustrating the present invention and is not limited by the technical solutions described in the embodiments of the present invention, and those skilled in the art should understand that the present invention can be modified or substituted equally to achieve the same technical effects; as long as the use requirements are met, the method is within the protection scope of the invention.

Claims (5)

1. The logging parameter simulator comprises a controller, and is characterized in that a signal output port of the controller is respectively connected with a 4-20mA output part, a 0-5V output part, a frequency quantity output part and a counting quantity output part.
2. The logging parameter simulator of claim 1, wherein the display signal output port of the controller is connected to the display circuit, the alarm signal output port of the controller is connected to the alarm circuit, and the signal input port of the controller is connected to the key input section.
3. The logging parameter simulator of claim 1, wherein the power port of the controller is connected to the output port of the regulated power supply, the input port of the regulated power supply is connected to the output port of the charge management section, and the charge management section is connected to the lithium battery and the USB port, respectively.
4. The logging parameter simulator of claim 1, wherein the controller employs a STMCU _ LQFP64 chip U5, wherein a pin 5 of U5 is connected to one end of a crystal oscillator X3, the other end of X3 is connected to a pin 6 of U5, a pin 1 of U5 is connected to VBAT/VLCD terminal, VDD terminal, one end of a capacitor C29, and the other end of C29 is grounded;
the pin 13 of U5 is connected with AVDD terminal, one end of inductance L1, the other end of L1 is connected with VDD terminal, 32 pin of U5, 64 pin of U5, 48 pin of U5 and 19 pin of U5, pin 18 of U5 is grounded, pin 47 of U5 is grounded through capacitor C22, pin 63 of U5 is grounded, pin 31 of U5 is grounded through capacitor C25, pin 12 of U5 is grounded, pin 60 of U5 is grounded through resistor R55, pin 7 of U5 is connected with one end of resistor R54, one end of switch S2 and one end of capacitor C14, the other end of R54 is connected with VDD terminal, and the other ends of S2 and C14 are grounded.
5. The logging parameter simulator of claim 3, wherein the charging management section employs a bq24195 chip U9, wherein pin 1 of U9 is connected to terminal C39 of capacitor, terminal C38 of capacitor, terminal VBUS of capacitor, and pin 24 of U9, and the other terminal C39 and the other terminal C38 are grounded;
the pin 2 of the U9 is connected with the pin 3 of the U9 through a CB 2;
the 4 pins of the U9 are connected with the cathode of the LED1 through a resistor R50, and the anode of the LED1 is connected with the VREG end;
the pin 5 of U9 is connected with the VCC3.3 end through a resistor R48;
the pin 6 of the U9 is connected with the VCC3.3 end through a resistor R49;
the 8 feet of U9 are connected with one end of a resistor R52 and the collector of an NPN triode Q7 respectively, the other end of R52 is connected with the VSYS end, the base of Q7 is connected with one end of a resistor R51 and one end of a resistor R62 respectively, the other end of R51 is connected with the VBUS _ IN end, and the other end of R62 is connected with the collector of Q7 and the ground wire respectively;
pin 9 of U9 is connected to ground through resistor R58;
the pin 10 of U9 is grounded through a resistor R59;
the pin 11 of the U9 is respectively connected with the pin 12 of the U9, one end of a resistor R53, one end of a resistor R60 and one end of a resistor R61, the other end of the R53 is connected with a VREG end, and the other end of the R60 and the other end of the R61 are grounded;
a pin 13 of the U9 is respectively connected with a pin 14 of the U9, one end of a capacitor C44, one end of a capacitor C43 and a VBAT end, and the other end of the C44 and the other end of the C43 are grounded;
the pin 15 of U9 is respectively connected with the pin 16 of U9, one end of an inductor L6, one end of a capacitor C42, one end of a capacitor C40, one end of a capacitor C41 and a VSYS end, the other end of C42, the other end of C40 and the other end of C41 are grounded, the other end of L6 is respectively connected with one end of the capacitor C37, the pin 19 of U9 and the pin 20 of U9, and the other end of C37 is connected with the pin 21 of U9;
pins 17 and 18 of U9 are grounded;
a pin 22 of the U9 is respectively connected with one end of a capacitor C35 and the VREG end, and the other end of the capacitor C35 is grounded;
the pin 23 of the U9 is connected to one end of a capacitor C36, one end of a capacitor C34, one end of a capacitor C33, the end of VBST5V1 and one end of a resistor R45, the other end of the C36, the other end of the C34 and the other end of the C33 are grounded, the other end of the R45 is connected to one end of a resistor R46 and the end of lowbat, and the other end of the R46 is grounded.
CN202010169932.4A 2020-03-12 2020-03-12 Logging parameter simulator Pending CN111190359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010169932.4A CN111190359A (en) 2020-03-12 2020-03-12 Logging parameter simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010169932.4A CN111190359A (en) 2020-03-12 2020-03-12 Logging parameter simulator

Publications (1)

Publication Number Publication Date
CN111190359A true CN111190359A (en) 2020-05-22

Family

ID=70710432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010169932.4A Pending CN111190359A (en) 2020-03-12 2020-03-12 Logging parameter simulator

Country Status (1)

Country Link
CN (1) CN111190359A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112859668A (en) * 2020-12-31 2021-05-28 深圳市云鼠科技开发有限公司 Voltage and current switching circuit
CN117459158A (en) * 2023-12-21 2024-01-26 中国石油天然气集团有限公司 Comprehensive logging instrument signal channel testing system and testing method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2551767Y (en) * 2002-05-31 2003-05-21 中国石油天然气股份有限公司 Comprehensive logging instrument adjusting device
CN2620857Y (en) * 2003-05-07 2004-06-16 徐平均 High accuracy strain sensor simulator
CN101496013A (en) * 2006-07-31 2009-07-29 法国空中巴士公司 Sensor simulation system
CN201306166Y (en) * 2008-12-12 2009-09-09 杭州泛太石油设备科技有限公司 Signal simulator for mud logging unit
CN201681301U (en) * 2009-10-23 2010-12-22 上海派芬自动控制技术有限公司 Controller test chamber
CN209690921U (en) * 2019-04-30 2019-11-26 北京新大陆时代教育科技有限公司 A kind of analog sensor equipment of multiplex roles
CN212322080U (en) * 2020-03-12 2021-01-08 辽宁众联石油天然气有限公司 Logging parameter simulator

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2551767Y (en) * 2002-05-31 2003-05-21 中国石油天然气股份有限公司 Comprehensive logging instrument adjusting device
CN2620857Y (en) * 2003-05-07 2004-06-16 徐平均 High accuracy strain sensor simulator
CN101496013A (en) * 2006-07-31 2009-07-29 法国空中巴士公司 Sensor simulation system
CN201306166Y (en) * 2008-12-12 2009-09-09 杭州泛太石油设备科技有限公司 Signal simulator for mud logging unit
CN201681301U (en) * 2009-10-23 2010-12-22 上海派芬自动控制技术有限公司 Controller test chamber
CN209690921U (en) * 2019-04-30 2019-11-26 北京新大陆时代教育科技有限公司 A kind of analog sensor equipment of multiplex roles
CN212322080U (en) * 2020-03-12 2021-01-08 辽宁众联石油天然气有限公司 Logging parameter simulator

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李演明: "一种具有电源路径管理的高效移动电源方案", 电源技术, vol. 40, no. 9, 20 September 2016 (2016-09-20), pages 1851 - 1887 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112859668A (en) * 2020-12-31 2021-05-28 深圳市云鼠科技开发有限公司 Voltage and current switching circuit
CN117459158A (en) * 2023-12-21 2024-01-26 中国石油天然气集团有限公司 Comprehensive logging instrument signal channel testing system and testing method

Similar Documents

Publication Publication Date Title
CN203164326U (en) Digital display type detection device of resistor strain sensor
CN111190359A (en) Logging parameter simulator
CN105116808A (en) Internet of things-based electrical appliance safety intelligent device
CN212322079U (en) Parameter simulator
CN212322080U (en) Logging parameter simulator
CN201331391Y (en) Main circuit board for long-distance multipoint temperature monitoring
CN202281769U (en) Modular intelligent gas detector
CN102590589A (en) 4-20mA current transmitter circuit
CN103426271B (en) Electrical fire monitor unit with pulse metering and implementation method thereof
CN206178423U (en) A management system for intelligent pasture
CN202330385U (en) General gas prober with parameter setting function
CN111198512B (en) Parameter simulator
CN202421315U (en) Intelligent electric power measuring and controlling instrument
CN208506130U (en) Electronic tag resistance detection equipment
CN203465806U (en) Electrical fire disaster monitor having function of pulse metering
CN202305458U (en) Air quality detecting device
CN205015121U (en) Low -power consumption intelligence pressure transmitter
CN203759084U (en) Multi-communication mode electric power meter
CN204632067U (en) A kind of intelligent fire-pretection system based on Internet of Things
CN203732930U (en) An energy source data acquisition terminal with two RS485 interfaces
CN206057367U (en) A kind of automobile speed pulse hunting and the instrument of terminal pulse coefficient calibration
CN207598470U (en) A kind of soft starter of remote monitoring and water pump integrated protection
CN204832843U (en) Intelligence electric tool's control circuit
CN205121243U (en) With electrical apparatus safety intelligence device based on thing networking
CN206161041U (en) Gaseous monitoring node of local industrial environment based on bluetooth

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination