基于单片机的跑步机启/停控制模块的软件设计学院:专业班级:学号:学生姓名:指导教师:2016年04月I摘要近年来,随着社会经济的发展和人们生活水平的提高,人们对自身的健康也日益关注,健身成为一种流行时尚,健身器材行业也逐步兴起为一个大的消费领域,电动跑步机作为一种重要的健身器材得到了越来越广泛的应用,具有广阔的市场前景。研发具有多功能和高附加值的人性化科学化的电动跑步机具有重要的现实意义。电动跑步机的电控系统是整个跑步机运转的核心,它需要具有简单接口界面、电机调速和心率功能。本论文以电动跑步机控制系统为对象,以实用、廉价、高性价比和高安全性为目标,以改进型51系类单片机STC89C52为控制核心,完成了无刷直流电动机调速系统硬件设计、电动跑步机手握式红外心率计软硬件设计和电控系统部分软件开发等任务。首先,文章叙述了跑步机的基本结构和工作原理,对其调速原理和调速方法进行了理论分析,建立了转速、电流反馈控制的直流调速系统的动态静态模型,并实际分析跑步机特殊负载的性质,确保跑步机的安全性和舒适性。并依据此基本控制策略,对电动跑步机无刷直流电动机的调速系统进行了硬件实现并画出相应的电路原理图。其次,文章介绍了电动跑步机附加的电子心率计的软硬件开发。最后,开发部分系统软件。II关键词:电动跑步机;数码管;控制系统AbstractInrecentyears,withthedevelopmentofsocialeconomyandpeoplelivingstandardrise,peopleisincreasinglyconcernedontheirhealth,fitnesshasbecomeapopularfashion,fitnessequipmentindustryalsograduallyrisetoabigconsumption,electrictreadmillasanimportantkindoffitnessequipmenthasbeenmoreandmorewidelyused,hasabroadmarketprospect.R&dhasmultifunctionandhighvalue-addedhumanscientificelectricrunningmachinehasimportantpracticalsignificance.Electrictreadmillofelectroniccontrolsystemisthecoreofthetreadmillrunning,itneedstohavesimpleinterfaces,motorspeedandheartratefunction.Byelectrictreadmillcontrolsystemasanobjectinthispaper,withpractical,cheap,highcostperformanceandhighsecurityasthegoal,withthemodified51seriesofsinglechipmicrocomputerAT89S51asthecore,tocompletethebrushlessdcmotorspeedcontrolsystemhardwaredesignandrunningofelectrictractordrivergriptypeinfraredheart-ratemonitorsoftwareandhardwaredesignandelectriccontrolsystempartofthesoftwaredevelopmenttasks.Firstofall,thearticledescribesthebasicstructureandworkingprincipleofBLDCM,thespeedcontrolprincipleandcontrolmethodareanalyzedintheory,establishedthespeedandcurrentfeedbackcontrolofdynamicandstaticmodelofdcspeedregulatingsystem,andtheactualanalysisofthenatureofthespecialloadrunningmachine,toensurethesafetyandcomfortofrunningmachine.Accordingtothebasiccontrolstrategyofelectrictreadmillbrushlessdcmotorspeedcontrolsystemforthehardwareimplementationanddrawthecorrespondingcircuitprinciplediagram.Secondly,thispaperintroducestheelectrictreadmilladditionalelectronicheart-ratemonitorhardwareandsoftwaredevelopment.Finally,partofthesystemsoftwaredevelopment.Keywords:electrictreadmill;digitalcontrolsystem;controlsystem第1章绪论1.1课题研究背景、目的及意义首先了解一下跑步机的发展历史,跑步机是家庭及健身房常备的器材,而且是当今家庭健身器材中最简单的一种,是家庭健身器的最佳选择。世界上第一台跑步机诞生于1875年,发明人是美国东部农村的一位机械师[1]。这台机器其实是一台便携式农机设备,以牲畜作为动力来源。1866年,纽约州通过了美国第一部禁止虐待动物的法律,用鞭子打牲口被视为非法行为。“美国反对虐待动物组织”指责那些爬楼式的动力装置伤害了动物的膝关节,给动物造成了心理压力。于是有人发明了水平跑步机,其传送带和地面平行,动物走在上面就像平时散步一样自然[1]。现代意义上的跑步机从80...