Data acquisition is the process of obtaining object information from one or more signals. With the rapid development and popularization of microcomputer technology, data collection and monitoring has become an increasingly important detection technology, and is widely used in industry and agriculture and other occasions where temperature, humidity and pressure need to be monitored simultaneously. Data acquisition is an important link in industrial control and other systems. It is usually implemented using some microcontroller systems with relatively independent functions. As an indispensable part of the measurement and control system, the performance characteristics of data acquisition directly affect the entire system. The multi-channel data acquisition system designed in this article uses MSP430 series microcontroller as the core control component of the MCU board. The MSP430 series of microcontrollers is a 16-bit microcontroller developed by TI. Its outstanding feature is its emphasis on ultra-low power consumption, which is very suitable for various occasions with low power requirements. The sampling circuit of this system uses the 12-bit A/D inside the MSP430 microcontroller, which makes the system have the characteristics of simplified hardware circuit and low power consumption. Due to the high performance-price ratio of this series, its applications are becoming more and more widespread.
2. Basic composition and working principle of the system.
In the design of this data acquisition system, in order to improve the intelligence, reliability and practicality of the system, the single-chip MCU and host computer transmission method is adopted, that is, the MCU runs at the remote end of the data acquisition system. Complete the collection, processing, sending and display of data, and the host computer completes the reception, verification and display of data. At the same time, the host computer can control the remote MCU to make its collection method optional. The MCU uses TI's low-power MSP430F437, which is much more powerful than the 80C51. It not only has 8-channel 12-bit A/D, but also has an LCD driver, which saves a lot of peripheral circuits. This system simulates a sine wave signal and other 6 divided voltage signals on site for multi-channel sampling by the system. It uses the ICL8038 precision signal generation chip to generate a sine wave with variable frequency, and then uses the LM331 chip to realize the conversion from frequency to voltage. The signal also needs to be conditioned to meet system requirements.
3 System hardware circuit design
The overall block diagram of the system hardware is shown in Figure 1. This system consists of two boards: the analog board and the MCU board. The analog board includes the system power supply, sine wave signal generation module, frequency voltage conversion module, signal conditioning module and 7-channel A/D interface; the MCU board includes the power supply and A/D Interface, MCU, LCD and serial port transceiver module.
3.1 Sinusoidal signal generation module
The sinusoidal signal generation module mainly uses the integrated function generator ICL8038. The ICL8038 function generator is a monolithic integrated circuit chip made using advanced processes such as Schottky barrier diodes. It has a wide power supply voltage range and is stable. It has the advantages of good accuracy and high precision. It only needs to connect a few external components to work, and can generate square waves, triangle waves and sine waves at the same time. ICL8038 and peripheral circuits are shown in Figure 2. The external control voltage is input from pin 8. By adjusting the potentiometer P1, the frequency of the sine wave signal output by pin 2 can be changed to achieve external voltage-controlled oscillation. Pins 10 and 11 are connected to a 0.01 μF oscillation capacitor, and pins 4 and 5 are connected to a resistor and potentiometer to adjust the sine wave distortion.
3.2 Frequency and voltage conversion module
The frequency and voltage conversion module is designed using the integrated chip LM331. LM331 adopts a new temperature compensation bandgap reference circuit, which can operate within the entire operating temperature range and as low as 5. Extremely high accuracy under OV supply voltage. The dynamic range of LM331 is wide, up to 100 dB; the linearity is good, and the maximum nonlinear distortion is less than 0. 01%, the operating frequency is as low as 0.1 Hz and has good linearity; the conversion accuracy is high, and the digital resolution can reach 12 bits; the external circuit is simple, and only a few external components are needed to easily form the V/F Or F/V and other conversion circuits, and it is easy to ensure the conversion accuracy. The frequency-to-voltage conversion circuit designed in this system is shown in Figure 3.
Just adjust P1 so that R s is about 12.8 kΩ, then when f i =200 Hz, V o =O. 22 V; when f i =2 kHz, V o =2.22 V.
3.3 Signal conditioning module
The signal conditioning module includes a signal amplification and shaping circuit and a signal amplification and conditioning circuit. Figure 4 shows the signal amplification, shaping and conditioning circuit designed using A/D824. In Figure 4(a), the sine wave signal generated by ICL8038 is first high-pass filtered by a 1 μF capacitor, then reversely amplified 2 times by A/D824, and then passed through a comparator to output a square wave signal of corresponding frequency as the input of LM331. After the square wave signal of 200 Hz ~ 2 kHz passes through the LM331 frequency voltage conversion chip, the signal Vo generated is O. 22~2.22 V. In order to comply with 200 Hz~2 kHz, which corresponds to 1~5 V, Vo needs to be adjusted. The operation circuit in the scheme is shown in Figure 4(b).
3.4 System power module
The system uses ±12 V DC power supply, which directly supplies ICL8038, LM331 and A/D3824. The input +12 V voltage passes through the LM317 adjustable three-terminal voltage regulator to generate a +5 V voltage, which is divided by resistors. The voltage generates other O, 1 V, 2 V, 3 V, 4 V, 5 V, a total of 6 channels of data are supplied to the A/D sampling. The microcontroller board requires +3.3 V power supply, which can be obtained by generating +5 V through another LM317. In order to reduce power supply noise, filter capacitors are added to each power supply. Generally, a combination of 10 μF and 0.1 μF capacitors is used.
3.5 Microcontroller module
This system mainly uses the following performance characteristics of MSP430 microcontroller: low operating voltage, ultra-low power consumption, 8-channel 12-bit A/D converter, LCD driving capability up to 160 segments, etc., which makes the hardware circuit simple change. The microcontroller and peripheral circuits are shown in Figure 5, which is the circuit schematic diagram of the system MCU board. The 5 V power supply generates 3.3 V DC voltage through LM317 to power the MSP430. The microcontroller is responsible for collecting the voltage data of 7 channels and displaying the corresponding voltage values on the LCD. At the same time, the microcontroller and the host computer conduct serial communication. The communication method adopts standard RS 232 mode, RS 485 differential mode interface can also be used to improve communication speed and distance, but it needs to add a 485-232 conversion chip in front of the host computer, which is a bit complicated, so using RS232 can meet the system requirements, which is simple and practical.
The sampling mode of the microcontroller can be controlled through the host computer, that is, there are two modes of cyclic acquisition and fixed channel acquisition, realizing remote controllable data acquisition.
4 System software design
This system is written in C language. The functions include: 7-channel A/D sampling, LCD display and serial port transceiver. Among them, 7-channel A/D sampling can be controlled by the host computer in the sampling mode, that is, cyclic sampling and fixed channel sampling. , the LCD displays the sampling value and the corresponding channel number, and the system communicates with the host computer through the serial port.
4.1 Software flow chart
Figure 6 is the main flow chart of the system software.
After the system is powered on, each module is initialized, including: A/D module, timer A, watchdog, LCD, serial port, etc. Then determine the sampling mode, perform sampling and display, the system default sampling mode is 7-channel cyclic sampling.
5 Conclusion
This system is a multi-channel data acquisition system based on MSP430 microcontroller. The system uses the microcontroller to communicate with the host computer to realize the remote control function.
This system has the following characteristics:
(1) This system uses the integrated function generator ICL8038 to generate a sinusoidal signal, which is used to simulate the data that needs to be collected on site. The generated analog signal has high accuracy.
(2) The system uses the low-power, powerful MSP430 microcontroller. The MSP430 microcontroller is equipped with 8 external channels of 12-bit A/D, which can realize multi-channel data collection with high accuracy. It can collect 7 channels of data at the same time and the collection method is controllable. Using the 12-bit A/D inside the microcontroller simplifies the system hardware circuit.
(3) The single-chip computer and the host computer in the system use the RS 232 standard interface for communication, or the RS 485 differential mode for transmission to improve the communication rate and transmission distance.
In this system, the MSP430 microcontroller is responsible for collecting, processing and displaying 7-channel data, and at the same time responding to the host computer commands; the host computer is user-oriented and can control the system and send commands to the microcontroller to select the data collection method.
This system can realize the collection of 7 analog signals with high collection accuracy and can meet the application of general occasions.
Previous article:Studying transient processes using microcontroller data acquisition system
Next article:Design of multi-channel data acquisition system based on MSP430 microcontroller
Recommended ReadingLatest update time:2024-11-16 16:34
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- 【GD32L233C-START Review】 Extra 1 Solution to download problems
- How to make a jumper between the pads of two different plug-ins in PCB?
- "Core" ecosystem, "Assist" security, "Connect" the future. Registration for the 2021 STM32 China Summit and Fan Carnival is now open!
- Please tell me the role of these two resistors in the circuit
- Is the naked-eye 3D large screen also made of light-emitting diodes (LED)? What is the principle?
- Comparison of TI's tms320 series DSP
- Playing with Zynq Serial 45——[ex64] Image Laplace Sharpening Processing of MT9V034 Camera
- New employee: I am the most idle person in the company, so my boss assigned me to write the bootloader
- I feel like I can't stay in this stupid company any longer.
- TI High Power Density Solution Analysis!