ENVIT:
Software Tools for
Environmental Field Study
Hydrologic Modeling
Hardware & Field Equipment
User Interface
HydroLab Probe
GIS / GPS
ENVIT:
Hydrologic Modeling
Division
Anna Leos-Urbel
Kevin Richards
Eric Lau
The Hunter River Basin
Water Quality Background
November 1991 – 1000km toxic algal
bloom along Barwon and Darling rivers
in New South Wales
 Summers 1991-1993 – non-toxic algal
blooms in Grahamstown Reservoir
 Australia spends $142-168 million per
year on monitoring quality

Main Quality Factors
Turbidity
 Salinity
 Nutrients (N, P)
 Blue-green algae (cyanobacteria)
 Fecal Coliform

Strategies

Extensive monitoring
– HITS
– Hunter Water Corporation
Hunter Salinity Trading Scheme
 Contingency plans
 Prevention measures

Sampling Locations





Tillegra Dam Site
Chichester Dam
Glen Williams Site
Boags Hill/Seaham
Weir Site
Nerrigundah
Sampling Agenda
Turbidity, Conductivity, Chlorophyll-a
 Nitrate, nitrite, ammonia
 Organo-phosphate
 Total Iron
 Silica
 Cyanobacteria
 Fecal Coliform

Assessment Against Guidelines
Tillegra
Turbidity
Medium
Conductivity Low
Coliform
Medium
Total N
Medium
Total P
High
Chlorophyll
Low
Cyanobacteria -
Glen
Low
Low
Low
Medium
Medium
Low
-
Boags Hill
Medium
Low
Low
Medium
High
Low
Low
Expected Range of Results
(January)
Turbidity (NTU)
Conductivity
Tillegra Glen
8
8
150
175
Boags Hill
8
175
Coliform
400
175
0
Chlorophyll
4
1
7
Cyanobacteria -
-
~500
(μS/cm)
(cfu/100ml)
(μg/L)
(cell/ml)
Average Results (year)
Glen
0.03
Boags Hill
0.07
Nitrite (mg/L) <0.01
Ammonia
0.02
<0.01
0.03
0.01
0.06
Phosphorus N/a
N/a
0.021
Silica (mg/L)
Iron (mg/L)
12.8
0.36
12.1
1.25
Nitrate
(mg/L)
Tillegra
<0.01
(mg/L)
(mg/L)
10.6
0.14
ENVIT:
Hardware Division
Jamie Brady
Trisha McAndrew
Laura Rubiano Gomez
Advisor: Richard Camilli
Project Description






Protective Cover (GPS/iPAQ/Expansion
Pack/Cables)
External battery for HydroLab/iPAQ
Power meter
Flow meter modification
Calibration materials and guidelines for field
equipment
Parameters for manual probe GUI
ENVIT Power System
Water-proof Casing

Aquapac
– Modified to
accommodate cables
Power Jack
Hydrolab
External Battery Pack

Hydrolab powerpack
– DC-DC converter


Connects the system
Power meter
External Battery Pack

Connects iPAQ and
HydroLab to power
source
Power Meter




Circuit Design
Determine:
– Voltages when 95%, 60%, 20% and 10% of
power remaining
Use above voltages to find:
– Resistor values for R1-R6
– Potentiometer value
– Zener diode value
Put circuit board together
Power Pack Monitor
R1
R2
1000
12v
R1 = 169 K
green
P1
R3
1000
amber
R4
1000
+12v
1000
R6
Z1
red
R3 = 11 K
R4 = 11.3 K
amber
R5
R2 = 499 K
R5 = 9.09 K
R6 = 249 K
Values for the six resistors (R1- R6)and potentiometer (P1), are based on the voltage reference
value chosen for the zener diode (Z1) and assuming an input current range for the operational
amplifiers of between 1A and 100A. The op-amp used is a quad-input National Semiconductor
LM324. (http://www.national.com/ds/LM/LM124.pdf.)
ENVIT Power Pack Monitor
Flowmeter
Biology Kit

Parameters:
– E. coli
– Total Coliform
Spectrophotometer



Figure out how it
works!
Determine elements
we can test for
Order necessary
supplies for tests
and calibration
Spectrophotometer

Parameters:
– Ammonia
– Nitrate (LR, MR)
– Nitrite
– Phosphate
– Silica
Future Improvements
Design a waterproof casing for battery
 Better arrangement of wires coming out
from battery pack
 Larger Aquapac or other protective
cover to facilitate removal of iPAQ

ENVIT:
User Interface Division
Amy Watson
Nancy Choi
Kim Schwing
ENVITNote



Environmental software application for handheld, portable computers to be used directly
for gathering and storing data (an electronic
journal).
Record environmental and geolocational data
automatically in the field.
Applications for hydrology sampling, water
quality sampling, field mapping (GIS) and
positioning (GPS).
The User
Who is the user?
 What are the user’s goals?

Graphical User Interface (GUI)
“A program interface that takes
advantage of the computer’s graphics
capabilities to make the program easier
to use. Well-designed graphical user
interfaces can free the user from
learning complex command languages.”
(www.pcwebopedia.com)
GUI Group Deliverables
User and Project setup
 Control screens
 Interaction with database
 Computation applications

User Centered Design
“Simple is better”
 Programs that flow logically
 Understandable format
 Standardize functionality

Visual Basic





Microsoft developed programming language
and environment.
Based on the BASIC language
Provides a graphical programming
environment and a paint metaphor for
developing user interfaces.
Do not need to worry about syntax details
Can add code by dragging and dropping
controls and then defining their appearance
and behavior.
Microsoft eMbedded Visual
Tools 3.0


The Microsoft® eMbedded Visual Tools 3.0
delivers a complete desktop development
environment for creating applications and
system components for Windows® Powered
devices, including the Pocket PC and
Handheld PC.
The eMbedded Visual Tools include eMbedded
Visual Basic® and eMbedded Visual C++®,
including SDKs for the Pocket PC, Palm-size
PC, and Handheld PC.
Components of the GUI
Welcome
 Login
 Instrument Identification
 Control Form – tab strip format
 Menu Bar Options

E N V IT N o te : P o c k e t P C A p p lic a tio n
U s e r In te rfa c e F lo w C h a rt
Ic o n
M e n u B a r Ite m s
E N V IT
C o n v e rte r
F o rm
W e lc o m e
F o rm
E N V IT
G ra p h e r
F o rm
L o g in F o rm
E N V IT
C a lc u la to r
F o rm
In s tru m e n t
ID F o rm
E N V IT
S o lv e r
F o rm
C o n tro l
F o rm
H e lp F o rm
T a b S trip Ite m s
E n d F o rm
H y d ro L a b
F ra m e
S tre a m F lo w
F ra m e
C h e m is try
F ra m e
B io lo g y
F ra m e
V ie w
S e c tio n
F ra m e
V ie w
S e c tio n
F ra m e
G P S F ra m e
G IS F ra m e
E N V IT G P S
F o rm
A rc P a d
F o rm
E x it
H y d ro L a b
C a lib ra te
F o rm
H y d ro L a b
M anual
In p u t F o rm
H y d ro L a b
R e c o rd
F o rm
H y d ro L a b
C o n fig u re
F o rm
S tre a m flo w
In p u t F o rm
C o m m e n ts
F ra m e
ENVITNote Demonstration
ENVIT:
HydroLab Probe Division
Arthur Fitzmaurice
Chrissy Dobson
Lisa Walters
Tasks
Provide “black box” of device
 Enable serial communication between
iPAQ and HydroLab
 Enable user to calibrate HydroLab
sensors and collect water quality data
 Provide user with error and range check

Progression of the
Hydrolab GUI





Read HydroLab manual
Developed preliminary list of parameters and
units
Researched calibration requirements
Created GUI for calibrating parameters,
taking measurements, and displaying data
Developed list of ranges for each parameter
and possible errors
Parameters and Units
Chlorophyll (g/L)
 Conductivity (mmHg,

psia)
– Salinity (ppt)
– Specific Conductance
(ms/cm)
– Resistivity (k-cm)
– Total Dissolved Solids
(g/L)
Depth (m, ft, psi)
 Dissolved Oxygen

(mg/L, %Sat)
pH
 Temperature (K, F, C)
 Turbidity (NTU, V)

When to Calibrate the Sensors
Factory calibrated
 Site –specific
 Frequency of deployments

How to Calibrate a Sensor
Example: Dissolved Oxygen

Select parameter: Dissolved Oxygen
– Temperature does not require calibration

Prepare sensor for calibration
– Instructions for calibration preparation in user
manual
Choose %Sat
 Enter barometric pressure

(mmHg)
How to Take a Measurement
Example: Dissolved Oxygen
Select parameter: Dissolved Oxygen
 Select units: % saturation, mg/L
 Multiple samples?

– Enter sampling time and units (i.e. seconds,
minutes, hours, days)
– Enter time interval and units
Potential Errors

Hydrolab off or improperly connected
Serial port in use by other application
Battery not attached or not enough power
Parameter called by user not available on specific
Hydrolab
Parameter called by user not calibrated
Calibration expired or not available for parameter
Hydrolab data not within valid range

Time interval greater than total sampling time






HydroLab GUI
Progression of Serial
Communication
Researched serial communication
 Set up serial connection
 C++ code for each function

Linking the User to the Hydrolab
Decision
By User
Data Sent
to User and
to Database
Decision
Translated
Into Query
Query sent from
control program (master)
to hydrolab (slave)
Response
Translated
Into Data
Components
Response sent from
hydrolab (slave) to
control program (master)
Communication
Query
Slave
Master
Response
Queries of Interest to the User

Setup queries
– Select parameter units
– (Choose other display options )

Calibration queries
– Calibrate parameters for use at specific site

Report data queries
– Collect and log data
Format of the Query
Query = msg + CRC(msg)
msg = Query definition
CRC(msg) = error check function
msg Composition
msg = address1 + function2 (+ sub-function
+ sub-sub-function) 3 + data byte size4 +
data5
1. Address is unique to hydrolab
2. Function is decision-specific
3. Sub-functions are parameter-specific
4. Data byte size is function- and sub-functionspecific
5. Data is function- and sub-function-specific
1. Acquiring Hydrolab Address
QUERY
5 bytes
Slave (broadcast) Address 00
Function
40
Data Block Size
00
CRC Error Check
___
msg = Slave Address + Function + Data Block Size + Error Check
2. Function Designation
Report Slave ID
40
Report Parameter Setup
49
Execute Parameter Setup
4A
Report Parameter Calibration
4B
Execute Parameter Calibration 4C
Report Parameter Data
4D
3. Sub-function Designations


Sub-function = Parameter (1 to P)
Sub-sub-function:
a) Parameter Setup
Setup Variable
(1 to N)
b) Parameter Calibration Calibration Value
(1 to C)
2. Function Designation
Report Slave ID
40
Report Parameter Setup
49
Execute Parameter Setup
4A
Report Parameter Calibration
4B
Execute Parameter Calibration 4C
Report Parameter Data
4D
msg Composition
msg = address1 + function2 (+ sub-function
+ sub-sub-function) 3 + data byte size4 +
data5
1. Address is unique to hydrolab
2. Function is decision-specific
3. Sub-functions are parameter-specific
4. Data byte size is function- and sub-functionspecific
5. Data is function- and sub-function-specific
Query Message
QUERY
5 bytes
Slave Address
00
Function
40
Data Block Size
00
CRC Error Check
___
Response Message
RESPONSE
60 bytes
Slave Address
aa
Function
40
Data Block Size
37
Manufacturer String
%16s
Serial Number
%8s
Model String
%16s
Software Revision String
%5s
MODBUS Support Revision String %5s
CRC Error Check
___
ENVIT:
GIS/GPS Division
Brian Loux
Aurora Kagawa
Linda Liang
Advisors: Daniel Sheehan, Kan Liu
Project Description
Provide GPS data and reference maps
as part of field notebook
 Display collected data on reference
maps using GIS and edit as necessary

Conceptual Overview
GIS/GPS Project
GPS data
Local Database
Hydrolab / Stream
data
Reference
maps
Raw Data
Return results to
Database
Display as Map
On GIS
iPAQ
Server
Group Goals
Obtain GPS data and send to field
notebook
 Provide maps for field reference
 Display data from server database on
reference maps

Group Tasks

Write two scripts
– Obtain GPS data using ArcPad
– Display data in ArcPad
Create organization for data and
reference maps on iPAQs
 Set up and test all iPAQs

Results
Arcpad Scripts
 Data Collected and Processed (MEng)
 Shapefiles completed
 iPAQs organized and loaded

Program: GPSWrite2File

Takes in location from GPS unit and
stores it as a local file on the IPAQ
– Open GPS
– Stored as comma delimited file “gps.txt”
– File includes identifying keys
– Takes one reading every 5 seconds for 5
minutes
– .txt file accessed by database
Program: AddPoint

A function that plots specified data
– User selects which measured quantity they
wish to see
– Each point represents a datum
– Background map of Australia
– Points show up on prewritten shapefiles
Data Collection
30 meter resolution data
 Processed by Kevin and Eric

Shapefiles
Required to plot
data
 Color Coded
 Prepared ranges

What Each iPAQ Will Need:







ArcPad version 6 beta 5
ArcPad scripts
GPS Receiver
Maps of Australia
Projection data
Shapefiles
GIS/GPS Folder structure
Structure of iPAQ data
GPS Files
GIS DB
My Device
My
Documents
GIS Map
GIS Shape
GIS
Shape2
Future Work in Cambridge
Fixing integration with database
 Loading and testing all iPAQs
 Field test December 14th
 Form backup strategy for files

Future Work in Australia

Evening preparation of data
– Clipping reference materials
– Reload iPAQs

Help others use ArcPad
Acknowledgements
 Enrique
Vivoni
 Richard Camilli
 Daniel Sheehan
 Sheila Frankel
 Don Frankel
 Kan Liu
 Rose
Liu
 Keyuan Xu
 Mario Rodriguez
 Neeraj Agarwal
 Ching-Hieu Tso
 Russ Spieler
ENVIT:
Software Tools for
Environmental Field Study
Hydrologic Modeling
Hardware & Field Equipment
User Interface
HydroLab Probe
GIS / GPS
Descargar

No Slide Title