Design and Implementation of Multi-channel Data Acquisition System

Publisher:HeavenlyWonderLatest update time:2012-12-24 Source: 电子设计工程 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
0 Introduction
With the development and application of Internet of Things technology, A/D data acquisition is one of the important research topics. There are many implementation schemes for A/D multi-channel acquisition system. By comparing three implementation schemes, the STM32 series ARM chip is finally used for design. STM32 is a 32-bit processor based on ARM Cortex-M3 core. It has excellent power consumption control and numerous peripherals, and has a very high cost performance. It is gradually seizing the market of the original 51 and AVR in the electronics field. In this design, STM32F103RBT6 is used as the main controller. The chip has rich configuration and is convenient for future system function expansion.

1 Comparison and demonstration of schemes
In order to achieve the requirements of multi-channel data acquisition, the following three design schemes are proposed:
(1) Data acquisition system based on single-chip microcomputer
This scheme adopts the method of dual single-chip microcomputer, that is, single-chip microcomputer control is used at the far end and near end of data acquisition. The far end completes data acquisition, sampling, and transmission; the near end completes data reception, verification, processing and display, etc. The keyboard controls data display. In the communication between the near end and the far end, the RS 485 differential interface is used to improve the communication speed and transmission distance. The shortcomings of this solution are: the A/D interface and RS 485 interface are not convenient to program, the frequency range and rate of the collected signal are low, and the practicality is not great.
(2) Data acquisition system based on CPLD
The CPLD is used to collect and control the A/D chip, and transmit it to the host computer through the USB interface. The advantage is that it can achieve high collection rate and collection accuracy, and has great practicality, but the difficulty lies in the control of the A/D module by the CPLD and the configuration of the USB by the single-chip microcomputer.
(3) Data acquisition system based on ARM
The main controller of this solution uses the ARM chip of the STM32 series, and the solution is shown in Figure 1.

a.JPG


In this solution, the A/D converter is built into the ARM chip. The acquisition mode, start time and duration are controlled by the host computer through the RS 232 port, and the data is transmitted to the host computer through the USB interface for storage. Considering that there is no 232 interface when using a laptop as a control host computer, a USB to 232 cable is used to provide RS 232 control information.
Since the A/D chip is built-in, the chip price is also cheap, the circuit design is simpler than the previous one, and the ARM's own A/D acquisition methods are diverse, and can be realized by configuring the corresponding registers in the ARM chip, so it is easy to implement. Considering the subsequent expansion needs and the wide application and practicality, this design adopts this solution.
[page]

2 System Design Principle
The circuit design principle is shown in Figure 2.

b.JPG

[page]

The circuit is mainly composed of power module, main controller module, display module, SD card module, USB to 232 module and other parts.
(1) Main controller
The STM32F103RBT6 is used as the MCU, which has a high cost performance. The chip has 20 KB SRAM, 128 KB FLASH, 3 ordinary 16-bit timers, 1 16-bit advanced timer, 2 SPI, 2 I2C, 3 serial ports, 1 USB, 1 CAN, 2 12-bit ADCs, and 51 general I/O ports. Because the main controller STM32 is powered by 3.3 V, the 5 V voltage of the USB needs to be converted to 3.3 V. Here, the power linear regulator chip AMS1117-3.3 is used to convert 5 V to 3.3 V.
(2) Liquid crystal display
The circuit uses a universal LCD interface to support 8-bit or 16-bit bus or SPI LCD screen. The module uses a TFTLCD panel (thin film transistor liquid crystal display) to display 16-bit true color images, improve data display effects, and also can display the collected data in the form of graphical curves. The module has two screen sizes: 2.4'/2.8', with a resolution of 320×240, 16-bit true color display, and a built-in touch screen. The interface uses an 80 parallel port to connect to the outside and uses a 16-bit data line.
(3) JTAG
uses the standard JTAG connection method. The SWD interface of STM32 is shared with JTAG. As long as JTAG is connected, SWD mode can also be used to download and debug code. In most cases, SWD is used to download and debug code, which saves resources and has a fast download speed.
(4) SD card
Use SD card to expand the capacity storage device to save collected data in real time, which can make up for the situation where there is no host computer, and it is more convenient to analyze and process a large amount of data afterwards.
(5) A/D acquisition
STM32 itself has 1 to 3 ADCs, which can be used independently or in dual mode (to increase the sampling rate). The ADC of STM32 is a 12-bit successive approximation analog-to-digital converter. It has 18 channels and can measure 16 external and 2 internal signal sources. The A/D conversion of each channel can be performed in single, continuous, scan or intermittent mode. The result of ADC can be stored in a 16-bit data register in left-aligned or right-aligned mode. The maximum conversion rate is 1 MHz, that is, the conversion time is 1μs.

3 Comprehensive debugging results of software and hardware
Write the main modules of data acquisition, touch screen control, host computer control program and LCD display module program, download the program and perform system debugging, and the final effect is shown in Figure 3 and Figure 4.

c.JPG

d.JPG


The system can select single-channel or multi-channel loop acquisition mode for 8-channel data through the touch screen. The data acquisition results can be displayed on the LCD screen, transmitted to the host computer or saved in the SD card. By comparing the measured voltage and the voltage value acquired by the data, the measurement accuracy meets the design requirements.

4 Conclusion
This system has a simple circuit, low cost, and certain scalability and practicality. ARM's own A/D acquisition methods are diverse, which can be achieved by configuring the corresponding registers in the ARM chip, so it is easy to implement. The main controller STM32 chip is a 32-bit processor based on the ARM Cortex-M3 core. It has outstanding power consumption control and numerous peripherals. It has a very high cost-effectiveness. It has broad application prospects in many fields such as industrial control, consumer electronics, communication systems, network systems, wireless systems, etc., so it is worth studying and promoting.

Reference address:Design and Implementation of Multi-channel Data Acquisition System

Previous article:Fire control system signal acquisition test based on STM32 microcontroller
Next article:Application of ARM in GPS Navigation System

Recommended ReadingLatest update time:2024-11-16 22:38

ARM virtual development technology based on Proteus
introduction Nowadays, embedded devices exist in every corner of people's lives, such as digital cameras, mobile phones, TV set-top boxes and PDAs. Most of these embedded devices use 32-bit RISC embedded processors as core components. Among them, embedded processors based on ARM cores are the best, accounting for mo
[Microcontroller]
ARM virtual development technology based on Proteus
Arm: Terminating the contract with Huawei, it is inconvenient to comment, it is just complying with US law
The BBC recently learned from a document allegedly from ARM's internal notice that SoftBank's well-known chip designer ARM may have also been involved in the dispute between Huawei and the US government. ARM is said to have asked its employees in the notice to "suspend all ongoing contracts, support authorizations and
[Internet of Things]
Arm: Terminating the contract with Huawei, it is inconvenient to comment, it is just complying with US law
Detailed explanation of STM32 system clock settings
The main configuration code is as follows. It looks simple, but there are still many things to be designed. You need to read it several times. The following is a detailed explanation: //System clock initialization function //pll: selected frequency multiplier, starting from 2, the maximum value is 16  void Stm32_Cloc
[Microcontroller]
STM32 study notes USB virtual serial port descriptor introduction
Descriptor is a complete data structure that can be implemented through programming such as C language and stored in USB devices. It is used to describe all the properties of a USB device. The USB host requires the device to send this information through a series of commands. Its function is to pass information to the
[Microcontroller]
ARM embedded automotive digital virtual instrument design solution
This article mainly introduces the working mechanism of Fujitsu's system LSI chip MB86R01, as well as the functional characteristics of the ARM926EJ-S core, the image display controller (GDC), the in-vehicle communication function, and various media interfaces integrated on a single chip. The chip can process data fro
[Microcontroller]
ARM embedded automotive digital virtual instrument design solution
Pi Zi Heng Embedded: ARM Cortex-M Files (2) - Link File (.icf)
  In the previous lesson Source Files (.c/.h/.s), Pi Ziheng systematically introduced source files to everyone. Source files are typical input files in embedded projects. So are there other types of input files? Since Pi Ziheng asked this question, the answer must be yes. The linker file that Pi Ziheng is going to tal
[Microcontroller]
Now Shipping from Mouser Electronics: ADI's MAX32690 Arm Cortex-M4F BLE 5.2 Microcontroller for Industrial and Wearable Devices
Mouser Electronics now sells semiconductors for industrial and wearable devices Analog Devices MAX32690 Arm Cortex-M4F BLE 5.2 Microcontroller May 6, 2024 – Mouser Electronics, an authorized global distributor of electronic components and industrial automation products focused on New Product
[Mobile phone portable]
Now Shipping from Mouser Electronics: ADI's MAX32690 Arm Cortex-M4F BLE 5.2 Microcontroller for Industrial and Wearable Devices
Design of Audio Analyzer Based on LPC2148 ARM Microcontroller
0 Introduction With the rapid development of microelectronics and information technology, digital technology represented by single-chip microcomputers is developing rapidly. Single-chip microcomputers are widely used in the control of various instruments, computer network communication and data transmission, re
[Microcontroller]
Design of Audio Analyzer Based on LPC2148 ARM Microcontroller
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号