You are on page 1of 29

Page |1


1.1 INTRODUCTION A data logger kit is a stand - alone electronic device that can read various types of information in form of electrical signals and store the data in internal memory over a period of time. The data can be from data acquisition devices. These devices measure real world physical conditions and parameters, and convert them into electrical signals that can be read by the computer, such as analog and digital signals. Physical conditions can be measured using sensors. Physical parameters include the temperature of the environment, humidity, voltages, chemical composition and motion. Data loggers are composed of microcontroller, memory, rechargeable battery, and sensors. Data loggers are important because they provide us with factual information that is needed to make good decisions that will maximize operations. They find applications in many areas such as;  Transportation industry  the data logger access GPS data and hence work as a tracking device of valuable and fragile merchandise and minimize theft [1]  Environmental Monitoring  Internal environmental monitoring of houses, offices, warehouses or museums  External environmental monitoring of oceans, rivers, aquaculture, climate and general research into the natural world. The concentration of chemicals in the water can be recorded over time.  Vandalism monitoring of installations such as underground cables.

 Disaster management and mitigation

Page |2

Floods and earthquake prone areas can be monitored using sensors and the data sent to a monitoring center and early warning system.

The supply of essentials to affected people can be monitored using GPS data loggers. [2]

A data logger that is interfaced to a GPS module is able to receive and store location coordinates in the form of longitude and latitude. This is raw data and needs to be processed into a more meaningful form such as a map. This project is aimed at interfacing the data logger with GPS. The data logger stores the position coordinates on a Media Card. The GPS coordinates are then transmitted to authorized personnel through a text message via GSM. A computer can be connected to the data logger through a serial cable and data on the memory card is accessed. GPS visualizer software can be used to convert these latitude and longitude numbers to something that digital maps (e.g google maps) can understand. The progress report is outlined as follows. Chapter one gives a general overview of the subject i.e. problem statement, rationale, and objectives. Chapter two is the Methodology. The third Chapter covers literature review on the pic microcontroller and PCB designs. Chapter four explains the GPS and GSM technologies. It further gives a description of the communication methods selected and the overall system integration. Chapter five discusses the interfacing and script language programming of the GPS module. The last chapter gives a conclusion of the works done towards the completion of the project. This is then followed by conclusions and the Appendices. 1.2 Problem Statement  Challenges in Water Sensor Monitoring and data capture – location identification and data transmission  Challenges in Vehicle Asset Tracking

Interfacing GPS and GSM to the data logger will make it possible to locate the source of logged data. Hence.g Earthquakes. However.Page |3  Challenges in Disaster Management and Emergency Response e. A data logger with GPS and GSM can be used for remote sensing and hence provide early warning to the relevant authorities.1 below depicts how GPS/GSM data loggers placed in strategic mining areas can be used in Remote Sensing and Early Warning Systems. These data loggers can be placed in key areas where mines are located.3 Rationale A data logger that is able to interface GPS and GSM can be used in many industries and a variety of applications such as Early Warning systems and Remote Sensing. Konkola Copper Mines polluted the river again. tracking transportation of supplies to people 1. resulting in another shutdown of water supply [3]. Such disasters can be avoided by monitoring the effluents of mining wastes in the rivers and streams. . Figure 1. human’s supply of fresh water and the farming sector. the success in one data logger can be modified to other data loggers.. Such effluents have led to illnesses and also death of aquatic life. Dennison Uranium mines has been closed after pollution of the Zambezi River in Siavonga. Sensors are used to monitor the levels of toxic substance and the data transmitted to a central location. There are continued risks of harmful effluents being discharged in the rivers that supplier water to sustain livestock. it has been challenging to identify the source of the data. Floods-Early warning Sys. New mines have been established. Tsunamis. In October 2010. A GPS/GSM data logger can be used to transmit location coordinates that can be used in an effective early warning system.

1) To interface the data logger kit with Global Position System (GPS) and Global System Mobile (GSM) communication 2) To design a system that will incorporate hardware and software based in the field for data logging and transmission protocols 3) To redesign.1: Map showing how Remote Sensing is achieved 1.4 Project Objectives The objectives of the project are outlined below. assemble and configure a cost effective and efficient PIC Microcontroller– based data logger 4) To display data logger output to a computer screen and automatically generate ‘SMS’ messages to monitoring personnel The overall system architecture is shown in figure 1.2 .Page |4 Figure 1.

. EAGLE software has been used for the preliminary system design of the data logger and explained further in chapters 3 to 5. The EM408 GPS module has been selected for the project.Page |5 Figure 1. table A. Proteus software for simulation of the preliminary system design has been done. Literature review on Easy Applicable Graphical Layer Editor (EAGLE) has been done. capacitors. GPS and GSM modules has been done.5 SCOPE OF WORK DONE Literature review on the pic 18F27J53 microcontroller. The GPS and GSM modules will be procured when the programming and simulation of the code is complete.The scope of work to be done is shown in the Appendix A. Some of the components to be used in the project have been acquired.1.2: System architecture of the Data logger 1. and connector blocks. voltage regulator. resisters. These include the pic microcontroller. Familiarisation of programing PIC microcontrollers using micro-IDE in C language.

The electronic part will range from the GPS receiver to the microcontroller and the telecommunications part which will tackle modem communication and interface to the mobile phone Global System for Mobile communication (GSM). Design is the process of conceiving or inventing the forms. parts.Page |6 CHAPTER 2: METHODOLOGY A modular approach has been undertaken to ensure that the project is completed in time.1 System Design A System is a set of interrelated components which interact with one another in an organized fashion toward a common purpose”. Therefore. using a systematic design plan. built. The system design process has five steps these are. The project has been divided into two sections or modules. and details of a system to achieve a specified purpose. 1) Identify design goals 2) Model the new system design as a set of subsystems 3) System Implementation 4) Testing and debugging 5) Report writting/Documentation . and operated so that it accomplishes its purpose in the most cost-effective way possible. “The objective of systems engineering and design is to see to it that the system is designed. schedule and risk.” [4] This creates a technical solution that satisfies the functional requirements for the system. Design can also be said to be an innovative act whereby the engineer creatively uses knowledge and material content of a system. considering performance. Literature review has been carried out to get familiarisation of the hardware and software used. cost. 2. I will be able to come up with a fully operational and cost effective GPS/GSM data logger kit.

Interfacing the media card and programming the full system. Figure 2.Page |7 2. debug. 2.1: Subsystem interface . Figure 2. i) ii) iii) iv) v) Hardware connection of the pic18F27J53 microcontroller. Serial communication interface.2 System design Goals The system design goals have been highlighted in the Objectives of the project. Interfacing the GPS module. In summary the goal is to build a cost effective data logger kit that is interfaced with GPs and GSM technology.3 Subsystems A system composed of interconnected modular subsystems is easier to design. and modify. document. The subsystems that will be considered are. The data logger Preliminary system Block Diagram is shown in figure 3.1 depicts the interfacing of the GPS and GSM modules to the PIC18F27J53. Interfacing the GSM modem.

Page |8 2. This involves combining and organizing the subsystems systematically to form a complete system. The program code for each system is then linked and assembled into one code. .5 Testing and debugging Testing is done to find deffects in the code and remove errors in the system. The components are soldered on the PCB board. 2. it takes many steps of testing and debugging for the system to work as intended.6 Report writing/Documentation This is the process of providing written details/information about the project work. After successful testing and debugging the prototype printed circuit board (PCB) is built.4 System Implementation System implementation involves putting the planned system into action. 2. The hardware and software developed are put together and installed in the simulation design software. A correct hardware (software inclusive) setup of the system does not entail proper functioning of the system.

RISC architecture has 32 level-deep stacks.1: MCU Features Figure 3.2 below shows the 28 pin diagram for the PIC 18F27J53 family and the pin configuration. . a complete system can be built using one MCU chip and interfacing it with a few Input and Output devices such as a keypad. 8x8 hardware multiplier. The PIC18 was selected for this project because programs that run on it can be written in C programming language. The PIC18 family utilizes a16-bit program word architecture and nearly all instructions execute in a single cycle making this Reduced Instruction Set Computer (RISC) architecture extremely efficient.Page |9 CHAPTER 3: LITERATURE REVIEW ON THE PIC 18F µCONTROLLER ARCHITECTURE 3. [5] Figure 3. and multiple internal and external interrupts. Therefore.1 Key features of the pic microcontroller A Microcontroller is an inexpensive single-chip computer. The microcontroller has the capabilities of storing and running a program. display and other circuits.

2 Memory Organization There are two types of memory in PIC18 Flash microcontrollers. These are. these products offer socket. • Program Memory • Data RAM As Harvard architecture devices. 3. the data and program memories use separate busses. software and peripheral compatibility for easy migration and scalability.P a g e | 10 Figure 3. and many of the PIC18 devices include Nano Watt technology for power management. . Like all of Microchip’s microcontrollers. this allows for concurrent access of the two memory spaces.2: Pin configuration The PIC18 family has a rich set of integrated communication and connectivity peripherals to reduce application system cost.

Each register in the data memory has a 12-bit address.2.2:PIC18F27J53 MEMORY MAP The PIC18F47J53 family implements all available banks and provides 3.768 single-word instructions) to 128 Kbytes (65.P a g e | 11 3.2. Program memory is erased in blocks of 1024 bytes at a time.The PIC18F47J53 family offers a range of on-chip Flash program memory sizes. from 64 Kbytes (up to 32.2 Data Memory The data memory in PIC18 devices is implemented as static RAM. Accessing a location between the upper boundary of the physically implemented memory and the 2-Mbyte address returns all ‘0’s. The memory space is divided into as many as 16 banks that contain 256 bytes each FIGURE 3. 3. A write to program memory is executed on blocks of 64 bytes at a time or 2 bytes at a time.8 Kbytes of data memory available to the user.536 single-word instructions). A bulk erase operation may not . A read from program memory is executed on 1 byte at a time. which is capable of addressing a 2-Mbyte program memory space. writable and erasable during normal operation over the entire VDD range. allowing up to 4096 bytes of data memory.1 Program Memory PIC18 microcontrollers implement a 21-bit program counter. The Flash program memory is readable.

display drivers and A/D Converters.MSSP2 can be used only for SPI communication . shift registers.3. code cannot execute. therefore.1. These peripheral devices include serial EEPROMs. useful for communicating with other peripheral or microcontroller devices.1 Master Synchronous Serial Port (MSSP) Module The Master Synchronous Serial Port (MSSP) module is a serial interface. The program memory cannot be accessed during the write or erase.Full Master mode .MSSP1 can be used for either I2C or SPI communication .3 Communication Features of the Pic18F27J53 2.3. Writing or erasing program memory will cease instruction fetches until the operation is complete.P a g e | 12 be issued from user code. An internal programming timer terminates program memory writes and erases. Master SSP (MSSP) Module Overview The MSSP module can operate in one of two modes: • Serial Peripheral Interface (SPI) • Inter-Integrated Circuit (I2C™) . 3. [5] 3.Slave mode (with general address call) The I2C interface supports the following modes in hardware: • Master mode • Multi-Master mode • Slave mode with 5-bit and 7-bit address The modules operate independently: • PIC18F27J53 devices: .

It can also be configured as a half-duplex synchronous system that can communicate with peripheral devices.3.) The EUSART can be configured as a full-duplex asynchronous system that can communicate with peripheral devices. serial EEPROMs. allowing users to freely program endpoint memory usage within the USB RAM space. utilizing the internal transceiver. (Generically. such as CRT terminals and personal computers.P a g e | 13 3. 3. the EUSART is also known as a Serial Communications Interface or SCI. Buffer descriptors are also provided. These make it ideally suited for use in Local Interconnect Network bus (LIN/J2602 bus) systems. compatible USB Serial Interface Engine (SIE) that allows fast communication between any USB host and the PIC® MCU. automatic wake-up on Sync Break reception.3.2 ENHANCED UNIVERSAL SYNCHRONOUS ASYNCHRONOUS RECEIVER TRANSMITTER (EUSART) The Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) module is one of two serial I/O modules. Some special hardware features have been included to improve performance.1 provides a general overview of the USB peripheral and its features. and 12-bit Break character transmit. Dual access port memory in the device’s data memory space (USB RAM) has been supplied to share direct memory access between the microcontroller core and the SIE. The Enhanced USART module implements additional features. including Automatic Baud Rate Detection and calibration. such as ADC integrated circuits. Figure 23. The SIE can be interfaced directly to the USB. .3 UNIVERSAL SERIAL BUS (USB) Peripheral PIC18F family devices contain a full-speed and low-speed.

3: Overview of the USB peripheral and its features 3.4 Printed Circuit Board Design Printed circuit boards are electronic circuits created by mounting electronic components on a non-conductive board.P a g e | 14 Figure 3. PCB design services are used to design the electronic circuits. The PCB designs can be created both manually and automatically. integrated circuits. and the automatic router helps in the creation of the designs automatically. The designers usually prefer the manual way of designs. The Printed Circuit Board (PCB) is very important in all electronic gadgets. [6] A schematic is merely a collection of electronic symbols connected together with virtual “wires.” A schematic is needed when fabricating a printed circuit board to provide input (a netlist) to the layout and routing tool. and connectors. and creating conductive connections between them. since they can implement their own ideas and techniques in them. which are used either for domestic use. Manual layouts are created with the help of CAD drafting. Apart from electrically connecting. [7] . A PCB is used primarily to create a connection between components such as resistors. or for industrial purpose. it also gives mechanical support to the electrical components.

the design capture technology. An example is Easy Applicable Graphical Layout Editor (EAGLE). and the component tools. The PCB editor edits the layers in the PCB. interfaces for manufacturing CAD. since it is possible to analyze both the inner and outer designs vividly. Both two dimensional and three dimensional rendering of the image are possible. This includes the PCB editor. 3D rendering is preferred. both single and multilayered. an interactive router. . a constraint manager.P a g e | 15 PCB design software provides a complete package of the PCB design services.

Global Positioning System is a real-time satellite based positioning available on the earth. transmitting signals allowing GPS receivers to determine the receiver's location. GPS has become one of the important devices for navigation around the world and an important tool for map-making and land surveying. Because of its features. logistics and transportation companies. GPS tracker has been successfully deployed in business environment where there is a need to monitor large mobile workforces and assets such as commercial fleets. GPS tracker transmits positional information to a monitoring station at regular prescribe intervals allowing instant analysis of data transmitted. Acting like a beacon. GPS also provides a precise time reference used in many applications including scientific study of earthquakes and synchronization of telecommunications networks [8]. More than 24 GPS satellites are in medium Earth orbit. This information can be accessed remotely. it evolves into GPS tracker that capable of tracking mobile objects in real-time. The GPS is currently the only fully-functional satellite navigation system. The GPS has three components namely: 1.P a g e | 16 CHAPTER 4: GPS AND GSM TECHNOLOGIES 4. Tracking ability of such system is only limited to the availability of GSM network coverage [8]. accurate and easy way of locating any place on earth.1 How GPS Works Advances in communication technology in the area of Global Position System and Geographical Information System are able to provide a means to navigate the area around us. Combined with mobile communication network such as GSM network. Popularly used as navigational aid. The space segment: consisting of 24 satellites orbiting the earth at an altitude of 11000 nautical miles. The uniqueness of the system lies in the fact it is a cheap. in recent years. made a tremendous in-road as a reliable tracking system for mobile objects. . speed and direction Since the first experimental satellite was launched in 1978. it has become an essential part of any travel. The maturity of GPS (Global Positioning System) technology has led to its increasing utilization in commercial applications. GPS technology has.

3. receiver-processors. They may also include a display for providing location and speed information to the user. a receiver needs to know the accurate time. To calculate its position. so the receiver will yield a mathematically most-probable position (and often indicate the uncertainty). GPS receivers are composed of an antenna. and a highly-stable clock (often a crystal oscillator). To do this.1 User Segment The user's GPS receiver is the user segment (US) of the GPS system. By lining up the two sequences. and then measures the time delay for each satellite. The receiver identifies each satellite's signal by its distinct C/A code pattern. In general. this is mounted on the unit whose location has to be determined. A receiver is often described by its number of channels: this signifies how many satellites it can monitor simultaneously 4. the receiver can measure the delay and calculate the distance to the satellite. the intersection of the four imaginary spheres reveals the location of the receiver. The orbital position data from the Navigation Message is then used to calculate the satellite's precise position. tuned to the frequencies transmitted by the satellites. The control segment: consists of various ground stations controlling the satellites. called the pseudo range. 4. When four satellites are measured simultaneously. Knowing the position and the distance of a satellite indicates that the receiver is located somewhere on the surface of an imaginary sphere centered on that satellite and whose radius is the distance to it.2 Calculating Positions The coordinates are calculated according to theWGS84 coordinates system. Often. Earth-based users can substitute the sphere of the planet for one satellite by using their altitude. The satellites are equipped with extremely accurate atomic clocks. The user segment: consisting of a receiver.P a g e | 17 2. the receiver produces an identical C/A sequence using the same seed number as the satellite. . and the receiver uses an internal crystal oscillator-based clock that is continually updated using the signals from the satellites. these spheres will overlap slightly instead of meeting at one point.

modern electronics can measure signal offset to within about 1% of a bit time. velocity. The position accuracy is primarily dependent on the satellite position and signal delay. Assuming the same 1% accuracy.3 Accuracy and Error Sources The position calculated by a GPS receiver requires the current time. the receiver compares the bit sequence received from the satellite with an internally generated version. GPS receiver communication is defined within this specification. There are standard sentences for each device category and there is also the ability to define proprietary sentences for use by . Most computer programs that provide real time position information understand and expect data to be in NMEA format.P a g e | 18 Calculating a position with the P(Y) signal is generally similar in concept. it is reasonable to assume it is a real signal being sent by a GPS satellite. The idea of NMEA is to send a line of data called a sentence that is totally self-contained and independent from other sentences. By comparing the rising and trailing edges of the bit transitions. the position of the satellite and the measured delay of the received signal. or approximately 10 nanoseconds for the C/A code. This is the minimum error possible using only the GPS Position accuracy can be improved by using the higher-speed P(Y) signal. if a signal can be successfully decrypted. The standard permits marine electronics to send information to computers and to other marine equipment.4 GPS DATA The National Marine Electronics Association (NMEA) has developed a specification that defines the interface between various pieces of marine electronic equipment. In comparison. time) solution computed by the GPS receiver. since RAIM only checks the signals from a navigational perspective. Since GPS signals propagate nearly at the speed of light. [RAIM] features will not help. 4. this represents an error of about 3 meters. The encryption is essentially a safety mechanism. civil receivers are highly vulnerable to spoofing since correctly formatted C/A signals can be generated using readily available signal generators. the faster P(Y) signal results in accuracy of about 30 centimeters 4. assuming one can decrypt it. To measure the delay. This data includes the complete PVT (position.

Each sentence begins with a '$' and ends with a carriage return/line feed sequence and can be no longer than 80 characters of visible text (plus the line terminators). A checksum is required on some sentences. The GPS data can be stored in Comma Separated Values (CSV) file which can easily be imported into a computer using the USB port and view in a spreadsheet or on a digital map. the '$' and '*'. Programs that read the data should only use the commas to determine the field boundaries and not depend on column positions. To do this. (For GPS receivers the prefix is GP) which is followed by a three letter sequence that defines the sentence contents.3V. For example a Garmin sentence would start with PGRM and Magellan would begin with PMGN.6 EM408 GPS module The USB Data Logger can connect to a GPS module using its on board UART (serial port). This is because the data logger’s the boost regulator can only supply 100mA and the microcontroller and memory card can use more than 25mA at full speed. There is a provision for a checksum at the end of each sentence which may or may not be checked by the unit that reads the data. there are specific built in global functions that can be used to produce the required CRC signature for the NMEA commands. For example time might be indicated to decimal parts of a second or location may be show with 3 or even 4 digits after the decimal point. an external power source is required. The checksum field consists of a '*' and two hex digits representing an 8 bit exclusive OR of all characters between. In addition NMEA permits hardware manufactures to define their own proprietary sentences for whatever purpose they see fit. The data itself is just ASCII text and may extend over multiple sentences in certain specialized instances but is normally fully contained in one variable length sentence. All proprietary sentences begin with the letter P and are followed with 3 letters that identifies the manufacturer controlling that sentence. The EM408 GPS module requires a power supply of 75mA at 3. . Therefore. The data is contained within this single line with data items separated by commas. The data may vary in the amount of precision contained in the message. All of the standard sentences have a two letter prefix that defines the device that uses that sentence type.P a g e | 19 the individual company. [9] 4. but not including.

which includes SMS-related commands like AT+CMGS (Send SMS message). That's why modem commands are called AT commands. Also. AT+CMGL (List SMS messages) and AT+CMGR (Read SMS messages).an Overview GSM. AT commands are instructions used to control a modem. This second-generation (2G) system provides voice and limited data services and uses digital modulation with improved audio quality. For example. the behavior of the implemented AT commands may be different from that defined in the standard. AT+CMSS (Send SMS message from storage). It is not part of the AT command name. ATH (Hook control) and ATO (Return to online data state).5 GSM Technology. Note that the starting "AT" is the prefix that informs the modem about the start of a command line. Many of the commands that are used to control wired dial-up modems. ATA (Answer). such as ATD (Dial). AT is the abbreviation of ATtention. are also supported by GSM/GPRS modems and mobile phones.P a g e | 20 4. D is the actual AT command name in ATD and +CMGS is the actual AT command name in AT+CMGS Mobile phone manufacturers usually do not implement all AT commands. is today the most successful digital mobile telecommunication system. In general. Besides this common AT command set. GSM/GPRS modems designed for wireless applications have better support of AT commands than ordinary mobile phones. Every command line starts with "AT" or "at". GSM/GPRS modems and mobile phones support an AT command set that is specific to the GSM technology. command parameters and parameter values in their mobile phones. Global System for Mobile communications. .

All GSM AT commands are extended commands. H (Hook control) and O (Return to online data state) are basic commands. 4. D (Dial). For example. +CMSS (Send SMS message from storage). SMS over GPRS can be enabled on some GPRS mobile phones and GPRS modems with the +CGSMS command (command name in text: Select Service for MO SMS Messages). [10] . Basic commands are AT commands that do not start with "+". +CMGS (Send SMS message). Extended commands are AT commands that start with "+". But if the mobile network operator does not support the transmission of SMS over GPRS.P a g e | 21 AT Command AT+CGMI AT+CGMM AT+CGSN AT+CGMR AT+CIMI AT+CSQ AT+CBC AT+CMGS AT+CMGR AT+CMGW AT+CMGD AT+CNMI AT+CPBR AT+CPBW AT+CPBF AT+CLCK AT+CPWD ATO ATH ATA ATD Functionality Name of the manufacture Model number International mobile subscriber identity Software version International mobile subscriber identity Radio signal strength Charging status Send message Read message Write message Delete message Notifications of received messages Read phone book Write to phone book Search phone book Checking whether a facility is locked Change password Return to online data state Hook control Answer call Dial call Table 4. some AT commands require the support of mobile network operators. For example.1: Basic AT commands In addition.2 Basic Commands and Extended Commands There are two types of AT commands: basic commands and extended commands. A (Answer). For example. you cannot use this feature. +CMGL (List SMS messages) and +CMGR (Read SMS messages) are extended commands.

P a g e | 22 CHAPTER 5: INTERFACING AND PROGRAMMING MICROCONTROLLER 5. 5. two pins are necessary. For example. The other input/output ports on connector block 4 named CON4 are shown in table 5.1 Hardware Connection to the pic microcontroller The data logger has two UART pins and one Universal Serial Bus (USB). this is overcome by using software. The PPS feature not only simplifies the PC board design. a single UART peripheral can be used on different pins.1: Pin assignments for Sensors and devices Serial ports are required for interfacing the GSM and GPS modules.1. For full duplex (two way) communication with the microcontroller. Therefore the two UART (Universal Asynchronous Receiver/Transmitter) pins on the microcontroller are not sufficient. These are serial interfaces.2 Programming Pic microcontroller using Script Language The scripting language is a high-level programming language that is interpreted by another program at runtime rather than compiled by the computer's processor as other . The two hardware components can be multiplexed by using the Peripheral Pin Select (PPS) feature of the PIC18F27J53 microcontroller. . but it also allows the onboard peripherals to be multiplexed on different lines. Table 5. However.

P a g e | 23 programming languages (such as C and C++) are. Programs written using the scripting language can be executed and debugged without the data logger being connected to the computer. it is not possible to log any data via the sensors and devices. Without the data logger being programmed. The PC host program converts the source code to machine code that then executes on the Data Logger. Figure 5.1: PC host software window executing the GPS script . Figure 5. The PC host program automatically detects the data logger once it has been connected to the computer. The program for reading data from the GPS module has been written and tested.1 shows the simulation window of the program. The scripting language is implemented on a virtual machine that incorporates virtual memory support and a (modified) Harvard architecture. With the scripting language it’s possible to program the data logger so that the desired sensor can be interfaced to the data logger.

P a g e | 24 START Create new log file UART initialization Set baud rate UART to 4800 Detect and Receive GPS data Data received? Data processing Check sum Decode data GPSS GPRMC Store data Display data End .

The GPS coordinates obtained by the GPS module are stored on a memory card. the components that make up the data logger shall be soldered and the complete system tested. The data is then transmitted to mobile phone or personal computer by means of the GPS modem. This is important in remote sensing and Early warning systems. Proteus and the PC host software for script writing. . Assembly. Data captured by the loggers can be transmitted to a central location. The findings and results shall then be documented and a final thesis submitted. Once the interfacing of GSM is complete.P a g e | 25 CHAPTER 6: CONCLUSION Data loggers are important in almost all industries. EAGLE software has been used to redesign the data logger and the GPS module has been interfaced. Interfacing the data logger to the GSM modem is under way using EAGLE software. They are used to capture and store data over a period of time. One area in which they can be used is Water Sensor Monitoring. configuration and interfacing of data logger kit to GPS and GSM. The objective of the project is to Redesign. The data can be used to optimize the operations being carried.

10. Ahmed Al Mansur. Fabricating Printed Circuit Boards. NASA Systems Engineering Handbook SP6105 5. Jon Varteresian.col. PIC18F47J53 Family Data Sheet. Sadeque Reza Khan. Robertson.A SIMULATION APPROACH.Smys1. 21 January 2011 4. Alvir Kabir. Volume 2. 2010. 2002. NYS Project Management Guidebook 9. International Journal of Scientific & Engineering Research Volume 3. S. Week 3. Design and Implementation of Low Cost Home Security System using GSM Network . Issue 3. 2010. Elsevier Science (USA) 8. Microchip Technology Inc.P a g e | 26 References 1. Nahian Chowdhury. Ahmed El-Rabbany. Zambia 3. Printed Circuit Board Designer's Reference: Basics. . March -2012. Introduction to GPS: the Global Positioning System. http://www. Shahid Jaman. 7. AUTONOUMOUS VEHICLE NAVIGATION IN COMMUNICATION CHALLENGED ENVIRONMENTS. 6. Journal of Automation & Systems Engineering 2. Nixon Augustine. Christopher T. Jennifer S Raj. Issue 3.

P a g e | 27 APPENDEX A Task Name Start Date End Date Duration % Completion 1 Project Selection 4/5/2012 18/5/2012 14 d 100% Resources Needed Supervisor + Nalumino 2 Literature Review 3 Procurement of Tools 4 5 System Design Review of Design 1/1/2013 23/1/2013 24/1/2013 1/2/2013 25 d 7d 90% 80% Nalumino Supervisor + Nalumino 6 First Oral Presentation 7 Progress Report Submission 8 Interfacing to GPS 9 interfacing to GSM 1 0 1 1 1 2 1 3 1 4 Final Project Demonstration 9/8/2013 9/8/2013 1d 0% Thesis Compilation Thesis Review 29/7/2013 2/8/2013 5d 0% Supervisor 1/6/2013 25/7/2013 30 d 0% Nalumino Building and System Testing Work Review 20/5/2013 24/5/2013 5d 0% 10/4/2013 15/5/2013 10 d 0% Supervisor + Nalumino Supervisor 26/3/2013 8/3/2013 10 d 0% Nalumino 11/3/2013 25/3/2013 14 d 70% Nalumino 7/3/2013 21/3/2013 14 d 100% Nalumino 25/1/2013 25/1/2013 1d 100% Nalumino 17/12/2012 8/5/1013 110 d 60% Nalumino 70% Nalumino Table A.1: Work plan .

// Refer to the datasheet of the EMS408 for details. pf(#nmea). #D1). @@abs($$latitude).". newline. #D0.1.P a g e | 28 APPENDIX B The script file for the GPS interface was developed and simulated. $$nmea. header simpleGPS { // The script shows how to use the UART to connect to a GPS module.outputPtr>=#GPRMCNumBytesToMatch) { print "Output: ". "Longitude: ".0". newline. as shown below.. nmea "$PSRF100. print "Sending commands to the GPS module.8. print "Waiting for GPS Sentences.. " knots (over ground)". @@abs($$longitude).outputPtr. precision(3).0". "GPSDecoder.. " degrees ".. The program is as follows. the EM408 // The USB Data Logger can automatically decode GPSS GPRMC NMEA sentences. // Baudrate 4800 bps is the default for the GPS module.". "GPS Time : ". print newline. if($$latitude>=0)print "N". newline.txt".. pf(#serialInPipe).0. newline. while(1) { if(@@receivedNMEAUART()) { print newline.4800. print newline. // Initialise the UART. nmea "$PSRF103.txt" clearFile "GPSDecoder. } . // #GPRMCNumBytesToMatch==32 is the number of bytes output // by the internal automatic match for GPRMC sentences. if($$longitude>=0)print "E". print newline. The following // command sets the output sentences for the EMS408 module to be GPSS // GPRMC (recommended minimum // specific settings.4. 4800. "Speed : ". else print "W".1. $$course. "Rx: ["..... } script simpleGPS { // Creates A new Log File for this script from scratch. pf(#vmTime). print newline. " ". " ". "]". but it // also keeps a running XOR checksum that is appended to the end of the sentence for error checking // The NMEA CRC is sent by using the print function pf(#nmea).5. if($$nmea. pin D0 is Tx. "Latitude : ". $$speed. newline. else print "S". print newline. // the special GPS decoding mode is enabled by using the define constant // in the mode definition when opening the serial port #GPSDecodingUART.... "Heading : ". pf(#nmea). @@openUART(#GPSDecodingUART + #noRxInvUART + #noTxInvUART.. // The nmea built in command sends the output to the serial port.. pin D1 is Rx...

} } } . sleep(1).P a g e | 29 @@clearUART().