• Tidak ada hasil yang ditemukan

Develop A Rotating Speed Sensor System With Link To Visual Basic.Net.

N/A
N/A
Protected

Academic year: 2017

Membagikan "Develop A Rotating Speed Sensor System With Link To Visual Basic.Net."

Copied!
24
0
0

Teks penuh

(1)

i

DEVELOP A ROTATING SPEED SENSOR SYSTEM WITH LINK TO VISUAL BASIC.NET

CHEE JIANN TONG

This report is submitted in partial fulfillment of the requirements for the award of Bachelor of Electronic Engineering (Industrial Electronics) with Honours

Faculty of Electronic and Computer Engineering Universiti Teknikal Malaysia Melaka

(2)

ii

Tajuk Projek : Develop a Rotating Speed Sensor System with Link to

Visual Basic.Net

Sesi

Pengajian : 2009/2010 Semester 2

Saya CHEE JIANN TONG mengaku membenarkan Laporan Projek Sarjana Muda ini disimpan di Perpustakaan dengan syarat-syarat kegunaan seperti berikut:

1. Laporan adalah hakmilik Universiti Teknikal Malaysia Melaka.

2. Perpustakaan dibenarkan membuat salinan untuk tujuan pengajian sahaja.

(3)

iii

“I hereby declared this report is result of my own effort except for works that have been cited clearly in the references.”

(4)

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 Bachelor of Electronic

Engineering (Industrial Electronics) with Honours.”

Signature : ……….…

(5)

v

(6)

vi

I wish to express sincere appreciation to Universiti Teknikal Malaysia Melaka (UTeM) for giving me a chance to further my study on Bachelor of Degree in Industrial Electronics in Faculty of Electronics and Computer Engineering (FKEKK).

Despite of that, I would take this opportunity to express my profoundest gratitude and deepest regards to all those who gave me the possibility to successfully complete this PSM. I am deeply indebted to my Project Supervisor Encik Farid Arafat Bin Azidin and I wish to express a million thanks for her exemplary guidance, monitoring and constant encouragement throughout the development of the project.

(7)

vii

ABSTRACT

(8)

viii

ABSTRAK

(9)
(10)
(11)
(12)

xii

IV RESULT AND ANALYSIS 40

4.1 Introduction 40

4.2 PIC Pro Basic Coding 41-42 4.3 Program the PIC in the ISIS and debugging 43

4.4 Simulation Circuit 44

4.5 GUI's Display 45

4.5.1 Result of speed in deactivate state 45

4.5.2 Result of speed in normal circumstances 45

4.5.3 Result of speed when click start button 46

4.5.4 Result when receive data from hardware 46

4.5.5 Result of speed when click save button 47

4.5.6 Final Result 48

4.5.7 Discussion 49

V CONCLUSION AND RECOMMENDATION 50

5.1 Conclusion 50

5.2 Recommendations 51

(13)

xiii

LIST OF TABLE

NO TITLE PAGE

2.4.1 Comparison between analog and digital Tachometers 20 2.4.2 Comparison between contact and non-contact type Tachometers 20 2.4.3 Comparison between time and frequency based measurement 21 2.4.4 Comparison among my project with other types of tachometer 22

(14)
(15)

xv

3.4.5 Interfacing circuit for rotating speed sensor system circuit 32

3.4.8 Sensor 34

3.4.9 The PIC16F628, MAX232 and LCD circuit 35

3.4.10 PIC16F628A 36

3.4.13.1 Rotating Speed Sensor System PCB Circuit 38

3.4.13.2 RS232 PCB Circuit 39

4.2.1 PIC basic coding 41

4.2.2 PIC basic coding in HEX file 42 4.4 Simulation Circuit using Proteus 44 4.5.1 The display during the ON/OFF switch is OFF 45 4.5.2 The display during the ON/OFF switch is ON 45 4.5.3 The display during the START button is ON 46 4.5.4 The display during the receiving data from the hardware 46 4.5.5 The display during record the speed of rotor 47

(16)

xvi

LIST OF APPENDIX

NO TITLE PAGE

A PIC Coding 53-54

(17)

1

CHAPTER 1

INTRODUCTION

1.1 PROJECT INTRODUCTION

(18)

2

Figure 1.1: Block Diagram of a Rotating Speed Sensor System with Link to Visual Basic.NET

1.2 Project Objectives

The aim of designing and constructing the circuit is to fulfilled several objectives that need to be achieved. Nowadays, sciences and technology is very important to us. Day by day, there a lot of something new and useful has been created. So, this project can be assumed as a contribution to the science and technology if it can be done successfully.

(19)

3

There are several objectives that need to be achieved at the end of PSM. The objectives are listed as below:

i. To upgrade the existing project from develop angular speed detection system using infrared sensor to a rotating speed sensor system using infrared sensor with link to Visual Basic.Net.

ii. To develop a graphical user interface (GUI) that can show and record the speed in rev/min of the rotating mechanical device.

iii. To interface the rotating speed sensor system with personal computer by using Visual Basic.Net.

iv. To display the speed value in rev/min on the LCD display and GUI in PC.

1.3 Scope of Project

The scope of this project is to develop a rotating speed sensor system using a special Infra-Red sensor (IR) where it can detect black and white color and give a small differences voltage signal This scope project will cover: a) The input power has used battery 9V-15V.

b) The PIC Controller use in this project is PIC16F628A.

c) The rotation motor speed sensor system will measured around 0 - 4000 revolutions per minute and ± 10% tolerance.

d) The output will display in digital value at 2x8 LCD screen. The screen updates the RPM every 1.5 seconds.

(20)

4

1.4 Problem Statement

1.4.1 Programming Language

The PICBASIC software is used to “cross compile” the BASIC code into assembly and it will make the HEX file for you. It’s much easier and is quite powerful.

1.4.2 Interfacing between hardware and software

By using the DB9 connector, the speed value in rev/min can be quickly show on the graphical user interface that i design right after the signal is sent from the hardware. The sampled result can be shown on the Visual Basic.NET front panel in the rapid of time instead.

1.4.3 PIC Programmer

Programming the PIC16F628A is very simple however you need a device called a “PIC Programmer” to do it. It’s a small interface that will connect to your

computer’s serial or parallel port. The PIC chip plugs into the programmer and you load the software (HEX file) into it from the computer.

1.4.4 Reason for select Visual Basic.NET software

(21)

5

1.5 Report Structure

This thesis is a documented report of the ideas generated, the theories and concepts applied, the activities performed and the final product of this project produced. The thesis consists of five chapters and each chapter is described as below:

The first chapter is the introduction of a rotating speed sensor system with link to visual basic.Net. The block diagram gave the general ideas on this project. In addition, objectives, problem statement of the project and the report structure is included as well.

The second chapter is the background study of the project along with the literature review is performed and documented about the theoretical concept applied in completing the project. This includes of similar project but use the different method. The project will be explained briefly in this chapter. So it is very important to understand the concepts involve and how this system works.

(22)

6

The fourth chapter is about the components used in this project. This chapter gives information about hardware and software involves in order making this project works. This chapter also gives information about a circuit and the main components used. Hardware protoyping and the develop Visual Basic.Net Graphical User Interface (GUI).

The fifth chapter is shows overall result of rotating speed sensor system and discussion of the result as well as the comparison with the covention method. This chapter consists of an outcome for this project. It shows results, possible problems and solution for the problem occurred.

(23)

7

CHAPTER 2

LITERATURE REVIEW

In this chapter the various aspects and the methods on research methodology on the proposed project will be studied and analyzed one by one. Past projects and thesis which were related to the proposed project would be referred. Existing related projects will be referred to make the proposed project fulfill the project objectives and outcomes. Besides, this chapter will show the actual concept of rotating speed sensor system. Moreover, the research and comparison that carried out for some type of tachometer that occur at the market.

2.1 Introduce to rotating speed sensor system with link to visual basic.NET

(24)

8

2.2 Introduce to Tachometer

2.2.1 Definition

A tachometer is an instrument designed to measure the speed of an object or substance. The word is formed from Greek roots: tachos, meaning speed, and metron, meaning measure. The traditional tachometer is laid out as a dial, with a needle indicating the current reading and marking safe and dangerous levels. Recently, digital tachometers giving a direct numeric output have become more common. It

can be used to measure speed of a rotating shaft. Moreover, it can also be used to measure flow of liquid by attaching a wheel with inclined vanes.

In its most familiar form, a tachometer measures the speed at which a mechanical device is rotating. A common example is the tachometer found on automobile dashboards. In this application, the tachometer measures the revolutions per minute (RPMs) of the engine drive shaft. It is important to monitor engine RPMs, as running the engine at excessively high rates can drastically shorten engine life.

A tachometer used in this application can be built in multiple ways. It may be a small generator attached to the engine drive shaft, where the RPM measurement is scaled to the electric current generated by the device. Alternately, it may simply measure the rate at which the ignition system sends sparks to the engine.

Gambar

Figure 1.1: Block Diagram of a Rotating Speed Sensor System with Link

Referensi

Dokumen terkait

Saran yang dapat diberikan yaitu ibu sebagai pengatur keuangan hendaknya dapat mengalokasikan pendapatan keluarganya untuk memenuhi kebutuhan pangan dengan baik,

2. Untuk mengelabui hubungan yang siglliftkan antara motivasi .kcrja dengon lcinerja guru di SMA Rayon I 5 Kota Medan. Untuk mel)gelabui hubungan yang signifikan

[r]

seterusnya naik sampai pada kedalaman 175 m lalu turun kembali sampai pada kedalaman 225 m namun penurunan ini tidak jauh berbeda dari kedalaman 175 m. Diduga target dengan nilai

Dalam penelitian ini penulis akan mencoba meneliti gaya bahasa penulisan kumpulan cerpen Senyuman Karyamin karya Ahmad Tohari dengan gaya bahasa yang berbeda,

[r]

Karena pasi yang berada di kawaan Kepulauan Lease dengan sumberdaya kakap merah yang dijadikan sebagai objek wisata pancing maka konsep pengembangan wisata bahari

Tingkat kepedulian responden terhadap label halal dapat dilihat dari perilakulkebiasaannya sehari-hari dalam membeli produk pangan, Berdasarkan hasil survei, sekitar