您好,欢迎访问三七文档
2012年湖北大学生电子设计竞赛--------ALTERA杯SOPC专题竞赛项目报告地沟油快速检测装置Deviceforquicklyidentifyingillegalcookingoil学院:电子与电气工程学院小组成员:蔡明喜、陈婉、石楚雄指导老师:田裕康完成日期:2012年10月16日作品原创性声明本小组郑重声明:所呈交的湖北省大学生电子设计竞赛ALTERA杯SOPC专题竞赛作品,是本小组在指导教师的指导下,独立进行创作工作所取得的成果。除文中已经注明引用的内容外,本作品不包含任何其他个人或集体已经发表或撰写过的作品成果。本人完全意识到本声明的法律结果由本人承担。作品作者签名:日期:年月日摘要本项目是基于NiosII软核处理器(MCU)的地沟油快速检测装置,旨在实现“地沟油”快速,现场检测。首先采用可编程的直接数字频率合成器(DDS)产生正弦激励信号,经过低通滤波器(LPF)作用于阻抗传感器(实验室制作)后通过模数转化(ADC),MCU对采集的信号通过快速傅里叶变换(FFT)处理,实现地沟油阻抗与相角的检测,检测值在LCD上显示,并用微型打印机打印出检测结果。该仪器具有检测结果可靠、便携式和显示直观等优点。关键字:NiosII软核处理器DDS阻抗传感器FFTAbstractThedeviceforquicklyidentifyingisbasedonNiosIIsoftcoreprocessor,andaimingattherealizationofillegalcookingoilfastandfieldtesting.Firstofall,itcanbeadoptedwithprogrammableDirectDigitalfrequency-Synthesizer(DDS)thatproducessinesignal,throughlowpassfilter(LPF)effectsonimpedancesensor(labproduction),thensignalthroughanalog-to-digitalconversion(ADC),MCUprocessesthesamplesignalthroughthefastFouriertransform(FFT),thatrealizesthedetectionaboutimpedanceandphaseAngleoftheillegalcookingoil.TheresultisdisplayedonLCD,andisprintedoutbymicroprinter.Theinstrumenthastheadvantagesofhighreliability,portableandintuitivedemonstration.Keywords:NiosIIsoftcoreprocessorDDSimpedancesensorFFT摘要...............................................................................................................................3一.引言.......................................................................................................................5二.系统方案...............................................................................................................5三.功能与指标...........................................................................................................63.1功能描述.........................................................................................................6DDS模块......................................................................................................6信号处理部分...............................................................................................6FFT模块........................................................................................................64.LCD显示模块和微型打印机模块...........................................................73.2性能参数.........................................................................................................71、系统资源使用情况.................................................................................72、系统性能指标.........................................................................................7四.实现原理...............................................................................................................7五.硬件设计...............................................................................................................81.整理框图............................................................................................................82、分模块设计.....................................................................................................81)DDS介绍................................................................................................92)低通滤波器的设计...............................................................................103)阻抗传感器..............................................................................................114)模数转换...............................................................................................125)快速傅里叶变换FFT............................................................................12六.软件设计原理.....................................................................................................141、SOPC资源配置情况....................................................................................142)系统软件流程图..............................................................................................15七、系统测试.............................................................................................................151、测试仪器.......................................................................................................152、测试方法.......................................................................................................16八.系统创新.............................................................................................................161、传感器检测部分...........................................................................................162、实现阻抗与相角的转化中算法的运用.......................................................16九.设计总结.............................................................................................................16十.参考文献................................................................................................................17附录.............................................................................................................................17一.引言地沟油,泛指生活中的各类劣质油,如从下水道中的油腻漂浮物或餐饮行业的泔水、从劣质猪肉、内脏或猪皮和反复使用的炸油中提炼加工出的油,经过不法者的勾兑,摇身变成餐桌上的“食用油”。由于地沟油中含有细菌、真菌、霉素、苯并芘以及超标的铅、砷,长期食用会引发癌症,对人体的危害极大。由于存在很大的经济诱惑,仍有人铤而走险销售地沟油。2011年全国公安机关破获一批跨省特大地沟油案件,打掉了非法利用地沟油炼制食用油的犯罪链条,揭开了不
本文标题:sopc报告
链接地址:https://www.777doc.com/doc-2859561 .html