Universiti Malaysia Sarawak: KNL 3333 Data and Computer Networking Final Report
Universiti Malaysia Sarawak: KNL 3333 Data and Computer Networking Final Report
FACULTY OF ENGINEERING
KNL 3333
DATA AND COMPUTER NETWORKING
FINAL REPORT
DR AL-KHALID OTHMAN
3. METHODOLOGY………………………………………………………………...9
3.1 Project’s Planning and Gantt Chart 9
Figure 3.1: Gantt chart 9
3.2 Expected problem anticipated during project 10
3.3 Progress in the project of Heart Beat Monitoring System 11
Figure 3.2: Flow chart of progression for the Heart Beat Monitoring System Project 11
3.4 Heart Beat Monitoring System 13
Figure 3.3: Flow chart of heart beat monitoring system 13
Table 1: Heart rate range for age below 10 14
Table 2: Heart rate range for male with age above 10 14
Table 3: Heart rate range for female with age above 10 14
4. HEART BEAT MONITORING SYSTEM .………………………………… 15
Figure 4.1: The block diagram of the Hearbeat Monitoring System 15
4.1 Heart Beat Detector Part 16
Figure 4.2: Circuit diagram of Heart beat detector 16
Figure 4.3: The constructing of Finger Clip Sensor 16
Figure 4.4: (a) Heart beat circuit on PCB (b) Artwork layer circuitry of (a) 16
4.2 PIC18F4550 microcontroller 17
Figure 4.5: Crystal frequency of 20MHz and SEL USB connected 17
Figure 4.6: Heart Beat Detector Circuit with PIC18F4550 18
Figure 4.7: PIC18F4550 with SK40C 19
4.3 Communication between device (Heart Beat Detector and PIC18F4550) 20
and computer
Figure 4.8: Flow of planning of HID bootloader and firmware installation in PIC with SK40C 22
4.4 Programming PIC18F4550 Firmware using MPLAB IDE v8.50 22
with C18 compiler
Figure 4.9: PIC firmware files overview 23
Figure 4.10: “main.c” -Configuration Bits 23
Figure 4.11: “main.c”-buffer declaration 24
Figure 4.12: “main.c”-vector mapping for bootloader used 24
Figure 4.13: “main.c”- UserInit and ProcessIO 25
Figure 4.14: “usb_descriptors.c” - Vendor ID and Product ID. 25
Figure 4.15: “Hardware profile-PICDEM USB.h” - self power or bus power 26
Figure 4.16: “Hardware profile-PICDEM USB.h” - Clock frequency and
Initialize input/output port 26
4.5 Programming of User End (GUI Interface) using 27
Microsoft Visual C++ 2008
5. RESULT……………………………………………………………………………29
5.1 Hardware part ( Heart Beat Detector and PIC18F4550 with SK40C) 29
Figure 5.1: The complete hardware part of Heart Beat Monitoring System 29
5.2 GUI Interface (User End) 29
Figure 5.2: (a) HeartBeatMonitoringSystem.exe (b) Start up page 29
Figure 5.3: Main form when Heart Beat Monitoring device is not connected to computed 30
Figure 5.4: If Heart Beat Monitoring device is connected for the first time, it will be installed 30
Figure 5.5: The Main form after VIP and PID of the PIC is matched with the application 31
Figure 5.6: Output if heart rate is higher than normal range 31
Figure 5.7: Output if heart rate smaller than normal range 32
Figure 5.8: Output if heart rate is in normal range 32
Figure 5.9: Information about this application 33
Figure 5.10: Steps to guide user using this application 33
Figure 5.11: Save user heart rate to text file 34
Figure 5.12: User heart rate data recorded in text file 34
6. DISCUSSION …………………………………………………………………….. 34
6.1 Evalution On Results 34
6.2 Analysis Problem 35
6.2 Advantages and Disadvantages 37
8. REFERENCES……………………………………………………………............39
9. APPENDIX…………………………………………………………………...........41