Interfacing Monitoring Device And GUI Development.
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
April 2008
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 Projek
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 (
m
4):
SULIT*
(Mengandungi maklumat yang berdarjah keselamatan atau
kepentingan Malaysia seperti yang termaktub di dalam AKTA
RAHSIA RASMl 1972)
TERHAD*
(Mengandungi maklumat terhad yang telah ditentukan oleh
organisasilbadan di mana penyelidikan dijalankan)
TlDAK TERHAD
Disahkan oleh:
6
(TANDATANGAN PENULIS)
Alamat Temp: 29 Lorong Ceri 2, Taman Aman,
3lTl KHADIJAH 01 IDRlS @ OTHMAN
Pensyarah
Off Jalan Raja Uda, 12300
Butterworth, Pulau Pinang.
Tarikh: 28 April 2008
Fakulti Kej Elektronik dan Kej Kornputer (FKEKK)
Universiti Teknikal Malaysia Melaka (UTeM),
Karung Berkunci 1 ZOO,
Ayer Keroh, 75450 Melaka.
Tarikh: 28 April 2008
"I hereby declare that this report is the result of my own work except for quotes as
cited in the references."
a
Signature
: ......................
Author
: 001WEE TUCK
Date
: 28 April 2008
"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 Khadijah
i
Binti Idris @ Othrnan
Date
: 28 April 2008
Dedicated to my beloved family especially my parents, family members and fiiends.
Last but not least, to my supervisor and all the UTeM lecturers.
ACKNOWLEDGEMENT
First and foremost I would like to extend my heartfelt gratitude to all that
have been contributed especially to my supervisor PN. SITI KHADIJAH BINTI
IDRIS @ OTHMAN for her supervision and guidance. Then, I want to express my
special thank to all the FKEKK, PSM committee for their time, patience and
professionalism. Beside that, my appreciation goes to my beloved parents and all my
family because of their full support, inspiration and encouragement in doing this
project. Without their support, this project may have not come to fruition. There are
other thank, namely those with whom I did not pleasure of interacting personally, but
whose contributions are extremely valuable, nevertheless.
ABSTRACT
The title of this project is Lnterfacing Monitoring Device and GUI
Development. This project was developing the program to monitoring the actual
humidity and temperature data via PC with MS windows base. This project has been
using the Humidity-Temperature Sensor module to provide the data for GUI program
development. Therefore, the major concentration was focus on GUI program
development. The program was written using MS VB programming language. The
Humidity-Temperature Sensor module was collecting the data captured fiom module
temperature and humidity sensors. The measured values are sending as ASCII string
to the PC through the serial interface (RS 232). The program can be analyzed the
data and display the temperature and humidity in decimal value. Beside that, the
program also can be display the temperature and humidity values in real time. In
additionally, this project also complete with database to save the temperature and
humidity values. Finally, the temperature and humidity value can be monitored
through the PC with MS windows base. This project can be applied for many
applications, such as monitoring the store room, server room and any space require
high sensitivity for temperature and humidity change.
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
Windows. Projek ini menggunakan modul pengesan kelembapan-suhu untuk
menyediakan data kepada program GUI. Oleh itu, program GUI yang dibangunkan
dengan perisian MS Visual Basic amat penting dalam projek ini bagi membantu
pengguna memgaplikasi sistem ini dengan mudah. Modul pengesan kelembapansuhu akan mengumpulkan data daripada pengesan suhu dan pengesan kelembapan.
Data daripada pengesan akan berantara muka dengan program GUI yang
dibangunkan apabila dihantar dengan format ASCII kepada komputer yang
disambungkan melalui penyambung bersiri (RS 232). Program ini boleh
menganalisis data dan mempamerkan suhu dan kelembapan dalam bentuk desimal.
Selain itu, program ini juga boleh mempamerkan suhu dan kelembapan pada masa
sebenar. Tambahan, projek ini juga mempunyai pangkalan data untuk merekod dan
menyimpan nilai suhu dan kelembapan yang dicerap. Akhirnya, nilai suhu dan
kelembapan boleh dipantau melalui komputer yang mempunyai MS windows. Projek
ini mempunyai pelbagai aplikasi seperti pemantauan bilik stor, bilik server dan
tempat-tempat yang peka dengan perubahan suhu dan kelembapan.
CONTENTS
CHAPTER
PAGE
ITEM
PROJECT TITLE
i
VERIFYING FORM
ii
DECLARATION
iii
SUPERVISOR APPROVAL
iv
DEDICATION
v
ACKNOWLEDGMENT
vi
ABSTRACT
vii
ABSTRAK
viii
CONTENTS
ix
LIST OF TABLES
xii
LIST OF FIGURES
xiii
LIST OF ABBREVIATIONS
XV
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
xix
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
2.7
Temperature and Humidity Meter
18
2.6.1
19
Temperature and Humidity Meter
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
Humidity-Temperature Sensor Module with Serial
Interface
22
2.7.1 Technical Data
23
2.7.2
23
Circuit Diagram
2.8
2.9
2.7.3
Plug Connector Layout
2.7.4
Calibration
Serial Port
2.8.1
RS232 Serial Communication Protocols
2.8.2
Connector
2.8.3
Handshaking
2.8.4
Cabling
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
Module with Serial Interface
46
3.3.1
Format of Data Transfer
48
3.3.2
Structure of Configuration Data Line
49
3.3.3
Structure of Measured Values Data Lines
50
3.4
Program Development by Using MS Visual
Studio 2005
IV
RESULT AND DISCUSSION
4.1
Introduction
57
4.2
Temperature and Humidity Monitoring Program
58
4.3
Discussion
63
4.3.1
Module for Capture Temperature and
Humidity
4.3.2
Program Development Using MS Visual
Studio 2005
V
CONCLUSION AND SUGGESTION
5.1
Conclusion
5.2
Future Development
REFERENCES
APPENDIXES
64
64
LIST OF TABLES
NO. TITLE
2.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
PAGE
LIST OF FIGURES
NO. TITLE
MS VB 6.0 PRO Ed
PAGE
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
21
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
38
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
Cable for Module Connect PC
47
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
Sample Conversion Module Data (Temperature)
Sample Conversion Module Data (Humidity)
MS Visual Studio Templates
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 Detect
DCE - 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
GUI
- Graphic User Interface
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 Send
RX
- 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
VB
- Visual Basic
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
XSLT - Extensible Stylesheet Language Transformations
pC
- Micro Controller
LIST OF APPENDIXES
NO.
TITLE
A
Monitoring Program Coding
B
Sample Measurement Data from MS Access Data Base
PAGE
CHAPTER 1
INTRODUCTION
The Interfacing Monitoring Device and GUI Development had been designed
to monitoring temperature and humidity data captured from Humidity-Temperature
Sensor module via PC with MS windows based. Since this GUI program is user
friendly and also a tool to view the temperature and humidity measured data in far
distance, so it allow user to observe the situation easily. Humidity-Temperature
Sensor module and monitoring program were applied for this purpose to get more
accurate real time values. Besides, the database is automatically update the
temperature and humidity data for an engineer to troubleshoot some particular
problem regarding the environment condition. The program can be used for
monitoring of stock rooms, in food industries and quality assurance. Therefore this
program can measure temperature and humidity in factories, schools, offices,
hospital or at home to check and monitor the environment temperature and humidity
in term of providing a best condition for the particular situation.
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.
Beside that, this project also focuses on developing a user friendly GUI
program by using MS VB Programming language. This program can display the
temperature and humidity values without the complex process or instruction. In
addition, the program can help the user to observe the environment temperature and
humidity situation in far distance.
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.
The time and distance also the critical problems for monitoring the
environment temperature and humidity. Mostly in the market, these are the handheld
environment meter and portable environment meter. The owner of these equipments
should go to the place for measure the environment condition. It takes time to know
and collect the temperature and humidity data because the user should go to the other
places for measuring data.
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.
In chapter 3 Methodology discusses the way to process this project. This
project was concentrates in the program GUI development for monitoring the
temperature and humidity. The detail process for the both part will totally present in
chapter 3.
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.
Chapter 5 concludes the entire project and suggestion for the future plan for
this project is highlight.
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
April 2008
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 Projek
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 (
m
4):
SULIT*
(Mengandungi maklumat yang berdarjah keselamatan atau
kepentingan Malaysia seperti yang termaktub di dalam AKTA
RAHSIA RASMl 1972)
TERHAD*
(Mengandungi maklumat terhad yang telah ditentukan oleh
organisasilbadan di mana penyelidikan dijalankan)
TlDAK TERHAD
Disahkan oleh:
6
(TANDATANGAN PENULIS)
Alamat Temp: 29 Lorong Ceri 2, Taman Aman,
3lTl KHADIJAH 01 IDRlS @ OTHMAN
Pensyarah
Off Jalan Raja Uda, 12300
Butterworth, Pulau Pinang.
Tarikh: 28 April 2008
Fakulti Kej Elektronik dan Kej Kornputer (FKEKK)
Universiti Teknikal Malaysia Melaka (UTeM),
Karung Berkunci 1 ZOO,
Ayer Keroh, 75450 Melaka.
Tarikh: 28 April 2008
"I hereby declare that this report is the result of my own work except for quotes as
cited in the references."
a
Signature
: ......................
Author
: 001WEE TUCK
Date
: 28 April 2008
"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 Khadijah
i
Binti Idris @ Othrnan
Date
: 28 April 2008
Dedicated to my beloved family especially my parents, family members and fiiends.
Last but not least, to my supervisor and all the UTeM lecturers.
ACKNOWLEDGEMENT
First and foremost I would like to extend my heartfelt gratitude to all that
have been contributed especially to my supervisor PN. SITI KHADIJAH BINTI
IDRIS @ OTHMAN for her supervision and guidance. Then, I want to express my
special thank to all the FKEKK, PSM committee for their time, patience and
professionalism. Beside that, my appreciation goes to my beloved parents and all my
family because of their full support, inspiration and encouragement in doing this
project. Without their support, this project may have not come to fruition. There are
other thank, namely those with whom I did not pleasure of interacting personally, but
whose contributions are extremely valuable, nevertheless.
ABSTRACT
The title of this project is Lnterfacing Monitoring Device and GUI
Development. This project was developing the program to monitoring the actual
humidity and temperature data via PC with MS windows base. This project has been
using the Humidity-Temperature Sensor module to provide the data for GUI program
development. Therefore, the major concentration was focus on GUI program
development. The program was written using MS VB programming language. The
Humidity-Temperature Sensor module was collecting the data captured fiom module
temperature and humidity sensors. The measured values are sending as ASCII string
to the PC through the serial interface (RS 232). The program can be analyzed the
data and display the temperature and humidity in decimal value. Beside that, the
program also can be display the temperature and humidity values in real time. In
additionally, this project also complete with database to save the temperature and
humidity values. Finally, the temperature and humidity value can be monitored
through the PC with MS windows base. This project can be applied for many
applications, such as monitoring the store room, server room and any space require
high sensitivity for temperature and humidity change.
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
Windows. Projek ini menggunakan modul pengesan kelembapan-suhu untuk
menyediakan data kepada program GUI. Oleh itu, program GUI yang dibangunkan
dengan perisian MS Visual Basic amat penting dalam projek ini bagi membantu
pengguna memgaplikasi sistem ini dengan mudah. Modul pengesan kelembapansuhu akan mengumpulkan data daripada pengesan suhu dan pengesan kelembapan.
Data daripada pengesan akan berantara muka dengan program GUI yang
dibangunkan apabila dihantar dengan format ASCII kepada komputer yang
disambungkan melalui penyambung bersiri (RS 232). Program ini boleh
menganalisis data dan mempamerkan suhu dan kelembapan dalam bentuk desimal.
Selain itu, program ini juga boleh mempamerkan suhu dan kelembapan pada masa
sebenar. Tambahan, projek ini juga mempunyai pangkalan data untuk merekod dan
menyimpan nilai suhu dan kelembapan yang dicerap. Akhirnya, nilai suhu dan
kelembapan boleh dipantau melalui komputer yang mempunyai MS windows. Projek
ini mempunyai pelbagai aplikasi seperti pemantauan bilik stor, bilik server dan
tempat-tempat yang peka dengan perubahan suhu dan kelembapan.
CONTENTS
CHAPTER
PAGE
ITEM
PROJECT TITLE
i
VERIFYING FORM
ii
DECLARATION
iii
SUPERVISOR APPROVAL
iv
DEDICATION
v
ACKNOWLEDGMENT
vi
ABSTRACT
vii
ABSTRAK
viii
CONTENTS
ix
LIST OF TABLES
xii
LIST OF FIGURES
xiii
LIST OF ABBREVIATIONS
XV
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
xix
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
2.7
Temperature and Humidity Meter
18
2.6.1
19
Temperature and Humidity Meter
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
Humidity-Temperature Sensor Module with Serial
Interface
22
2.7.1 Technical Data
23
2.7.2
23
Circuit Diagram
2.8
2.9
2.7.3
Plug Connector Layout
2.7.4
Calibration
Serial Port
2.8.1
RS232 Serial Communication Protocols
2.8.2
Connector
2.8.3
Handshaking
2.8.4
Cabling
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
Module with Serial Interface
46
3.3.1
Format of Data Transfer
48
3.3.2
Structure of Configuration Data Line
49
3.3.3
Structure of Measured Values Data Lines
50
3.4
Program Development by Using MS Visual
Studio 2005
IV
RESULT AND DISCUSSION
4.1
Introduction
57
4.2
Temperature and Humidity Monitoring Program
58
4.3
Discussion
63
4.3.1
Module for Capture Temperature and
Humidity
4.3.2
Program Development Using MS Visual
Studio 2005
V
CONCLUSION AND SUGGESTION
5.1
Conclusion
5.2
Future Development
REFERENCES
APPENDIXES
64
64
LIST OF TABLES
NO. TITLE
2.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
PAGE
LIST OF FIGURES
NO. TITLE
MS VB 6.0 PRO Ed
PAGE
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
21
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
38
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
Cable for Module Connect PC
47
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
Sample Conversion Module Data (Temperature)
Sample Conversion Module Data (Humidity)
MS Visual Studio Templates
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 Detect
DCE - 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
GUI
- Graphic User Interface
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 Send
RX
- 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
VB
- Visual Basic
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
XSLT - Extensible Stylesheet Language Transformations
pC
- Micro Controller
LIST OF APPENDIXES
NO.
TITLE
A
Monitoring Program Coding
B
Sample Measurement Data from MS Access Data Base
PAGE
CHAPTER 1
INTRODUCTION
The Interfacing Monitoring Device and GUI Development had been designed
to monitoring temperature and humidity data captured from Humidity-Temperature
Sensor module via PC with MS windows based. Since this GUI program is user
friendly and also a tool to view the temperature and humidity measured data in far
distance, so it allow user to observe the situation easily. Humidity-Temperature
Sensor module and monitoring program were applied for this purpose to get more
accurate real time values. Besides, the database is automatically update the
temperature and humidity data for an engineer to troubleshoot some particular
problem regarding the environment condition. The program can be used for
monitoring of stock rooms, in food industries and quality assurance. Therefore this
program can measure temperature and humidity in factories, schools, offices,
hospital or at home to check and monitor the environment temperature and humidity
in term of providing a best condition for the particular situation.
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.
Beside that, this project also focuses on developing a user friendly GUI
program by using MS VB Programming language. This program can display the
temperature and humidity values without the complex process or instruction. In
addition, the program can help the user to observe the environment temperature and
humidity situation in far distance.
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.
The time and distance also the critical problems for monitoring the
environment temperature and humidity. Mostly in the market, these are the handheld
environment meter and portable environment meter. The owner of these equipments
should go to the place for measure the environment condition. It takes time to know
and collect the temperature and humidity data because the user should go to the other
places for measuring data.
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.
In chapter 3 Methodology discusses the way to process this project. This
project was concentrates in the program GUI development for monitoring the
temperature and humidity. The detail process for the both part will totally present in
chapter 3.
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.
Chapter 5 concludes the entire project and suggestion for the future plan for
this project is highlight.