摘 要
跑步機(jī)控制系統(tǒng)是跑步機(jī)的主要組成部分,本課題的研究?jī)?nèi)容是跑步機(jī)控制系統(tǒng)的設(shè)計(jì)。跑步機(jī)控制系統(tǒng)由硬件和軟件兩部分組成,論文分別從控制系統(tǒng)的硬件設(shè)計(jì)和軟件設(shè)計(jì)兩方面展開,對(duì)控制系統(tǒng)的基本構(gòu)成、工作原理以及其所能實(shí)現(xiàn)的功能進(jìn)行了詳細(xì)的說明,完成了硬件電路的設(shè)計(jì)和程序的編寫調(diào)試。
跑步機(jī)控制系統(tǒng)硬件選用AT89C51單片機(jī)作為核心元件,采用模塊化設(shè)計(jì)方式,實(shí)現(xiàn)了液晶顯示、鍵盤輸入、步進(jìn)電機(jī)控制、心跳檢測(cè)顯示和速度路程檢測(cè)顯示等功能。系統(tǒng)所采用的硬件均為市場(chǎng)典型、通用的器件,硬件損壞時(shí)易于替換。軟件設(shè)計(jì)方面采用可讀性強(qiáng)的C語言編程,程序采用通用性強(qiáng)的模塊化結(jié)構(gòu)。最后使用Keil編譯器對(duì)程序進(jìn)行編譯和調(diào)試,驗(yàn)證了控制系統(tǒng)的可行性。
關(guān)鍵詞:跑步機(jī) 控制系統(tǒng) AT89C51
ABSTRACT
Running machine control system is the major component of a running machine,the study of this issue is to design running machine control system.The running machine control system is conposed of hardware and software,this thesis separately from the hardware design and software design teo areas,the control system’s basic structure,operating principles and functions can achieve a detailed description,and completed the design of hardware and wrote,debugged the program.
The running machine control system selectes AT89C51 microcontroller core hardware components,adopts modular design,realizes the functions of LCD display,keyboard input,stepper motor control,heart test and display and speed and distance test and display.The hardwares of the system are typical and general-purpose devices in the market,they are easy to be replaced when they damaged.On the software designing,we use readable C language to program,the programs adopt high universality modular stucture.In the end,we used Keil compiler to write and debug the program and verified the feasibility of control system.
Key Words: Running Machine;Control System;AT89C51
目 錄
中文摘要 i
英文摘要 ii
目 錄 iii
第一章 緒論 1
1.1發(fā)展現(xiàn)狀與背景 1
1.2畢業(yè)設(shè)計(jì)的任務(wù) 2
1.3開發(fā)軟件簡(jiǎn)介 2
1.3.1 Keil C 2
1.3.2 Proteus 2
第二章 系統(tǒng)性能分析 4
2.1跑步機(jī)控制系統(tǒng)的性能要求 4
2.2 跑步機(jī)控制系統(tǒng)組成結(jié)構(gòu) 4
第三章 控制系統(tǒng)電路設(shè)計(jì) 5
3.1 系統(tǒng)總體方案的設(shè)計(jì) 5
3.2 主控單元設(shè)計(jì) 6
3.2.1單片機(jī)的選取原則 6
3.2.2單片機(jī)的選取 6
3.2.3 時(shí)鐘電路設(shè)計(jì) 7
3.2.4復(fù)位電路設(shè)計(jì) 8
3.3 生理信息檢測(cè)電路設(shè)計(jì) 9
3.3.1傳感器的選擇 9
3.3.2濾波電路設(shè)計(jì) 9
3.3.3心率檢測(cè)電路設(shè)計(jì) 10
3.4 速度與距離檢測(cè)電路設(shè)計(jì) 11
3.5 按鍵輸入電路設(shè)計(jì) 12
3.6 串口通信電路設(shè)計(jì) 13
3.7 液晶顯示電路 14
3.8 電機(jī)電路設(shè)計(jì) 15
3.8.1步進(jìn)電機(jī)原理 15
3.8.2步進(jìn)電機(jī)選型 16
3.8.3步進(jìn)電機(jī)驅(qū)動(dòng)電路設(shè)計(jì) 17
第四章 控制系統(tǒng)軟件設(shè)計(jì) 19
4.1軟件的基本要求 19
4.2軟件組成結(jié)構(gòu) 19
4.2.1程序總流程圖 20
4.2.2計(jì)時(shí)模塊軟件設(shè)計(jì) 21
4.2.3 按鍵輸入模塊軟件設(shè)計(jì) 22
4.2.4 液晶顯示模塊軟件設(shè)計(jì) 24
4.2.5心率檢測(cè)模塊軟件設(shè)計(jì) 26
4.2.6速度與距離檢測(cè)模塊軟件設(shè)計(jì) 27
4.2.7步進(jìn)電機(jī)驅(qū)動(dòng)模塊軟件設(shè)計(jì) 29
4.3軟件調(diào)試 32
總 結(jié) 34
參考文獻(xiàn) 35
致謝 36