您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 智能电子秤课程设计报告
贵州大学单片机课程设计I单片机课程(设计)(设计目)题:智能电子秤学院:明德学院专业:机械设计制造及其自动化班级:机电12151学号:学生姓名:指导教师:2015年6月20日贵州大学单片机课程设计II贵州大学单片机课程(设计)诚信责任书本人郑重声明:本人所呈交的课程设计,是在指导老师的指导下独立进行研究所完成。在文本设计中凡引用他人已经发表或未发表的成果、数据、观点等,均已明确注明出处。特此声明。课程(设计)作者签名:日期:2015.06.20贵州大学单片机课程设计III智能电子称摘要现代社会随着人们生活水平的提高,人们对自己的身体健康越来越关注,而体重又是衡量身体健康与否的一个重要标准,因此用一台体重计定期测量自己的体重是很必要的。传统的体重秤是仪表形式的,不仅测量的误差比较大,而且读数很不方便,体积上会占用更多的空间。因此一款便携,易操作,测量精度高的体重秤就很能满足人们的需求。本文以松翰SN8P1937单片机为核心,基于Auto-Run功能,当待测重量达到体重秤的开机重量时便开始称重,不像以前的体重秤要用脚踩脚踏开关才能开始称重。该单片机内部集成了16位的AD转换功能,可编程增益放大器,液晶驱动等丰富的片内资源。该系统只有在称重的时候在正常模式工作,此时会打开硬件资源,其他时间都工作在绿色模式,绿色模式芯片的电流只有几个微安,因此,该款体重秤非常省电,有很好的实用性和环保性。该设计分为硬件设计和软件设计两大部分。硬件设计部分分为:LCD显示部分,压力信号采集与转变,EEPROM,低电压检测模块和部分按键。由于压力传感器的输出信号是非线性的,所以如果利用线性的处理方法有很大误差,使测量结果不准。因此采用分段线性的方法完成AD转换部分和放大电路部分的设计。软件部分先完成各个模块的底层驱动,然后完成应用层的设计,最终使系统达到预期的结果。关键词:体重秤,SN8P1937,Auto-Run功能,压力传感器贵州大学单片机课程设计IVIntelligentelectronicAbstractModernsociety,aspeople'slivingstandardsimproved,peoplebecomeincreasinglyconcernedabouttheirhealth,asweightisanimportantfactorwhetherhealthyornot.Itisimportantforpeopletouseascalestomeasuretheirweight.Thetraditionalformofinstrumentscalesarenotonlyrelativelylargemeasurementerrors,butalsonoteasyreading,andvolumeofthescaleswilltakeupmorespace.Soaportable,easyoperating,highprecisionscales,clearlymeettheneedsofthepeople.Inthispaper,SonixSN8P1937MCUcore,basedonAuto-Runfeature,itworkswhenweighttestedreachestheminimumoftheweighingscales,unlikethepreviousofweighingscalesusefootpedaltobegincounting.TheMCUintegratesa16-bitADconversion,programmablegainamplifiers,LCDdriverrichon-chipresourcesandsoon.Thesystemonlyweighingwheninnormalmode,openthehardwareresources,theothertimeworkinginthegreenmode,greenmodeonlycostafewmicroampsofcurrent,sothiskindofweighingscalesisverypowersavingsandhaveagoodpracticalandenvironmentalprotection.Thedesignisdividedintotwoparts,hardwaredesignandsoftwaredesign.Thepartofhardwaredesignisdividedinto:LCDdisplaypart,thepressuresignalacquisitionandchange,EEPROM,lowvoltagedetectionmoduleandsomebuttons.Asthepressuresensoroutputsignalisnonlinear,soifthelinearapproachwillcauseerror.ThemethodusedpiecewiselineartocompletethepartofADconversionpartandthedesignofamplifiercircuit.At贵州大学单片机课程设计Vfirst,softwarepartcompletethebottomdriverofeachmodule,andthencompletethedesignofapplicationlayer,eventuallythesystemtoachievethedesiredresults.KEYWORDS:WeighingScale,SN8P1973,Auto-RunFunction,PressureSensor贵州大学单片机课程设计VI目录诚信责任书...............................................................................................................................II摘要.....................................................................................................................................IIIIIAbstract.................................................................................................................................IVV1绪论........................................................................................................................................11.1引言..............................................................................................................................11.2称重技术和衡器的现状和发展趋势..........................................................................21.3体重秤的研究现状和发展趋势..................................................................................31.4课题提出的背景和意义..............................................................................................41.5课题的主要工作及论文结构安排..............................................................................42体重秤功能与操作方法........................................................................................................62.1体重秤的功能..............................................................................................................62.1.1称重....................................................................................................................62.1.2零点校正............................................................................................................62.1.3分段校正............................................................................................................72.1.4增益设置............................................................................................................72.1.5AD采样速率设置..............................................................................................72.1.6AD参考电压设置..............................................................................................72.1.7LCD参数设置....................................................................................................72.2体重秤的操作..............................................................................................................72.3本章小结......................................................................................................................83系统总体设计........................................................................................................................93.1系统方案选择.......................................................................................................
本文标题:智能电子秤课程设计报告
链接地址:https://www.777doc.com/doc-5191640 .html