PORTABLE WATER ALARM DETECTOR LINN WEN TECK A Report .

3y ago
28 Views
2 Downloads
3.78 MB
36 Pages
Last View : 2m ago
Last Download : 3m ago
Upload by : Abby Duckworth
Transcription

PORTABLE WATER ALARM DETECTORLINN WEN TECKA report submitted in partial fulfillment of the requirements for theaward of the degree of Bachelor of Electrical Engineering (PowerSystems)FACULTY OF ELECTRICAL & ELECTRONICS ENGINEERINGUNIVERSITI MALAYSIA PAHANGNOVEMBER 2007

ii“All the trademark and copyrights use herein are property of their respective owner.References of information from other sources are quoted accordingly; otherwise theinformation presented in this report is solely work of the author.”Signature:Author: LINN WEN TECKDate: 19 NOVEMBER 2007

iiiTo my beloved family and friends,

ivACKNOWLEDGEMENTFirst of all, I would like to thank my project supervisor, En. Mohd RedzuanB. Ahmad, who has given me much strong logistic support while implementing theproject given. He has always assisted me when I handling my project. Besides, Iwould like to express my sincere appreciation for his valuable advices, guidance andencouragement. This has inspired me to be more confident in trying new things.Secondly, I would like to thank my family members for giving me theirloves and supports throughout my four years of studies in Universiti MalaysiaPahang (UMP), Gambang, Pahang.Special thanks to staff FKEE, who have given me a great help inaccomplishing this project.At last but not least, I would like to say millions of thanks to all my coursemates and those who has lending me their helping hand.Thank you.

vABSTRACTOne of the most common natural disasters that hit our country is flood.Many lives have perished in this hazardous natural disaster. Early precaution andsafety measures can be taken if in anyway the people can be warn about theincoming flood. Most of those who died in these floods are not aware about the wateraccumulating outside their house and when they finally realize about the situation, itis too late for them to do anything. The purpose of this study is to develop a portablewater alarm detector that can be used at home to detect the level of water outside thehouse. Extensive simulations using software were performed and the solution to theflood problem is proposed. Evaluation is based on the needs of the user, the cost ofproduction, the portability of the alarm and the types of output that can be used towarn the user about the flood. Researches done on the water alarm shows that aportable type is more convenient for the users rather than a permanent placed wateralarm because the users can know about the status of the level of water fromanywhere inside the house. It was found that basic features for a water alarm such assensors, buzzer alarm and LCD to display the water level with the usage of batteriesis the best method. This method showed significant improvement in safety, reliabilityand user friendliness of the alarm compared to the other alternative methods. Thefindings suggest that the water alarm should be easy to maintain, easy to use and themost importantly can warn the users.

viABSTRAKSalah satu bencana alam yang sering kali melanda negara kita ialah banjir.Banyak nyawa dan harta benda yang terkorban dalam bencana alam yang dahsyat ini.Langkah-langkah keselamatan dan berjaga-jaga boleh diambil agar para pendudukdapat mengetahui keadaan semasa ketika berlakunya banjir. Kebanyakkan daripadamereka yang terkorban dalam musibah ini adalah disebabkan oleh ketidaksedaranmereka mengenai bencana yang akan melanda ini dan apabila mereka menyedarikeadaan ini, ianya sudah terlambat. Tujuan kajian ini adalah untuk menghasilkansebuah penggera air mudah alih yang boleh digunakan untuk mengukur ketinggianair di luar kawasan rumah semasa berlakunya bamjir. Kajian mendalammenggunakan perisian computer telah dilakukan and langkah penyelesaian untukmasalah banjir ini telah dicadangkan. Kajian yang dilakukan adalah berdasarkankeperluan pengguna, kos penghasilan projek, kemudahalihan projek dan jenispenggera yang digunakan untuk memberi amaran kepada pengguna. Kajian yangtelah dijalankan menunjukkan penggera air mudah alih adalah lebih sesuai untukkegunaan orang ramai berbanding dengan penggera air yang tetap. Keperluan asassebuah penggera air seperti LCD, buzzer dan pengesan air dengan penggunaan bateriadalah langkah terbaik dalam penghasilan projek ini. Kaedah ini menunjukkanpenambahbaikkan dari segi keselamatan and mudah digunakan berbanding dengankaedah lain.

viiTABLE OF IONiiiACKNOWLEDGEMENTSivABSTRACTvABSTRAKviTABLE OF CONTENTSviiLIST OF FIGURESxLIST OF TABLESxiLIST OF APPENDICESxiiINTRODUCTION1.1Literature Review11.2Design Objectives21.3Scope of Project31.4Thesis Overview4PROJECT THEORY OF OPERATION2.1Introduction52.2Sensing of Water52.3Transmission & Reception62.4Alarm Output72.5Overall Operation9

n103.2Flow Chart for Project Development113.3Flow Chart for Hardware Development133.4Flow Chart for Software Development153.5Summary16SYSTEM HARDWARE DESIGN4.1Introduction174.2PIC16F877A184.2.1 Operation204.2.2 PIC16F877A Pin Assignments21FM Wireless System Module234.3.1 Encoder244.3.2 Decoder264.3.3 Transmitter Module284.3.4 Receiver Module284.3.5 Antenna Module29LCD Display304.4.1 Operation304.4.2 Pin Assignments324.5LED Indicators334.6Buzzer334.7Summary344.34.4

ixCHAPTERTITLE5.0SOFTWARE IMPLEMENTATION6.07.0PAGE5.1 Introduction355.2PIC16F877A Programming Language365.2.1 Assembly365.2.2 High Level375.3PICBasic Pro Compiler385.4Summary39EXPERIMENTAL RESULTS6.1 Introduction406.2 FM Wireless Module Test416.2.1Encoder & Decoder Test416.2.2FM Transmitter & Receiver Test436.3LCD Display446.4LED Indicators456.5Summary47CONCLUSIONS7.1 Conclusion487.2 Future Improvements497.2.1Costing and CommercializationREFERENCESAPPENDICES A-J505152-88

xLIST OF FIGURESFIGURE NO.1.1TITLEPAGEBlock Diagram for Wireless CommunicationOn Portable Water Alarm22.1Conductors and Insulators63.1Flow Chart for Project Development113.2Flow Chart for Water Sensor Operation133.3Flow Chart for Output Alarm Development143.4Programming Flowchart154.1Block Diagram of PIC16F877A194.2FM Wireless as Communication Medium234.3HT12E Timing Diagram254.4HT12E Flow of Operation254.5HT12D Flowchart274.6HT12D Decoder Timing Diagram274.7LED Indicators335.1PICBASIC PRO Compiler396.1Encoder and Decoder Test Circuit426.2LED at VT Pin426.3FM Wireless Module Testing436.4LCD Connection to PIC16F877A446.5LCD Displaying Data456.6(a)LED 1 Lights Up456.6(b)LED 1 & 2 Light UP466.6(c)LED 1, 2 & 3 Light Up466.6(d)LED 1, 2, 3 & 4 Light Up46

xiLIST OF TABLESTABLE NO.TITLEPAGE1.1Standard LCD Character Table84.1(a)PIC16F877A Pin Assignments214.1(b)PIC16F877A Pin Assignments (Continuation)224.2Common LCD Command314.3Pin Assignment of LCD32

xiiLIST OF APPENDICESAPPENDIX NO.TITLEPAGEAHT12E Encoder Data Sheets52BHT12D Decoder Data Sheets57CPIC16F877A Data Sheets63DLCD Data Sheets68ETransmitter Data Sheets72FReceiver Data Sheets75GCircuits78HProgram80IUser Manual83JProject Photos88

CHAPTER 1INTRODUCTION1.1LITERATURE REVIEWOne of the most frequent natural disasters that hit our country is flood. In themost recent flood incident that hit this country, millions worth of properties andhundreds of lives are sacrificed. This scenario is a norm when flood happens becausethe people are not aware of the incoming disaster.Some kind of safety measure must be taken to warn the people once the waterstarts to accumulate outside the house. A water alarm can be used to notify thepeople about the danger that’s coming. The water alarm detector is a self-containedelectronic device that sounds an alarm when its sensor is in contact with water. Thereare two types of water alarm detectors—passive and active. The passive detector usesa 9-volt batteryThe moisture sensor is placed on the floor and activates the alarm when itbecomes wet. Damp locations or high temperatures may reduce the life of the battery,so the detector should be checked regularly to see if it is working properly. Thesedetectors can be purchased at most home improvement stores.

2However, these alarms are permanently placed at the place where wateraccumulates and the alarm also sounds at the designated place. This type of alarm isnot so practical because the sound of the alarm may not be heard by the user. Hence,a portable type water alarm is more suitable for this purpose.1.2DESIGN OBJECTIVEThe objective of this project is to develop a portable water alarm detectorwith LCD display output, buzzer alarm and LED indicators for water level.The aim of the portable water alarm is to sense the accumulating wateroutside the house. At the same time, the alarm will alert the user about the waterlevel by using LCD display and LED indicators. A buzzer alarm will sound when thewater level reaches a critical level determined by the user.The height of water that will be displayed by the LCD can be changeaccordingly to the user’s need by programming. The LED indicators will light up oneby one according to the level of the water that is accumulating outside the house.EncoderTransmitterReceiverLCD DisplayDecoderPIC16F877ASensorsLED IndicatorBuzzerFigure 1.1: Block Diagram for Wireless Communication on Portable Water Alarm

31.3SCOPE OF PROJECTThe scope of this project is to:I. Produce a hardware for signal transmission and signal receivingII. To program a microcontroller to control different outputsIII. To encode and decode data to be sendIV. To use only a 9V battery as power supplyThis project consists of a few modules with sub modules. The following arethe modules and sub modules throughout the execution of the whole project:I. Project Researcha. Types of water alarm in the marketb. Type of wireless communications (Radio frequency(RF),Infrared etc)c. Microcontrollers (PIC16F877A)d. Encoders and DecodersII. Circuit Design, Testing & Assemblya. Wireless (Radio Frequency (RF)) communication modulesb. LCD Display using microcontroller PIC16F877Ac. Water Level Detector Circuitd. Alarm Circuite. LED displayIII. Software Developmenta. LCD display to indicate water levelb. Control the time the alarm soundc. Controlling the time of the LED emissionIV. Testing and Analysis

41.4THESIS OVERVIEWThis thesis is primarily concerned with the understanding and modeling ofelectronic components and programming. All the work done in this project ispresented in 7 chapters:Chapter 2 outlines the architecture used to implement the system. Thisincludes the water alarm’s water sensing methods and the communication protocol.This is important because it provides the basis for the implementation of the project.The architecture of each subcomponent in the system is described as it isimplemented in the system.Chapter 3 outlines the methodology used in the implementation of the project.This chapter includes the flow of the project development and the flow of theprogramming used in the project. This is one of the most essential part of the projectas it determines the whether the flow of the project is smooth or otherwise.Chapter 4 provides a description of the water alarm hardware and outputsystem used for this project. It briefly describes the physical structure of the wateralarm.Chapter 5 describes the software that controls for the output of the wateralarm developed for the project. It describes the software functionality as anintegrated system. The detailed subroutines program is also included.Chapter 6 covers various testing of each module used and also the integrationof the whole system. This is important to demonstrate modular development of acomplex system.Chapter 7 summarizes the overall project design and it’s future development.

CHAPTER 2PROJECT THEORY OF OPERATION2.1INTRODUCTIONDesign and building a portable water alarm requires high knowledge of aportable water sensor taking into account water sensing ability, communicationprotocols, alarm output and others. This chapter discusses elaborately the systemdesigns as they have been implemented in the final system design.2.2SENSING OF WATERThe sensors used in this project are made of conductors with highconductivity. Conductivity is the measure of the ease at which an electric charge orheat can pass through a material. A conductor is a material which gives very littleresistance to the flow of an electric current or thermal energy. Materials are classifiedas metals, semiconductors, and insulators. Metals are the most conductive conductorsand insulators (ceramics, wood, plastics) the least conductive.

6Figure 2.1: Conductors and InsulatorsThe sensor proposed to be used in this project is of the metals and alloys type.The sensors are to be made from aluminum or copper. One of the aluminum plateswill be connected to the power supply at one end and the other aluminum plate willbe connected to the encoder. When water comes in contact with the aluminum plates,electricity will flow through the water and activate the encoder.2.3 TRANSMISSION & RECEPTIONShort for Radio Frequency, RF refers to the frequencies that fall within theelectromagnetic spectrum associated with radio wave propagation. When applied toan antenna, RF current creates electromagnetic fields that propagate the appliedsignal through space. Any RF field has a wavelength thatis inversely proportionalto the frequency. This means that the frequency of an RF signal is inverselyproportional to the wavelength of the field.

7The RF signal is widely use in wireless telecommunication. The widebandwidth of the radio frequency (300kHz-3GHz) makes it easier to detect and thefrequency range can be easily adjusted without having to worry that the frequencytuned is out of range. Comparing to infrared signals, RF can penetrates obstaclesunlike infrared. The infrared will interrupted when any obstacle comes between thetransmitter and receiver. Bluetooth is another choice to replace RF for this projectsince Bluetooth, like RF, does not get interrupted by any obstacle that comesbetween the transmitter and receiver. However, the range cover by Bluetooth signalis very limited (around 10m- 15m).Hence, RF is the most ideal for the wireless signal transmission of this project.The range that can be covered by the RF is around 100m for AM and 150m for FM.Besides that, the RF transmitter and receiver are much cheaper than the other devicelike Bluetooth.2.4ALARM OUTPUTThe outputs of this project consist of:a. LCD Displayb. Buzzerc. LED IndicatorsShort for Liquid Crystal Display, LCD has the ability to display not justnumbers but also letters, words and all manner of symbols, making them a good dealmore versatile than the familiar 7-segment, light emitting diode (LED) display. Thefollowing table shows the standard LCD character table:

8Table 1.1: Standard LCD Character TableA buzzer is a device that emits sound when it is connected to the supply. Inthis project, the buzzer is only used when the water level reaches the critical level. Atthe other water level, the buzzer does not emit any sound.The LED indicators consist of 4 LEDs, each representing a water level. Eachof the LED will light up indicating the water level represented by the LED. Forexample, LED1 lights up to represent water level 1 and LED1 and 2 light up torepresent water level 2 and so on.

92.5OVERALL OPERATIONThis project as a whole demonstrates the importance of keeping track of thewater level when the water starts to accumulates. The transmission and reception ofdata from the water alarm to the output alarm requires careful construction so thatdata can be transmitted and received accordingly.On theory, the water alarm should only operate when water is sensed by thewater sensors. Then the data is transmitted to the alarm output where it will alert theuser about the condition.In detail, the circuit operation begins with the sensing of water by the sensors.The sensors are arranged so that they from 4 levels. One side of the sensor isconnected to the input supply and the other side is connected to the input of theencoder. The encoder will in turn encode the 4 bits of data and then transmit it to theoutput alarm.The received data is then decoded back into 4 bits data again. The decodedata are inputted into the microcontroller. The microcontroller will scan each of theinput pins of the microcontroller and when the conditions are fulfilled, the commandsinside the microcontroller will be executed.For example, when the input of the microcontroller is 0001, the LCD willdisplay the word “The Water Level is 0.1m” and LED 1 will light up and so on.When the input reaches 1111, the LCD will display “Danger! Critical Water Level”,all 4 LEDs will light up and the buzzer will sound. These different inputs willproduce different output to the alarm and LCD display.

CHAPTER 3METHODOLOGY3.1INTRODUCTIONThis chapter will cover the process involved in the development of theportable water alarm detector. The process involved in the development of theproject is very important so that the process is smooth without any difficulties. Theprocesses involved are under constant changes due to unexpected changes orcomplications. Flow of the development of the project is divided into 2 that are thehardware and software. The hardware part is divided into 2 parts that are the watersensor part and the output alarm part.

113.2FLOW CHART FOR PROJECT DEVELOPMENTGet TitleLiteratureReviewCircuit cessYesDemonstration&ReportFigure 3.1: Flow Chart for Project DevelopmentNo

12The project begins with literature reviews of the project. The literaturereviews will investigate and comment about the current water alarm detector in themarket. The literature reviews will help to produce a project that is not yet availablein the market. After the literature review, the project will continue with the circuitdesign of the water alarm. With the information gotten from theliterature review,the circuit can be design from various parts of projects done. The combinations of allthese circuitry from the literature review, a new circuit can be produced.A circuit simulation using software is done after the circuit design to ensurethat the circuit can work according to the required specifications. It is also to ensurethat the current and voltage in the circuit is not to large so that it will not spoil thecircuit. If the simulation is successful, the project continues with hardware andsoftware development. If not the circuit simulation is continued until it is successful.After the hardware is built and the program is written, the hardware andprogram undergoes testing. If the testing is successful, the project is demonstrated tothe panel. However, if the testing fails, the hardware built and the program writtenwill be re-tested again until it is successful.

133.3FLOW CHART FOR HARDWARE TEDENDFigure 3.2: Flow Chart for Water Sensor Operation

14STARTDATARECEIVEDDATADECODEDDATATRANSMITTED TOPORT CEXCEEDWATERLEVEL?DISPLAY WATERLEVEL IN LCD ANDLEDNONOYESNEWDATARECEIVED?BUZZERONFigure 3.3: Flow Chart for Output Alarm DevelopmentYES

15The hardware development starts with the development of the water sensorpart. Once water is sensed, the data is encoded and then transmitted to the outputalarm circuit. The received data in turn is decoded and transmitted into the PORT Cof the microcontroller.The decoded data will then run the command in the microcontroller. Then thecommand will activate the LCD, LED and the buzzer if necessary. The processcontinues until the system is reset by the user.3.4FLOW CHART FOR SOFTWARE DEVELOPMENTOpenPBasic ProProduce.psp FileAssemble&CompileUsingPICBASIC re 3.4: Programming Flowchart

16The projects programming can be written using 2 methods that are usingassembly language or high level language. However, for this project, high levellanguage is used. The high level language wi

a portable type water alarm is more suitable for this purpose. 1.2 DESIGN OBJECTIVE The objective of this project is to develop a portable water alarm detector with LCD display output, buzzer alarm and LED indicators for water level. The aim of the portable water alarm is to sense the accumulating water outside the house.

Related Documents:

Alarm 1 is a ‘Sound Once’ alarm, and Alarm 2 is an ‘Everyday’ alarm. Alarm 1 Setting/Alarm 2 Setting Press the ‘Alarm 1’ button (Ref.4) or ‘Alarm 2’ button (Ref.5) to activate alarm settings. ‘OFF’ will begin lashing on the screen. Select Alarm 1 or 2 b

Abernathy, David 09 Mar. 1851 Pennsylvania 03 Jan. 1925 Linn Loeper 057-1850 D2299 Abernathy, Howard Leslie 23 Aug. 1920 Canada 07 Dec. 1931 Linn Brown C57-0615 D2646 . Allen, Bessie H. 23 Nov. 1892 Iowa 01 Aug. 1939 Linn Unknown 57C-0446 D2903 Allen, Clara Adah 07 Dec. 1860 Pennsylvania 16 May 1937 Linn Stephenson C57-0208 D2835

DCA-B-90R MK 1 Type C heat detector DFE-90D Type D heat detector DFG-60BLKJ Type B heat detector SPA-AB Beam type smoke detector SIH-AM Ionisation smoke detector SLK-A Photoelectric smoke detector SLG-AM MK 1 Photoelectric smoke detector HF-24A MK 1 Ultraviolet smoke detector YBC-R/3A Plain – non indicating base .

2. Open the alarm test valve. Verify that the sprinkler alarm bell and/or the pressure alarm switch/ electric alarm properly actuate. Close the alarm test valve and verify that water has ceased to flow from the alarm line drain. 3. Clean the 20 NB (3/4”) strainer provided on the sprinkler alarm bell line. 4. Clean the strainer of restriction .

DNR Duct Detector FSC-851 IntelliQuadTM Multi-Criteria Detector XCD Gas Detector FMM-1 Monitor Module XP Series Multi-Module PRN-6 Printer ACM-24AT FSL-751 VIEW Detector FAPT-851 Acclimate Plus Detector FST-851 Thermal Detector NBG-12LX Addressable Manual Pull Station FZM-1 2-Wire Detector

Run Card Requirements Continued Structure Fire goes to 7th Alarm and all 7 Alarm and all 7 Alarms are required. Brush Fire goes to 7th Alarm and all 7 Alarm and all 7 alarms are required. All other incident types can go to 4th Alarm Alarm and minimum of 2nd alarm is required.alarm is required. When a Compan

Setting the Alarm 1. Press knob to turn ON alarm 2. Alarm time will begin to flash, adjust by rotating knob, press knob to select. (Alarm will automatically set to last selected alarm time after 6 seconds) 3. Press knob to turn OFF alarm In Single Day Alarm On Mode: alarm time will reset to 6:

day I am going to buy a car just like that.'' He thei1 explained : ''You see, mister, Harm can't waJk. I go downtow11. and look at' all e nice Tiiii;-J(S in the store window, and come home and try tc, tell Harry what it is all about, but r tell it very good. Some day J am going to make