group 1: château de nemo final presentation april 27 th , 2004
DESCRIPTION
Group 1: Château de Nemo Final Presentation April 27 th , 2004. Ali Shareef. Niraj Balwani. Jason LitJeh Lim. Sin-Hoe Lim. Project Overview …. Description: Design and implement an automatic aquarium controller that can monitor and modify aquarium environment. Functionality: - PowerPoint PPT PresentationTRANSCRIPT
Group 1: Group 1: Château de NemoChâteau de NemoFinal PresentationFinal Presentation
April 27April 27thth, 2004, 2004
Ali ShareefNiraj Balwani
Jason LitJeh LimSin-Hoe Lim
Project Overview …Project Overview … Description:Description: Design and implement an automatic aquarium Design and implement an automatic aquarium controller that can monitor and modify aquarium controller that can monitor and modify aquarium environment.environment.
Functionality:Functionality:Device allows user to monitor and modify the following Device allows user to monitor and modify the following aquarium settings:aquarium settings:• pH LevelspH Levels• Temperature SettingsTemperature Settings• Feed ScheduleFeed Schedule• Light ScheduleLight Schedule
Project Overview …Project Overview …
MotivationMotivation1.1. Low maintenance of aquariums in public Low maintenance of aquariums in public
places (offices, clinics, malls, etc.).places (offices, clinics, malls, etc.).
2.2. Target market: Frequent travelers who need Target market: Frequent travelers who need to maintain their aquariums (accessible to maintain their aquariums (accessible through Internet) .through Internet) .
3.3. Current similar products in the market only Current similar products in the market only monitor tank settings, but require extensive monitor tank settings, but require extensive manual maintenance. manual maintenance.
Project Overview …Project Overview …
Project Success CriteriaProject Success Criteria Ability to simulate day/night light schedules Ability to simulate day/night light schedules
based on user input.based on user input. Ability to use automatic feeder to release Ability to use automatic feeder to release
food into aquarium at user specified times.food into aquarium at user specified times. Ability to heat the aquarium based on user Ability to heat the aquarium based on user
input.input. Ability to automatically control water levels Ability to automatically control water levels
and maintain desired pH levels.and maintain desired pH levels. Ability to access tank controller and monitor Ability to access tank controller and monitor
and modify settings both locally (through and modify settings both locally (through keypad) and remotely through the Internet.keypad) and remotely through the Internet.
Block Diagram …Block Diagram …
Rabbit 3000 Micro controllerRabbit 3000
Micro controller
HeaterHeater
Water Pump InWater Pump In
LightLight
WWWWWW
Ethernet Port
PC Running Linux Based Software and client.
Networking Module
pH SensorpH Sensor
Temp. SensorTemp. Sensor
H20 Level Sensors (3)H20 Level Sensors (3)
Sensor Module
Wall Wart (9 V)
Wall Wart (9 V)
9V–5V Regulator9V–5V Regulator
5V-3.3 V Regulator 5V-3.3 V Regulator
System Power Module
Perip
hera
l Pow
er M
odule
Auto-FeederAuto-FeederMotorMotor
Water Pump OutWater Pump Out
Output
RJ 45
RJ 4
5
Wire5V Supply
Asynchronous
Dallas 1-Wire
Infrared
Professional ComponentsProfessional Components
Constraint Analysis and Component Constraint Analysis and Component Selection RationaleSelection Rationale
Patent Liability AnalysisPatent Liability Analysis Reliability and Safety AnalysisReliability and Safety Analysis Ethical and Environmental Impact AnalysisEthical and Environmental Impact Analysis
Constraint Analysis & Constraint Analysis & Component SelectionComponent Selection
MicroprocessorMicroprocessor LCD / Keypad moduleLCD / Keypad module pH MeterpH Meter Temperature SensorTemperature Sensor Water Level SensorsWater Level Sensors Solid State RelaysSolid State Relays
Microprocessor Constraints Microprocessor Constraints ……
High number of I/O High number of I/O pinspins
Ability to Ability to communicate communicate through the internetthrough the internet
Significant amount Significant amount of SRAMof SRAM Server codeServer code
Real Time ClockReal Time ClockRabbit 3000 Core Module
Microprocessor Selection …Microprocessor Selection …
Final microprocessors used for major Final microprocessors used for major comparisonscomparisons Rabbit Semiconductors – RabbitCore Rabbit Semiconductors – RabbitCore
RCM 3000RCM 3000 Rabbit Semiconductors – RabbitCore Rabbit Semiconductors – RabbitCore
RCM 3200RCM 3200 Atmel - Atmel - ATmega8535LATmega8535L
Atmel …Atmel …
ATmega8535LATmega8535L 32 programmable I/O pins not 32 programmable I/O pins not
necessarily all useablenecessarily all useable Real time counter with separate Real time counter with separate
oscillatoroscillator 512k SRAM512k SRAM
Rabbits …Rabbits …
RabbitCore RCM 3200RabbitCore RCM 3200 52 digital I/O pins52 digital I/O pins
44 configurable44 configurable 4 fixed inputs4 fixed inputs 4 fixed outputs4 fixed outputs
Fully integrated 10/100 Base-T Ethernet Fully integrated 10/100 Base-T Ethernet connectivity connectivity
Internal Real Time ClockInternal Real Time Clock 512k SRAM512k SRAM
Rabbits …Rabbits …
RabbitCore RCM 3000RabbitCore RCM 3000 Little difference in specifications:Little difference in specifications:
RCM 3200 runs at 44.2 MHzRCM 3200 runs at 44.2 MHz RCM 3000 runs at 29.4 MHzRCM 3000 runs at 29.4 MHz
Price differencePrice difference RCM 3200 US$89.00 single quantitiesRCM 3200 US$89.00 single quantities RCM 3000 US$79.00 single quantitiesRCM 3000 US$79.00 single quantities
Final Microprocessor …Final Microprocessor …
Ultimate Choice – RabbitCore RCM 3000Ultimate Choice – RabbitCore RCM 3000 Price - $79.00Price - $79.00
LCD / Keypad Module …LCD / Keypad Module …
Generic 12 button Generic 12 button keypad + LCD display Vs. keypad + LCD display Vs. Rabbit LCD Rabbit LCD display/keypad moduledisplay/keypad module Rabbit LCD/keypad module Rabbit LCD/keypad module
is supported by RCM 3000is supported by RCM 3000 Generic 12 button keypad Generic 12 button keypad
requires extra interfacingrequires extra interfacing LCD display requires extra LCD display requires extra
interfacinginterfacing
Rabbit LCD display / keypad input
Component Selection (contd.) …Component Selection (contd.) … pH MeterpH Meter
Temperature SensorTemperature Sensor
Selection : HI-98103 pH meter from Hanna Instrument ($23.00)Reason: 1) pH range 0 ~ 14 pH, +/- 0.2 pH accuracy. 2) Replaceable anti-corrosion electrode (length, accuracy).
Selection : DS-18S20 from Dallas Semiconductor ($0.85)Reason: 1) 1-wire interface with micro controller.
2) Operating voltage from 3.0V ~ 5 V. 3) Temperature range -55’C ~ +125’C , 9 bit resolution.
Water Level SensorsWater Level SensorsSelection : IR Receiver/Transmitter PNZ323B ($2.10)Reason: 1) Day light Filter
2) Reasonable Price
Solid State RelaysSolid State Relays
Selection:Selection: Tyco Electronics - SSR-Tyco Electronics - SSR-
240D25240D25 Low “turn on” current Low “turn on” current
requirement (~50 mA)requirement (~50 mA) Low “turn on” voltage (3 – Low “turn on” voltage (3 –
32 V DC)32 V DC) Switch 25 Amps at 24 – Switch 25 Amps at 24 –
280 VAC280 VAC Price $25.00Price $25.00
Patent Liability AnalysisPatent Liability Analysis
Intellectual property rights need to be Intellectual property rights need to be respected.respected.
Similar product in the marketSimilar product in the market AquaController II, Neptune SystemsAquaController II, Neptune Systems
Monitors pH and temperature, can Simulates Monitors pH and temperature, can Simulates Daylight, allows internet access to aquariumDaylight, allows internet access to aquarium
Octopus 3000, Aquadyne Computer CorporationOctopus 3000, Aquadyne Computer Corporation Monitors pH and temperatureMonitors pH and temperature
Patents have been found yet for these Patents have been found yet for these productsproducts
Patent Liability AnalysisPatent Liability Analysis
““Fish pond methods and systems”Fish pond methods and systems” Patent 6,041,738, March 28, 2000Patent 6,041,738, March 28, 2000 Water is purified by passing water across a Water is purified by passing water across a
settling container and the waste is moved to a settling container and the waste is moved to a decomposition pond decomposition pond
AnalysisAnalysis No infringement No infringement Chateau Nemo removes waste water and Chateau Nemo removes waste water and
replaces with fresh waterreplaces with fresh water
Patent Liability AnalysisPatent Liability Analysis
““Fish feeding device”Fish feeding device” Patent 6,467,431, October 22, 2002Patent 6,467,431, October 22, 2002 Motor rotates at predetermined time or interval Motor rotates at predetermined time or interval
indicated by timerindicated by timer AnalysisAnalysis
Literal InfringementLiteral Infringement Chateau Nemo utilizes real time clock on the Chateau Nemo utilizes real time clock on the
microprocessor to rotate motormicroprocessor to rotate motor
Patent Liability AnalysisPatent Liability Analysis
Need to obtain patent or license for:Need to obtain patent or license for: ““Fish feeding device”, Patent 6,467,431Fish feeding device”, Patent 6,467,431
Patent under questionPatent under question ““Heater apparatus for an aquarium”, Patent Heater apparatus for an aquarium”, Patent
6,140, 6156,140, 615
Reliability & Safety AnalysisReliability & Safety Analysis
We believe that Reliability, safety and We believe that Reliability, safety and maintainability must be an integral part of maintainability must be an integral part of our design.our design.
With water near the system and fish lives With water near the system and fish lives depend on the system, reliability and depend on the system, reliability and safety will be user’s No.1 concern.safety will be user’s No.1 concern.
FMECA (failure mode, effect and criticality FMECA (failure mode, effect and criticality analysis) to analyze possible circuit fault.analysis) to analyze possible circuit fault.
Reliability & Safety AnalysisReliability & Safety Analysis
Reliability Models for component and Reliability Models for component and guideline from guideline from Military handbook for Military handbook for Reliability Prediction of Electronic Reliability Prediction of Electronic Equipment.Equipment.
Component most likely to fail :Component most likely to fail :
1) Linear regulator -- heat dissipations1) Linear regulator -- heat dissipations
2) Rabbit Core module -- complex circuit2) Rabbit Core module -- complex circuit
Reliability & Safety AnalysisReliability & Safety Analysis
The mean time to failure of the entire The mean time to failure of the entire system was found to be 43.99 years. system was found to be 43.99 years.
Ethical & Environmental Ethical & Environmental AnalysisAnalysis
(by Niraj Balwani)(by Niraj Balwani)
Ethical Impact AnalysisEthical Impact Analysis Operating Environment & TestingOperating Environment & Testing
1. Water1. Water
2. Temperature Variability 2. Temperature Variability
3. Robustness3. Robustness
4. Living Organisms4. Living Organisms Warnings – Device Unit and User ManualWarnings – Device Unit and User Manual
1. Risk of Electrical Shock1. Risk of Electrical Shock
2. Proper Disposal2. Proper Disposal
3. Do not dismantle3. Do not dismantle
Ethical & Environmental Ethical & Environmental AnalysisAnalysis
Environmental Impact AnalysisEnvironmental Impact Analysis Product Life-cycleProduct Life-cycle
1. Manufacture/Design1. Manufacture/Design
2. Packaging2. Packaging
3. Normal – Use3. Normal – Use
4. Recycling/Disposal4. Recycling/Disposal
Design ComponentsDesign Components
Packaging Design ConsiderationsPackaging Design Considerations Schematic Design ConsiderationsSchematic Design Considerations PCB Layout Design ConsiderationsPCB Layout Design Considerations Software Design ConsiderationsSoftware Design Considerations
Packaging Design Packaging Design ConsiderationsConsiderations
ConsiderationsConsiderations1.1. Ensure safety of fish (no electrical wiring inside the Ensure safety of fish (no electrical wiring inside the
tank).tank).
2.2. Water-resistant casing.Water-resistant casing.
3.3. Easy to use environment.Easy to use environment.
4.4. Aesthetic appearance.Aesthetic appearance.
Water Pumps pH Meter
Rabbit 3000 LCD/Keypad
Under-gravel
water filter
System Setup …System Setup …
Clean Clean
WaterWater
Input Water Input Water PumpPump OutputOutput
WaterWater
Pump Pump
(to Reservoir)(to Reservoir)
Housing for Housing for Sensors, feeder, Sensors, feeder,
HeaterHeater
Under gravel Under gravel Water filter kitWater filter kit
Water Level Water Level
SensorSensor
ControllerController
24.4”
12.4”
16.8”
LampLamp
ControlleController:r:
Device Device ControllerControllerFront View
8”
4”3.4”
3.1”
LCD display
LED bank
Keypad input
4”
Bottom View
8”
Ethernet Port
Sensor Connecter (Header)
Power Cord
0.6” 1.5” 2”
8”
3-D View
3”
4”
SensorSensors:s:
pH sensor & temperature pH sensor & temperature sensorsensor
Max Max
Water Water
LevelLevel
Temperaturesensor
3”
9”
pH meter
heater Auto feeder
9”
2.5”
DS18S20
8”
7”
1”
7”
SensorSensors:s: Water level sensorWater level sensor
Tube with floating cork
10”
1.5” diameter cork
Floating cork
0.5”
10”
IR Tx
10”
IR Rx
IR Tx
IR Rxfloating cork
Water level
0.5”0.5”
External Devices Power Module
Left Side
Fuse BoxLights
Heater
Pump Out
Pump In
Top Side
Width
13 Inches
4.5
8 Inches
Schematic Considerations Schematic Considerations ……
Interfacing
• Aquarium Sensors/Feeder
• Water Level Sensor – IR LED/IR Detectors
• pH Sensor – Reading from pH meter
• Temperature Sensor – Dallas 18S20
• Auto Feeder
• External Devices Power Supply
• Water Pump In and Water Pump Out
• Heater
• Lights
+ C910 u
R11P OT
5V
J22
RE S E T B UTTON
12
3.3V
/RE S E T_IN
R24.7 K
V B AT_E X T
J23
HE A DE R 2
12
5V
Q102N3904
PF7 -- 1 Wire interface to Dallas 18S20
3.3V
3.3V
J18HE A DE R 6
123456
J19
HE A DE R 6
123456
PG4 - Low Water Level
PG7 - Critical Water Level
9V
PG6 - Optimum Water Level
J2
HE A DE R 4
1234
3.3V
3.3V
P F7
9V
3.3V
J20
HE A DE R 12
123456789
101112
9V
3.3V
3.3V
R13P OT
R45
10 Ohm
5V
R16 4.7 K
Title
S ize Document Number Rev
Date: S heet of
<Doc> <RevCode>
Chateau de Nemo S chematic -- Complete Control Module
C
1 1Tuesday, A pril 27, 2004
R20 4.7 K
9V
W ater_P ump_In
W ater_P ump_Out
3.3V
P F1
P C2
P F0
U6
OCP -P CT4116/E -- Opto-Isolators
A N11
CA 12
A N23
CA 24
A N35
CA 36
A N47
CA 48
E M311CO312E M213CO214E M115CO116
E M49CO410P C0
R49 4.7 K
J11
HE A DE R 6
123456
R50 4.7 K
Light_Out_Conn
Light_Out
R1300 Ohm
Heater_Out
R3300 Ohm
R4300 Ohm
W ater_P ump_Out_ConnW ater_P ump_In_Conn
Heater_Out_Conn
R5300 Ohm
P C1
V B AT_E X T
P B 4
P C3
P C4
P C5
J4
CON34A -- In J1 -- Rabbit Core Module
1 23 45 67 89 10
11 1213 1415 161719212325 2627 2829 3031 3233 34
18202224
R6
300 Ohm
P F6P F4P B 6
P E 3P E 5
P G4P G6P E 0
S MOD1/IORD
P E 7
V RA M
/RE S
P B 2
P C7
Q62N3904
/RE S
P G1P G3
Q72N3904
P D5
J8
CON34A -- In J2 -- Rabbit Core Module
1 23 45 67 89 10
11 1213 1415 161719212325 2627 2829 3031 3233 34
18202224
P D3
A CT_OUTP D7
P B 2
Q82N3904
R8P OT
Q92N3904
R9P OT
P B 4
J9
HE A DE R 17X 2 -- Out J1 -- Debugging Rabbit
246810121416182022242628303234
13579
111315171921232527293133
R10P OT
J10
HE A DE R 17X 2 -- Out J2 -- Debugging Rabbit
246810121416182022242628303234
13579
111315171921232527293133
P C1
P B 6
P C3
P F4
P C7P C5
P D5P G3P G1
J30
CON4
1234
PA 7
A CT_OUTP D7P D3
PA 5
PA 6S tatus
PA 0PA 2PA 4
PA 3
P F6
P F0P F2
PA 1
P E 5
P E 0P E 3
PA 5PA 7
P G6
PA 1PA 3
P C0P F1P F3
P C6P C4P C2
P G2P G0
P D4
PA7, PA5, PA3, PA1 -- pH meter reading
J5
CONN P CB 7x2 -- J2 LCD/K eyboard
13579
2468
101214
1113
P D2P D6
P G4
V RA MS MOD1/IORD
S P D_OUT
PA 3PA 5PA 7
P F3PA 1
J6
CONN P CB 7x2 -- J3 LCD/K eyboard
13579
2468
101214
1113
P C0P F1
P C6P C4P C2
LNK _OUT
P G0
P E 7
S P D_OUT
LNK _OUT
5V
P D4P G2
5V
P B 0
P D6P D2
P B 5P B 3
P G6
P B 7
V B AT_E X T
P F5P F7
P B 5P B 3P B 0
P F5P B 7
P E 4P E 6P F7
P G5P G7P E 1
S M0D0/IOW R
P E 4P E 6
/RE S E T_IN
P E 1
S tatusPA 6
P G5
PA 4
P G7
PA 0
/IOW R
PA 2
P F2
S M0D0
P F0
/RE S E T_IN
+ C1.22 u
P G4
R39100 Ohm
W ater_P ump_Out_Conn
W ater_P ump_In
R40100 Ohm
W ater_P ump_In_Conn
Heater_Out
Heater_Out_Conn
P G5
R41100 Ohm
5V
Light_Out
R43100 Ohm
P E 7
3.3V
P B 0
Light_Out_Conn
P B 2
U17
MA X 688
BLI
M6
BA
SE
7
IN1
CC
8
GN
D4
/S HDN2
/P FO3
Out5
5V
P B 3P B 4
Q3T1P 42
+ C2.1 u
5V
C6220 uF
P B 5
C710 nF
P B 6
R42100 K
5V
P B 7
C8470 uF
P E 7
J12
CONN P CB 13x2 -- J1 LCD/K eyboard Interface
13579
1113151719212325
2468101214161820222426
P B 4P B 2
P B 6
P F4P F6
P E 4P E 1
P G7P E 6
P B 3P B 0P G5
P B 7P B 5
P F5P F7
P E 5P E 3P E 0
P E 7
R44
1K
P F7
P G7
P F6P F5P E 0
P F4
J21
HE A DE R 2
12
P E 3P E 1
P E 5P E 4P E 6
Q4
2N4403
P E 7P G7
W ater_P ump_Out
P F7
A uto-Feeder
A uto_Feeder_P ower
D2DIODE
P G6
P G7P G4
A uto-Feeder
U13
OCP -P CT4116/E -- OUTP UTS
A N11
CA 12
A N23
CA 24
A N35
CA 36
A N47
CA 48
E M311CO312E M213CO214E M115CO116
E M49CO410
Inputs to the Rabbit
A uto_Feeder_P owerR38 4.7 K
U15
LM7805
IN1
OUT2
5V
Control Module
Rabbit/LCD Interface
System Power Module
External Devices Power Interface
Aquarium Sensor Interface
PCB Layout Design PCB Layout Design ConsiderationsConsiderations
Packaging (shape and size):Packaging (shape and size):
1) all connectors at one side of PCB1) all connectors at one side of PCB
2) need space for various connector 2) need space for various connector
and wiring. and wiring. Component layout (orientation of Component layout (orientation of
component) :component) : 1) group by functionality 1) group by functionality
2) component clearance – heat sink, Rabbit Core2) component clearance – heat sink, Rabbit Core
PCB Layout Design PCB Layout Design ConsiderationsConsiderations
Routing (trace size, via, route):Routing (trace size, via, route): 1) Power trace (50 mil) vs signal trace (10 mil).1) Power trace (50 mil) vs signal trace (10 mil).
2) minimum via, shortest route, 45’ turning.2) minimum via, shortest route, 45’ turning. Other :Other :
Copper pour, bypass capacitor, useful Copper pour, bypass capacitor, useful
information on silk screen, space for circuit information on silk screen, space for circuit
amendment and PCB rework.amendment and PCB rework.
Software Design Software Design ConsiderationsConsiderations
MemoryMemory 512k SRAM available512k SRAM available
Initialization routinesInitialization routines Default pin directions (in/out)Default pin directions (in/out)
Data pin directionsData pin directions Mono-directional/Bi-directionalMono-directional/Bi-directional
Custom LCD/Keypad module functionsCustom LCD/Keypad module functions Simplicity of applicationSimplicity of application
PollingPolling Condition checksCondition checks
Software Flowchart …Software Flowchart …RESET
INITIALIZATION ROUTINE
CHECK CONDITIONS
Modifications?
SERVERClient Connection?
LOCAL SETUPKeypad input?
NO
NO
SERVER MODULE
Interact via client module.
LOCAL SETUP MODULEInteract via LCD display/keypad
NO
YES
YES
YESAssert pins as required to handle condition
DemonstrationDemonstration1.1. Ability to simulate day/night light Ability to simulate day/night light
schedules based on user input.schedules based on user input.
DemonstrationDemonstration
2.2. Ability to use automatic feeder to release Ability to use automatic feeder to release food into aquarium at user specified times.food into aquarium at user specified times.
DemonstrationDemonstration3.3. Ability to heat the aquarium based on user input.Ability to heat the aquarium based on user input.
DemonstrationDemonstration
4.4. Ability to automatically control water levels Ability to automatically control water levels and maintain desired pH levels.and maintain desired pH levels.
DemonstrationDemonstration
5.5. Ability to access tank controller and monitor Ability to access tank controller and monitor and modify settings both locally (through and modify settings both locally (through keypad) and remotely through the Internet.keypad) and remotely through the Internet.
Contributions & SummaryContributions & Summary
Niraj BalwaniNiraj Balwani- Networking Module/Micro Support/Website- Networking Module/Micro Support/Website- Casing, Documentation- Casing, Documentation
Ali ShareefAli Shareef- Peripheral Power Module/Network Support- Peripheral Power Module/Network Support- Schematics- Schematics
Jason Lit Jeh LimJason Lit Jeh Lim- Microcontroller/LCD/Keypad (Software)- Microcontroller/LCD/Keypad (Software)- Hardware Support- Hardware Support
Sin-Hoe LimSin-Hoe Lim- Sensor Module- Sensor Module- PCB Board/Wiring/Hardware Debugging- PCB Board/Wiring/Hardware Debugging
Questions and Comments …Questions and Comments …