基于ARM的便携式数字示波器设计
2018-07-28郭宏伍马东吉黄金成刘明雪肖寒
郭宏伍 马东吉 黄金成 刘明雪 肖寒
【摘 要】本文提出了一种基于ARM开发平台的便携式示波器系统设计,该系统通过DMA与D/A转换器产生一路1KHz方波信号,用于信号校准;通过一路A/D转换器对待测信号进行采集,将采集的信号首先进行IIR滤波,滤除干扰信号[1],然后通过定时器、中断测得其电压有效值及其频率,将数据显示至LCD显示屏上,同时将当前时间及测得数据存入至SD卡中,并通过蓝牙无线传输至上位机,对所测得的数据进行备份。该方案解决了传统示波器笨重、不易携带、价格高昂等弊端的同时,大大提高了在复杂工作环境下进行信号检测的效率。
【关键词】ARM;D/A转换器;A/D转换器;IIR滤波;蓝牙传输
中图分类号: TM935.37 文献标识码: A 文章编号: 2095-2457(2018)12-0243-002
DOI:10.19694/j.cnki.issn2095-2457.2018.12.114
Design of Portable Digital Oscilloscope Based on ARM
GUO Hong-wu MA Dong-ji HUANG Jin-cheng LIU Ming-xue XIAO Han
(Beihua University College of Electrical and Information Engineering, Jilin 132021, China)
【Abstract】This paper presents a portable oscilloscope system based on ARM development platform, which generates 1KHz square wave signal along the way through DMA and D/A converter for signal calibration; Through the A/D converter along the way to collect the measurement signal, the collected signal is first filtered by IIR to filter out the interference signal, and then the effective voltage value and its frequency are measured by the timer and interrupt, and the data is displayed on the LCD display. At the same time, the current time and measured data are stored in the SD card and transmitted wirelessly to the upper computer via Bluetooth to back up the measured data. The scheme solves the disadvantages of traditional oscilloscopes such as heavy, difficult to carry, and high price, and greatly improves the efficiency of signal detection in complex working environments.
【Key words】ARM; D/A Converter; A/D Converter; IIR filtering; Bluetooth Transmission
0 引言
仪器的飞速发展在为我们生活提供便利的同时也面临着越来越严峻的考验。尤其部分设备长期工作在恶劣环境下,为设备的检测维修带来极大困难。该便携式信号检测系统正是基于此背景下研发设计的。该系统主控芯片选用ARM公司生产的stm32f103zet6的32位单片机,与传统单片机相比因其具有低功耗、高性价比等优势,已经成为嵌入式系统开发的主流平台。对于信号的检测方面采用单片机内部12位A/D转换器进行采样,在保证信号检测的准确性的同时提高性价比;对于信号的存储使用内部DMA功能以提高数据存儲效率;另一方面,为了去除小信号干扰,本文还设计了一套数字滤波器。
1 系统方案设计
该系统的结构主要由stm32单片机、整形电路、显示、存储模块四部分构成。……
