Low-Cost Wireless High Water Detection System - Free Download PDF

1m ago
2 Views
0 Downloads
1.83 MB
39 Pages
Transcription

Low-Cost Wireless High WaterDetection SystemA Design Project ReportPresented to the School of Electrical and Computer Engineering of Cornell Universityin Partial Fulfilment of the Requirements for the Degree ofMaster of Engineering, Electrical and Computer EngineeringSubmitted byChen-hang YenMEng Field Advisor: Bruce LandDate: January, 2014

MEng Design ReportChen-hang YenAbstractMaster of Engineering ProgramCornell UniversityDesign Project ReportProject Title: Low-Cost Wireless High Water Detection SystemAuthor: Chen-hang YenAbstract:This design project aims to create an inexpensive flood detection system to monitor risingwater in remote locations or residential areas. The high water detection system dividesinto two parts: water sensing unit and data display unit. Both subsystems are based onthe ATmega 328P microcontroller and they are communicating wirelessly via radiofrequency (RF) transceivers. Additionally, several custom-built modules, including watersensors, charging regulator, and status board, are designed to support moisture detection,power management, and information display.1

MEng Design ReportChen-hang YenExecutive SummaryThis design project is created to reduce flood damages and to combat increasing flood risks inremote areas, particularly places without cellphone signal coverage. The principle of most highwater detection systems is similar, which includes moisture sensing and communication. The goalof the project is to devise a wireless flood detection system with low power consumption and simpledesign.The water detection system contains a transmitter subsystem and a receiver subsystem. Thetransmitter subsystem is consisted of the following modules: Low-power microcontroller board – 3.3 volt Arduino Pro Mini board supervises alltransmitter system activities RF transmission element – 2.4 GHz transceiver relays raw data to the receiver subsystem Power management board – Customized MCP73877-based board to regulate power supplyand charging process Water sensors – Basic water sensing components to detect rising water at multiple levelsThe self-powered transmitter subsystem can be installed at most outdoor locations.On the other hand, the receiver subsystem requires external power source. It is comprised of thefollowing modules: Stable microcontroller board – 5 volt Arduino Uno board processes incoming data andtriggers appropriate responses RF transmission element – 2.4 GHz transceiver captures raw data and sends tomicrocontroller for processing Information display board – LED-based notification board provides latest water levelupdate to users Siren component – Plain buzzer offers acoustic warning to signal any flood risksOverall, the cost of materials is less than 60 and it delivers comparable functionalities as manyexpensive flood detection devices.2

MEng Design ReportChen-hang YenTable of Contents1Introduction . 51.12System Design . 52.1High-Level Design . 62.2Hardware Design . 82.2.1Low-Power Microcontroller Boards. 82.2.2Power Management Module. 112.2.3Water Sensor Module . 132.2.4RF Transceiver Module. 142.2.5Information Display Module . 152.2.6High Water Siren Module . 152.3345Design Alternatives . 5Software Design . 162.3.1Transmitter System. 172.3.2Receiver System . 17Implementation. 193.1PCB Fabrication . 193.2Transmitter System Integration. 213.3Receiver System Integration . 223.4Alternative Receiver System Implementation Method. 223.5Populated PCBs. 24Testing and Results . 254.1Prototype Testing . 264.2Field Testing . 27Conclusion . 285.1Future Improvement . 286Acknowledgement . 287References . 298Appendix . 318.1Appendix A - Arduino Sketch for the Transmitter System . 318.2Appendix B - Arduino Sketch for the Receiver System . 338.3Appendix C - Project Cost . 378.4Appendix D - Systems Demonstration . 383

MEng Design ReportChen-hang YenList of FiguresFigure 1: Design overview . 6Figure 2: Transmitter system flowchart . 7Figure 3: Receiver system flowchart . 8Figure 4: Anatomy of standard Arduino microcontroller board . 9Figure 5: Arduino Uno . 9Figure 6: Arduino Pro Mini . 10Figure 7: LiPo battery - 3.7V 2500mAh . 11Figure 8: Solar panel - 6V 2W . 12Figure 9: MCP7833-based power management circuit . 12Figure 10: Design concept for water sensor module . 13Figure 11: Commercial moisture sensor . 13Figure 12: Customized water sensor module . 14Figure 13: nRF24L01 2.4GHz Wireless Transceiver . 14Figure 14: Information display circuit . 15Figure 15: 9012 Transistor Driver Buzzer . 15Figure 16: Arduino IDE . 16Figure 17: Logic diagram for coding transmitter system . 17Figure 18: Logic diagram for coding receiver system . 18Figure 19: PCB layout of the power management circuit . 19Figure 20: PCB layout of the information display circuit . 19Figure 21: InstantDFM check for the power management PCB . 20Figure 22: InstantDFM check for the information display PCB . 20Figure 23: Implementation diagram for the transmitter system . 21Figure 24: Implementation diagram for the receiver system . 22Figure 25: Schematic design of the receiver Arduino shield . 23Figure 26: PCB layout of the receiver Arduino shield. 23Figure 27: Power management boards . 24Figure 28: Information display boards . 24Figure 29: Arduino shield. 25Figure 30: Serial monitor via PuTTY . 25Figure 31: Transmitter system prototype . 26Figure 32: Receiver system prototype. 26Figure 33: Field test location . 274

MEng Design ReportChen-hang Yen1 IntroductionDue to rapid climate change in recent decades, an increase in the severity of flood-related damagesis observed. This causes serious destruction to residential properties and it also threatens publicsafety, particularly residents in the coastal regions or in the areas with heavy rainfalls. The FederalInsurance and Mitigation Administration (FEMA)’s National Flood Insurance Program (NFIP)estimates that total losses due to six-inch flood are approximately 20,000 per 1,000 square foothome [1]. Although several commercial flood warning systems are currently available, many ofthem are either expensive or unable to identify multiple water levels. In fact, some water detectiondevices are triggered by a single event and their alerts are broadcasted via a buzzer. However itis often too late for people to protect their belongings and evacuate to safe ground if their floodwarning appliance is solely activated by a certain water level without pre-flood warning.The goal of this design project is to create a low-cost wireless high water detection system thatsenses rising water in real time and determines any potential flash floods. The current designincludes a solar-powered water recognition system wirelessly transmitting sensor data to a receiversystem via radio frequency (RF) transceivers.1.1 Design AlternativesThere are numerous ways to detect water levels and notify flood risk. Callaway, Frechette, andTrapp’s winning flood warning station used two sensors to detect specific water levels and triggereda strobe siren when flash flood was identified [2]. National Weather Service (NWS)’s flood warningsystems manual offered a range of high water notification solutions which can be implemented atvarious locations, including reservoirs, streams, and local communities [3]. A wide selection ofcommercial water detection products were also obtainable online [4]-[6].Despite countless design possibilities, flood recognition systems typically consist two components– identification and communication [3]. This design project aims to provide an inexpensive methodto advising possible floods for residents in the remote areas where cellphone signal coverage isusually absent.2 System DesignThe solar-powered flood detection system with RF transceiver is divided into two parts, transmittersystem and receiver system. They are crafted to address the following design considerations: Total cost of materials is less than 70Transmitter system needs to be self-powered with low power consumptionWater sensors need to detect multiple water levelsSensor data can be transmitted and displayed via wireless mediumA display module is required to show water levels and transmitter status in real timeA high water warning indicator to inform user any flood risk5

MEng Design ReportChen-hang Yen2.1 High-Level DesignFigure 1 demonstrates the high-level system design concept. A portable transmitter system withsolar charging feature wirelessly sends water level data to a stationary receiver system. As waterrises, the mounted sensors detect appropriate water level, then the transmitter system compliesand relays raw data via a RF module, and finally the receiver system interprets incoming datasignal and displays real-time information on a dashboard.In this project, the transmitter system is powered by a solar panel coupled with a high-capacityLithium polymer (LiPo) battery to reduce touch maintenance. A compact RF package is alsoemployed to enhance wireless transmission distance.Figure 1: Design overview6

MEng Design ReportChen-hang YenTo reduce maintenance requirement, the transmitter system utilizes a low-power microcontrollerboard, simple water detection circuits, sturdy RF transceiver package, and a power managementmodule to regulate distribution of harnessed solar power. Figure 2 shows the transmitter systemflowchart. Simplicity and power saving are two key focuses in designing the transmitter system.Therefore, microcontroller is operating at the minimum clock speed and is directly transmittingraw data, gathered from water sensor module, to the receiver system.PowerManagementModuleSolar Power(sunlight)WirelessSignalsWater SensorModuleLow-PowerMicrocontrollerBoardRF TransceiverModuleWater LevelRaw DataFigure 2: Transmitter system flowchartReliable data interpretation and real-time event notification are crucial to the receiver systemdesign. Figure 3 shows the receiver system flowchart. In this part, the receiver microcontrollerboard processes all incoming data and illuminates corresponding light emitting diodes (LEDs) onthe information display board to report current water level and transmitter status. The floodwarning module is activated when the system detects persistent high water level. Also, the receiversystem automatically resets the display module as soon as water level recedes below the sensorline.7

MEng Design ReportChen-hang YenDC PowerSourceWirelessSignalsRF TransceiverModuleRaw ood WarningModule(buzzer)Figure 3: Receiver system flowchart2.2 Hardware DesignThe following subsections describe hardware design and materials selection.2.2.1 Low -Power M icro controller B oardsMicrocontroller is the brain of this design project. Microcontroller, a miniature computing chip,enables electronic systems to perform complex logical calculations. Among various microcontrollerintegrated circuits (ICs), Arduino microcontroller is chosen to be the main processor of bothtransmitter and receiver components.Equipped with the ATmega 328P, Arduino microcontroller boards are known for their versatility,wide range of applications, and well-documented software libraries. Many believe there is anArduino board for any circuit project.All Arduino microcontroller boards are operating at either 5 volts or 3.3 volts. Figure 4 illustratesbasic anatomy of an Arduino microcontroller board.8

MEng Design ReportChen-hang YenFigure 4: Anatomy of standard Arduino microcontroller boardGiven its stability and durability, the receiver system uses Arduino Uno as the main computingresource for interpreting constant data inputs and communicating real-time information. Figure 5is a diagram of Arduino Uno and Table 1 represents its hardware specification [7].Figure 5: Arduino Uno9

MEng Design ReportChen-hang YenArduino Uno SummaryMicrocontrollerPhysical DimensionOperating VoltageInput Voltage RangeAnalog Input PinsDigital I/O PinsDC Current per I/O PinMax Clock SpeedATmega 3282.7” x 2.3”5V6 – 20 V61440 mA16 MHzTable 1: Arduino Uno - hardware specificationUnlike the receiver system which has a steady power source, the transmitter system acquires itspower source from the solar panel with a backup LiPo battery. Thus, it is important to pick anArduino model with small footprint and minimum power consumption. From Equation 1, power(P) is directly proportional to current (I) when voltage (V) remains the same.(1)This means that higher current in a circuit board normally consumes more power with constantvoltage supply.𝑃𝑃 𝐼𝐼 𝑉𝑉Monk’s Arduino book offers a power consumption table, as shown in Table 2, for several Arduinomicrocontroller boards [8].Arduino Power ConsumptionsUno (5V USB)Uno (9V power supply)Due (5V USB)Due (9V power supply)Pro Mini (9V power supply)Pro Mini (5V USB)Pro Mini (3.3V direct)47 mA48 mA160 mA70 mA42 mA22 mA8 mATable 2: Power consumption comparison for selected Arduino modelsClearly, Arduino Pro Mini (3.3V) is the best microcontroller candidate for the transmittersystem. Figure 6 is a diagram of Arduino Pro Mini and Table 3 represents its hardwarespecification [9].Figure 6: Arduino Pro Mini10

MEng Design ReportChen-hang YenArduino Pro Mini (3.3 V) SummaryMicrocontrollerPhysical DimensionOperating VoltageInput Voltage RangeAnalog Input PinsDigital I/O PinsDC Current per I/O PinMax Clock SpeedATmega 3281.3” x 0.7”3.3 V3.35 – 12 V81440 mA8 MHzTable 3: Arduino Pro Mini (3.3V) - hardware specification2.2.2 Power M anagem ent M o duleKeeping constant power supply to the transmitter system is extremely critical. The powermanagement module transfers solar power into electricity and ensures continuous system operationby using an efficient solar panel, a LiPo battery, and a Lithium-ion/LiPo charge managementcontroller.Since it would be difficult to frequently update the transmitter system’s power supply, capacityrating must be considered when selecting a rechargeable battery for the transmitter system.Equation 2 offers a quick estimation of battery life based on battery’s capacity rating and totalcurrent 𝐶𝐶𝐶𝐶𝐶 𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅 𝑜𝑜𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇 𝐶 [𝑚𝑚𝑚𝑚] 24 []𝑑𝑑𝑑𝑑𝑑𝑑From this equation, battery life improves when using a battery with

of the project is to devise a wireless flood detection system with low power consumption and simple design. The water detection system contains a transmitter subsystem and a receiver subsystem. The transmitter subsystem is consisted of the following modules: • Low-power microcontroller board 3.3 volt Arduino Pro Mini board supervises all –