Title: Aquatic Life System
1Aquatic Life System
BECAUSE FISH ROCK
Final Design Review - March 24, 2004
Zach Casper, Richard Dunkley, Blake Hunsaker, and
Paul Smart
2ALS Must Maintain/Monitor
- Water Level
- Feeding and Food Level
Reservoir
Embedded System
PC
Water Inlet Valve
Feeder
Temp Sensor
pH Sensor
Heater
Water Outlet Valve
Drain
Water Level Sensors
LCD
3Aquatic Life System (ALS)
- Embedded System
- Microcontroller
- (MC68HC11E0)
- External 32K Memory for
- program storage
- USB Module for serial interface
MC
Feeder Motor Control
Feed Control
Feeder Rotation Counter
Food Level Sensor
External Memory BQ4011 MA-100
Inlet (Fill) Valve Control
Water Level Control
Outlet (Drain) Valve Control
Water Level Sensors
pH Sensor
pH Control
A/D Converter
Temp Sensor
Temperature Control
Heater
LCD
- Aquarium / World
- 2 Analog Inputs
- 4 Digital Inputs
- 4 Actuators Outputs
- PC user interface and non-PC display
USB Module
4ALS Embedded System Schematic
5External (to board) Circuitry These circuits are
not on the printed Circuit board but are
necessary for operation
This is the reset circuit for the microcontroller
This circuit is a temporary solution to our
communications problem regarding the use of a
virtual com port with the loading programs. This
circuit replaces the USB interface with a simpler
serial port connection. It will only be used
until a suitable loader program can be found
will accommodate the USB module.
6- PCB Layout Using LAYOUT PLUS
- 2 Layers Silkscreen
7Printed Circuit Board Unpopulated
TOP VIEW
BOTTOM VIEW
8Motorola MC68HC11E0
- 5 Ports
- 8 Channel / 8 bit A/D Converter
- Integrated Serial Communications Interface
- 16 Bit Address Bus
- 8 Bit Data Bus
- 4.2V Min HIGH Out, -0.4V Max for LOW Out
- 3.5V Min HIGH Input, 5.3V Max HIGH Input
- 1.0V Max Low Input, -0.3V Min Low Input
9Motorola 68HC11E0 Block Diagram
512 RAM
10Microcontroller Assignments
PORT
Internal Features
Assignments
8 Bit Pulse Accumulator
Feeder Rotation Counter
Outlet Valve
Inlet Valve
A
Feeder Motor
Water Heater
Food Level Sensor
Water Level Sensor
Water Level Sensor
Memory Chip / LCD Select (Mem 8000-FFFF)
B
Memory Chip / LCD Select (LCD 4000-7FFF)
ADDR High
Expanded Mode Address / Data Bus
60
C
DATA / ADDR Low (Memory and LCD)
80
D
Serial Communication Interface (SCI)
RxD
TxD
USB Module
RxD
TxD
E
8 Bit A/D
Temperature Sensor
pH Sensor
11USB MODULE
Single module High-Speed USB UART solution
Integrated Type-B USB Connector On-board 6MHz
Crystal External EEPROM on board for USB
enumeration data
USBMOD3
Motorola 68HC11E0
FTDI FT232BM USB UART IC
Tx
Rx
SCI Interface
Tx
Rx
USB BUS TO PC
12LCD
MTC-C162DPLY-2N
- Command Memory Locations
- 40xx Write Instruction
- 41xx Read Instruction
- 42xx Write Data
- 43xx Read Data
13Automatic Feeder Design
- Requirements
- Must be controlled by microcontroller
- Must be able to dispense food for different
amounts of fish - Must be able to dispense food at different
intervals if necessary - Needs to sense when food level in feeder is too
low
14Microcontroller (MC)
0V OFF 3V ON
0.4V OFF 4.2V ON
Conditioning Circuit (Relay)
- Nutra-matic Feeder
- Includes
- Plastic Case
- Motor
- Gearing
1V Low 3.5V High
Switch
To Pulse Accumulator
1V Level OK 3.5V Food Low
Food Level Sensor
68HC11
Switch Circuit
Food goes in here
- Feeder Control
- 3V for continuous ON
- Each full turn will dispense food and
- activate the switch
- MC activates motor to control the
- number of feeder rotations
GEARING
MOTOR
Switch
Rear View of Feeder
15Feeder Control
16Food Level Detector
Photocell
3.5V High
Feeder
Feeder
Food
Food
Food Okay Photocell blocked from light (High
Resistance Open Circuit)
Food Low Photocell exposed (Low Resistance
Closed Circuit)
17Food
- System will be configured to use flake food
- Each rotation will drop approximately ¼ teaspoon
of food (1 pinch) this is equivalent to what 1
average size fish can eat in 2 minutes - These rotations ( and intervals) will occur as
specified in GUI by user
18Feeders Action
19Temperature Control
Temperature Sensor
Signal Conditioning
Microcontroller 8 Bit A/D
Heater
Relay
20Temperature Control
- Requirements
- Must maintain temperature within
- 3 degrees Fahrenheit of desired setting (76-78
degrees for most fish) - Must avoid rapid fluctuation in temperature (10
degrees in 12 hours)
21Temperature Sensor
- National Semiconductor LM34CAZ
- 1.11 degrees Fahrenheit accuracy
- 5-30 VDC supply voltage
22Temperature ControlSignal Conditioning
23Temperature vs. Voltage
24Example A/D Results for Temperature Sensor
25Heater
- Heating coil in plastic casing
- 50 Watts
26Relay
- 5 VDC coil
- 1 Amp contact rating
27Heater Control
28Water Input/Output Control
Water Level Sensors
Inlet Valve
Microcontroller
Outlet Valve
pH Sensor
29Water Input/Output Control
- Requirements
- Draining and filling of tank are activated based
on readings from pH sensor - Water level will never become too high or too low
1 inch top level, 5 inches bottom level
30Water Level Control
Water Source
Water Level Sensors
Desired Water Level
Drain
31Water Level Sensors
- Simple open/close switch
- Small size
32Water Level Sensors
To Microcontroller Upper Level Sensor PA0 Lower
Level Sensor PA1
33Valves
- 120 VAC solenoid
- Normally closed
- ¼ inch and ½ inch hose connections
- Flow rate .1gal/min.
34Valve Control
35pH Control
pH Sensor
Signal Conditioning
Microcontroller 8 Bit A/D
Valves
Relay
36pH Sensor
- Requirements
- Monitor concentration of hydrogen ions in an
aqueous solution - 0 to 14 pH range
- Fast response time
- Accurate readings
37Sensor Input Specifications
- Pin 1 Sensor Output
- Pin 2 Not used
- Pin 3 ID Output (not used with most sensors)
- Pin 4 Power (5VDC)
- Pin 5 GND
Circular DIN Plug - 5 pin
38The ideal pH electrode
- Zero volts output at neutral pH (7.0)
- Positive voltage in acids, pHlt7
- Negative voltages in bases, pHgt7
- Generates -59.16 millivolts per pH unit at room
temperature ("Nernst potential").
Nernst potential calculation of the exact
electrical potential at equilibrium that is
generated for a known
concentration difference in a specific ion,
separated by a membrane permeable to that
ion.
39(No Transcript)
40pH electrode
- 1.75 volts output at neutral pH (7.0)
- Increase by .25 volts/pH level in acids, pHlt7
- Decrease by .25 volts/pH in bases, pHgt7
- Response time in 1 second
41pH ControlSignal Conditioning
42pH Level vs. Voltage
43Example A/D Results for pH Sensor
44Water Quality and pH
- If the level of H ions increases, the substance
is considered an acid and the pH number is below
7. - If the level of OH- ions increases, the substance
is considered to be alkaline or base and the pH
number is above 7.
45Power Considerations
46Basic Cost Breakdown
Printed Circuit Board Advanced Circuits
45.00 LCD hobbyengineering.com 13.50 USB
Module hobbyengineering.com 26.00 MC68HC11E0
Digikey 10.00 32K RAM Chip Digikey
10.50 Resistors, Capacitors, Logic Gates, Misc.
ECE Store 20.00 Relays Radioshack 3.99 x
3 Photocells Radioshack 3.50 Input/Ouput Water
Valves Online 22.00 x 2 Water Level Sensors
Digikey 10.00 x 2 Temperature Sensor National
Semi 0.00 Feeder PetSmart 15.00 Time spent
working on the ALS Priceless