




已阅读5页,还剩5页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Design of the Data Acquisition System Based on STM32ABSTRACTEarly detection of failures in machinery equipments is one of the most important concerns to industry. In order to monitor effective of rotating machinery, we development a micro-controller uC/OS-II system of signal acquisition system based on STM32 in this paper. we have given the whole design scheme of system and the multi-channel vibration signal in axis X, Y and Z of the rotary shaft can be acquired rapidly and display in real-time. Our system has the character of simple structure, low power consumption, miniaturization.Keywords: STM32; data acquisition; embedded system;uC/OS-II;1. 1. IntroductionThe real-time acquisition of vibration in rotating machinery can effectively predict, assess and diagnose equipment operation state, the industry gets vibration data acquisition Rapidly and analysis in real-time can monitor the rotating machinery state and guarantee the safe running of the equipment. In order to prevent failure, reduce maintenance time, improve the economic efficiency, The purpose of fault diagnosis system can detect these devices through the vibration signal acquisition of rotating machinery, and process the data acquisition, then it will make timely judgment of running state of equipment .While the data acquisition module is the core part of the fault diagnosis system 1-4.The practical application in the industrial field, is the equipment operating parameters will be acquired to monitor equipment operating state. In traditional data acquisition systems, the data from acquisition card are generally send into the computer, and specific software will be developed for the data acquisition. The main contribution of this paper has designed the STM32 platform with ARM technology, that has become a traditional mainstream technology in embedded systems, and the collecting data toward the direction of high real-time, multi-parameter, high-precision, while data storage become large capacity, more miniaturization and portable, and the development of multicommunication mode and long-distance for data transmission. So as to meet the actual acquisition system multitasking requirements, this article has designed based on STM32 micro-controller uC/OS-II system of signal acquisition system. Therefore, in order to meet the actual acquisition system multitask requirements, this novelty of this article has designed a signal acquisition system in micro-controller uC/OS-II based on STM32.2.Architecture of data acquisition systemData acquisition as key technology for monitoring equipment, recently a lot of work has been done on it. An embedded parallel data acquisition system based on FPGA is Optimized designed which will make it reasonable to divide and allocate high-speed and low-speed A/D 5. Instead, it has use a high-speed A/Dconverter and Stratix II series of FPGA for data collection and processing, in which the main contribution is used of the Compact Peripheral Component Interconnect, the system has the characters of modularization, sturdiness and scalability 6.But remote control will be needed in Special Conditions, this paper introduce the embedded operating system platform based on Windows CE and uC/OS-II to design a remote acquisition and control system with the GPRS wireless technology 7-8.In order to achieve the data sharing of multi-user, it has build the embedded dynamic website for data acquisition management and dissemination with the ARM9 and Linux operation system 9.A data collection terminal devices is designed based on ARM7 microprocessor LPC2290 and embedded real-time operating system uC/OS-II to solve the real-time acquisition of multichannel small signal and multi-channel transmission10.On the other hands, two parallel DSP-based system dedicated to the data acquisition on rotating machines, and the inner signal conditioner is used to adapt the sensor output to the input range of the acquisition, and then signal post-processing by the design software, while the most frequently structure is to use DAS and FPGA-based, and such programs are also dependent on the DAS cost.In order to meet market requirements of low power consumption, low cost, and mobility, Fig.1 in this paper presents the design overall structure diagram of data acquisition system. Through SPI interface, the system gets the data collection with three axis acceleration sensor into the STM32 controller of inner A/D conversion module with 12-bit, this process is non-interfering parallel acquisition. Our system uses 240x400 LCD and touch screen module real-time to display the collected data in real time.2.1. STM32 micro-controllerA 32 bit RISC STM32F103VET6, used as the processor in our system, compared with similar products, the STM32F103VET6 work at 72MHZ, with characters of strong performance and low power consumption, real-time and low-cost. The processor includes: 512K FLASH, 64K SRAM, and it will communicate by using five serial ports which contain a CAN bus, a USB2.0 SLAVE mode and a Ethernet interface, what s more two RS232 ports are also included. The system in our paper extend the SST25VF016B serial memory through the SPI bus interface, that will regard as the temporary storage when collect large number of data, furthermore, we have the A/D converter with 12 bits resolution, and the fastest conversion up to 1us, with 3.6 V full-scale of the system. In addition to design of the system power supply circuit, the reset circuit, RTC circuit and GPIO port to assurance system needs and normal operation.2.2. Data acquisitionThe machine state is normal or not is mainly depended on the vibration signal. In this paper, to acquire the vibration data of rotating machinery rotor, we have used vibration acceleration transducers MMA7455L which could collect the data from axis x, y, and z of the company of Free-scale. The kind of vibration acceleration transducers has advantage of low cost and small size, high sensitivity and large dynamic range with small interference. MMA7455L is mainly consists of gravity sensing unit and signal conditioning circuit composition, and this sensor will amplify the tiny data before signal preprocessing. In data acquisition process of our system, the error of sampling stage is mainly caused by quantified, and the error is depended on the bits of the A/D converter ,when we regard the maximum voltage as V max , the AD converter bits is n, and the quantization Q = V max/2n, then, the quantization error is obeyed uniform distribution in - q / 2, q / 2 13.The designed STM32 could built at most three 12-bit parallel ADC in this paper , which theoretical index is 72dB and the actual dynamic range is between 54 to 60dB while 2 or 3 bits is impacted by noise, the dynamic range of measurement can up to 1000 times with 60dB. For the vast majority of the vibration signal, the maximum sampling rate of 10kHZ can meet actual demand, and the higher frequency of collection is generally used in the 8-12 bits AD, therefore one of contribution of this work is to choose a built-in 12-bit A/D to meet the accuracy of vibration signal acquisition and lower cost in this experiment.3.Software design3.1. Transplantation of C/OSIn order to ensure real-time and safety data collection requirements, in this system, a kind of RTOS whose source code is open and small is proposed. It also can be easily to be cut down, repotted and solidified, and its basic functions including task management and resource management, storage management and system management. The RTOS embedded system could support 64 tasks, with at most 56 user tasks, and four tasks of the highest and the lowest priorities will be retained in system. The uC/OS-II assigns priorities of the tasks according to their importance, the operation system executive the task from the priority sequence and each task have independent priority. The operating system kernel is streamlined, and multi-tasking function is well compared with others, it can be transplanted to processors that from 8-bit to 64-bit.The transplant in the system are to modify the three file system structure: OS_CPU_C.H OS_CPU.C, OS_CPU_A.ASM. Main transplantation procedure is as follows:A. OS_CPU_C.HIt has defined the data types, the length and growth direction of stack in the processor. Because different microprocessors have different word length,so the uC/OS-II transplantation include a series of type definition to ensure its portability, and the revised code as follows:typedef unsigned char BOOLEAN;typedef unsigned char INT8U;typedef signed char INT8S;typedef unsigned short INT16U;typedef signed short INT16U;typedef unsigned int INT32U;typedef signed int INT32S;typedef float FP32;typedef double FP64;typedef unsigned int OS_STK;typedef unsigned int OS_CPU_SR;Cortex-M3 processor defines the OS_ENTER_CRITICAL () and OS_EXIT_CRITICAL () as opening and closing interrupt, and they must set to 32 bit of the stack OS_STK and CPU register length. In addition, that has defined the stack pointer OS_STK_GROWTH stack growth direction from high address to lower address.B. OS_CPU.CTo modify the function OSTaskStkInit() according to the processor, the nine remaining user interface functions and hook functions can be null without special requirements, they will produce code for these functions only when the OS_CPU_HOOKS_EN is set to 1 in the file of OS_CFG.H. The stack initialization function OSTaskStkInit () return to the new top of the stack pointer.OS_CPU_A.ASMMost of the transplant work are completed in these documents, and modify the following functions. OsStartHighRdy() is used for running the most priority ready task, it will be responsible for stack pointer SP from the highest priority task of TCB control block, and restore the CPU, then the task process created by the user start to control the process.OSCtxSw () is for task switching, When the current task ready queue have a higher priority task, the CPU will start OSCtxSw () task switching to run the higher priority task and the current task stored in task stack.OSIntCtxSw () has the similar function with OSIntSw (), in order to ensure real-time performance of the system, it will run the higher priority task directly when the interrupt come, and will not store the current task.OSTickISR () is use to handle the clock interrupt, which needs interrupt to schedule its implementation when a higher priority task is waiting for the clock signal.OS_CPU_SR_Save () and OS_CPU_SR_Restore () is completed to switch interrupt while entering and leaving the critical code both functions implement by the critical protection function OS_ENTER_CRITICAL () and OS_EXIT_CRITICAL ().After the completion ofthe above work,uC/OS-II can run on the processors.3.2. Software architectureFig.2 shows the system software architecture, so as to display the data visualized,uC/GUI3.90 and uC/OS-II is transplanted in the system, our system contains six tasks such data acquisition, data transmission, LCD display, touch screen driver, key-press management and uC/GUI interface.First of all, we should set the task priority and the task scheduling based on the priority. It needs complete the required driver design before the data acquisition, such as A/D driver, touch panel driver and system initialization, while the initializations include: hardware platform initialization, system clock initialization, interrupt source configuration, GPIO port configuration, serial port initialization and parameter configuration, and LCD initialization. The process is that the channel module sent sampling command to the AD channel, then to inform the receiver module it has been sent the sample start command, the receiver module is ready to receive and large data will store in the storage module, after the completion of the first sampling, channel module will send the complete command of sampling to the receiver module, the receiver sends an interrupt request to the storage module to stop the data storing, then the data will display on the LCD touch screen. The data acquisition process shown in Fig.34.ExperimentsThe experiment of the embedded system has been done and data acquisition comes from the acceleration of MMA7455L, which is installed on the bench of rotating machine. The data acquisition have displayed as shown in Fig.4 and Fig.5, the system can select three channels to collect the vibration signal from the three directions of X, Y and Z-axis , and in this paper the sampling frequency is 5KHZ and we have collect the vibration signal from normal state of unbalanced state at the same channel. The result shows that our system can display real-time data acquisition and predict the preliminary diagnosis rapidly.5.ConclusionThis paper has designed an embedded signal acquisition system for real time according to the mechanical failure occurred with high frequency of in the rotating machines. The system is based on a low cost microcontroller, Vibration signals is picked by the three axis acceleration sensor which has the performance of low cost and high sensitivity, and the acquisition data from axis x, y, and z. We have designed the system hardware structure, and analyses the working principle of data acquisition module. The proposed system of uC/OS-II realize the data task management and scheduling, and it is compacted with structure and low cost, whats more the system collects the vibration signal and analysis in real-time of the rotating machines, and then quickly gives diagnostic results.AcknowledgementsThis work was supported by The National Natural Science Foundation of China (51175169); China National Key Technology R&D Program(2012BAF02B01); Planned Science and Technology Project of Hunan Province(2009FJ4055);Scientific Research Fund of Hunan Provincial Education Department(10K023).REFERENCES1 Cheng, L., Yu, H., Research on intelligent maintenance unit of rotary machine, Computer Integrated Manufacturing Systems, vol. 10, Issue: 10, page 1196-1198, 2004.2 Yu, C., Zhong, Ou., Zhen, D., Wei, F., .Design and Implementation of Monitoring and Management Platform in Embedded Fault Diagnosis System, Computer Engineering, vol. 34 , Issue: 8, page 264-266, 2008.3Bi, D., Gui, T., Jun, S., Dynam . Behavior of a High-speed Hybrid Gas Bearing-rotor System for a Rotating ramjet, Journal of Vibration and Shock, vol. 28, Issue: 9, page 79-80, 2009.4 Hai, L., Jun, S., Research of Driver Based on Fault Diagnosis System Data Acquisition Module, Machine Tool& Hydraulics, vol. 38 , Issue: 13, page 166-168, 2011.5 Hao, W., Qin, W., Xiao, S., Optimized. Design of Embedded Parallel Data Acquisition System, Computer Engineering and Design, vol. 32, Issue: 5, page 1622-1625, 2011.6 Lei,
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年煤气安全操作面试题及参考答案
- 2025年智慧仓储技术应用专家考试题库及答案全解
- 2025年人力资源管理师初级面试题集锦
- 2025年旅游行业营销策划师招聘笔试模拟题集
- 2025年财务会计实操模拟题集及账务处理技巧含答案
- 2025年物联网技术中级工程师面试题详解及答题技巧
- 2025年护士执业资格中级考试模拟试题及参考答案详解
- 2025年特岗教师招聘考试初中政治面试高分突破策略
- 2025年物资供应链管理与运营实务手册及模拟题集
- 人物描写课件教学设计
- 重庆市地图模板课件
- 单位(子单位)工程观感质量检查记录
- 麻醉科质控管理规范
- 2013年7月版工业管道全面检验报告填写说明 2014
- 40篇英语短文搞定高考3500个单词(全部含翻译-重点解析)
- 中国淘宝村研究报告
- 纺织行业主要工艺流程和用水环节
- DB62∕T 3083-2017 HF永久性复合保温模板现浇混凝土建筑保温体系技术规程
- 现浇梁劳务分包合同
- 人教版八年级下册英语单词表默写版(直接打印)
- Q∕GDW 12070-2020 配电网工程标准化设计图元规范
评论
0/150
提交评论