Indiana University – Purdue University Fort Wayne Opus: Research & Creativity at IPFW Computer and Electrical Engineering Technology & School of Engineering, Technology and Computer Information Systems and Technology Senior Design Science Design Projects Projects 12-7-2012 A Computer-Based Measurement Instrument for a Soccer Free Kick Andy Vongphachanh Indiana University - Purdue University Fort Wayne Matt Weeks Indiana University - Purdue University Fort Wayne Follow this and additional works at: http://opus.ipfw.edu/etcs_seniorproj Part of the Computer Sciences Commons, and the Engineering Commons Opus Citation Andy Vongphachanh and Matt Weeks (2012). A Computer-Based Measurement Instrument for a Soccer Free Kick. http://opus.ipfw.edu/etcs_seniorproj/928 This Senior Design Project is brought to you for free and open access by the School of Engineering, Technology and Computer Science Design Projects at Opus: Research & Creativity at IPFW. It has been accepted for inclusion in Computer and Electrical Engineering Technology & Information Systems and Technology Senior Design Projects by an authorized administrator of Opus: Research & Creativity at IPFW. For more information, please contact [email protected]. A Computer-Based Measurement Instrument for a Soccer Free Kick December 07, 2012 Students: Andy Vongphachanh Matt Weeks Project Advisor: Professor Hack Class Instructor: Professor Paul I. Lin ECET 491 Senior Design Phase II Submitted to: Paul I. Lin, Professor of ECET 491 Senior Design II Department of Electrical and Computer Engineering Technology College of Engineering, Technology, and Computer Science Indiana University-Purdue University Fort Wayne, Indiana ABSTRACT This report will describe the design and implementation of the project. The Senior Design Project is the Computer-Based Measurement Device for a Soccer Free Kick. This device is being designed and constructed to fulfill the B.S. Electrical Engineering Technology Degree Requirement. The device was invented to introduce officiating technology into the sport of soccer. The device will allow the referee to quickly determine if the defenders are 10 yards away from the ball like they are required to be by the rules of the sport. Not only will the device allow the referee to make this decision accurately, it will also speed up the time of inactivity during a free kick. Never again will a referee have to pace off 10 yards or even judge the distance with his line of sight. With the Computer-Based Measurement Device for a Soccer Free Kick, the referee will be able to do make these improvements to the game and will also have data to rely on when a player or coach complains about the defenders being too close to the ball during the free kick. The idea of this device originated from the love of the sport of soccer and the desire to introduce technology, another of the passions, to the game. During the past year of working on this project, there was a lot lessons learned, not only about the technology of the device, but about project management, and documentation programs that the group had never used before. Keywords: Arduino Uno, Arduino Software, Ultrasonic sensor, LCD screen, push button, digital input/outputs 2j Page Contents Executive Summary- .................................................................................................................................... 9 CHAPTER 1. INTRODUCTION .......................................................................................................................10 1.1 Problem Topic ................................................................................................................................... 10 1.2 Background ................................................................................................................................. .. ..... 10 1.3 Criteria ...............................................................................................................................................10 1.4 Methodology .....................................................................................................................................11 1.5 Primary Purpose ................................................................................................................................11 1.6 Overview ...........................................................................................................................................12 CHAPTER 2. SYSTEM DESIGN OVERVIEW AND RESEARCH .......................................................................... 13 2.1 Feasibility ...........................................................................................................................................13 2.2 Design Process ...................................................................................................................................13 2.3 Legal Aspects .....................................................................................................................................14 2.3 System Scope .....................................................................................................................................14 CHAPTER 3. HARDWARE AND CIRCUIT DESIGN .......................................................................................... 15 3.1 Circuit Design .....................................................................................................................................15 3.2 Circuit Prototypes and Testing ..........................................................................................................18 CHAPTER 4. SOFTWARE DESIGN ..................................................................................................................25 4.1 Software Architecture .......................................................................................................................25 4.2 Programming Language ..................................................................................................................... 25 4.3 Integrated Development Environment .............................................................................................27 4.4 Main Components ....................................................................... ...................................................... 27 4.5 State Diagram ....................................................................................................................................31 4.6 Software Overview ............................................................................................................................ 33 CHAPTER 5. UNIT TESTING AND SYSTEM INTEGRATION ................................ Error! Bookmark not defined. 5.1 Software Testing and Validation .......................................................... Error! Bookmark not defined. 5.2 Hardware Testing and Validation ......................................................... Error! Bookmark not defined. 5.3 Summary .............................................................................................. Error! Bookmark not defined. CHAPTER 6. PROJECT MANAGEMENT ............................................................ Error! Bookmark not defined. 6.1 Schedule and Time Management.. ....................................................... Error! Bookmark not defined. 6.2 Resource and Cost Management ......................................................... Error! Bookmark not defined. 6.3 Risk Management ................................................................................. Error! Bookmark not defined. 41Page 6.4 Project Procurement ............................................................................ Error! Bookmark not defined. 6.5 Lessons Learned ................................................................................... Error! Bookmark not defined. CHAPTER 7. CONCLUSION .............................................................................. Error! Bookmark not defined. REFERENCES ................................................................................................... Error! Bookmark not defined. Appendices ..................................................................................................... Error! Bookmark not defined. Appendix A: Arduino Uno Schematic ........................................................ Error! Bookmark not defined. Appendix B: Sensor Schematic .................................................................. Error! Bookmark not defined. Appendix C: Programming Code ................................................................ Error! Bookmark not defined. Appendix D: Arduino UNO Board REV. 3 Datasheet .................................. Error! Bookmark not defined. Appendix E: MB7066 XL-MaxSonar®-WRLl Datasheet.. ........................... Error! Bookmark not defined. Appendix F: LCD Screen Module Datasheet.. ............................................. Error! Bookmark not defined. Appendix G: Charter ................................................................................... Error! Bookmark not defined. PROJECT CHARTER ...................................................................................... Error! Bookmark not defined. SI Page LIST OF ILLUSTRATIONS: FIGURE 1.1- Physical Diagram ................................................................................................ 12 FIGURE 2.1- Block Diagram ................................................................................................... 14 FIGURE 3.1- Component Diagram .............................................................................................. 16 FIGURE 3.2 - Schematic .......................................................................................................... 18 FIGURE 3.3 - Prototype Stage 1............................................................................................... 19 FIGURE 3.4 - PCB .................................................................................................................... 20 FIGURE 3.5 - Prototype Stage 11 .............................................................................................. 20 FIGURE 3.6 - Final Prototype in Enclosure I ........................................................................... 21 FIGURE 3.7 - Final Prototype in Enclosure 11 .......................................................................... 22 FIGURE 3.8 - Final Prototype 1................................................................................................ 23 FIGURE 3.9 - Final Prototype 11 ............................................................................................... 23 FIGURE 3.10 - Final Prototype 111 ............................................................................................ 24 FIGURE 3.11- Final Prototype IV ............................................................................................ 24 FIGURE 4.1- Input, Output, & Variable Declarations ............................................................. 26 FIGURE 4.2 - buttonPushCounter & buttonState ................................................................... 28 FIGURE 4.3 - Switch-Case Statements .................................................................................... 28 FIGURE 4.4 - Case 1 ................................................................................................................ 29 FIGURE 4.5 - Serial Monitor Printing ...................................................................................... 30 FIGURE 4.6 - Case 2 & Concluding Statements ...................................................................... 30 FIGURE 4.7 - State Diagram .................................................................................................... 31 FIGURE 4.8 - Distance Displayed ............................................................................................ 32 FIGURE 4.9 -Algorithmic Flowchart Diagram ........................................................................ 33 FIGURE 5.1- Serial Monitor Testing ....................................................................................... 34 FIGURE 5.2 - PWM Testing 1................................................................................................... 35 FIGURE 5.3 - PWM Testing 11 .................................................................................................. 36 GI Page FIGURE 5.4 - Delay Statements within Code .......................................................................... 37 FIGURE 5.5 - Start Time .......................................................................................................... 38 FIGURE 5.6 - End Time ............................................................................................................ 38 FIGURE 5.7 -Testing Indoors 1••••••••••••••••••••••••••••...••.••••••••••••••••••••••••••••.•••••.........•.......•••••••.••• 39 FIGURE 5.8 - Testing Indoors 11 ••••••••••••••••••••••••.••....••...•••••••••••••••••••••••••••..•.••....•.....••.•••.•••••.•.•••••••• 40 FIGURE 5.9 - Testing Indoors 111 .............................................................................................. 41 FIGURE 5.10-Testing Outdoors 1•••••••••••••••••••••••..•.••••••••••••••••••••••••••••••••••••••••••••.•.•.•...••...•••••• 42 FIGURE 5.11-Testing Outdoors 11 ••••••••••.••••••.•..•.••••••••••••••••••••••••••••••••••••••••••••••...........••..•••••• 43 FIGURE 5.12 -Testing Outdoors 111. ••••.••••••••••••••••••••••••••••••••••••••••••.•..•...•..•..••....•.•••.••.••••.••••••• 44 FIGURE 5.13 -Testing Outdoors IV ........................................................................................ 45 FIGURE 5.14 - Testing Outdoors V ......................................................................................... 47 FIGURE 5.15 -Testing Outdoors VI ........................................................................................ 48 FIGURE 5.16-Testing Outdoors VII ....................................................................................... 49 FIGURE 5.17 -Testing Outdoors VIII ...................................................................................... 50 FIGURE 6.1- Risk Impact/Probability Chart ........................................................................... 53 FIGURE 6.2 - Risk Entries ........................................................................................................ 54 71Page LIST OF TABLES TABLE 3.1 LCD Pin Layout ....................................................................................................... 17 TABLE 6.1 Labor Costs ............................................................................................................. 51 TABLE 6.2 Component Costs ................................................................................................... 52 Bl Page
© Copyright 2026 Paperzz