基于單片機的門禁系統設計.doc
約62頁DOC格式手機打開展開
基于單片機的門禁系統設計,摘 要系統采用51單片機作為控制核心,主要組成是cpu、復位電路、電源指示、工作指示、振蕩電路、蜂鳴器電路、門控鎖電路、出門按鈕、讀卡模塊、顯示模塊等。其基本的工作原理是:當刷卡時,蜂鳴器響一下,如卡權限獲得允許,顯示模塊顯示卡號,同時繼電器動作將門鎖打開,開門指示燈點亮,延時一段時間后繼電器再次動作將門鎖鎖閉,指示燈...


內容介紹
此文檔由會員 龍貓714 發(fā)布
摘 要
系統采用51單片機作為控制核心,主要組成是CPU、復位電路、電源指示、工作指示、振蕩電路、蜂鳴器電路、門控鎖電路、出門按鈕、讀卡模塊、顯示模塊等。其基本的工作原理是:當刷卡時,蜂鳴器響一下,如卡權限獲得允許,顯示模塊顯示卡號,同時繼電器動作將門鎖打開,開門指示燈點亮,延時一段時間后繼電器再次動作將門鎖鎖閉,指示燈熄滅。如果卡無開門權限,則蜂鳴三下報警。當按下出門按鈕時,繼電器動作將門鎖打開,開門指示燈點亮,延時一段時間后繼電器再次動作將門鎖鎖閉,指示燈熄滅。程序中增加了射頻卡權限判斷,當遇到合法卡時顯示卡號,門鎖打開,延時一定時間后自動關閉,非法卡不顯示卡號門鎖不開并蜂鳴警報。門禁系統的基本功能是對出入人員的授權管理,方便人們的出入及滿足各方面的安全要求。本系統設計簡單、性能優(yōu)良,具有一定的實用性。
關鍵詞:單片機,電控鎖,射頻讀卡,門禁控制
Design of Access Control System Based on Single Chip Microcomputer
ABSTRACT
The system uses 51 single chip microcomputer as the control core, mainly consists of CPU, reset circuit, the power indicator, work instructions, oscillation circuit, a buzzer circuit, door lock circuit, the home button, card reader module, display module.The access control system working principle: when the swipe of a card, the buzzer, such as card access allowed, display module for displaying the number, at the same time relay will open door locks, door indicator light, after a period of time delay relay acts again will lock locking, indicator lights.If the card without permission is open, three alarm buzzer.When pressing the home button, the relay will open door locks, door indicator light, after a period of time delay relay acts again will lock locking, indicator lights.RF card program to increase the competence to judge, when legitimate card display card, open door locks, automatic closing delay 10s, illegal card does not show the card door lock on and the buzzer alarm.Access control system's basic function is to access the authorised personnel management, convenient for people to access and meet all security requirements.This system has the advantages of simple design, good performance, has a certain practicality.
KEY WORDS: Single Chip Microcomputer, Electric Control Lock, A Radio Frequency Card, Access Control
目 錄
前 言 1
第1章 系統設計 3
1.1 系統分析 3
1.1.1 系統需求分析 3
1.1.2 系統方案選擇 4
1.2 系統框圖 5
第2章 系統硬件電路分析 7
2.1 主控制電路 7
2.1.1 控制核心 7
2.1.2 最小系統 9
2.2 外圍控制電路分析 11
2.2.1 蜂鳴、指示、門鎖電路分析 11
2.2.2 顯示電路分析 12
2.2.3 射頻卡及射頻系統 12
第3章 各部分硬件電路設計 15
3.1 控制電路 15
3.1.1 響聲、按鈕及指示電路 15
3.1.2 電控鎖控制電路 16
3.2 顯示模塊 17
3.2.1 顯示及數據傳輸 17
3.2.2 顯示部分硬件電路 19
3.3 讀卡模塊 20
3.3.1 讀卡芯片 20
3.3.2 讀寫器電路 21
第4章 軟件設計 24
4.1 系統流程圖 24
4.1.1 資源分配 25
4.1.2 主要模塊流程圖 25
4.3 程序設計 27
4.3.1 讀卡模塊程序 28
4.3.2 顯示模塊程序 32
4.3.3 外圍控制模塊程序 33
4.3.4 系統主程序 34
第5章 設計分析與展望 36
5.1 功能分析 36
5.1.1 基本功能的實現 36
5.1.2 基本功能的補充說明 37
5.2 設計擴展 38
5.2.1 門禁功能擴展 38
5.2.2 設計展望 39
結 論 41
謝 辭 42
參考文獻 43
附 錄 44
外文資料翻譯 52
系統采用51單片機作為控制核心,主要組成是CPU、復位電路、電源指示、工作指示、振蕩電路、蜂鳴器電路、門控鎖電路、出門按鈕、讀卡模塊、顯示模塊等。其基本的工作原理是:當刷卡時,蜂鳴器響一下,如卡權限獲得允許,顯示模塊顯示卡號,同時繼電器動作將門鎖打開,開門指示燈點亮,延時一段時間后繼電器再次動作將門鎖鎖閉,指示燈熄滅。如果卡無開門權限,則蜂鳴三下報警。當按下出門按鈕時,繼電器動作將門鎖打開,開門指示燈點亮,延時一段時間后繼電器再次動作將門鎖鎖閉,指示燈熄滅。程序中增加了射頻卡權限判斷,當遇到合法卡時顯示卡號,門鎖打開,延時一定時間后自動關閉,非法卡不顯示卡號門鎖不開并蜂鳴警報。門禁系統的基本功能是對出入人員的授權管理,方便人們的出入及滿足各方面的安全要求。本系統設計簡單、性能優(yōu)良,具有一定的實用性。
關鍵詞:單片機,電控鎖,射頻讀卡,門禁控制
Design of Access Control System Based on Single Chip Microcomputer
ABSTRACT
The system uses 51 single chip microcomputer as the control core, mainly consists of CPU, reset circuit, the power indicator, work instructions, oscillation circuit, a buzzer circuit, door lock circuit, the home button, card reader module, display module.The access control system working principle: when the swipe of a card, the buzzer, such as card access allowed, display module for displaying the number, at the same time relay will open door locks, door indicator light, after a period of time delay relay acts again will lock locking, indicator lights.If the card without permission is open, three alarm buzzer.When pressing the home button, the relay will open door locks, door indicator light, after a period of time delay relay acts again will lock locking, indicator lights.RF card program to increase the competence to judge, when legitimate card display card, open door locks, automatic closing delay 10s, illegal card does not show the card door lock on and the buzzer alarm.Access control system's basic function is to access the authorised personnel management, convenient for people to access and meet all security requirements.This system has the advantages of simple design, good performance, has a certain practicality.
KEY WORDS: Single Chip Microcomputer, Electric Control Lock, A Radio Frequency Card, Access Control
目 錄
前 言 1
第1章 系統設計 3
1.1 系統分析 3
1.1.1 系統需求分析 3
1.1.2 系統方案選擇 4
1.2 系統框圖 5
第2章 系統硬件電路分析 7
2.1 主控制電路 7
2.1.1 控制核心 7
2.1.2 最小系統 9
2.2 外圍控制電路分析 11
2.2.1 蜂鳴、指示、門鎖電路分析 11
2.2.2 顯示電路分析 12
2.2.3 射頻卡及射頻系統 12
第3章 各部分硬件電路設計 15
3.1 控制電路 15
3.1.1 響聲、按鈕及指示電路 15
3.1.2 電控鎖控制電路 16
3.2 顯示模塊 17
3.2.1 顯示及數據傳輸 17
3.2.2 顯示部分硬件電路 19
3.3 讀卡模塊 20
3.3.1 讀卡芯片 20
3.3.2 讀寫器電路 21
第4章 軟件設計 24
4.1 系統流程圖 24
4.1.1 資源分配 25
4.1.2 主要模塊流程圖 25
4.3 程序設計 27
4.3.1 讀卡模塊程序 28
4.3.2 顯示模塊程序 32
4.3.3 外圍控制模塊程序 33
4.3.4 系統主程序 34
第5章 設計分析與展望 36
5.1 功能分析 36
5.1.1 基本功能的實現 36
5.1.2 基本功能的補充說明 37
5.2 設計擴展 38
5.2.1 門禁功能擴展 38
5.2.2 設計展望 39
結 論 41
謝 辭 42
參考文獻 43
附 錄 44
外文資料翻譯 52
TA們正在看...
- 01.1四時田園雜興課堂教學教案教學設計(部編版).doc
- 01.2稚子弄冰課堂教學教案教學設計(部編版).doc
- 01.3村晚課堂教學教案教學設計(部編版).doc
- 02冬陽·童年·駱駝隊公開課優(yōu)秀教案教學設計(五年...doc
- 02冬陽·童年·駱駝隊最新教研教案教學設計(部編版...doc
- 02冬陽·童年·駱駝隊課堂教學教案教學設計(部編版).doc
- 03祖父的園子公開課優(yōu)秀教案教學設計(五年級下冊).doc
- 03祖父的園子最新教研教案教學設計(部編版五年級下...doc
- 03祖父的園子課堂教學教案教學設計(部編版).doc
- 04草船借箭公開課優(yōu)秀教案教學設計(五年級下冊).doc