Download presentation
Presentation is loading. Please wait.
1
Remote Aquarium Monitor and Control System Christopher Bunk Joshua Hoiland
2
What if I have to leave it?
3
Common Concerns Aquarium accessories Aquarium accessories Light Light Water heater Water heater Filter/pump Filter/pump Feeding Feeding How can I be sure my fish are OK? How can I be sure my fish are OK?
4
We have the solution.
5
System Architecture
6
User Interface Measured Temperature Desired Temperature Set Temperature Feed Fish Temperature History Help Log Out 22 Food Remaining ON OFF PUMPSLIGHTS
7
GUI Features ControlMonitoring Feed FishFish food remaining doses Adjust Desired Water Temperature Water Temperature Light On/OffLights On/Off Filtration System On/Off Set/Reset Food CountWeb Cam Streamed Image Temperature trended graph
8
System Design
9
System Control Diagram
10
Thermistor R25 3.3K ±5% Temperature range: -40 to +125 °C Maximum dissipation 500 mW Cost: $0.68 BCcomponents 2322 640 3338
11
Relay Compact 1-amp SPST Reed Relay Coil Voltage 5 VDC Contact Rating 125 VAC Operation time: 1.5 ms Cost: $2.49 Radio Shack 275 0232
12
Stepper Motor 7.5˚ per step Power Source: 5 VDC
13
Feeding Mechanism Allows 31 feedings
14
Feeding Mechanism
15
Motorola HC-12 (provided by RIT) Highlighted ports are used Highlighted ports are used
16
HC-12 Port Usage A Pin 0 – Pump Relay Pin 0 – Pump Relay Pin 1 – Light Relay Pin 1 – Light Relay Pin 2 – Heater Relay Pin 2 – Heater Relay B Pins 0-3 – Stepper Motor Control Pins 0-3 – Stepper Motor Control AD AD Pin 4 – Analog Thermistor Input Pin 4 – Analog Thermistor Input
17
HC-12 Port Usage Port S used for serial communication Port S used for serial communication
18
Serial Communication Code serial_init: ; To use the serial port, one must set the baud rate. ; The 68HC12 is capable of speeds up to 38400. Here, we ; set it to 9600 baud. The value here is a 16 bit divisor. ; ldd #52 ; Value from Baud Rate Generation Table std $C0 ; SCI 0 Baud Rate ldaa #$0C ; Enable transceiver staa $C3 ; SCI 0 Control 2 rts putchar: ; putchar outputs a character to serial port 0 ; Call with character in register A ; brclr $C4, #$80 putchar ; check SCI 0 Status 1 staa $C7 ; SCI 0 Data Low Byte rts
19
Control Algorithms Temperature Control if( heater_on ){ if( current_temperature > desired_temperature ){ turn_off_heat(); } } else{ if( current_temperature < ( desired_temperature - tolerance ) ){ turn_on_heat(); }
20
Control Algorithms Feeder Control if( num_feedings_left > 0 ){ move_stepper( CCW 1 slot ); num_feedings_left -= 1; } else { return error( no food left ); }
21
Software Architecture
22
PC Server Architecture
23
With a little help from Open Source Apache web server Apache web server PHP Module Installed PHP Module Installed MySQL Database Running in Background MySQL Database Running in Background Com Relay Program Com Relay Program
24
The Servlet Communicates in between 2 ports; 8420,8421. Communicates in between 2 ports; 8420,8421. Ensures simultaneous commands to the serial port are not made. Ensures simultaneous commands to the serial port are not made. Trend temperature data to MySQL database every five minutes Trend temperature data to MySQL database every five minutes
25
Web Cam Server Will rely on Web Cam’s proprietary streaming technology. Applet will be built around it’s viewing dimensions Com Relay Simply Relays serial communication and TCP/IP communication by seamlessly stripping the header from the packets Makes dealing with serial port simple
26
Remote PC Architecture Web Page is loaded that streams fish tank video, and loads control and monitoring applet Web Page is loaded that streams fish tank video, and loads control and monitoring applet Applet connects to servlet and continually polls for status unless a command is requested Applet connects to servlet and continually polls for status unless a command is requested Help and Logout Options available Help and Logout Options available
27
Security Port 80 requests password protected through apache htaccess files Port 80 requests password protected through apache htaccess files Port 8420 only accepts local connections Port 8420 only accepts local connections Port 8421 Requires password and day of the year hash to begin communication Port 8421 Requires password and day of the year hash to begin communication All other ports configured to be blocked All other ports configured to be blocked
28
Temperature Monitoring Thermistor look up table in GUI and Servlet so only un scaled values are sent to HC-12. Thermistor look up table in GUI and Servlet so only un scaled values are sent to HC-12. Applet retrieves a dynamically created XML file for last 24 hours of temperature data and displays on XY graph Applet retrieves a dynamically created XML file for last 24 hours of temperature data and displays on XY graph Desired temperature can be selected and the set temperature button will confirm the change Desired temperature can be selected and the set temperature button will confirm the change
29
XML Format – Represents one temperature reading Attributes: Id- Unique identifier for every reading Time- Date and Time Stamp of reading Content Value- Recorded Scaled Value for temperature in Fahrenheit Example Entry 24.5
30
Expandability / Other Uses Architecture fits a wide variety of remote monitoring solutions Architecture fits a wide variety of remote monitoring solutions Expand to other types of pets, children, house Expand to other types of pets, children, house Allow monitoring only connections and control connections Allow monitoring only connections and control connections
31
Cost Estimates
32
Project Milestones
33
?’s
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.