PORTABLE DISTANCE MEASUREMENT MOHD ASHRAF BIN MD SAID

Similar documents
18V TO 1000V BOOST CONVERTER BENNEDICT BALLY ANAK NAROK UNIVERSITI MALAYSIA PAHANG

A DESIGN METHODOLOGY FOR A SELF-OSCILLATING ELECTRONIC BALLAST AMIRA BINTI MUSTAPA

DEVELOPMENT OF REMOTELY OPERATED UNDERWATER VEHICLE AFIQ FIKRI BIN HAMID UNIVERSITI MALAYSIA PAHANG

BORANG PENGESAHAN STATUS TESIS

BORANG PENGESAHAN STATUS TESIS

BORANG PENGESAHAN STATUS TESIS

FABRICATION OF PERPETUAL MOTION WATER DRINKING TOY BIRD CHEE SAI HOW UNIVERSITI MALAYSIA PAHANG

PINEAPPLE DISTRIBUTION CLASSIFICATION USING RGB AND FUZZY EZRIN TASNIM BIN ABDUL GANI

FIR FILTER FOR MAKHRAJ RECOGNITION SYSTEM AIMI NADIA AZMI

DEVELOPMENT OF A TOOL TO DESIGN AC HARMONIC FILTER FOR HVDC TRANSMISSION SYSTEM CHA KWAN HUNG. A thesis submitted in fulfillment of the

UNIVERSITI MALAYSIA PAHANG BORANG PENGESAHAN STATUS TESIS

DESIGN AND FABRICATE A FLEXIBLE TOILET HOSE WITH SPOOL ABDULLAH MUNZIR BIN ZUL SAFARUDDIN UNIVERSITI MALAYSIA PAHANG

Faculty of Mechanical Engineering UNIVERSITI MALAYSIA PAHANG

DESIGN AND IMPLEMENTATION OF ORTHOGONAL FREQUENCY DIVISION MULTIPLEXING RECEIVER NORAZNI BINTI YUSOFF

SMART COLOR SORTING ROBOT SITI NADRAH BINTI SELAMAT

LINE TRACKING ROBOT USING VISION SYSTEMS CHE ROHAZLI BIN CHE MAZLAM

BORANG PENGESAHAN STATUS TESIS

UNIVERSITI MALAYSIA PAHANG BORANG PENGESAHAN STATUS TESIS JUDUL: PREDICTION OF GRINDING MACHANABILITY WHEN GRIND HAYNES 242 USING WATER BASED COOLANT

WIRELESS WEATHER STATION BY USING ZIGBEE

AN AUTOMATIC POURING MACHINE ADNAN BIN AHMAD

OPTIMUM DESIGN OF RECTIFYING CIRCUIT OF RF ENERGY TRANSFER RAHMIYENI BINTI ASWIR

WEARABLE ANTENNA FOR 2.4GHz FREQUENCY FOR WLAN APPLICATION NUR RAFEDAH BINTI SATAR

MERLIN MIABOT PRO ROBOT SOCCER (2 WHEELS) MUHAMMAD ASYRAF BIN BADARUDDIN

MICROSTRIP BANDPASS FILTER DESIGN (COMBLINE) MOHAMAD HAMIZAN BIN TUAH

DESIGN AND IMPLEMENTATION OF A LOW COST PORTABLE AND COMPACT 2.4 GHZ SPECTRUM ANALYZER

PERFORMANCE EVALUATION OF OPTICAL AMPLIFIER IN WDM SYSTEM PEH PO ING

CHILD SAFETY MONITORING SYSTEM

WIRELESS POWER TRANSFER FOR ELECTRIC VEHICLES AMALUDDIN BIN ZAINUDDIN

DESIGN OF APPLICATION WIRELESS HOME SPEAKER SYAFIQAH BINTI SHAHRUZZAMAN

AN ADAPTIVE ALGORITHM FOR THE TUNING OF TWO INPUT SHAPING METHODS NUR HAFIZAH BINTI HASSAN

DESIGN OF THERMOELECTRIC ENERGY HARVESTER USING LTC 3108 BOOST CONVERTER MUHAMMAD ZULHAIZER BIN AB RASHID

SPEED CONTROL OF PNEUMATIC CYLINDER USING ON/OFF VALVE AND PWM SITI AMIRAH BINTI MOHD PADLI

NURHASLINDA BINTI MUSTAFFA KAMAL

DESIGN AND DEVELOPMENT OF SEMG ACQUISITION SYSTEM USING NI MYRIO FOR PROSTHESIS HAND LIAO SHING WEN

MELISSA SARA ECHA ANAK GABRIEL

Signature : Supervisor : Mr. Loi Wei Sen

DESIGN OF RECTIFIER WITH IMPEDANCE MATCHING CIRCUIT FOR RF ENERGY HARVESTING ENA BINTI AMILHAJAN

LOG PERIODIC ANTENNA DESIGN SITI NORHIDAYAH BINTI HJ. MOHAMED

PROPAGATION COVERAGE FOR COMMERCIAL BUILDINGS SCENARIOS USING RAY TRACING TECHNIQUES NURUL HASLIN BT NURYA YA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

POWER AMPLIFIER DESIGN FOR ULTRA-WIDEBAND APPLICATIONS MUHAMMAD SYAHIR BIN YOSUF

AN ANALYSIS OF SIGLE-LAYER DIFFERENTIAL CPW-FED NOTCHED-BAND TAPERED-SLOT UWB ANTENNA MUHAMMAD FATHI BIN AZHAR

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FINAL YEAR PROJECT 2 BENU 4984 TITLE:

WIRELESS ENERGY TRANSFER MOHD NASUHA BIN MOHAMAD ZIN

GENERALIZED CHEBYSHEV MICROWAVE FILTER FOR WIDEBAND APPLICATIONS LIM FENG SHENG

LOCALIZATION AND POSITIONING via Wi-Fi SIGNALS MOHD IDZWAN BIN OTHMAN

LINE FOLLOWING ROBOT

CURVE TRACER USING MICROCONTROLLER ASYRAF TAQIUDDIN BIN AHMAT TAHIR

DESIGN AND ANALYSIS OF A LOW POWER OPERATIONAL AMPLIFIER USING CADENCE NABILAH BINTI SK.ABD.AZIZ

A COMPARATIVE STUDY OF TOPOLOGY CONTROL ALGORITHM IN WIRELESS SENSOR NETWORK MUHAMAD IZZAT AFIFI BIN ROSLAN

DESIGN AND SIMULATION OF ADAPTIVE CRUISE CONTROL USING MATLAB/SIMULINK MOHD FIRDAUS BIN JAHAR

VISION SYSTEM BASED HEIGHT MEASURING MACHINE ROZEANA BINTI ABD RAHMAN

MUSIC SYNCHRONIZED LIGHTING SITI HAWA BINTI MAT ISA

IMAGE RESTORATION USING MEAN, MEDIAN AND ADAPTIVE FILTER ADELINE CHUA JIA MIN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DESIGN OF RECTIFYING CIRCUIT WITH IMPROVED RF-DC CONVERSION FOR WIRELESS POWER TRANSFER CHAN CHUN YEW UNIVERSITI TEKNIKAL MALAYSIA MELAKA

STUDY OF DESIGN CONSIDERATION AND PERFORMANCE ANALYSIS OF SUBSTRATE INTEGRATED WAVEGUIDE COMPONENTS ADILAH BINTI ABU SAMAH

COMPARISON OF PERFORMANCE OF VARIOUS OP-AMP TOPOLOGIES USING CMOS 0.13µm TECHNOLOGY NURUS SAADAH BT CHE MAT

ENERGY SCAVENGING FOR MOBILE AND WIRELESS DEVICE USING HIGH-EFFICIENCY RECTIFIER CIRCUIT LEE YOUHUI UNIVERSITI TEKNIKAL MALAYSIA MELAKA

THE DESIGN OF ANTIPODAL VIVALDI ANTENNA USING GRAPHENE NURUL SYUHADA BINTI HASIM UNIVERSITI TEKNIKAL MALAYSIA MELAKA

NOR NABILAH SYAZANA BINTI ABDUL RAHMAN

AN ARRAY ANTENNA DESIGN FOR RF ENERGY HARVESTING SYSTEM SHARIF AHMED QASEM AHMED

DESIGN OF RF POWER AMPLIFIER WITH DIFFERENT BIASING BASED ON GREEN DESIGN TECHNIQUE MUHAMMAD ASHRAF BIN SABRI

A NEW APPROACH FOR INDUSTRIAL PRODUCT INSPECTION BASED ON COMPUTER VISION AND IMAGE PROCESSING TECHNIQUE MOHD KHAIRULDIN BIN HASSAN

AHMAD HIEDZUANUDDIN BIN AHMAD KHIDIR

MICROSTRIP LEAKY WAVE ANTENNA DESIGN FOR WLAN APPLICATION NURLIYANA BT ABD MALIK

PROJECT S TITE EH ZHENG YI

UNIVERSITI TEKNIKAL MALAYSIA MELAKA DESIGN ANALYSIS OF A PRESS MACHINE FOR DISPOSABLE PET BOTTLE

Study of Laser Cutting Machine & Its Application in Malaysian Industries

THE DESIGN OF OPTIMUM INVERTER JUSTIN ANAK JAMES

CENTRALIZED WIRELESS SENSOR NETWORK DEPLOYMENT MAGESWARAN A/L R JAGANATHAN

AHMAD RIDZUAN BIN AB. WAHAB

FABRICATION OF UWB BANDPASS FILTER KAMARUL ARIFFIN BIN OMAR. Faculty of Electronic and Computer Engineering Universiti Teknikal Malaysia Melaka

UNIVERSITI TEKNIKAL MALAYSIA MELAKA DEVELOPMENT OF INTERACTIVE MACHINING PROCESS DESIGN AND MACHINING TIME CALCULATION

SECURITY EQUIPMENT USING BIOMETRICS MUHAMAD FIRDAUS BIN JUSOH

REAL-TIME PHYSICAL HUMAN MACHINE INTERACTION FOR ROBOTIC ARM NURUL ATIQAH BINTI ABD GHANI

ADAPTIVE OFDM WIRELESS COMMUNICATION DEVELOPMENT FOR WIRELESS MEDICAL IMAGE TRANSMISSION IN DIFFERENT RESOLUTION MUHAMMAD WAFI BIN MOHAMAD YUSAK

EFFECT OF TERRAIN FEATURES ON WAVE PROPAGATION NURASLINDA BINTI ADNAN

DUAL THRESHOLD VOLTAGE FOR HIGH PERFORMANCE DOMINO LOGIC

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DESIGN OF REAL-TIME HUMAN MACHINE INTERACTION FOR ROBOTIC ARM WITH MONITORING SYSTEM MUHAMMAD AKMAL SAFIRA BIN SAFIEE

UNIVERSITI MALAYSIA SARAWAK

DESIGN OF DUAL BAND FREQUENCY SELECTIVE SURFACE NORSHAHIDA BINTI MOHD SAIDI B

IMPROVED GPS SINGLE POINT POSITIONING USING WEIGHTED LEAST SQUARE METHOD LOH KAH HOW

Signature. Supervisor :.. ~.~H-.~.~0~P..?.j.~H~~~.. ~.~.~ Date :...?./!!./~~ ~

AUTOMATED INSPECTION ROBOT MOHD FADLY AIZAT BIN SAID UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DESIGN OF A LOW NOISE AMPLIFIER FOR 5-6GHz APPLICATIONS NUR DIYANA BINTI ISMAIL

UNIVERSITI TEKNIKAL MALAYSIA MELAKA OPTIMIZATION OF FDM PARAMETERS WITH TAGUCHI METHOD FOR PRODUCTION OF FLEXIBLE ABS PART

GSM-900 MOBILE JAMMER MOHD ZAIDI BIN HUSIN

TEXTILE ANTENNA MOHD NAZRY BIN MOHAMMAD

SMS BASED EARLY FLOOD WARNING SYSTEM USING RASPBERRY PI ABDULLAH AZAM BIN SHAHRIN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

COMPACT BUTLER MATRIX DESIGN NORJANNAH BINTI NORDIN

BEAM FORMING NETWORK DESIGN BY USfNG BLASS MATRIX KHAJRUL MUID BIN KH ALID

SPDT SWITCH DESIGN USING SWITCHABLE RESONATOR AT 5GHZ FOR WIRELESS COMMUNICATIONS MOHD HAIDIL BIN ZURAIMI UNIVERSITI TEKNIKAL MALAYSIA MELAKA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

HVAC MONITORING (TEMPERATURE) AND CONTROLLING (VALVE/DAMPER) SYSTEM AB RAZAK BIN ARIFFIN

DESIGN OF INTEGRATED FILTER-ANTENNA FOR WIRELESS COMMUNICATIONS NOOR AZIAN BINTI JONO UNIVERSITI TEKNIKAL MALAYSIA MELAKA

AUTOMATIC SWITCH CONTROLLER MOHD MASDIQ BIN SHAHMARUDIN

LOW-COST AUTOMATIC HEADLIGHT DIMMER SYSTEM KHAIRUL HAZWAN BIN ABU BAKAR

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

Transcription:

PORTABLE DISTANCE MEASUREMENT MOHD ASHRAF BIN MD SAID This Report Is Submitted In Partial Fulfillment of Requirements For The Bachelor Degree of Electronic Engineering (Industrial Electronic) Faculty of Electronic and Computer Engineering Universiti Teknikal Malaysia Melaka April 2011

UNIVERSTI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BORANG PENGESAHAN STATUS LAPORAN PROJEK SARJANA MUDA II Tajuk Projek : PORTABLE DISTANCE MEASUREMENT Sesi Pengajian : 1 0 / 1 1 Saya MOHD ASHRAF BIN MD SAID 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) Tarikh: 29 APRIL 2011 Tarikh: 3 MAY 2011

iii I hereby declare that this report is a result of my own work except for the quotes as cited in the references. Signature :.. Name : MOHD ASHRAF BIN MD SAID Date : 29 APRIL 2011

iv I hereby declare that I have read this report and in my opinion this report is sufficient in terms of the scope and quality for the award of the Bachelor of Electronic Engineering (Industrial Electronics) With Honours. Signature :.. Supervisor s Name : MR. KHAIRUL AZHA BIN A.AZIZ Date : 3 MAY 2011

v To my beloved parents, family, fellow friends and supervisor, thanks for all supports in successfully producing this projects.

vi ACKNOWLEDGEMENT Thanks to Allah S.W.T with His Compassion and Grace, I can manage to complete the project with a group of knowledgeable people while doing my project a pleasant and exciting experiences one. Their help and support throughout is greatly appreciated. I would like to give the highest gratitude to my supervisor, Mr. Khairul Azha bin A. Aziz, for his help, advices and responsibilities throughout the project especially during hardest time. Also thanks to my beloved parents for their encouragement and moral support.

vii ABSTRACT The purpose of this project is to design and develop a system that can be used to measure distance in order to make the measurement process easier without any hazard, wasting the energy and time. This portable distance measurement used the reflection concept. In this system, the distance will be measured by transmit ultrasonic and infrared wave to the object and then the wave reflect back to receiver. After the receiver received the reflected wave, the system will calculated and then display the distance on the Liquid Crystal Display (LCD). In detail, the data (input) will be collected from the Infrared and Ultrasonic sensors as an analog voltage. And then the analog voltages will calculated and then convert it to digital binary using Analog to Digital Converter (ADC) that built-up in PIC16F877A as converted data (output) of the system before display the distance on the Liquid Crystal Display (LCD). For this project, the measurement distance target is less than 1 meter. The sensors that were used for this project are infrared and ultrasonic sensor. The main objective for this project is to measure exactly the distance from system to the target.

viii ABSTRAK Projek ini adalah bertujuan untuk merekabentuk dan membina sebuah sistem yang boleh digunakan untuk mengukur jarak disamping untuk memastikan pengukuran jarak yang dibuat lebih mudah tanpa sebarang bahaya, pembaziran tenaga dan masa. Konsep yang digunakan oleh pengukur jarak mudah alih ini ialah konsep pantulan. Di dalam konsep ini, jarak akan diukur dengan menghantar gelombang kepada objek daripada penghantar dan kemudiannya gelombang itu terpantul kembali kepada penerima. Selepas penerima menerima pantulan gelombang, sistem ini akan mengira dan kemudiannya akan memaparkan jarak pada Paparan Cecair Kristal. Secara terperinci, data (masukan) akan dikumpul daripada pengesan inframerah dan ultrabunyi sebagai voltan analog. Dan kemudiannya, voltan analog akan dikira dan ditukar kepada digit binary dengan menggunakan penukar Analog ke Digital yang terbina di dalam PIC16F877A sebagai data keluaran pada system sebelum dipaparkan jarak di atas Paparan Cecair Kristal. Untuk projek ini, sasaran jarak yang akan diukur adalah kurang daripada 1 meter. Pengesan yang akan digunakan untuk projek ini adalah pengesan inframerah dan ultrabunyi. Objektif utama projek ini adalah untuk mengukur jarak yang tepat daripada sistem kepada sasaran.

ix TABLE OF CONTENT CHAPTER TOPIC PAGE PROJECT TITLE PSM II REPORT STATUS DECLARATION SUPERVISOR APPROVAL DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK TABLE OF CONTENT LIST OF TABLE LIST OF FIGURE LIST OF SHORTFORM LIST OF APPENDIX iii iv v vi vii viii ix xiii xiv xviii xix I INTRODUCTION 1.1 Introduction 1 1.2 Problem Statement 2 1.3 Objectives 3 1.4 Scope of work 3

x II LITERATURE REVIEW 2.1 Literature Review Introduction 4 2.2 Detection techniques 5 2.2.1 Infrared characteristic 5 2.2.2 Infrared detection 5 2.2.3 Ultrasonic characteristic 6 2.2.4 Ultrasonic detection 7 2.3 Hardware development 8 2.3.1 PIC16F877A 8 2.3.2 SK40C Enhanced 40 Pins PIC Start-Up Kit 9 2.3.3 Detection Sensors 10 2.3.3.1 IR sensor (sharp GP2Y0A02YK0F) 10 2.3.3.2 US sensor (MAXBOTIX LV-EZ1) 11 2.3.4 Voltage Regulator 13 2.3.5 Battery 13 2.3.6 Resistors 14 2.3.7 Diodes 14 2.3.8 Crystal oscillator 15 2.3.9 Liquid Crystal Display 16 2.3.10 Capacitors 18 2.4 Programming development 20 2.4.1 PIC BASIC Pro Compiler 20 2.4.2 Basic element of PIC Basic Language 21 III PROJECT METHODOLOGY 3.1 Methodology Introduction 23 3.2 The Procedures And Methods 24

xi 3.2.1 Project Flow Charting 25 3.2.2 Overall Project Flow Charting 26 3.2.3 Hardware constructing process flow 27 3.2.4 Programming coding process flow 28 3.2.5 Combination process flow 29 3.2.6 Measuring Procedure 30 3.2.6.1 Infrared sensor 30 3.2.6.2 Ultrasonic sensor 32 3.2.7 Data Collection 33 3.2.8 Measuring Methods 34 3.2.9 Hardware Testing 35 3.2.10 Troubleshooting 37 IV RESULT AND DISCUSSION 4.1 Result Introduction 38 4.2 Result 39 4.2.1 Infrared Programming 39 4.2.2 Infrared Data Collection 40 4.2.3 Distance Measurement Characteristic 43 4.2.4 Infrared Coding (After Analysis)- PART 1 44 4.2.5 Infrared Coding (After Analysis)- PART 2 47 4.2.6 Infrared Final Data 48 4.2.7 Infrared inverse characteristic 49 4.2.8 Ultrasonic Programming 50 4.2.9 Ultrasonic Data Collection 51 4.2.10 Ultrasonic Coding (After Analysis) 53 4.2.11 Ultrasonic Final Data 54 4.2.12 Circuit Analysis 56

xii 4.2.12.1 Overall circuit schematic 56 4.2.12.2 Circuit Description 57 4.2.12.3 Overall simulation (LCD Display) 59 4.2.12.4 Overall simulation (Voltage) 59 4.2.12.5 Infrared PCB 61 4.2.12.6 Ultrasonic PCB 62 4.3 Product 63 4.4 New Product 64 4.4.1 Combination Programming 64 4.4.2 Combination (US+IR) PCB 66 4.4.3 New Product (INFRASONIC) 68 4.4.3.1 Advantages of the product 68 4.4.3.2 Product Specification 69 4.5 Discussion 70 4.6 Project Planning 72 V CONCLUSION AND RECOMMENDATION 5.1 Introduction 73 5.2 Conclusion 74 5.3 Recommendation 74 REFERENCES 76 APPENDICES 78

xiii LIST OF TABLES NO TITLE PAGE Table 2.1 Table of SK40C parts 10 Table 2.2 Table of connections between PIC16F877A and LCD 17 Table 2.3 Parallel LCD Protocol/function 17 Table 2.4 LCD Command Bit function and value 18 Table 2.5 Table of PICBASIC command 20 Table 2.6 Table for size of the sequence 22 Table 4.1 Table of infrared data collection (part 1) 40 Table 4.2 Table of infrared data collection (part 2) 41 Table 4.3 Table of infrared data collection (part 3) 42 Table 4.4 Table of infrared Data Collection (Final Data) 48 Table 4.5 Table of Ultrasonic Data Collection (Analysis) 51 Table 4.6 Table of Ultrasonic Data Collection (Analysis) 52 Table 4.7 Table of Ultrasonic Data Collection (Analysis) 54 Table 4.8 Table of Ultrasonic Data Collection (Final Data) 55 Table 4.9 Table of Gantt chart 72

xiv LIST OF FIGURES NO TITLE PAGE Figure 2.1 Figure of system block diagram 6 Figure 2.2 Figure of Object detection 6 Figure 2.3 Figure of ultrasonic reflection 7 Figure 2.4 Figure of the pin diagram for PIC16F877A 8 Figure 2.5 Figure of SK40C 9 Figure 2.6 Figure of GP2Y0A02YK0F sensor 10 Figure 2.7 Figure of IR Sensor connection 11 Figure 2.8 Figure of MAXBOTIX LV- EZ1 sensor 11 Figure 2.9 Figure of US Sensor connection 12 Figure 2.10 Figure of voltage regulator circuit and component 13 Figure 2.11 Figure of 9V Battery 13 Figure 2.12 Figure of Resistor 14 Figure 2.13 Figure of diode 15 Figure 2.14 Figure of Crystal oscillator 15 Figure 2.15 Figure of LCD Display 16

xv Figure 2.16 Figure of LCD Display Connection 16 Figure 2.17 Figure of capacitors 19 Figure 2.18 The process of translation of a BASIC program 21 Figure 2.19 The basic of the PIC BASIC program 21 Figure 3.1 Figure of Project Flow Charting 25 Figure 3.2 Figure of Overall Project Flow Charting 26 Figure 3.3 Figure of hardware construction process flow 27 Figure 3.4 Figure of programming coding process flow 28 Figure 3.5 Figure of Combination process flow 29 Figure 3.6 Sensor Detection Procedure 31 Figure 3.7 Measuring tape and Detection Element 31 Figure 3.8 Measuring method during taking the measurement data 34 Figure 3.9 Figure of sensor detection system 34 Figure 3.10 Construct circuit on the breadboard 35 Figure 3.11 Display testing on the breadboard 35 Figure 3.12 Construct circuit on the strip board 36 Figure 3.13 Construct circuit on the Printed Circuit Board 36 Figure 3.14 Figure of checking voltage on PCB board connections 37 Figure 3.15 Figure of the sensor display on LCD after Troubleshooting 37 Figure 4.1 Graph Of Data Collection Part 1 40 Figure 4.2 Graph Of Data Collection Part 2 41 Figure 4.3 Graph Of Data Collection Part 3 42 Figure 4.4 Figure of Infrared Distance Measuring Characteristic 43

xvi Figure 4.5 Figure of Method for Infrared Data Inversion 43 Figure 4.6 Figure of Infrared Data Inversion 49 Figure 4.7 Figure of Overall Circuit Schematic 56 Figure 4.8 Figure of voltage regulator 58 Figure 4.9 Figure of voltage measure 58 Figure 4.10 Figure of Circuit Simulation (LCD display) 59 Figure 4.11 Figure of Circuit Simulation (Voltage) 59 Figure 4.12 Figure of Circuit simulation for voltage at pins (Port D). 60 Figure 4.13 Figure of PCB design for infrared sensor 61 Figure 4.14 3D visualization (Top Side) 61 Figure 4.15 3D visualization (Bottom Side) 61 Figure 4.16 Figure of PCB design for ultrasonic sensor 62 Figure 4.17 3D visualization (Top Side) 62 Figure 4.18 3D visualization (Bottom Side) 62 Figure 4.19 Figure of Product 63 Figure 4.20 Figure for both types of sensors 63 Figure 4.21 Figure of final Product 63 Figure 4.22 Figure of PCB design for sensor combination (IR and US). 66 Figure 4.23 3D visualization (Top Side) 66 Figure 4.24 3D visualization (Bottom Side) 67 Figure 4.25 PCB after soldering (Bottom Side) 67 Figure 4.26 Figure of the new product (front view) 68 Figure 4.27 Figure of the new product (side view) 68 Figure 4.28 Comparison of the products 69

xvii Figure 4.29 Figure of the new product (specification) 69 Figure 4.30 Examples of the poor etching board 71

xviii LIST OF SHORTFORM A/D Analog/ Digital ADC Analog to Digital Converter DC Direct Current IR Infrared LCD Liquid Crystal Display LED Light Emitting Diode PCB Printed Circuit Board PIC Peripheral Interface Controller MCU UART Microcontroller Universal Asynchronous Receiver/Transmitter US Ultrasonic USB Universal Serial Bus

xix LIST OF APPENDICES NO Appendix A Appendix B Appendix C Appendix D Appendix E Appendix F TITLE SK40C Enhanced 40 Pins PIC Start-Up Kit PIC16F877A Data Sheet PR3 LCD Display Infrared sensor GP2Y0A02YK0F PICBASIC Pro Compiler LV-MaxSonar -EZ1 Data Sheet

CHAPTER I INTRODUCTION This chapter explains an introduction about the portable distance measurement system, problem statement, project objectives for this project, and scope of project. 1.1. Introduction Portable Distance Measurement is a system that used to measure distance. Usually this system used to measure the distance that cannot be done manually by human. This system is designed to make the measurement distance easier without waste of time and energy. Common sensor that used in the market is laser, ultrasonic and infrared sensor. For this system, the concept used is reflection. Generally, the system will transmit wave from the transmitter of the sensor to the object. Then the object will reflect the wave to sensor receiver. When the reflected wave was received by receiver, the system will read that reflected wave as data in the form of analog input. Then, the system will calculate the distance and convert it to digital output. This conversion was done

2 by using analog to digital converter that built in the system. After the distance measured converted into digital form, the output then will display on the LCD. 1.2. Problem Statement This project is about to make the daily live easier. In order to make this project successfully achieved with the objective, there are several problems that must be considered. The problem statement that considered for this project is: i. The imprecise measurement value using manual measurement. This project is used to measure the exact value of distance. In order to make this system more precisely, the suitable distance sensor will using to improve the value of the exact distance from system to the target. This measurement system also can save the cost and can make the distance can be measure faster without any error. ii. Take the distance measure manually in small workspace can get hazard. The people have difficult to measure the distance in the difficult place or small space area. Based on this situation, we need some system or tool that can measure the distance without any hazard. iii. The type sensor that used can affect the data values For this project, the system will test by using two types of sensors which is infrared and ultrasonic sensor. In this project, the system will do the testing for the comparison for both sensors. This system will be a prototype for distance measurement system.

3 1.3. Objectives In order to make a perfect prototype for distance measurement, there must be an objectives to achieve the desired target. The main objectives for this project are: i. To design a prototype system using Infrared and Ultrasonic sensors that can measure the distance and display it on the LCD. ii. To design a system using infrared and ultrasonic sensor that can be as the prototype for the distance measurement system tool. 1.4. Scope of work Every project has their advantages and disadvantages. Especially for this project, there are some limitations that cannot be prevented. These scopes are used to make sure that all the limitation considered in order to make the project achieved based on the objective target. i. The distance range for this project is less than one (1) meter for infrared and less than five (5) meter for ultrasonic sensor. ii. The minimum detection distance for infrared is 15 cm while minimum detection distance for ultrasonic sensor is 20 cm. iii. This project will using two types of sensor detections which is the infrared and ultrasonic sensors. iv. For sensor selection, the suitable detection sensor must have less influence on the color of reflective objects and reflectivity.

4 CHAPTER II LITERATURE REVIEW This chapter explains about the literature reviews including the previous project that using the same system, the hardware development (infrared and ultrasonic), PIC Basic Pro Compiler, detection sensors (infrared and ultrasonic sensor), and components that using in this project. 2.1 Literature Review introduction Literature review is needed to make sure that all the progress will continue smoothly without any problem. For the literature review, we can compare the result with the previous project in order to make the project objective successfully achieved. This literature review will be an analysis concerning the advantage and disadvantage for each sensor in this project. Besides that, all the explanation about the techniques, detections and characteristics of sensor will cover in this chapter. All the detail about the electronic components and devices that using in this project also stated in this chapter.

5 2.2 Detection techniques Possible techniques for detecting can be generally divided into the following categories: [3] Sensing of infrared technique Sensing of ultrasonic technique 2.2.1 Infrared Characteristics Infrared radiation is the electromagnetic waves in the wavelength region longer than the visible light wavelengths, lying from 0.75 micro meters (µm) to 1000 micro meters (µm). The wavelength region of 0.75 micro meters (µm) to 3 micro meters (µm) is often called the near infrared, the wavelength region of 3 micro meters (µm) to 6 micro meters (µm) the middle infrared, and the wavelength region of 6 micro meters (µm) to 15 micro meters (µm) the far infrared. Also, even longer wavelength regions are sometimes referred to as ultra infrared. [3] The infrared radiation has the following characteristics: 1. Invisible to human eyes 2. Small energy 3. Long wavelength 4. Emitted from all kinds of objects 2.2.2 Infrared detection Infrared radiation is used in a wide variety of applications, and new applications are constantly being developed. A typical system for detecting infrared radiation is usually configured as shown in figure 2.1.