Professional Documents
Culture Documents
TABLE OF CONTENTS
List of Figuresii
List of Tables......iii
Acknowledgementsiv
Chapter 1: Problem Statement....05
Chapter 2: Back Ground and Related Work.. .06
2.1: Terminologies........ 06
2.1.1: Regulator..........07
2.1.2: Pool..........07
2.1.3: Upstream......08
2.1.4: Downstream08
2.2: Current Irrigation System....08
2.2.1: Current Monitoring System..08
2.3: Planned Improvements in Monitoring System...............09
2.3.1: Meetings With PMIU10
2.4: Theoretical Background...10
2.4.1: Distant Downstream Control10
2.4.2: Saint Venant Equations.11
Chapter 3: Design and Implementation.....13
3.1: Project Site .13
3.1.1: Features of the Canal..............13
3.1.2: Location.............13
3.2: Overall System Design............. 15
3.2.1: System..15
3.2.2: Actuator. ...............15
3.2.3: Controller16
3.2.4: Sensor..16
3.3: Gate Actuator Setup.............17
3.3.1: System Level Diagram..17
3.3.2: Motor.................18
3.3.3: Motor Driver.........20
3.3.4: Simulink Controller...20
3.3.5: Linear Potentiometric Encoder.21
3.3.6: Power Supply....22
3.4: Sensor Module23
3.4.1: System Level Diagram...23
3.4.2: Sensor Selection24
3.4.3: Communication Device Selection.26
3.4.4: Microcontroller27
Chapter 4: Results.........29
4.1: Working Actuator and Sensor Module.......................................................................29
i
ii
Number
Page
1. Terminologies...06
2. Head regulator of Khaira distributary of BRB canal .......07
3. Water level measurement gauge at project site09
4. Open channel flow in trapezoidal channel..11
5. Google earth image of project site..14
6. Basic feedback system topology..15
7. Overall system design.16
8. System level view of gate actuator setup..17
9. Normal and geared coupler.18
10. The motor assembly19
11. The motor driver.20
12. Linear potentiometric encoder.21
13. The power supply22
14. System level diagram of sensor module23
15. Ultrasonic sensor Max Sonar EZ125
16. SIM 900 Module..26
17. Sensor Module.28
18. Sensor module at the site..30
19. Sensor readings from system ID experiment.32
LIST OF TABLES
5.1 Cost Analysis.. .33
iii
The authors wish to express sincere appreciation to Dr. Abubakr Muhammad for his
supervision during the course of this thesis work and in the preparation of this manuscript.
Thanks also to Mr. Hasan Arshad Nasir for his valuable contribution to the theoretical aspect
of the project.
We would also like to express our gratitude to Mr. HabibUllah Bodla, Chief Monitoring
PMIU (Programme Monitoring & Implementation Unit) for his support and help regarding
the project site.
iv
Chapter 1
PROBLEM STATEMENT
Pakistan has one of the largest irrigation systems in the world. Currently Pakistan's irrigation system
consists of a massive 90,000 km long network of canals.
Due to inefficient operation of the water networks in Pakistan, a large amount of irrigation water is
wasted, and adds to the shortage of water in the country. In this project, using cyber physical systems
and feedback control technique, we intend to implement the flow and level control of a canal which
will be more efficient and result in saving significant amount of water.
Many countries are in process of automating their irrigation system to save water and use it more
efficiently. Pakistan is also in a dire need of such a system which should not only save water but should
also be robust enough to work in the environment of Pakistan. In this project we intended to provide
gate automation and close the feedback loop to control the canal pools in a more efficient manner.
Once complete, the cyber physical system would be able to improve the current system on the
following lines.
Efficient monitoring
Chapter 2
BACK GROUND AND RELATED WORK
2.1: TERMINOLOGIES
Some commonly used terminologies related to canals are given below. These terms will be
frequently used in this document.
Fig 1: Terminologies
2.1.1: Regulator
Structure in a canal which is used to regulate the flow of water is called a regulator. It has gates
installed to control the water flow.
2.1.2: Pool
The water body between two consecutive canal regulators is called a pool.
7
2.1.3: Upstream
Upstream refers to the side of canal towards the source or against the direction of water flow.
2.1.4: Downstream
Downstream refers to the side of canal away from the source or in the direction of water flow.
12:30 pm 2:00 pm
12:00 pm 3:00 pm
11
12
Chapter 3
DESIGN AND IMPLEMENTATION
3.1: PROJECT SITE
We were allocated a canal by PMIU (Programme Monitoring & Implementation Unit) to conduct
our experiments on. We designed and implemented our gate automation system on the head regulator
of that canal.
3.1.2: Location
Khaira distributary is located near jallo Lahore. It branches off from BRB link canal just near the
head regulator of Lahore canal.
13
14
3.2.1: System
The system to be controlled in our case is a canal pool, to which the input is the gate height at the
head regulator and output is the water level downstream. It is a complex system, and the system
transfer function is to be extracted using system identification technique.
3.2.2: Actuator
The gates at the head regulator control the water flow in the pool. So they are used as the actuators.
We installed a motor at the gate to automate the gate control and therefore actuate the system. That
motor was connected to a computer to control the gate height..
15
3.2.4: Sensor
We used an ultrasonic sensor to sense the water level of the canal, and used a GSM module to
transmit the readings to the controller or head regulator.
So the overall design looks like the following
17
3.3.2: Motor
Usually the gates are operated manually in Pakistan. The regulators have a coupler attached to the
gates. A worker couples a handle to that coupler, and rotates it to open the gate. The gate is a very
heavy structure usually, so a gear ratio is used such that one hundred rotations result in a lifting or
lowering the gate by 1 foot.
We used our own couplers to couple the motor to the gate. We had two types of couplers, a normal
one and a geared one.
18
19
20
21
22
23
24
The sensor we chose was Max Sonar EZ1 by Max-Botix shown below.
25
project they can be used but if this system was to be implemented on any larger scale, it
would be too expensive to use them.
2. GSM Modules are also easily available and cost reasonable.
We chose GSM modules due to the following reasons.
1.
2.
3.
4.
We used SIM 900 module which is shown below. Zongs SIMs were used for the project.
26
3.4.4: Microcontroller
We used PIC 16F452 microcontroller in the sensor module. It communicates with the sensor using
RS232 protocol and acquires readings, then sends the reading in an SMS using the GSM module.
The microcontroller pseudo code is as under.
1. Acquire 100 readings from the sensor
2. Value=sum of the readings
3. Communicate with GSM module to send SMS to a phone number
4. Send value to GSM module as content of the text message
5. Wait for some time (in our experiments it was 1 minute)
6. Go to step 1.
27
28
Chapter 4
RESULTS
In this chapter, we will be presenting the results obtained so far during the course of this senior
project.
29
30
31
32
Chapter 5
COST ANALYSIS
ITEM
3 phase
AMOUNT
2
COST (Rs)
60,000
induction
DESCRIPTION
Automation of
gates
motors
Motor pedestals
10,000
20,000
& couplers
Assembly of
motors at the site
GSM modules
8,000
24,000
communication
Ultra-sonic
9,000
45,000
Water level
range sensor
measurement
NI DAQ
Solar panels
400
1,200
Used in sensor
module
Microcontrollers
350
1,050
Used in Sensor
modules
Li-ion battery
100
300
Power supply to
sensor module
Plastic boxes
500
1,000
Encapsulation of
sensor module
Total
152,550
33
Chapter 6
FURTHER WORK
This project just laid the foundations for a lot of work to be done on smart water grids in Pakistan.
First of all, thorough system identification experiments need to be carried out with more sensors and
longer experiment duration. Once the system is identified, the control systems theory is to be applied
to it, so that distant downstream control can be implemented and demonstrated.
This control project then can be used to improve the current irrigation system and to solve a lot of
water issues in Pakistan. Some of the useful fields of study branching out from distant downstream
control are:
Efficient monitoring
We hope that our work will be useful for these studies and that our project can serve as a basis to a
lot of future work done for the prosperity of Pakistan.
34
REFERENCES
[1] Nasir, H.A. & Muhammad, A. 2011, Towards a Smart Water Grid for the Indus River Basin,
Department of Electrical Engineering, LUMS School of Science & Engineering, Lahore, Pakistan
[2] Nasir, H.A. & Muhammad, A. 2011, Feedback control of very-large scale Irrigation networks: A CPS
approach in a developing-world setting, IFAC World Congress
[3] Litricio, X. & Fromion, V. 2009, Modeling and Control of Hydrosystems, Springer Verlag
35