INTERFACING MONITORING DEVICE AND GUI DEVELOPMENT
0 0 1 WEE TUCK
This report is submitted in partial fulfillment of the requirements for the award of Bachelor of Electronic Engineering (Telecommunication Electronics) With Honours
Faculty of Electronic Engineering and Computer Engineering Universiti Teknikal Malaysia Melaka
UNIVERSTI T E K N l K A L MALAYSIA M E L A K A
FAKULTl KEJURUTERAAN E1,EKTRONK DAN KEJURUTERAAN KOMPUTER
BORANC PENCESAHAN STATUS LAPORAN PROJEK SARJANA MUDA I1
T a j u k P r o j e k : Interfacing Monitoring Device and GUI Development
Sesi Pengajian
Saya 001 WEE TUCK mengaku membenarkan Laporan Projek Sarjana Muda ini disimpan di Perpustakaan dengan syarat-syarat kegunaan seperti berikut:
I . 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 (
4
) :(Mengandungi maklumat yang berdarjah keselamatan atau SULIT* kepentingan Malaysia seperti yang termaktub di dalam AKTA
RAHSIA RASMl 1972)
TERHAD* (Mengandungi maklumat terhad yang telah ditentukan oleh organisasilbadan di mana penyelidikan dijalankan)
m
TlDAK TERHADDisahkan oleh:
6
(TANDATANGAN PENULIS) Alamat Temp: 29 Lorong Ceri 2, Taman Aman,
3lTl KHADIJAH 01 IDRlS @ OTHMAN
Pensyarah
Off Jalan Raja Uda, 12300 Fakulti Kej Elektronik dan Kej Kornputer (FKEKK)
Universiti Teknikal Malaysia Melaka (UTeM),
Butterworth, Pulau Pinang. Karung Berkunci 1 ZOO,
Ayer Keroh, 75450 Melaka.
"I hereby declare that this report is the result of my own work except for quotes as cited in the references."
a
Signature :.
.
.. . .
.
. . .
.
.
Author : 001 WEE TUCK
"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 (Telecommunication Electronics) With Honours."
Signature
Supervisor's Name : Puan ~ i t i Khadijah Binti Idris @ Othrnan
ACKNOWLEDGEMENT
ABSTRACT
ABSTRAK
Interfacing Monitoring Device and GUI Development merupakan suatu projek yang dapat memudahkan pengguna memantau keadaan suhu dan kelembapan sesuatu kawasan. Projek ini bertujuan membangunkan program untuk memantau bacaan suhu dan kelembapan sebenar melalui komputer yang berasaskan MS
CONTENTS
CHAPTER ITEM
PROJECT TITLE VERIFYING FORM DECLARATION SUPERVISOR APPROVAL DEDICATION ACKNOWLEDGMENT ABSTRACT ABSTRAK CONTENTS LIST OF TABLES LIST OF FIGURES
LIST OF ABBREVIATIONS LIST OF APPENDIXES
I INTRODUCTION
1.1 Background of Project 1.2 Project Objective 1.3 Problem Statement
1.4 Scope of Work 1.5 Thesis Outlines
I1 LITERATURE REVIEW
2.1 Introduction
2.2 Research and Study 2.3 MS VB
2.3.1 Language Features 2.3.2 Evolution of MS VB
2.3.3 Timeline of Visual Basic (VBI to VB6) 2.4 MS VB.NET
2.4.1 Versions of VB-NET 2.4.1.1 VB.NET (VB 7)
2.4.1.2 VB.NET 2003 (VB 7.1) 2.4.1.3 VB 2005 (VB 8.0) 2.4.1.4 VB 2008 (VB 9.0) 2.4.1.5 VBx (VB 10.0)
2.4.2 Differences Between VB 6 and VB.NET 2.5 MS Visual Studio
2.5.1 Versions of Visual Studio 2.5.1.1 Visual Studio 97
2.5.1.2 Visual Studio 6.0
2.5.1 -3 Visual Studio .NET 2002
2.5.1.4 Visual Studio .NET 2003
2.5.1.5 Visual Studio 2005 2.5.1.6 Visual Studio 2008
2.6 Temperature and Humidity Meter 18 2.6.1 Temperature and Humidity Meter 19 2.6.2 Infrared Thermometer with Laser Mark 19 2.6.3 Wireless Temperature Monitor 20 2.6.4 WMR928NX Touch Screen Weather Station 21 2.7 Humidity-Temperature Sensor Module with Serial
Interface 22
2.7.1 Technical Data 23
2.7.3 Plug Connector Layout 2.7.4 Calibration
2.8 Serial Port
2.8.1 RS232 Serial Communication Protocols 2.8.2 Connector
2.8.3 Handshaking 2.8.4 Cabling 2.9 Temperature
2.9.1 Unit of Temperature 2.9.1.1 Celsius 2.9.1.2 Kelvin 2.9.1.3 Fahrenheit 2.10 Humidity
2.10.1 Relative Humidity 2.10.2 Absolute Humidity 2.10.3 Specific Humidity 2.1 1 Temperature Sensors
2.1 1.1 Resistance Temperature Detector 2.1 1.2 Thermocouples
2.1 2 Humidity Sensors
2.12.1 Capacitive Humidity Sensors 2.12.2 Resistive Humidity Sensors
2.12.3 Thermal Conductivity Humidity Sensors
111
METHODOLOGY
3.1 Introduction 44
3.2 Process Flowchart 45
3.3 HYGROSENS Humidity-Temperature Sensor
3.4 Program Development by Using MS Visual Studio 2005
IV RESULT AND DISCUSSION
4.1 Introduction 5 7
4.2 Temperature and Humidity Monitoring Program 5 8
4.3 Discussion 63
4.3.1 Module for Capture Temperature and
Humidity 64
4.3.2 Program Development Using MS Visual
Studio 2005 64
V CONCLUSION AND SUGGESTION
5.1 Conclusion
5.2 Future Development
REFERENCES
LIST OF
TABLES
NO.
TITLE2.1 Technical Data
2.2 RS232 Pin Assignments (DB9 PC Signal Set) 2.3 RS232 Pins Function
2.4 Temperature Equivalents
2.5 Celsius Temperature Conversion Formulae 2.6 Temperature Sensor Selection Guide
LIST OF
FIGURES
NO.
TITLE PAGEMS VB 6.0 PRO Ed 7
MS VB-NET Standard 10
MS Visual Studio 2005 Standard Ed 14
Digital Temperature and Humidity Meter TH803 19
Infrared Thermometer 20
Gabel Wireless Baby Temperature Monitor GB-500 20 WMR928NX Touch Screen Weather Station 2 1 Module Connection Cable Circuit Diagram 23
Module Plug Connector Layout 24
HYGROSENS Humidity Reference Cells 25
D-subminiature Connectors 28
9-pin D-subminiature Connector 28
DE-9 Pins Layout 28
Resistance Temperature Detectors in 2,3, and 4 Wire Configurations 37
Thermocouples 3 8
Capacitive RH Sensors 39
Resistive Humidity Sensors 41
Thermal Conductivity Humidity Sensors 42 Process Flowchart for Whole Project Development 45 HYGROSENS Humidity-Temperature Sensor Module 46
Temperature Sensor in Module 46
Humidity Sensor in Module 46
9 Pin 'D' Type Connector in Cable 3 Pin Connector in Cable
9 Volt Battery Socket Sample of Data Block
Visual Studio 2005 Main Program Interface Visual Studio 2005 Create a New Project Interface Create a New Design Platform
Design Platform Properties Design Platform Toolbox
Selection for Splash Screen Template Main GUI for Monitoring Program Port Settings GUI
Data Base for Monitoring Program in MS Access Data Viewer for Monitoring Program
Selection for About Box Template Temperature Monitoring Program Port Setting for Module
Monitoring Program Display the Temperature and Humidity Monitoring Program with Display Module Data
Display Measurement Data fiom MS Access Data Base About Window for Monitoring Program
Display Data Stored in Data Base
LIST OF
ABBREVIATIONS
ADO - ActiveX Data Objects
ASCII - American Standard Code for Information Interchange ASP - Active Server Pages
CE - Compact Edition
CIL - Common Intermediate Language
CGPM - General Conference on Weights and Measures CLR - Common Language Runtime
CMOS - Complementary Metal-Oxide-Semiconductor COM - Component Object Model
CR - Carriage Return
CRC - Cyclic Redundancy Check CSS - Cascading Server Side
CTP - Conformance Testing Program CTS - Clear To Send
DAO
-
Data Access Objects DCD - Data Carrier DetectDCE - Data Communications Equipment DLL - Dynamic-link Library
DOS - Disk Operating System DSR - Data Set Ready
DTE - Data Terminal Equipment EIA - Electronic Industries Association EXE - Executable
GND -Ground
HTML - Hypertext Markup Language
IBM - International Business Machines Corporation IDE - Integrated Development Environment
LCD - Liquid Crystal Display LINQ - Language Integrated Query LSB - Least Significant Bit MS - Microsoft
MSDN- Microsoft Developer Network MSIL - Microsoft Intermediate Language NET -Network
NTC - Negative Temperature Coefficient OS - Operation System
PC - Personal Computer
PDA - Personal Digital Assistants PSM - Projek Sarjana Muda
RAD - Rapid Application Development RDO - Remote Data Objects
RI - Ring Indicator
RS232 - Recommended Standard 232 RTD - Resistive Temperature Detectors RTS
-
Request To SendRX - Receiving
SI - International System of Units SMD - Surface-mount Devices SMS - Short Message Service SQL - Structured Query Language STR - Data Terminal Ready
TX - Transmission US - United States
USB - Universal Serial Bus
VBA - Visual Basic for Applications VBx - Visual Basic Extension VCC - Common-collector Voltage
WPF - Windows Presentation Foundation
XAML- Extensible Application Markup Language
XML - Extensible Markup Language
LIST OF APPENDIXES
NO. TITLE
A Monitoring Program Coding
B Sample Measurement Data from MS Access Data Base
CHAPTER 1
INTRODUCTION
1.1 Background of Project
This project title is an Interfacing Monitoring Device and GUI Development. This project is develop by using MS VB software and the Humidity- Temperature Sensor module. This project is creating the GUI program to monitor the temperature and humidity data from Humidity-Temperature Sensor module. The GUI program was written by MS VB software. This project has overcome some limitation for some product functionality in the market.
In this project, the MS VB is used to development GUI program. The data from module is send in ASCII form. The communication between program and module is serial interface (RS232). The program receive and decode the ASCII to decimal value. Then, the actual value of temperature and humidity will display in the computers. By using the MS VB, monitoring program can be easily run on MS window base without any extra software.
1.2 Project Objectives
The main objective of this project is the temperature and humidity monitoring system program development. In this project, the temperature and humidity values from Humidity-Temperature Sensor module can be display via the program on PC with MS windows based. So, this program can help the user to view the environment temperature and humidity condition easily.
1.3 Problem Statement
In past few years, temperature is measured using a traditional method such as the thermometer application which is low in cost. It popular because it is simple and easy to implement but it also have many disadvantages like less accurate and reading error or parallax. Beside that, it is also difficult to analyze the data because the data should be recorded into the piece of paper which is difficult to transfer into graph.
Nowadays, temperature and humidity were measured using digital environment meter, digital temperature and humidity sensor, temperature and humidity recorders and etc. The conventional method is not popular because the modern method was widely used. The modern method is more accurate, have a wide range of applications, easy to implements and also use the latest technology.
The modern method has many advantage but quite expensive and require high cost to develop because it need to combine many system to produce complete system. Thus, software application has become more popular to overcome this problem. The program was written to have temperature and humidity monitoring, recording and alerting functions.
1.4 Scope of Work
This Interfacing Monitoring Device and GUI Development project is basically to build the temperature and humidity monitoring program. The temperature and humidity data were provide by the Humidity-Temperature Sensor module to the PC for development the monitoring program.
The temperature and humidity monitoring GUI program was developed. A GUI program is written by using MS VB Programming software to analysis the temperature and humidity data from the Humidity-Temperature Sensor module. MS VB Programming tools were used to design the GUI interface. The MS Office Access was used as the database to record and store the temperature and humidity data displayed on the program interface.
1.5 Thesis Outlines
This report consists of five chapters: Introduction, Literature Review, Methodology, Result and Discussion, and Conclusion and Suggestion.
In chapter 1 the Introduction of the project is discussed. It contains all about project objective, project background, problem statement, scope of work, and overview of remaining chapters.
In chapter 2 the Literature Review and the background studies is explained. It had reviews some references from previous project, journal, article, books and datasheet. All the data was useful to success this project.
Chapter 4 are the Result and Discussion. It shows the result achieved in this project. This chapter discusses more detail about the result and analysis for the GUI
program and also the problem facing during completing this project.