【正文】
┊ 吉林師范大學應用工程學院畢業(yè)論文 第 1 頁 共 49 頁 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 裝 ┊ ┊ ┊ ┊ ┊ 訂 ┊ ┊ ┊ ┊ ┊ 線 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 摘 要 隨著社會的發(fā)展、科技的進步以及人們生活水平的逐步提高,各種方便于生活的自動控制系統(tǒng)開始進入了人們的生活,以單片機為核心的自動門系統(tǒng)就是其中之一。本 論 文介紹的自動門控制器使用簡單、工作穩(wěn)定、成本低廉,采用雙速運行、動作迅速。除能實現(xiàn)自動開關(guān)門之外,還具有常開、常關(guān)、門禁、防誤夾等多種功 能 。通過對 “ 控制自動門系統(tǒng) ” 的研究和設計,精心撰寫了控制自動門系統(tǒng)論文。本設計主要應用單片機 8051 作為控制核心,步進電機、熱釋電型紅外傳感器、電位器相結(jié)合的系統(tǒng)。充分發(fā)揮了單片機的性能。其優(yōu)點硬件電路簡單,軟件功能 完善,控制系統(tǒng)可靠,性價比較高等特點,具有一定的使用和參考價值。單片機主要組成部分:中央處理器 CPU( Central Processing Unit)、隨機存儲器 RAM( Ramdom Access Memory)、只讀存儲器 ROM(Read Only Memory)、中斷系統(tǒng)、定時器 /計數(shù)器以及 I/O( Input/Output)口電路等部件。 單片機在控制領(lǐng)域的優(yōu)點:體積小,成本低,運用靈活,易于產(chǎn)品化,它能方便的組成各種智能化的控制設備和儀器,做到機電一體化。它能針對性的解決從簡單到復雜的各類控制任務,抗 干擾能力強,適用溫度范圍寬,可以方便的實現(xiàn)多機和分布式控制,使整個控制系統(tǒng)的效率和可靠性大為提高。本課題通過紅外傳感器感應到來人進出門時向單片機送入一個高電平,后以單片機為控制核心對步進電機進行控制。系統(tǒng)實現(xiàn)簡單,但功能強,能有效的對門進行開關(guān)控制。 關(guān)鍵詞 : 單片機 ,自動門 ,直流電機 ,紅外傳感器 ,轉(zhuǎn)速測量 ┊ 吉林師范大學應用工程學院畢業(yè)論文 第 2 頁 共 49 頁 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 裝 ┊ ┊ ┊ ┊ ┊ 訂 ┊ ┊ ┊ ┊ ┊ 線 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ Abstract As it bees more and more automatic and informational nowadays, the application of microcontroller also bees more and more extensively. Progress of with the development of the society, science and technology and gradual improvement of people39。s living standard, various kinds of help automatic control system in life begin to enter people39。s life, the system of automaticallycontroll door taking onechip puter as the core is one of them. Indicate too that the automatic controlled field became a member in digitized era at the same time. Its practicability is strong, multiple functional, modern techniques, make people believe this is an achievement of scientific and technological progress. It lets the mankind understand even more, the development in digital era will change human’s life, will quicken the develop ment of science and the research and design to the thing that the system of single chip controlled autodoor, I have written the puter and controlled the systematic thesis of automatically controlled door meticulously. Thesis this is it rely mainly on onechip puter to explain emphatically, DC motor and the measure of rotate speed central is uses 8051 as core of controlling, the DC motor, infrared sensor and electromagic switch bine together mainly to design originally. Give full play to the performance of the onechip puter. Its advantage hardware circuit is simple, the software is with perfect function, the control system is reliable, higher characteristic of the sex price, and it has certain use and reference value. Keywords : Microcontroller Autodoor DC motor Infrared sensor Rotate speed measure ┊ 吉林師范大學應用工程學院畢業(yè)論文 第 3 頁 共 49 頁 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 裝 ┊ ┊ ┊ ┊ ┊ 訂 ┊ ┊ ┊ ┊ ┊ 線 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 目 錄 第 1 章 課題研究的意義和目的 .................................................................. 5 第 2 章 課題的功能概述 .............................................................................. 6 第 3 章 數(shù)字控制開關(guān)電源的設計 .............................................................. 7 總體設計方案 .................................................................................. 7 系統(tǒng)設計 ........................................................................................... 7 基本設計電路 ................................................................................... 7 電路設計 ........................................................................................... 8 數(shù)字調(diào)壓控制電路 ............................................................ 10 計數(shù)控制電路 .................................................................... 10 數(shù)模轉(zhuǎn)換電路 . .................................................................. 10 比較器及 PNM 控制電路 ......................................................11 輸出穩(wěn)壓電路 .................................................................... 12 第 4 章 單片機的介紹和發(fā)展概況 .......................................................... 13 第 5 章 單片機的工作原理 ........................................................................ 14 單片機的基本組成 ......................................................................... 14 MCS51 的尋址方式 ....................................................................... 15 指令 ................................................................................................. 15 計數(shù)初值的計算 ............................................................................. 15 計數(shù)的工作方式 ................................................................... 16 定時的工作方式 ................................................................... 16 5. 5 中斷響應的條件 ........................................................................... 17 串行口工作方式及幀格式 .............................................................. 17 第 6 章 步進電機的發(fā)展和應用 ................................................................ 18 第 7 章 步進電機的工作原理 .................................................................... 21 第 8 章 用單片機和 CPLD 實現(xiàn)步進電機的控制 ....................................... 23 電機控制電路設計 ........................................................................ 23 步進電機控制方案 ......................................................................... 26 電機驅(qū)動器硬件結(jié)構(gòu) .................................................................... 27 CPLD 硬件電路設計 ........................................................................................................... 27 控制的實現(xiàn) ................................