AN AUTONOMOUS VEHICLE USING WALL FOLLOWING DETECTION MOHD AFFI BIN MOHD ALI

Similar documents
BORANG PENGESAHAN STATUS TESIS

SMART SUN TRACKING WITH AUTOMATED CLEANING SYSTEM FOR PV MODULES AMIRAH AFIQAH BINTI AHMED

DEVELOPMENT OF MICROHYDRO GENERATOR SYSTEM AHMAD ZUBAIDI BIN ABDUL MD RANI UNIVERSITI MALAYSIA PAHANG

DEVELOPMENT HYDROGEN GAS GENERATOR FOR DUAL FUEL ENGINE USING YULL BROWN METHOD AHMAD ZAKI BIN ZAIMANI UNIVERSITI MALAYSIA PAHANG

UNIVERSITI MALAYSIA PAHANG BORANG PENGESAHAN STATUS TESIS

UNIVERSITI MALAYSIA PAHANG BORANG PENGESAHAN STATUS TESIS

ENERGY BALANCE STUDY FOR 4 STROKE GASOLINE ENGINE ANALYSES ABDULLAH SHARIFFUDIN MOHAMAD BACHELOR OF MECHANICAL ENGINEERING UNIVERSITI MALAYSIA PAHANG

UNIVERSITI MALAYSIA PAHANG BORANG PENGESAHAN STATUS TESIS

BORANG PENGESAHAN STATUS TESIS

DESIGN, DETAIL ANALYSIS AND PERFORMANCE TESTING OF UAV PROPULSION SYSTEM CHE MUHAMMAD RIDHWAN BIN CHE HASHIM

COMPARISON OF AUTOMATIC AND CVT TRANSMISSION FOR A CAR UNDER 1 LITER ENGINE

AUTOMATED GUIDED VEHICLE USING LINE FOLLOWING DETECTION MOHD KHAIRULZAMAN BIN A RAHMAN

THE DEVELOPMENT OF ADAPTIVE LIGHTING SYSTEM FOR MOTORCYCLES ASYRAF BIN AMIR

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

ARC FLASH ANALYSIS STUDY IN INDUSTRY HARNA A/P ELAVARASU

SPRAY SIMULATION OF HYDROGEN FUEL FOR SPARK IGNITION ENGINE USING COMPUTATIONAL FLUID DYNAMIC (CFD)

WIRELESS SOLAR CHARGER SITI NOR AZURA BINTI RAHMAN

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FACULTY OF ELECTRICAL ENGINEERING FINAL YEAR PROJECT REPORT COST MONITORING DIGITAL POWER METER PREPARED BY:

CONTINUOUS BATTERY MONITORING (CBM) SYSTEM FOR EARLY BATTERY FAILURE DETECTION YUSOF BIN YUNUS

SHOPPING CART ANTI-THEFT SECURITY SYSTEM NAZRIN BIN OTHMAN

INTELLIGENT SAFETY HELMET FOR MOTORCYCLIST FAEZAH BINTI HASHIM

ADJUSTABLE POWER MONITORING SYSTEM (APMS) FOR DAILY USAGE MOHAMMAD ZULKHAIRI BIN BADRULHISHAM

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

CONTROL OF A REAL INVERTED PENDULUM SYSTEMS USING STATEFEEDBACK CONTROLLER MUHD SAFWAN BIN ABDUL SATAR UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DESIGN AND SIMULATION AUTOMOBILE ACTIVE SUSPENSION SYSTEM MOHD ASQALANI BIN NAHARUDIN UNIVERSITI MALAYSIA PAHANG

OPTIMAL ANTI LOCK BRAKING SYSTEM WITH REGENERATIVE BRAKING IN HYBRID ELECTRIC VEHICLE DANA DEHGHANI UNIVERSITI TEKNOLOGI MALAYSIA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

CONTROL OF INVERTED PENDULUM-CART SYSTEM BASED ON FUZZY LOGIC APPROACH HASRULNIZAM BIN HASHIM

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

TRAFFIC LIGHT LED FAULT MONITORING AND DETECTION SYSTEM FAIZATUL HANIM BINTI RAHMAT

ELECTRIC CAR VOLTAGE MONITORING SYSTEM NAJMI AZFAR BIN MOHD ROSLI

This item is protected by original copyright

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

FINITE ELEMENT (FE) MODEL OF BRAKE INSULATOR IN REDUCING BRAKE SQUEAL NOISE FOR MOTORCYCLES MUNDHER FADHIL ABDULRIDHA UNIVERSITI TEKNOLOGI MALAYSIA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

MICRO WIND POWER GENERATOR NORAISAH BINTI ABU

OPTIMAL LOCATION OF THYRISTOR CONTROLLED SERIES COMPENSATOR USING SENSITIVITY APPROACH NEW HUANG CHIN UNIVERSITI TEKNOLOGI MALAYSIA

THE ANALYSIS OF THE FORCES THAT ACT ON THE MOTORCYCLE BRAKE PEDAL DURING EMERGENCY BRAKE

YASIR AMZAD ALI BIN MOHD YASEEN

ANALYSIS OF OVERCURRENT PROTECTION RELAY SETTINGS OF A COMMERCIAL BUILDING NURUL SYAQIRAH BINTI MOHD SUFI UNIVERSITI MALAYSIA PAHANG

DESIGN AND ANALYSIS OF THE SOLAR CAR BODY YUSRI BIN YUSOF. Report submitted in partial fulfillment of the requirements

THE STUDY ON THE IMPACT OF CONSTANT POWER LOAD TO A DIRECT CURRENT POWER SYSTEM DRIVEN BY PHOTOVOLTAIC, WIND - THYRISTOR RECTIFIER AND LINEAR SOURCES

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

STUDIES AND DESIGN OF SUSPENSION SYSTEM FOR A FORMULA SAE RACING CAR AIZAT FUAD BIN AHMAD SHATAR UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DEVELOPMENT OF ELECTRICAL DISCHARGE MACHINING POWER GENERATOR MUHD ABU BAKAR BIN MUHD RADZI

UNIVERSITI TEKNIKAL MALAYSIA MELAKA PIEZOELECTRIC ENERGY HARVESTING FLOOR MAT

MODELING OF ELECTRIC DOUBLE LAYER CAPACITOR FATHIN ASILA BINTI MOHD PABLI UNIVERSITI TEKNOLOGI MALAYSIA

PI CONTROLLER FOR BATTERY CHARGER SYSTEM MOHD AZHAR BIN AZMI

UNIVERSITI TEKNIKAL MALAYSIA MELAKA (UTeM) FACULTY OF ELECTRICAL ENGINEERING (FKE) FINAL YEAR PROJECT II (FYP II) BEKU 4973

FINITE ELEMENT ANALYSIS OF AUTOMOTIVE INTAKE MANIFOLD USING CAE SOFTWARE MUHAMMAD HAIKAL BIN HARON

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

ROBUST ELECTRONIC BRAKE FORCE DISTRIBUTION IN HYBRID ELECTRIC VEHICLES YEOH WEI CHERNG UNIVERSITI TEKNOLOGI MALAYSIA

DESIGN AND FABRICATION OF ENGINE MOUNTING FOR UTeM FORMULA SYLE RACE CAR MOHD SABIRIN BIN RAHMAT UNIVERSITI TEKNIKAL MALAYSIA MELAKA

ZULHILMI AFIQ BIN ZULKIFLE

FABRICATION OF A PROTOTYPE LOW POWER MOTOR FOR INDOOR VENTILATION SIMON THEOPHYLUS YUSUF

OPTIMAL LOCATION OF FACTS FOR ATC ENHANCEMENT BY USING SENSITIVITY ANALYSIS RAIMON OMAR AL SHAIKH SALEM

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

CASE STUDY: UNDERSTANDING TIlE PRINCIPLE AND MECHANISM OF ALTERNATOR MOTOR

NEURAL NETWORK CONTROLLER FOR DC MOTOR USING MATLAB APPLICATION NORAZLINA BINTI AB. RAHMAN

GEAR RATIO INVESTIGATION OF AUTOMOTIVE MANUAL TRANSMISSION MUHAMAD AMIR SHAH ARIF HARUN. A thesis submitted in partial fulfillment of the

BATTERY LEVEL MONITORING SYSTEM AIESYAH BINTI GHAZALI

DESIGN AND DEVELOPMENT OF AN AUTOMOTIVE SEAT FOR SAFETY

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DESIGN AND FABRICATION OF POLYVINYL CHLORIDE TIE-ROD CYLINDER FOR LOW PRESSURE WATER HYDRAULIC SYSTEM

COMPUTATIONAL ANALYSIS OF TWO DIMENSIONAL FLOWS ON A CONVERTIBLE CAR ROOF ABDULLAH B. MUHAMAD NAWI

DEVELOPMENT OF SOLAR DIGITAL THERMOMETER MOHD ALIAS SANI BIN YAACOB. Bachelor Degree of Electrical Engineering (Power System)

KHAIRUL AZRI BIN NGADIMEN

THE DESIGN OF A TORQUE FEEDBACK CONTROLLER USING PID CONTROLLER FOR AN UPPER LIMB ROBOTIC ARM KARTIKESU A/L VIJAYAN

APPLICATION OF DEMAND SIDE MANAGEMENT STRATEGIES TO REDUCE ENERGY CONSUMPTION IN UNIVERSITY BUILDINGS NAJAATUL FARIHAH BINTI HAMIDI

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DISC BRAKE SQUEAL GENERATION DURING DRY AND WET CONDITIONS MUNEER NAJI WAHEED UNIVERSITI TEKNOLOGI MALAYSIA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

SMART METER-TNB DUAL TARIFF FOR DOMESTIC APPLICATION NASYRAH BT ABDUL RAHIM

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

SCANNEI AVAILABLE ONtW! PERPUSTAKAAN UTHM * *

THERMOELECTRIC POWERED HIGH TEMPERATURE USING BOOST CONVERTER MUHAMAD KAMAL HAFIZ BIN MOHD ANUAR UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DEVELOPMENT OF COMPRESSED AIR POWERED ENGINE SYSTEM BASED ON SUBARU EA71 MODEL CHEN RUI

Regenerative Braking System (RBS): Energy Measurement LOI WEI CHEONG

NUMERICAL ANALYSIS OF ELASTOHYDRODYNAMIC LUBRICATION WITH BIO-BASED FLUIDS DEDI ROSA PUTRA CUPU UNIVERSITI TEKNOLOGI MALAYSIA

LINE FOLLOWER ROBOT WITH SOLAR APPLICATION MOHD FIRDAUS BIN MOHD YASIN

A FREQUENCY CONTROLLER USING FUZZY IN ISOLATED MICROGRID SYSTEM

MODELLING OF THROUGH-THE-ROAD HYBRID ELECTRIC VEHICLE OKE PAUL OMEIZA

MODEL UPDATING FOR FUN KART CHASSIS MOHD SAHRIL BIN MOHD FOUZI UNIVERSITI MALAYSIA PAHANG

DESIGN AND DEVELOPMENT OF COMPOSITE SUSPENSION PUSH ROD FOR FORMULA STUDENT RACE CAR MOHD HAFIZI B. ABDUL RAHMAN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

CURRENT CARRYING CAPABILTY OF POLYESTER CARBON COATED FOR ELECTRICAL CONDUCTOR MOHD HAIDIR BIN MANAF UNIVERSITI TEKNOLOGI MALAYSIA

EXPERIMENT AND ANALYSIS OF MOTORCYCLE EXHAUST DESIGN ABDUL MUIZ BIN JAAFAR

OPTIMIZATION ON FUEL GAS OPERATION FOR COMBINED CYCLE POWER PLANT MOHD IZAMUDDIN BIN MAHMUD

Signature:... Supervisor:.IR DR Tan Chee Fai Date:...

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

SOLAR POWERED PERSONAL DRYER USING PIC (ECODRYER) NORNAJIHAH BINTI ISMAIL

DECLARATION : AMALUDDIN BIN ROZALI

DEVELOPMENT OF FOLDED-WHEEL FOR DISABLED WHEECHAIR LUQMAN HAKIM BIN MOHD AZAM. (Design and Innovation)

BRAKE CONTROL SYSTEM FOR MOTORIST VEHICLE MUHAMAD NOR BIN ARIF

DESIGN AND DEVELOPMENT A SMALL STIRLING ENGINE NURUL HUDA BINTI BASO

DEVELOPMENT OF SOLAR FLUORESCENT LAMP MOHD HAFIZUDDIN BIN ABDUL RAZAK

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

CONCEPTUAL DEVELOPMENT OF GEAR BRAKING SYSTEM MOHD SHUKOR HADRAN

Transcription:

AN AUTONOMOUS VEHICLE USING WALL FOLLOWING DETECTION MOHD AFFI BIN MOHD ALI This report is submitted in partial fulfillment of the requirements for the award of Bachelor of Electronic Engineering (Industrial Electronics Engineering) With Honours Faculty Of Electronic and Computer Engineering Universiti Teknikal Malaysia Melaka April 2009

UNIVERSTI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BORANG PENGESAHAN STATUS LAPORAN PROJEK SARJANA MUDA II Tajuk Projek : Sesi Pengajian AN AUTONOMOUS VEHICLE USING WALL FOLLOWING DETECTION : 2008/2009 Saya MOHD AFFI BIN MOHD ALI mengaku membenarkan Laporan Projek Sarjana Muda ini disimpan di Perpustakaan dengan syaratsyarat kegunaan seperti berikut: 1. Laporan adalah hakmilik Universiti Teknikal Malaysia Melaka. 2. Perpustakaan dibenarkan membuat salinan untuk tujuan pengajian sahaja. 3. Perpustakaan dibenarkan membuat salinan laporan ini sebagai bahan pertukaran antara institusi pengajian tinggi. 4. Sila tandakan ( ) : SULIT* (Mengandungi maklumat yang berdarjah keselamatan atau kepentingan Malaysia seperti yang termaktub di dalam AKTA RAHSIA RASMI 1972) TERHAD* (Mengandungi maklumat terhad yang telah ditentukan oleh organisasi/badan di mana penyelidikan dijalankan) TIDAK TERHAD Disahkan oleh: (TANDATANGAN PENULIS) (COP DAN TANDATANGAN PENYELIA) Alamat Tetap: No 6, Jln 17, Taman Kluang Barat, 86000 Kluang Johor Tarikh:.. Tarikh:..

iii I hereby declare that this report is the result of my own work except for quotes as cited in the references. Signature : Supervisor s Name : Mohd Affi Bin Mohd Ali Date : th of April 2009

iv I hereby declare that I had read this report and in my opinion I think this report is sufficient in terms of the scope and quality for the award of Bachelor of Electronic Engineering (Industrial Electronics Engineering) With Honours. Signature : Supervisor s Name : Puan Norihan Abdul Hamid Date : th of April 2009

For my beloved mum and dad v

vi ACKNOWLEDGEMENT Alhamdulillah, thanks to Allah, I finally am able to complete my final year project and thesis as well within the allocated time. First of all, I would like to take these opportunities to express my appreciation to some organizations or individuals who kindly contributed to successfully completion of my final year project in UTeM. With the cooperation and contributions from all parties, the objectives of the project; soft-skills, knowledge and experiences were gained accordingly. To begin with, I would like to convey acknowledgement to our faculty final year project members especially my project supervisor, Puan Norihan Abdul Hamid for her cooperation and involvement from the beginning until the end of my project development. Her effort to ensure the successful and comfort ability of students under her responsibility was simply undoubtful. Thanks for the invaluable advices given before, while or after completion of the project. Furthermore, I would like to extend my sincere acknowledgement to my parents and family members who have been very supportive throughout the project and giving me the encouragement all the time. Their understanding and support in term of moral and financial were entirely significance towards the project completion. Last but not least, my appreciation goes to my fellow colleagues in UTeM, especially for those who come from FKEKK. Their willingness to help, opinions and suggestion on some matters, advices and technical knowledge are simply precious while doing upon completion of my final year project.

vii ABSTRACT The purpose of this project is to invent or develop an autonomous vehicle using wall following detection. The autonomous wall following detection robot is one of the mobile robot where is able to get out of the way from the wall or obstacles. This system would be able to maintain a safe distance from a wall, following it around both concave and convex corners [1]. The system would follow the wall to its right, turning right wherever it could, and turning left only when it had to. It would also being able to stop when it finds itself in a place where it cannot move, and reverse moving to enactive and allows the system operates continuously. However, the object of this invention is to provide a robot obstacle detection system which is simple in design, low cost, accurate, easy to implement, and easy to calibrate. Besides, this invention is to provide such a robot detection system which prevents an autonomous wall following detection robot from driving off a stair or obstacle which is too high. The objective of this project is to develop a simulation of a mobile robot that follows the wall to its right. In this project, an autonomous vehicle movement is developed that can be controlled by software using PIC 16F877A programming. In addition, there are four sensors were used for situational awareness. One is mounted on the right side of the vehicle, one on the front, and the other two pointing at 45º degrees to the front left and front right. Troubleshooting and debugging will be conducted until the source codes are successfully developed and execute properly.

viii ABSTRAK Tujuan projek ini adalah untuk mencipta kenderaan berautonomi menggunakan pengesan mengikut dinding. Robot pengesan mengikut dinding ialah salah satu daripada robot bergerak dimana mampu untuk mengelak daripada terlanggar halangan atau dinding. Sistem ini akan mengekalkan jarak yang selamat daripada dinding, mengikut dinding yang mempunyai penjuru cekung ataupun cembung. Sistem akan mengikut dinding pada sebelah kanan, memusing ke kanan dan ke kiri kemana saja bila ia di arahkan. Ia juga mampu untuk berhenti bila ia berada pada tempat dimana ia tidak boleh bergerak, dan bergerak bertentangan untuk membolehkan sistem beroperasi secara berterusan. Bagaimanapun, ia adalah satu penciptaan objek untuk menghasilkan sistem robot pengesan halangan yang mana ringkas dalam reka bentuk, kos rendah, sasaran tepat, mudah untuk laksanakan, mudah untuk menentu ukur. Selain itu, penciptaan ini adalah untuk menyediakan satu sistem robot pengesan yang mana menghalang atau mengelakkan robot pengesan dinding daripada melanggari halangan. Objektif projek ialah menghasilkan robot bergerak yang mengikut dinding berdasarkan sebelah kanannya. Dalam projek ini, satu kenderaan berautonomi dihasilkan yang boleh dikawal oleh perisian menggunakan pengaturcaraan PIC 16F877A. Sebagai tambahan, terdapat empat pengesan yang digunakan untuk situasi berjaga-jaga. Satu daripadanya dipasang pada sebelah kanan kenderaan, di hadapan dan yang lain pada 45º daripada depan kiri dan depan kanan. Penyelesaian masalah akan dilakukan sehingga kod-kod berjaya dibangunkan dan dilaksanakan dengan betul.

ix CONTENTS CHAPTER TOPIC PAGE ABSTRACT ABSTRAK CONTENTS LIST OF TABLES LIST OF FIGURES LIST OF ABBREVIATION LIST OF APPENDIXS vii viii ix xiii xiv xvi xvii I INTRODUCTION 1.1 Introduction 1 1.2 Project Overview 2 1.3 Project Objectives 4 1.4 Problem Statement 5 1.5 Project Scope 6 1.6 Project Methodology 7 1.7 Thesis Structure 9

x II LITERATURE REVIEW 2.1 Overview 10 2.2 Introduction 10 2.3 Theory 12 2.3.1 Electronic Devices 12 2.3.1.1 Ultrasonic Range Finder 13 2.3.2 Motor 14 2.3.2.1 Why Tamiya motor? 15 2.3.3 Microcontroller 16 2.3.3.1 Why Microcontroller? 17 2.4 Component Description 19 2.4.1 Microcontroller- PIC 16F877A 19 2.4.1.1 The PIC16F877A 22 Advantages and Disadvantage 2.4.2 Ultrasonic Sensors 23 2.4.3 L293D IC (Motor Driver) 23 2.4.4 High Speed Gear Motor 24 2.4.5 Power supply 25 2.5 Software 27 2.5.1 Proteus VSM 27 2.5.1.1 Schematics Entry 27 2.5.2 CCS C Compiler 28

xi III PROJECT METHODOLOGY 3.1 Introduction 29 3.2 Flow Chart Methodology 29 3.3 General Flow Chart 30 3.4 Flow Chart Description 31 3.4.1 Project Title 31 3.4.2 Information about the Project 31 3.4.2.1 Implementation 33 3.4.3 Project Circuit Design and Testing 33 3.4.3.1 Pattern the Line Current 34 By Using Protues Software 3.4.3.2 Etching the Circuit on the 35 PCB Board 3.4.3.3 Drill the Hole of Component 35 Base on the Board 3.4.3.4 Integrate the Components on 36 the Board 3.4.3.5 Soldering process 36 3.4.4 Combining Final Product 37 3.5 Software Programming 38 3.6 Robot Body Designing 39

xii IV RESULT AND DISCUSSION 4.1 Introduction 41 4.2 Result and Analysis 41 4.2.1 Hardware Development 44 4.2.2 Software Development 47 4.3 Discussion 48 V CONCLUSION AND RECOMMENDATION 5.1 Introduction 50 5.2 Conclusion 50 5.3 Recommendation 51 REFERENCES 52 APPENDIX 53

xiii LIST OF TABLES NO TITLE PAGE 2.1 Comparison between Stepper Motor and DC Motor 14 2.2 Types of Microcontroller 18 2.3 Comparison between Two Types of PIC 22

xiv LIST OF FIGURES NO TITLE PAGE 1.1 The Block Diagram of Autonomous Vehicle 3 1.2 Overall Project Flow 7 2.1 Ranging Measurement for Ultrasonic Sensor 13 2.2 Tamiya FA-130 motor 15 2.3 The PIC 16F877A 19 2.4 The Ultrasonic Sensor 23 2.5 L293D IC 24 2.6 High Speed Gear Motor 25 2.7 78L05 +5V Positive Voltage Regulator IC 25 2.8 LM 78L05 26 3.1 Project Flow Chart 30 3.2 The Basic Flow Chart of a Working Robot 32 3.3 The Flow Process of Project Circuit Design 33 3.4 IR Sensor Circuit 34 3.5 Motor and PIC Circuit 34 3.6 IR Sensor Circuit 35 3.7 Motor and PIC Circuit 35 3.8 The Board after Drilling Process 35 3.9 PIC and Motor Circuit 36 3.10 IR Sensor Circuit 36 3.11 The Components Base after Soldering Process 36

xv 3.12 The Complete Prototype of Wall Following Robot 37 3.13 The Autonomous Vehicle using Wall Following Detection 37 3.14 Top and Bottom Layer Drawing of Robot 39 3.15 The Real Shape of Wall Following Robot 40 3.16 The Standoffs is installed to the Plastic Sheet 40 4.1 Interface Circuit 42 4.2 The motor movement after switch ON the switch 42 4.3 The Sensor Circuit 44 4.4 The IR Sensor Circuit 45 4.5 The H Bridge Circuit 46 4.6 Motor Circuit 46 4.7 The PIC Circuit 49

xvi LIST OF ABBREVIATION DC - Direct Current EMI - Electromagnetic Interface CD - Compact Disc DVD - Digital Video Disc 4WD - 4 Wheel Drive RPM - Revolutions per Minute RAM - Random Access Memory I/O - Input / Output ROM - Read-Only Memory ADC - Analog to Digital Converter EEPROM- Electrically Erasable Programmable Read-Only Memory A/D - Analog to Digital D/A - Digital to Analog ICD - In-Circuit Debugger CCP - Capture Compare UART - Universal Asynchronous Receiver/ Transmitter PSP - Parallel Slave Port LV - Low Voltage LCD - Liquid Crystal Display PCB - Printed Circuit Board PVC - Polyvinyl Chloride PIC - Programmable Interface Chip PWM - Pulse Width Modulation

xvii LIST OF APPENDIXS NO TITLE PAGE A DATASHEET OF BD135 54 B DATASHEET OF TAMIYA MOTOR 58 C DATASHEET OF L293D 59 D THE COMPLETE PROGRAMMING OF ROBOT 66

CHAPTER I INTRODUCTION 1.1 Introduction This chapter will give a basic view of information about the overall system of this project; An Autonomous vehicle using wall following detection which is consist of two stages which are software and hardware development where these two main part will be combine together so that it will work and function properly and related with each other. This chapter also will cover about the overview of this project, objectives, problem statement, scope, project methodology and lastly summary structure of this thesis will be described in this chapter. Nowadays, technologies has been assimilates into our whole life without we realized it. Besides that, these technologies have good and bad impacts depend on how we use and manage it.

2 1.2 Project Overview An autonomous wall following detection is a vehicle that has capability of traveling and stopping parallel to a wall includes right and left driving wheels. In the other word, this autonomous vehicle system will follow a pre-determined path marked by stationary beacons and the control system is built to control the actuation and motor system for the autonomous vehicle system. The medium used for this autonomous vehicle are a dependent wheel for supporting the autonomous vehicle together with the driving wheels for a straightforward movement and a U-turn, a motor for driving the right and left driving wheels, a distance measurement sensor for measuring the distance to a right or left object of interest, and a controller for controlling the autonomous vehicle through the motor and the driving wheels [1]. The vehicle developed can be controlled by software using PIC 16F877 programming and perform the movement of robot. There are four sensors used for situational awareness. One is mounted on the right side of the vehicle, one on the front, and the other two pointing at 45º degrees to the front left and front right. The PIC 16F877 will be used as software to interfacing the robot.

3 Figure 1.1 The Block Diagram of Autonomous Vehicle As the block diagram above, it is divided into 3 sections which are the input, controller and output. The distance measurement sensor is used as an input, the tracing determination unit and control unit which have in the PIC chip is a controller. Other than that, the output component of this project is a driving unit. Refer to figure 1.1, the input of the system are the sensors. The sensor that used is an ultrasonic sensor which is as a distance measurement sensor. When the sensor was detected an obstacle or wall, it will be transmitted a signal to the controller to determine the direction of robot. As mention above, the PIC 16F877 that has been programmed act as controller that is controlling the movement of the robot. Meanwhile, the output of a system is a motor. The motor will be moving either to left, right, forward or reverse by following to the command that has been programmed in the controller.

4 1.3 Project Objectives The objectives of this project are as follows: i. To study how to built the robot that using the wall as a path away. ii. To implement the PIC 16F877 programming for this autonomous vehicle. iii. To study the basic of PIC programming in order to understand how to develop it in the proper sequence. At the end of this project, all of the objectives must be achieved. However, to make sure that the objective will be achieved, the project must operates smoothly and follow the main concept of the project by using the suitable components, software and equipments.

5 1.4 Problem Statement The invention results from the realization that a low cost, accurate, and easy to implement system for either preventing an autonomous porter robot from driving off a stair or over an obstacle which is too high or too low and/or for more smoothly causing the robot to follow a wall for more thorough carrying can be effected by intersecting the field of view of a detector with the field of emission of a directed beam at a predetermined region and then detecting whether the obstacles or wall occupies that region. Besides, it is a further object of this invention to provide a sensor subsystem for a robot which consumes a minimal amount of power and unaffected by surfaces of different reflectivity. The advantage of the invented of this robot is to do work such a human in term of sent the heavy object or thing from one place to another place especially in the room or house area. However, the purpose of this robot is as an alternative to facilitate the human work for save time and energy. It is because the autonomous robot can do the work such as sent the heavy thing from one place to another place.

6 1.5 Project Scope The scopes of this project are to study about PIC 16F877, a suitable sensor or wall sensor and wall following robot system. After research, the type of a wall sensor, type of motor and the circuit design for the system will be conclude. A sensor that is choosing for this robot is an IR sensor. It is because the low cost and good specification of this sensor can make a detection process is much better. The PIC 16F877 is a chip that stored the developed programming into it. The developed programming is created in the PIC C Compiler software by using the C language in order to give the instruction to the output of this vehicle which is the driving motor to follow the wall as the path away. This robot is using 2 High Speed Gear Motor to drive the wheels. The input of the system is IR sensor and the output is DC motor as driving unit. The plastic transparency is used as a robot body which is integrating the entire component into its. Finally, design and create a program by using PIC 16F877 programming software to control the system.

7 1.6 Project Methodology Figure 1.2 shows the process flow throughout the project. Figure 1.2 Overall Project Flows