欢迎来到天天文库
浏览记录
ID:316724
大小:390.50 KB
页数:20页
时间:2017-07-22
《当地重力加速度的测量 毕业论文》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、当地重力加速度的测量DesignedofThelocalgravityaccelerationmeasurement摘要本文介绍了基于STC89C52RC单片机的测量当地的重力加速度的软、硬件设计方法。系统先取固定单摆的摆长1m,然后通过霍尔元件与小球中的磁铁的感应,以摆球偏离平衡位置5°的位置开始摆动,并以小球经过平衡位置时开始记录摆球经过平衡位置的次数和时间,待摆球经过平衡位置60次(也就是30个周期)的时候停止计时,再通过算法计算出当地的重力加速度;记录次数和时间都是通过中断的方法来实现,时间的计数通过定
2、时器0中断,而次数是通过外部中断来实现;而且本系统还通过用液晶1602显示屏将经过平衡位置的次数C,所用的时间T,单摆的摆长L,重力加速度G显示出来;系统由单片机作为主控器,给出系统的基本原理、组成框图和软件流程,详细描述了霍尔元件的工作的原理,最后讲述了再软硬件调试中出现的问题,并给出了解决与改进的方法,使系统更完善。关键词:重力加速度,单摆,周期,霍尔元件,液晶屏1602AbstractThispaperintroducestheSTC89C52RCbasedonsinglechipmicrocompute
3、rmeasurementofthelocalgravityaccelerationdesignmethodsofsoftwareandhardware.Systemofasimplependulumfirsttakefixedlong1m,andthenthroughthehallelementandthemagnetballinduction,inordertoputtheballfrom5°balancepositionthepositionoftheswingingbegan,andwithsmallba
4、llafterbalancepositionbegantotakeplacetheballafterbalancepositionnumberoftimesandthetime,toputtheballthroughbalanceposition60times(alsois30cycle)stoptheclock,againthroughthealgorithmcalculatedthelocalgravityacceleration;Recordnumberandtimeisthroughtheinterru
5、ptwaytoimplement,thecountoftimebytimers0disruptedandthenumberisthroughtheexternalinterruptiontotheimplementation;Andthesystemalsothroughliquidcrystaldisplaywith1602throughthenumberofbalancepositionC,timeusedT,asimplependulumlongL,gravityaccelerationGdisplay;
6、Bysingle-chipmicrocomputersystemasthemaincontrollerandthebasicprincipleofthesystemisgiven,thecomponentsdiagramandsoftwareflowchart,adetaileddescriptionoftheprincipleofworkofthehallelement,finallyabouttosoftwareandhardwaredebuggingproblems,andgivesthesolution
7、stotheimprovementofthemethod,makethesystemmoreperfect.Keywords:Gravityacceleration,singlependulum,cycle,hallelement,LCDscreen160217目录摘要IAbstractI1.引言12.系统总体方案设计12.1.设计要求12.1.1.设计任务12.1.2.具体要求12.2.系统的硬件实现方案12.2.1.总体设计思路12.2.2.系统结构框图13.系统硬件设计23.1.单片机控制电路设计23.1
8、.1.STC89C52RC简介23.1.2.单片机控制电路23.2.电源电路设计33.2.1.电路原理33.2.2.参数的选择33.3.霍尔元件监测电路33.3.1.霍尔元件简介33.3.2.电路工作原理43.3.3参数选择43.4.显示电路的设计44.系统软件设计54.1.系统软件实现的功能54.2.软件开发平台54.3.实现方法及系统流程图54.3.1测量重力加速度的实现方法54.
此文档下载收益归作者所有