team 15. code modules web server interface and operating parameters chemical level detection...

9
Software Design Considerations Team 15

Upload: ronald-clarke

Post on 01-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Team 15. Code Modules Web Server Interface and Operating Parameters Chemical Level Detection Calibration Routine Adjusting Agent Calculation Chemical

Software Design Considerations

Team 15

Page 2: Team 15. Code Modules Web Server Interface and Operating Parameters Chemical Level Detection Calibration Routine Adjusting Agent Calculation Chemical

Code ModulesWeb ServerInterface and Operating ParametersChemical Level DetectionCalibration RoutineAdjusting Agent CalculationChemical Introduction Routine

Page 3: Team 15. Code Modules Web Server Interface and Operating Parameters Chemical Level Detection Calibration Routine Adjusting Agent Calculation Chemical

Web ServerUse web server embedded in micro to view

data and change parametersWill be able to view database of Ph, Cl, and

temp levelsAlso can view if any tanks are emptyCan change Pool Volume, desired Ph and Cl

levels, and desired temperature.

Page 4: Team 15. Code Modules Web Server Interface and Operating Parameters Chemical Level Detection Calibration Routine Adjusting Agent Calculation Chemical

Interface and operating parametersPerforms functions much like Web Server,

however changes can be made from the unit.Unit will display latest Ph, Cl, and temp levels

on an LCDSame parameter changes can be made from

the Unit as can be made on Web Server.

Page 5: Team 15. Code Modules Web Server Interface and Operating Parameters Chemical Level Detection Calibration Routine Adjusting Agent Calculation Chemical

Chemical Level DetectionUsing the ATD channel get a voltage reading

that corresponds to a Ph, Cl, or temp levelWater will be pumped into a chamber where

the measurements take place

Calibration RoutineUsing two buffer solutions, create a linear

function for the Ph Sensor.

Page 6: Team 15. Code Modules Web Server Interface and Operating Parameters Chemical Level Detection Calibration Routine Adjusting Agent Calculation Chemical

Adjusting agent calculationWe will use a formula found online that will

calculate how much Ph and Cl adjuster will be needed to introduce.

Chemical Introduction RoutineChemicals will be pumped into pool and

measured as they are introduced.

Page 7: Team 15. Code Modules Web Server Interface and Operating Parameters Chemical Level Detection Calibration Routine Adjusting Agent Calculation Chemical

Main

Hierarchical Block Diagram

Calibration Routine

Chemical Introduction Routine

Adjusting Agent

Calculation

Ethernet

RTI SPI ATD

Web Server

Push Buttons

LCDChemical

Level Detection

Page 8: Team 15. Code Modules Web Server Interface and Operating Parameters Chemical Level Detection Calibration Routine Adjusting Agent Calculation Chemical

Start

Main State Machine

Variable Parameters:Desired CLDesired PhDesired TemperaturePool Volume

Saved Data:Archive of Ph and Cl valuesVoltage reading for Ph meter

Web Server(view data

and set parameters)

Push Buttons

Scroll through menus andAdjust values

LCD Output

Time for calibrati

on?

Yes

No

Introduce buffer

solution 1

Introduce buffer

solution 2

Save recorded voltage

Save recorded voltage

Time to measure chemical levels?

No

Yes

Meaure Cl and Ph

Calculate amounts to introduce

Introduce chemicals

Variable Parameters

Variable Parameters

Page 9: Team 15. Code Modules Web Server Interface and Operating Parameters Chemical Level Detection Calibration Routine Adjusting Agent Calculation Chemical

Questions?