Sunday, February 10, 2008

the "simple" fish tank

Ok, I have been working on programing my fishtank's computer all morning. (well that's a little bit of a lie since I have completed 3 assignments and only have one left to do for the week) I just wanted to give everyone an idea on how must fun it is to work on this think. Here is a sample of the code that turns on and of the lights, controls the powerheads, and helps run other vital systems to make sure my fish are happy.

Enjoy.

Outlet Numbers
DC8 (A)
1.T5's
2.Heater
3.Uv light
4.Co2 Regulator
5.Metal Halide
6.Sump Light
7.Rotating Pump
8.Cooling Fan
DC4 (B)
1.Left Pwrhead
2.Right Pwrhead
3.???
4.???


T5_$-A1
MH1$-A5
HTR%-A2
FAN%-A8
UV_$-A3
pH_&-A4
smp$-A6
WV1#-A7
WvL#-B1
WvR#-B2
Wv3#-B3
Wv4#-B4


If Time > 10:00 Then T5_ ON
If Time > 13:45 Then T5_ OFF
If Time > 19:15 Then T5_ ON
If Time > 22:00 Then T5_ OFF
If Time > 11:30 Then MH1 ON
If Time > 20:30 Then MH1 OFF
If Temp > 81.9 Then MH1 OFF
Max Change 010 M Then MH1 OFF
If Time > 13:00 Then smp OFF
If Time > 18:00 Then smp ON
If Temp <> 78.0 Then HTR OFF
If Temp > 78.0 Then FAN ON
If Temp <> 06.70 Then Co2 ON
If pH <> 10:00 Then WV1 ON
If Time > 22:00 Then WV1 OFF
If Time > 05:00 Then UV_ ON
If Time > 06:00 Then UV_ OFF
If Time > 19:00 Then UV_ ON
If Time > 20:00 Then UV_ OFF
If Temp <> 00:00 Then WvL ON
If Time > 00:00 Then WvR ON
If FeedA 000 Then WV1 OFF
If FeedA 002 Then WvL OFF
If FeedA 007 Then WvR OFF

Ok, now that you have all that information digested, can someone tell me when the fun starts?

3 comments:

Anonymous said...

I helped read the manual for this and it still makes no sense what-so-ever!!! With all the technology out there you would think this would be simple. Lights on, lights off, fan on, fan off, etc.

Unknown said...

blame John

Anonymous said...

This, is why i like dogs!!!!