论文中文题名: | 基于STM32和μC/OS-II的便携式压力采集仪的研制 |
姓名: | |
学号: | 201203108 |
学生类型: | 硕士 |
学位年度: | 2015 |
院系: | |
专业: | |
第一导师姓名: | |
论文外文题名: | Design of Portable Pressure Acquisition System Based on STM32 and μC/OS-II |
论文中文关键词: | STM32F103ZET6 ; μC/OS-II ; μC/GUI ; FATFs ; 压力采集 |
论文外文关键词: | STM32F103ZET6 ; μC/OS-II ; μC/GUI ; FatFs ; Pressure Acquisition |
论文中文摘要: |
在煤层开采时,煤岩层的压力变化,关系着井下工作人员的人身财产安全。为此,论文设计了一种基于STM32F103ZET6的高精度多路压力采集仪,用于矿山压力实验室对煤层模拟开采时的煤层压力进行采集与分析处理,以实时操作系统μC/OS-II、图形用户接口μC/GUI和文件系统FATfs作为嵌入式软件平台,运用电子技术、多任务、最小二乘法、文件存储、图形显示等技术,开发出能够对多路压力数据进行高精度采集、显示、保存和传输的便携式采集仪。
该仪器由便携式采集仪和计算机应用软件两部分构成。采集仪硬件平台基于STM32,具体组件包括:电源模块、多路数据采集模块、320*240点阵LCD显示模块、数据保存模块和通信模块等。多路数据采集模块由通道选择开关和18位高精度的模数转换芯片FS511组成,实现分时对多通道的压力进行逐一高精度采集。并行点阵LCD显示模块可以在现场图形化显示测量数据和曲线,基于SDIO接口通信的2G容量SD卡可以存储大量的实验数据。本系统既可以单独运行,实现压力的显示和保存,也可由CAN总线接口与计算机通信,实现实验数据再利用,进一步完成数据分析和图表报告。
基于μC/OS-II完成了多任务划分,包括数据采集并保存,数据显示,串口通信任务和触摸扫描并重绘窗口任务,合理分配了各任务的优先级。利用用户图形接口μC/GUI完成了多路压力数据的单路曲线显示,多路曲线显示,数值显示和系统设置。文件系统FATFs使得微控制器通过文件的形式读写数据,实现了PC机以文件的形式读取SD卡。完成了LCD和SD的底层驱动程序设计并优化了LCD屏幕刷新速度。
计算机应用软件以C++Builder为开发平台,与采集仪通信,利用最小二乘法完成传感器的标定,读取SD卡中的压力数据并转存到Excel文件,方便查看和处理,完成160路数据的实时采集、保存和历史数据浏览,丰富了系统功能。
﹀
|
论文外文摘要: |
In view of the mine pressure laboratory simulation of mining coal seam pressure
requirements,this paper designed a embedded coal seam pressure monitoring system based on
STM32F103ZET6. System in a real-time operating system μC/OS-II, the graphical user
interface μC/GUI and file system FATfs as an embedded software platform, multitasking, the
least square method ,communication, file storage, graphics display, software filtering
technologies are used to develop a high-precision real-time acquisition of multi-channel
pressure data, display ,preservation and communication embedded system.
The client compter hardware mainly implements the power module, data acquisition
module, central processing module, LCD display module, data storage module and
communication module.Power supply module adopts multiple dc voltage chip to supply
separately each device ;Data acquisition module consist of the analog switch chip CD4051
and 18-bit precision analog-to-digital conversion chip FS511, achieving a single FS511 to
acquire high precision multi-channel pressure one by one;The central processing module is
mainly based on STM32F103ZET6 impleting data processing and control of the other
devices;LCD display module and storage module receives comands and data of the master
control chip to complete the numerical and curve display of pressure data and save in the SD
of 2G capacity,this system no longer dependent on the PC, can achieve independent pressure
display and preservation; Communication module use CAN bus, guaranteeing the reliability
of data and high speed remote transmission.
This system embed in the μC/OS-II, μC/GUI and FatFs,software development of client
compter based on them as a platform. Operating system μC/OS-II can simplify software
development, improve the system real time, is advantageous for the realization of software
extensions and modular design, there is no need to modify the system software.Graphics user
interface μC/GUI has abundent widgets and 2D graphics interface, is easy to realize the
various image display of system requirements and friendly human-computer interaction,
greatly simplifies the programmer's work.Embedding FatFs file system, the microcontroller
can read and write data in the form of documents, a good solution to the PC can't read SD
card data in the form of a non-file.
PC software development base on C++ Builder, use the least square method to complete
the sensor calibration to improve the accuracy of the whole system, read the pressure data in
the SD card and archive to Excel documents, being convenient to view and process. PC
software communicate to client compter, complete data aggregation of multiple monitoring
terminal for all channels real-time pressure data display, realize multi-channel and single
channel curve drawing, data storage and historical data browsing, enrich the system function.
﹀
|
中图分类号: | TP274.2 |
开放日期: | 2015-06-18 |