Sponsor Our Community
Go Back   The Reef Tank > Equipment / Methodology related Forums > DIY Forum

DIY Forum Share those Do-It-Yourself projects and money saving tips with us here.


Registered Members don't see these ads. Register now it's free!

Reply
 
Thread Tools
Old 11-24-2004, 05:09 PM   #1
aka_bigred
No frags for you!
 
aka_bigred's Avatar
 
Join Date: Mar 2004
Location: Oakdale, MN
Posts: 945
Lightbulb

DIY Aquarium Controling using X10 & a PC


Project Summary/scope:
Create a DIY controlled "self aware" aquarium system that will monitor/control my tank. I've got an old spare PC to dedicate to this and will be using X10 modules to do the contolling actions and a joystick interface to do the monitoring. Controlling software will be written in Perl Scripts (because it's easy & flexible, and I don't know VB or C++).

I've done some research and was able to do an initial "proof of concept". I wrote a Perl script that can monitor the activity on a standard Joystick port. There's a bunch of stuff on the web about using the joystick port for basic input into a computer. The goal of this project is to make my tank 'self-aware' and add an interactive level to the standard control of X10 technology.

Proposed features:
1- Create a safety system to prevent the aquarium from overflowing onto the cartpet making a disaster & potentially ruining a pump. Sure this is not terribly likely, but I DO NOT WANT A MAJOR OVERFLOW. It's both a challenging "pet because-I-Can project" for me to work on, and a peace-of-mind thing.

A float switch will trigger a pump shutdown when it detects that the level in my corner overflow has risen to an unsafe level. The floatswitch sends an input trigger, the PC catches it and cuts the main pump power via an X10 Module.

2- add a temp monitor/logger to the system

This is very possible and several websites out there that show step by step accounts of how to accomplish this relatively easily. Here's one perfect resource I stumbled onto: PC Thermometer via Gameport It spells out the hardware part I need to complete for this part.

3- Other inputs ? (Not sure yet, but I can support up to 4 triggering on/off inputs per gameport that would telll me about the tank. Any suggestions on these would be great. If I need more I can add another gameport to the for next to nothing.

4- Schedule the lighting like a natural reef circadian rhythm by matching the sun/moon schedule of a native reef. I've created a table of on/off times based on the date for a reef in Indonisia by pulling the data from the US's Geographical data. I can off-set this photoperiod to my liking so the tank is lit to better align with my schedule since "sunrise" is relative to time, but lighting duration is what animals know. Sure this feature is not needed at all, but it's easy to do once I have things setup, so I figure Why not?

This feature requires no inputs but just scheduling control via X10 modules.

5- Adding "Currents" in the main tank. I'm thinking I'll have 4 or so powerheads in different corners of the tank that will be alternated on/off to change the currents. This wouldn't be very rapidly, but maybe every 10 minutes the flow chages as a different combination of PH's are running. This isn't intended to be a surge style feature, but more of a randomization of the tank's ambient flow.

6- add a PH meter/logger ??

I haven't really looked into this one much, but from several resources I've found, it looks like it may be possible. PH meters translate PH into volts/resitance in some fashion, and I sould be able to capture that with the right setup. This is a last phase addition but hopeful addition to the system. It's a good candidate feature, but I don't plan to add this right

7- Instant notifications & logging of key events/status.
When the pump Is cut, I'll be notified via email as well as paged on my cell phone to let me know of the emergency and it would also be logged. This also means that they sytems basic functions could be managed remotely to some extent, and I could add a web interface to display current tank parameters.

8- Automate water chages
This one's a stretch becuase I'd like to have some safety measures built in to protect me from any disasters. I think it would be possible, given the right protection form catastrophe. A drain controlled via a selenoid valve empties a preset amount (duration) of tank water & a container of pre-mixed water replaces the removed water.

That's most of what I've come up with. This is my plan to run the aquarium though not all features/phases of the system will be implemented immediately. I've still got a couple months of build time remaining, but I am actually devoting more time to finishing my tank, and I am setting it all up to support this system at some point. Of course my MAIN focus it getting the tank running, but most of the framework for this system will be laid as I complete the build.

Any Comments/suggestions are willingly accepted. If you have knowledge you'd like to share than post away. I'll try and post status updates of the system as it progresses.


(Before anyone posts, Yes I'm aware of the downfalls of x10 technology, but have decided to use it to control my setup anyways because of it's flexability and relatively low cost. Most of the downfalls I think I can avoid or deal with.)
Registered Members don't see these ads. Register now it's free!
__________________
><((((º>`·.¸¸.·´¯`·.. ><((((º>`·.¸¸.·´¯`·.. ><((((º>`·.¸¸.·´¯`·.. ><((((º>`·.¸¸.·´¯`·.. ><((((º>`·.¸¸.·´¯`·..><((((º>`·.¸¸.·´¯`·.. ><((((º>`·.¸¸.·´¯`·..
aka_bigred is offline   Reply With Quote
Old 11-24-2004, 06:41 PM   #2
dwall174
Big Fishy
 
dwall174's Avatar
 
Join Date: Mar 2003
Location: Southeast MI
Posts: 680
Images: 12
I don't understand most of the tech. stuff but have you see this http://www.automatedaquariums.com/index.htm I'm not sure but it may help answer some questions!
__________________
Doug

Tank Specs

Gallery Pics
dwall174 is offline   Reply With Quote
Old 11-24-2004, 11:21 PM   #3
the_colonel
300 Pound Gorilla
 
the_colonel's Avatar
 
Join Date: Sep 2004
Location: Hudson, WI / Hong Kong
Posts: 2,640
Scott,

You ever code in Python? Its much more object orientated then Perl, and has some great modules that may work well in this application.

If you code in Perl, Python is a breeze to pick up.

Check out www.python.org

Just my $.002
__________________
JP

____________________________________________

Currently between tanks......And countries!!!!

____________________________________________
the_colonel is offline   Reply With Quote
Old 11-25-2004, 03:36 PM   #4
RipTide
Plankton
 
RipTide's Avatar
 
Join Date: Nov 2004
Location: Alabama
Posts: 26
Sounds like an adventure to me! My tank is sitting in my study approximately 4 feet from my computer. Seems like a shame that all that computing power can't be put to use on monitoring, testing, and controlling the tank. Seems like there could be a probe you could put in the tank, and software could do the rest. I'm not much of a programmer. I only know a very little visual basic, but maybe projects like yours will get us there one day. Imagine being able to click an icon on your computer screen that would give instant readings on water chemistry, temperature etc.. It could have add on modules for Ca, Alk, Mag etc.. and warnings when something critical was wrong. Shouldn't have to cost thousands of dollars when the computer would be doing most of the work. Just needs the software and input sensors worked out. Then again, maybe I've just watched to much Star Trek? I can see the attraction to the project though!
RipTide is offline   Reply With Quote
Reply

Bookmarks

Tags
float switch



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Sitemap:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
Sponsor Our Community

All times are GMT -5. The time now is 02:12 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Our lawyer tells us that, by pressing the "New Thread" or "New Reply" button, you acknowledge that the opinions and information expressed in your article are yours alone and not those of thereeftank.com, dba The Reef Tank. Further, you agree to indemnify The Reef Tank, its moderators, administrators and agents from any and all liability which may arise as a result of your article. (C)opyright 2006 TheReefTank.com