Download Final Design Report - Harding University

Transcript
Table of Contents
Requirements Specification ....................................................................................................... 4
Overview ....................................................................................................................... 5
Operational Description ............................................................................................... 5
Deliverables ................................................................................................................... 5
Draft User Manual ........................................................................................................ 6
User Interface ................................................................................................................ 7
Capabilities.................................................................................................................... 7
Testing ........................................................................................................................... 7
System Design ............................................................................................................................ 9
Background ................................................................................................................. 10
System Overview ......................................................................................................... 10
Functional Description of Blocks ................................................................................ 11
Block Diagram ............................................................................................................ 15
Electrical Design ...................................................................................................................... 16
Power Supply Circuit .................................................................................................. 17
Digital Logic Design .................................................................................................... 18
LED Array Design ...................................................................................................... 19
Keypad Design ............................................................................................................ 20
Electromagnet ............................................................................................................. 21
LCD Selection ............................................................................................................. 22
Microcontroller ........................................................................................................... 22
Mechanical Design ................................................................................................................... 23
Frame Design .............................................................................................................. 24
Stepper Motor Selection ............................................................................................. 26
Ball Selection ............................................................................................................... 27
Ship Sensor Design...................................................................................................... 37
Push Button Selection ................................................................................................. 38
Gear Selection ............................................................................................................. 38
Gear Material Selection .............................................................................................. 39
Rack Selection ............................................................................................................. 40
Gear Calculations ....................................................................................................... 42
Mechanical Analysis of Movement System ................................................................ 43
Mechanical Analysis of Sensing System ..................................................................... 45
Software Design ....................................................................................................................... 48
SPAMBAG Process Flow ............................................................................................ 49
Game Initialization ..................................................................................................... 50
Ship Placement ............................................................................................................ 51
Generate Computer Move .......................................................................................... 53
Checks for Ship ........................................................................................................... 55
Ball Placement............................................................................................................. 56
Ask User for Info Regarding Hit ................................................................................ 57
Determine if Game Over ............................................................................................. 58
Set as User’s Turn ....................................................................................................... 58
Take Input from User ................................................................................................. 59
2