Disclosure of Invention
The main purpose of the application is to provide a vacuum gauge high-precision data acquisition and display interaction device, which can effectively inhibit signal noise and greatly improve the precision of measured data through software filtering and a segmentation high-order fitting algorithm.
In order to realize the above-mentioned purpose, the application provides a display interaction equipment is adopted to vacuum gauge high accuracy number, including energy distribution module, analog signal collection module, intelligent calculation module, communication module and intelligent display and interaction module, wherein: the energy distribution module is respectively connected with the intelligent calculation module and the analog signal acquisition module; the analog signal acquisition module is connected with the intelligent calculation module; the communication module is connected with the intelligent computing module; the intelligent display and interaction module is connected with the intelligent computing module.
Further, the energy distribution module comprises an AC/DC module and a DC/DC module, wherein the AC/DC module is connected with the commercial power through a high-voltage EMC filter and is connected with the DC/DC module through a low-voltage EMC filter.
Further, the DC/DC module comprises a first DC/DC module and a second DC/DC module, wherein the input ends of the first DC/DC module and the second DC/DC module are connected with the low-voltage EMC filter, and the output ends of the first DC/DC module and the second DC/DC module are connected with the LC filter.
Further, the analog signal acquisition module adopts AD7732 as a digital-to-analog converter.
Furthermore, the input end of the analog signal acquisition module is connected with the vacuum gauge through a single-ended/differential detection circuit.
Furthermore, the output end of the analog signal acquisition module is connected with the intelligent calculation module through an SPI bus.
Furthermore, the intelligent calculation module adopts 8051F340 as a core processor, and is configured to perform digital filtering on the acquired data, and calculate corresponding vacuum degree data from the filtered data.
Furthermore, the intelligent calculation module adopts a sliding window filtering algorithm to carry out digital filtering, and adopts a segmented high-order fitting algorithm to calculate the corresponding vacuum degree data.
Furthermore, the intelligent display and interaction module is an LCD touch display screen.
Further, the intelligent computer system also comprises a storage module, and the storage module is connected with the intelligent computing module.
The invention provides a high-precision data acquisition and display interaction device of a vacuum gauge, which has the following beneficial effects:
the method is mainly used for interactive matching with the capacitance film vacuum gauge, a user can independently input data to flexibly match sensors with different parameters, signal noise can be effectively inhibited, and the precision of measured data and the flexibility and the universality of equipment application are greatly improved through software filtering and a segmentation high-order fitting algorithm.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances in order to facilitate the description of the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meaning of these terms in this application will be understood by those of ordinary skill in the art as appropriate.
In addition, the term "plurality" shall mean two as well as more than two.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1, the present application provides a display interaction device is adopted to high accuracy number of vacuum gauge, including energy distribution module 1, analog signal acquisition module 2, intelligent calculation module 3, communication module 4 and intelligent display and interaction module 5, wherein: the energy distribution module 1 is respectively connected with the intelligent computing module 3 and the analog signal acquisition module 2; the analog signal acquisition module 2 is connected with the intelligent calculation module 3; the communication module 4 is connected with the intelligent computing module 3; the intelligent display and interaction module 5 is connected with the intelligent computing module 3.
Specifically, the physical part of the sensors of the capacitive thin film vacuum gauge has batch differences in the production and processing process, and it is not possible to ensure that each parameter of each sensor is completely consistent, and in order to achieve the purpose of high-precision measurement, a commonly adopted method is to customize a dedicated digital acquisition display control interactive device to match with the specific parameter of each vacuum gauge sensor, so that the problem that the universality of the digital acquisition display control interactive device is poor is brought. The high-precision data acquisition and display interaction equipment of the vacuum gauge, which is provided by the embodiment of the application, the analog signal acquisition module 2 can acquire 0-10V analog signals output by a sensor of the vacuum gauge at high precision, the sensor signals are subjected to digital filtering and intelligent calculation by the intelligent calculation module 3 and are displayed by the intelligent display and interaction module 5, data interaction is realized through the communication module 4 and an upper computer, and a user can manually input high-order fitting parameters required by the intelligent calculation module 3 through the intelligent display and interaction module 5, so that the vacuum gauge sensors with different parameters can be flexibly and accurately matched, and the measurement data precision of the vacuum gauge and the use flexibility of the equipment are greatly improved.
Further, as shown in fig. 2, the energy distribution module 1 includes an AC/DC module 11 and a DC/DC module, and the AC/DC module 11 is connected to the commercial power through a high-voltage EMC filter 14 and is connected to the DC/DC module through a low-voltage EMC filter 15. The energy distribution module 1 mainly adopts a mode of combining AC/DC and DC/DC to convert AC220V into DC5V and DC +/-15V secondary power supply for an analog circuit and a digital circuit, and the digital power supply and the analog power supply are supplied separately, so that the interference of the digital circuit to the analog circuit is reduced, and the measurement resolution of the system is improved. The high-voltage EMC filter 14 is mainly used for providing lightning protection and inhibiting alternating current surge protection, and the low-voltage EMC filter 15 is mainly used for providing reverse input protection and slow start functions and improving the EMS performance and the EMI performance of the system. In the embodiment of the present application, the front end of the energy distribution module 1 is connected to the AC220V commercial power through a fuse, the other end of the fuse is connected to the input end of the high-voltage EMC filter 14, the output end of the high-voltage EMC filter 14 is connected to the input end of the AC/DC module 11, pin E of the high-voltage EMC filter 14 is connected to the chassis ground, the output end of the AC/DC module 11 is connected to the input end of the low-voltage EMC filter 15, the output end of the low-voltage EMC filter 15 is connected to the input end of the DC/DC module, and according to practical situations, a 1uF ceramic chip capacitor and a 68uF tantalum capacitor may be respectively connected between the positive and negative electrodes output by the AC/DC module 11.
Further, the DC/DC module includes a first DC/DC module 12 and a second DC/DC module 13, and the input terminals of the first DC/DC module 12 and the second DC/DC module 13 are connected to a low voltage EMC filter 15, and the output terminals are connected to an LC filter 16. The DC/DC module is arranged as a first DC/DC module 12 and a second DC/DC module 13, which are mainly used for respectively providing DC5V and DC +/-15V secondary power supplies for an analog circuit and a digital circuit, and the output end is provided with an LC filter 16 which is mainly used for improving the quality of the output of the secondary power supplies, avoiding the output interference of the DC/DC modules and achieving the purpose of accurate measurement.
Further, as shown in fig. 3, the analog signal acquisition module 2 adopts AD7732 as a digital-to-analog converter. The analog signal acquisition module 2 is mainly used for acquiring analog signals output by a vacuum gauge sensor, an AD7732 is used as a digital-to-analog converter, a DC +15V power supply is converted into a high-stability DC +5V power supply by an AD7105 for the analog signal acquisition module 2 to use, and an AD780 is used for providing ultrahigh-precision 2.5V reference standard for the AD 7732. In the embodiment of the application, 6 pins of the AD780 are respectively connected with 11 pins, 14 pins, 18 pins and 21 pins of the AD7732, 5V analog power supply is provided for the AD7732 by using the AD7105, a digital ground (DGNG) and an Analog Ground (AGND) are connected through magnetic beads at a position as close to the AD7732 as possible, and the Analog Ground (AGND) and a chassis ground (KGND) are connected in a single electric mode.
Further, the input end of the analog signal acquisition module 2 is connected with the vacuum gauge through a single-ended/differential detection circuit. Analog signals output by a vacuum gauge sensor are transmitted to the analog signal acquisition module 2 through a single-ended/differential detection circuit, the AD7732 is configured to be in a differential input mode, detected signals are respectively connected to positive and negative differential input ends of the AD7732 through metal mesh shielding cables, and a cable shielding layer is well lapped with a machine shell ground (KGND).
Furthermore, the output end of the analog signal acquisition module 2 is connected with the intelligent calculation module 3 through an SPI bus. In this embodiment of the application, there is 6.144MHz crystal oscillator to provide digital time sequence for AD7732, and AD7732 and intelligent computing module 3 pass through SPI bus connection, and the signal that analog signal acquisition module 2 gathered passes through SPI bus transmission to intelligent computing module 3 in.
Further, the intelligent calculation module 3 adopts 8051F340 as a core processor, and is configured to perform digital filtering on the acquired data, and calculate corresponding vacuum degree data from the filtered data. In the embodiment of the application, the intelligent computing module 3 uses 8051F340 as a core processor, the core processor is connected with the analog signal acquisition module 2 through an SPI bus, a UART0 of the core processor is connected with the communication module 4 to realize data interaction with an upper computer, and a UART1 interface of the core processor is connected with an intelligent display and interaction module 5 composed of a serial touch screen.
Furthermore, the intelligent calculation module 3 adopts a sliding window filtering algorithm to perform digital filtering, and adopts a piecewise high-order fitting algorithm to calculate the corresponding vacuum degree data. In the embodiment of the application, the noise level of the acquired signal is suppressed by measures such as hardware filtering, shielding, grounding and the like; the signal-to-noise ratio of the detected signal is further improved through a sliding window filtering algorithm, and the implementation process of the sliding window filtering algorithm is as follows: configuring the AD7732 into a highest-precision sampling mode, wherein the time for completing one sampling in the mode is 1.35ms, continuously starting 30 times of AD conversion, sequencing 30 converted data and storing the data in a global array, taking the average value of 10 groups of data in the middle of the array as new data of sliding window filtering, setting the length of a sliding window filtering window as 4 groups of data, sequencing the data in the sliding window array according to the time sequence, removing the earliest data and then storing the earliest data in the sliding window filtering operation, averaging the four groups of data in the sliding window array, and transmitting the averaged data as final filtering data to the next function for processing. The measurement error caused by nonlinearity between the measured value and the vacuum value is counteracted through a piecewise high-order fitting algorithm, and the realization process of the piecewise high-order fitting algorithm is as follows: firstly, putting a capacitance film vacuum gauge into a standard device, obtaining the corresponding relation between data after sliding window filtration and standard vacuum degree in a full-range, finding 3 points aiming at the nonlinear condition between the data and the standard vacuum degree, respectively dividing the full-range into 4 sections with better linearity, respectively carrying out three times of fitting on the 4 sections of data, and obtaining a fitting function: y is Ax 3 +Bx 2 + Cx + D, 3 boundary value data and 4 fitting parameters A, B, C, D are input and sent to the core processor 8051F340 through the touch screen, and the intelligent computing module 3 writes the received user data intoOld data are stored in the storage module 6 and are covered, and the data after the sliding window is filtered are converted into vacuum degree data by using the latest user data according to a segmentation high-order fitting formula when the vacuum degree is calculated each time.
Further, the intelligent display and interaction module 5 is an LCD touch display screen. The intelligent display and interaction module 5 is used for displaying the vacuum degree data calculated by the intelligent calculation module 3 on one hand, and on the other hand, a user can input the segmentation boundary value and the fitting formula parameter required by the segmentation high-order fitting algorithm according to the LCD touch display screen and send corresponding instructions through the touch display screen, so that the measurement of the vacuum gauge sensors with different parameters is realized, and the universality of the whole equipment is improved.
Further, the intelligent computer system also comprises a storage module 6, wherein the storage module 6 is connected with the intelligent computing module 3. In the embodiment of the application, the intelligent computing module 3 stores the user input data by using the external EEPROM of the I2C bus as a power-down memory for storing the user data.
Specifically, as shown in fig. 4, the working flow of the vacuum gauge high-precision data acquisition display interaction device provided by the embodiment of the present application is as follows: after the device is started, firstly, system initialization is carried out, wherein the system initialization comprises 8051F340 initialization and AD7732 initialization, then the processor sends a handshake signal to the AD7732, if a correct handshake reply signal cannot be received, the communication between the core processor 8051F340 and the AD7732 is not normal, and at the moment, the core processor 8051F340 sends a fault instruction to the LCD touch display screen and the fault instruction is displayed by the LCD touch display screen; if the handshake is successful, firstly inquiring whether an instruction of the LCD touch display screen exists or not and executing (including a zero adjustment instruction and a full adjustment instruction), then starting the AD7732 to collect signals, carrying out sliding window filtering processing on the collected signal data, carrying out segmentation high-order fitting calculation on the filtered data according to a user instruction and configuration parameters, and finally storing the calculated vacuum degree data and covering the old data. In the whole process, user interactive operation is completed by a key interruption function (UART1 interruption), when an instruction is sent by a soft key of an LCD touch display screen, a program enters the key interruption function, the instruction type is analyzed and the corresponding instruction flag bit is changed in the key interruption function, and a key instruction flag is inquired once in each period in a main function and is executed; data display is accomplished by timer 1 interrupt function and LCD touch display screen cooperation, and timer 1 triggers once per 300ms to break off, and the touch-sensitive screen data that starts to update after advancing the interrupt, accomplishes data display's refresh, and RS485 serial communication is controlled by timer 0 interrupt, advances timer 0 interrupt and sends a packet of status data through the serial ports once per second, and the host computer of being convenient for detects equipment.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.