VEHICLE OVER SPEED DETECTION SYSTEM By EITHAR ABD ALSLAM MOHAMMED AHMED INDEX NO. 124034 Supervisor Prof. Mustafa Omer Nawari A REPORT SUBMITTED TO University of Khartoum In partial fulfillment for the degree of B.Sc. (HONS) in Electrical and Electronic Engineering (Control and Instrumentation Systems) Faculty of Engineering Department of Electrical and Electronics Engineering i DECLARATION OF ORGINALITY I declare this report entitled “Vehicle over speed detection system” is my own work except as cited in references. The report has not been accepted for any degree and it is not being submitted currently in candidature for any degree or other reward. Signature: Name: Date: ii ACKNOWLEDGMENT Unlimited praise for Allah for his blessing and guidance. I would like to present my gratitude and thanks to our supervisor Prof. Mustafa Omer Nawari for his support, motivation, patience, humility and also, problems resolving. Also many thanks to all my colleagues for their support and help. iii ABSTRACT WHO Statistics showed that over speeding is the main contributory factor in road crashes. This project aims to monitor vehicles’ speed to prevent crashes occurrence and reduce the impact when they occur, lessening the severity of injuries sustained by the victims. The project proposes a modern and an efficient methodology for detecting and reporting illegal speeds. The System mainly consists of a GPS module for speed measurement and location identification, Raspberry PI as the processing and controlling unit and A GSM module for sending infractions to authorities’ web server. The system alerts the driver if he exceeded the allowed speed limit. An infraction is reported against him if he didn’t slow down within a predefined amount of time. The infractions are sent to a central database and are displayed in a webpage. The system was implemented in a local network, so an Ethernet cable sufficed for the communication purpose. The RPI controls all the other units and the overall system. The project objectives were successfully met. More features, e.g. Google map, are suggested to be added in future work. Over speeding has been identified as a major cause for traffic accidents. The accidents due to high speed result in crashes, dangerous injuries and death. iv v صلختسملا .قيرطلا ثداوح يف يسيئرلا لماعلا يه قرطلا يف تابكرملا اهب ريست يتلا ةيلاعلا تاعرسلا نأ ةيملاعلا ةحصلا ةمظنم تاءاصحإ رهظت تاباصلإا ةروطخ نم للقي امم ثدحت امدنع اهريثأت نم دحلا و ثداوحلا عوقو عنمل ةيلاعلا تاعرسلا دصر و سايقل عورشملا اذه فدهي و .حاورلأا يف تاراسخلا و . اهنع غلابلإاو ةينوناقلا ريغ تاعرسلا نع فشكلل ةلاعفو ةثيدح ةيجهنم عورشملا حرتقيو يذلا يولا مداخ لإ تاالاخملا اسرلإ ةدحو و ةجلاعم ةدحو و يملاعلا عقاوملا ديدحتزاهجب ةعرسلا سايق ةدحو نم اساسأ ماظنلا نوكتي . ةلوؤسملا تاهجلا هكلتمت نم اقبسم ةددحم ةرتف نوضغ يف ئطبي مل اذإ هدض ةالاخم نع غلابلإا متي .ةعرسلل هب حومسملا دحلا زواجت اذإ قئاسلا هيبنتب ماظنلا موقي لصوم مادختسإب ةيلحم ةكبش يف ماظنلا ذيانت مت دقو. يو ةحاص يف اهضرع متيو ةيزكرم تانايب ةدعاق لإ تاالاخملا اسرإ متي .نمزلا . تنرتنلاا .لبقتسملا يف يملاع مدخم مادختسا و لجوج ةطيرخ لثم ،تازيملا نم ديزملا فاضت فوس و .حاجنب عورشملا فادهأ تققحت دقو vi TABLE OF CONTENTS DECLARATION OF ORGINALITY .................................................................................................. II ACKNOWLEDGMENT ...................................................................................................................... III ABSTRACT ........................................................................................................................................... IV صلختسملا ................................................................................................................................................. V LIST OF FIGURES .............................................................................................................................. XI LIST OF ABBREVIATIONS ............................................................................................................... XII CHAPTER ONE: INTRODUCTION .......................................... Error! Bookmark not defined. 1.1 Introduction ......................................................................... Error! Bookmark not defined. 1.2 Problem Statement ................................................................................................................ 1 1.3 Project Background ............................................................................................................... 2 1.4 Motivation ........................................................................... Error! Bookmark not defined. 1.5 Objectives ............................................................................................................................. 2 1.6 Thesis Layout ........................................................................................................................ 2 CHAPTER TWO: LITERATURE REVIEW .......................................................................... 4 2.1 Introduction ........................................................................................................................... 4 2.2 Overview ............................................................................................................................... 4 2.3 GPS ....................................................................................................................................... 4 2.3.1 Positioning, Navigation and Timing ............................................................................. 5 2.3.2 More detailed description ............................................................................................. 6 2.3.2.1 Space Segment ..................................................... Error! Bookmark not defined. 2.3.2.2 Control Segment. ................................................................................................... 7 2.3.2.3 User Segment ......................................................................................................... 7 2.4 GSM (Global System for Mobile Communication) .............................................................. 7 2.4.1 The GSM Network Parts .............................................................................................. 8 2.4.1.1 The Switching System ........................................................................................... 8 2.4.1.2 The Base Station System ....................................................................................... 8 2.4.1.3 Mobile Station ....................................................................................................... 9 vii 2.4.2 GSM Modem ................................................................................................................ 9 2.5 Processing and Controlling ................................................................................................. 10 2.5.1 Raspberry PI ............................................................................................................... 10 2.5.1.1 Raspberry Pi Generations .................................................................................... 10 2.5.1.2 RPI General Properties ......................................... Error! Bookmark not defined. 2.5.1.3 Raspberry Pi Hardware ........................................................................................ 12 2.5.1.4 External Peripherals ............................................................................................. 12 2.5.1.5 Raspberry Pi Operating System ........................................................................... 12 2.5.2 Python ......................................................................................................................... 13 2.6 Similar Papers and Researches ........................................................................................... 13 2.6.1 Detection of Over Speeding on Highways ................................................................. 13 2.6.2 Automated Over Speeding Detection and Reporting System..................................... 13 2.6.3 Car Over Speed Detector ............................................................................................. 13 CHAPTER THREE: METHODOLOGY ............................................................................... 14 3.1 Introduction ......................................................................................................................... 14 3.2 Initiating The Project .......................................................................................................... 14 3.3 Planning The Project ........................................................................................................... 14 3.4 System Design .................................................................................................................... 15 3.4.1 Location (GPS) ........................................................................................................... 15 3.4.1.1 Message Structure ................................................................................................ 16 3.4.2 Processing (RPI) ......................................................................................................... 17 3.4.2.1 Reporting Methodology ....................................................................................... 17 3.4.3 Communication........................................................................................................... 17 3.4.3.1 PuTTY ................................................................................................................. 19 3.4.4 Web Serving ............................................................................................................... 19 3.4.4.1 XAMPP Server .................................................................................................... 19 3.4.4.2 phpMyAdmin ....................................................................................................... 20 3.4.4.3 Web Page ............................................................................................................. 20 CHAPTER FOUR: IMPLEMENTATION AND RESULTS ................................................ 21 4.1 Introduction ......................................................................................................................... 21 viii 4.2 System Implementation ...................................................................................................... 21 4.2.1 Hardware..................................................................................................................... 21 4.2.1.1 GPS Module ........................................................................................................ 21 4.2.1.2 GPS Antenna ....................................................................................................... 22 4.2.1.3 SMA to UFL Adapter Cable ................................................................................ 23 4.2.1.4 USB to TTL Cable ............................................................................................... 23 4.2.1.5 Ethernet Cable ..................................................................................................... 24 4.2.1.6 Raspberry Pi......................................................................................................... 24 4.2.1.7 SD Card ............................................................................................................... 25 4.2.1.8 Power Supply ....................................................................................................... 26 4.2.1.9 Buzzer ................................................................................................................... 26 4.2.2 Software ...................................................................................................................... 26 4.2.2.1 LX Terminal ........................................................................................................ 27 4.2.2.2 XAMPP ................................................................................................................ 27 4.2.2.3 PuTTY .................................................................................................................. 28 4.2.2.4 phpMyAdmin ........................................................................................................ 28 4.3 Hardware Implementation .................................................................................................. 39 4.3.1 Interfacing the GPS with the RPI ............................................................................... 29 4.3.2 System Implementation .............................................................................................. 30 4.4 Software Implementation .................................................................................................... 30 4.4.1 RPI software ............................................................................................................... 30 4.4.2 Connection to MySQL ................................................................................................ 31 4.4.3 Web Page Software..................................................................................................... 31 4.5 Testing................................................................................................................................. 31 4.5.1 RPI Testing .................................................................................................................. 31 4.5.2 Internet Connection Testing ......................................................................................... 32 4.5.2.1 USB Tethering Configurations ............................................................................. 32 4.5.3 GPS Testing ................................................................................................................. 33 4.5.4 External Antenna Testing ............................................................................................ 35 4.5.5 Buzzer Testing ............................................................................................................. 35 4.5.6 Network Testing........................................................................................................... 35 ix 4.5.7 System Testing ................................................................................................................ 36 4.6 Results .................................................................................................................................... 36 CHAPTER FIVE: CONCLUSION AND FUTURE WORK ................................................ 39 5.1 Conclusion .......................................................................................................................... 39 5.2 Problems and Limitations ................................................................................................... 39 5.3 Future Work ........................................................................................................................ 39 REFERENCES .......................................................................................................................... 40 APPENDIX A ...................................................................................................................................... A-1 x
Description: