| Based on Pascal’s law,the piston pressure measuring system adopts electronic measuring technology and automatic control technology to realize the pressure measurement.Through the research and analysis of pressure measurement control methods and processing algorithms,the paper completed the design of hardware and software for the measurement,processing and control of the system,so that the measuring results are more accurate and stable,and the measuring procedure is more intelligent.Firstly,the paper studies the related theories of system measurement,control and treatment,and applies these techniques to the piston pressure measurement system.The paper studies the principles of pressure measurement,temperature measurement,position measurement and motor control in the piston pressure measurement system,and then designs and simulates the corresponding algorithm.Based on the simulation results,the correctness and applicability of the algorithm for the system are verified.In the aspect of pressure measurement,this paper firstly studies the working principle of the pressure sensor.Aiming at the temperature drift and nonlinear error existing in the sensor measurement process,this paper designs the measurement error compensation algorithm based on the interpolation algorithm.In terms of temperature measurement,by studying the working principle of temperature sensor,error compensation algorithm is designed based on Kalman filter algorithm to solve the problem of unstable sensor measurement results.In terms of position measurement,based on the theory of image filtering,binarization,edge detection,this paper innovatively designs a position measurement algorithm using digital image processing technology.For motor control,the paper adopts PSO algorithm to set the parameters of PID controller.Based on the research of measurement,control and processing technology of the system,the paper designs the hardware and software of the piston pressure measuring system.The hardware of the system includes four parts: DSP main control circuit,parameter measurement circuit,motor control circuit and human-computer interaction circuit.The main control circuit part mainly introduces the choice of DSP,introduces the characteristics of ADSP BF609,based on BF609 design of power supply,clock and reset and other peripheral circuits.Then,the circuit of pressure measurement,temperature measurement and image acquisition is designed.The driving circuit of stepping motor is designed using THB6064 chip.Finally,the circuit design of LCD man-machine interaction interface is finished.After that,we develop the overall software design scheme,confirm the work flow of the system and design flow of system initialization,the algorithm transplantation of the measurement part,the motor control algorithm transplantation and the human-computer interaction interface.As for system verification,the paper set up a system test platform and propose a test scheme.We first design each module one by one,and then assemble them together.Simulation results validate the accuracy on measurement,control and algorithm processing of the piston pressure measurement system in this paper. |