基于單片機的步進電機紅外遙控控制.doc
約46頁DOC格式手機打開展開
基于單片機的步進電機紅外遙控控制,摘 要紅外線遙控裝置具有體積小、功耗低、功能強、成本低等特點,是目前使用廣泛的一種近距離無線通信和遙控方式。為了滿足工農(nóng)業(yè)生產(chǎn)中對電機轉(zhuǎn)速實時測控要求,本文進行紅外遙控電機轉(zhuǎn)速系統(tǒng)的設(shè)計研究,詳細(xì)地分析了各功能模塊的硬件電路的設(shè)計和相關(guān)軟件程序的編寫。本系統(tǒng)主要包括紅外線信號的收發(fā)、lc...
內(nèi)容介紹
此文檔由會員 雨后的空氣 發(fā)布
基于單片機的步進電機紅外遙控控制
摘 要
紅外線遙控裝置具有體積小、功耗低、功能強、成本低等特點,是目前使用廣泛的一種近距離無線通信和遙控方式。為了滿足工農(nóng)業(yè)生產(chǎn)中對電機轉(zhuǎn)速實時測控要求,本文進行紅外遙控電機轉(zhuǎn)速系統(tǒng)的設(shè)計研究,詳細(xì)地分析了各功能模塊的硬件電路的設(shè)計和相關(guān)軟件程序的編寫。
本系統(tǒng)主要包括紅外線信號的收發(fā)、LCD1602液晶顯示、獨立鍵盤掃描、步進電動機轉(zhuǎn)速控制等幾個重要功能模塊。首先,通過對紅外線遙控工作原理的分析,提出基于單片機STC89C54RD+進行編碼、譯碼,并將脈沖信號調(diào)制在38KHz的高頻載波上,抑制紅外干擾,設(shè)計了紅外遙控接收程序;其次,該系統(tǒng)可分為三大模塊,它們分別是輸入模塊、控制模塊及顯示模塊。輸入模塊采用5個獨立鍵盤實現(xiàn)步進電機加減速、運行模式、正反轉(zhuǎn)和啟停控制輸入功能;顯示模塊則選用LCD完成步進電機的運行模式、速度、正反轉(zhuǎn)等運行狀態(tài)的顯示。
本設(shè)計采用單片機組成紅外遙控步進電機轉(zhuǎn)速系統(tǒng),結(jié)構(gòu)簡單,功能強大,運行可靠,可對電機轉(zhuǎn)速進行良好控制。
關(guān)鍵詞:STC89C54RD+單片機,紅外遙控,步進電機
Design of Stepper Motor Control System Based on Microntroller of Infrared Remote Control
Abstract
The infrared remote control devices are mostly used near distance wireless communication manner due to small volume, low power waste, strong function as well as low cost. To achievement the real-time measurement and control of motor speed in agriculture and industry, a system of motor speed controlled through infrared remote controlling based on micro-chip computer is designed, and the particular analysis of the hardware and software is given.
This design is mainly made up several modules including receive and transmission of infrared remote control signal, LCD1602, keyboard scanning monitor, motor speed control. First analytical infrared remote control work principle, put forward carrying on the coding and translating the code based on a MCU STC89C54RD+, The high frequency that combine to make pulse signal in the 38 KHz carries wave, repress the infrared interference, design the electric circuit of the infrared remote control, writhed the procedure of infrared send out and receive; Control the aspect in the rotate speed of the direct current motive. This design adoption establishing to share empty ratio, control the open time of the relay, raised the system goodly more to the accuracy that the rotate speed of the electric motor control rotate speed. Using the infrared remote control, can circulate the speed to establish the limit to the electrical engineering; Introduced concrete measure of the expansive function of the exaltation system finally.
This design adopts the MCU to constitute the infrared remote control electric motor rotate speed system, the structure is simpers, the function is strong, circulating the credibility, can carry on the electric motor rotate speed good measure and control.
Key Words:MCU STC89C54RD+, infrared remote, Stepper motor
目 錄
第1章 緒 論 1
1.1 課題背景 1
1.2 課題意義 1
1.3 國內(nèi)外發(fā)展情況 2
1.3.1 紅外通信傳送數(shù)據(jù)和視頻 2
1.3.2 紅外通信技術(shù)對計算機技術(shù)的沖擊 4
1.4 課題內(nèi)容及目標(biāo) 4
第2章 總體設(shè)計 6
2.1 總體方案的設(shè)計 6
2.2 調(diào)速方案的設(shè)計 6
第3章 系統(tǒng)硬件設(shè)計 8
3.1 單片機最小系統(tǒng)的設(shè)計 8
3.2 紅外遙控及LCD模塊 10
3.2.1 紅外遙控編解碼原理 10
3.2.2 LCD顯示模塊 13
3.3 步進脈沖產(chǎn)生模塊 14
3.3.1步進電機工作原理 14
3.3.2步進電機的調(diào)速 16
3.4 步進電機驅(qū)動電路設(shè)計 17
第4章 系統(tǒng)軟件設(shè)計 19
4.1 系統(tǒng)主程序設(shè)計 19
4.2 紅外接收與解碼子程序設(shè)計 19
4.3 顯示子程序的設(shè)計 20
4.4 正反轉(zhuǎn)子程序設(shè)計 21
第5章 系統(tǒng)調(diào)試 22
5.1操作控制及現(xiàn)象 22
5.2設(shè)計過程中遇到的主要問題及解決方案 24
第6章 結(jié) 論 25
結(jié)束語 26
致 謝 27
參考文獻 28
附錄系統(tǒng)程序清單 29