1 Structural design of acquisition system
The data acquisition system is mainly composed of several modules such as sensors, conditioning circuits, A/D conversion circuits, microcontrollers, communication modules, computers (PCs), etc. As shown in Figure 1. Various parameters of the external world, field, etc. are analog quantities. The function of the sensor is to convert these analog quantities into electrical signal analog quantities (which can be voltage, current, or electric pulses). After appropriate conditioning circuits, these electrical signal analog quantities are sent to the analog-to-digital converter (A/D converter), which converts these analog quantities into digital signals that can be recognized and processed by the microcontroller. Finally, through the communication module, the microcontroller transmits the collected signals to the PC. The PC human-machine interface is responsible for controlling, storing and processing the collected data.
In practical applications, since the output signals of sensors are mostly weak signals and the distance between the signals and the acquisition system is relatively long, current signal transmission is used to prevent serious signal attenuation. At the signal receiving end, the signal is restored to a voltage signal through an I/V conversion circuit, and then sent to an A/D converter after amplification, filtering and other conditioning circuits. The structural block diagram is shown in Figure 2.
[page]
2 System Hardware Design
2.1 I/V Conversion Circuit Design
In order to reduce the noise of the resistor itself and the influence of the environment, a 40 ohm 1% precision small resistor is used to convert the 4-20 mA current signal into a 0.144-0.72 V voltage signal. As shown in Figure 3, capacitor C1 is used to filter out high-frequency noise.
2.2 Collection circuit design
For each collection object, it must be converted into a digital quantity through an analog-to-digital converter. When there are many input signals, a multi-way analog switch is needed to connect multiple analog quantities to the analog-to-digital converter in turn for conversion. The multi-way analog switch used in this design is CD4051, and the A/D converter uses the MAX197 chip of the American MASIM company. MAX197 adopts a line-by-line approximation working mode, and the internal input tracking/holding circuit converts the analog signal into a 12-bit digital output.
Figure 4 is a circuit diagram of an analog signal of the acquisition system entering the microcontroller after passing through the filter circuit, multi-way selection switch and A/D conversion. The P0 port of the single-chip computer W77E58 is connected to D0~D7 of MAX197, which is used to input the initialization control word of MAX197 and to read the conversion result data. P2.4 of the W77E58 single-chip computer is used as the chip select of MAX197. MAX197 is selected as the software setting low power working mode, so the SHDN pin is set to a high level. The internal reference voltage is used, so REFADJ and REF are both connected to a low level. The P2.6 pin of the W77E58 single-chip computer is used as the selection line for judging high and low data. It is directly connected to the HBEN pin.
The pin of MAX197 is connected to P2.5 of W77E5S8, and becomes low when the conversion is completed and the output data is ready to be read
. In the circuit, AGND and DGND should be independent of each other, and 0.1μF capacitors should be used between various power supplies and analog ground to eliminate power supply ripple.
[page]
3 System software design
The design of analog quantity acquisition program is mainly divided into three stages. The first stage is the design of A/D conversion driver, the second stage is the design of analog quantity digital filtering program, and the third stage is the design of A/D conversion result processing program.
3.1 A/D conversion driver design
The MAX197 chip in the hardware circuit is used to collect analog quantity. The MAX197 control word format is shown in Table 1.
A2, A1, A0 select one of the 8 analog channels through different 0, 1 combinations; RNG and BIP 0, 1 combination determines the range of the collected analog, the maximum is ± 15 V; ACQMOD determines whether MAX197 uses internal acquisition mode or external acquisition mode; PD0 and PD1 combination determines whether to select normal working mode or low power mode. The specific procedures are as follows:
[page]
3.2 Digital filtering
To ensure the accuracy of data acquisition results, the results of analog A/D conversion need to be digitally filtered. The median average filtering method is used in program design. Each analog quantity is sampled n times continuously, the sum of the n sampling results is calculated, the maximum value xmax and the minimum value xmin are removed, and then the average value of the remaining n-2 numbers is calculated as the actual value of the analog quantity.
3.3 Correction of acquisition results
The reference value of the analog quantity is the actual operating parameter, so the collected data needs to be corrected to the actual value through a certain transformation relationship, and then the state judgment operation is performed.
4 Conclusion
The multi-channel data acquisition system designed by the author can realize real-time monitoring of multi-channel signals, and can transmit data to the computer through the serial port and display it. This system can be equipped with different sensors and corresponding processing circuits when applied. With a little modification, it can be widely used in many fields, so it has high practicality.
Previous article:Circuit Design of Data Acquisition System Based on USB Interface
Next article:Research progress on bus detection technology
- Popular Resources
- Popular amplifiers
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- CCS compilation optimization and volatile
- cc3200 GPIO input mode error
- Excellent materials, free of credits: Album of routines for common functional modules in the National Undergraduate Electronic Design Competition
- [Popular Science] IGBT - Starting from the name
- Relay protection device tester verification
- The circuit board cannot start normally after plugging in a power bank
- FPGA beginners ask for help with Verilog test code
- I found a very good 51 single-chip microcomputer tutorial book and recommend it to beginners for self-study of programming.
- PCB circuit board heat dissipation
- PCB board design method and key points analysis