Canreef Aquatics Bulletin Board  

Go Back   Canreef Aquatics Bulletin Board > General > DIY

Reply
 
Thread Tools Display Modes
  #1  
Old 12-11-2006, 02:02 AM
Squiddy's Avatar
Squiddy Squiddy is offline
Member
 
Join Date: Mar 2005
Location: Fort St. John, BC
Posts: 115
Squiddy is on a distinguished road
Default PLC Fish Tank Controller Project

Well, I have finally found the time to get working on my fish tank controller project again. Having an electronics background, I have always wanted my own fish tank controller and couldn't be bothered to go out and spend the money on a prebuilt system. The idea when I first started on this adventure, was to build the system from scratch. I would design and build the circuit boards, write the embedded software for the controller and come up with some kind of interface that will work on a PC. Other people have done this kind of thing already and although I still plan to in the future, I went with something that required a bit less hardware design to start.

For this project, I decided to use a PLC (Programmable Logic Controller) as the base for the system. The PLC I chose is made by Modicon and has 12 digital outputs (means I can turn 12 devices on and off) and 16 digital inputs (allows me to monitor the status of 16 devices). This PLC also has a number of analog inputs which allow me to monitor things like temperature, PH and ORP which I will be taking advantage of in the future. I have bought a PH probe already and just need to build a quick amplifier circuit to make it compatible with the PLC.

Here is a quick idea of how I connected everything up:

Each digital ouput is connected to a relay. When the output is turned on, the relay attached to that output gets energized. When the type of relay I chose to use gets energized, it means its contacts close, just like a switch being turned on. I wired the line voltage (115VAC) to one side of each relay and then wired one receptacle to the other side. The end result is 12 receptacles that can be turned on and off by the PLC.

The black box with the white dial in the bottom right of the fourth picture is an Intermatic timer. I have wired this into one of the digital inputs so that I will be able to use it later for whatever I want. For example, I could write some logic that uses the timer to shut off my main pump for a certain period of time while my fish eat. The possiblilities are endless. I have a number of float switches that will be connected in to some of the other inputs. In the logic, I will be using these to monitor water levels in the display in the sump. If the water level gets too high in the display, shut off the main pump.. etc. You get the idea.

Obviously I'm not done yet. I managed to get all of what you see here, done in the last couple of days. I was lucky to get the gray box you see for free but it sure made the wiring tight! I managed to make it all fit though. The box didn't come with a lid so I will be cutting a piece of plexiglass to fit over the top. This way, while keeping the salt spray out of the electronics, I will be able to open my stand and check the status of everything.

If I don't feel like looking at the controller itself to see how things are running, all I have to do is turn on my laptop and load up the interface I built in LabView. The picture you see here is what I made a few months back. While I have tested and it works quite well, I will need to change things around a bit. I will post the updates as I make them.

Anyways, I'm not sure if any of this made sense but I just wanted to post what I had so far so that I could add posts here and there as I went along instead of typing out the whole thing in one sitting.











__________________
Jeremy


Reply With Quote
  #2  
Old 12-11-2006, 02:11 AM
BMW Rider's Avatar
BMW Rider BMW Rider is offline
Member
 
Join Date: Mar 2004
Location: Calgary
Posts: 784
BMW Rider is on a distinguished road
Default



Wow! Just a bit beyond my basic wiring skills.
__________________
I retired and got a fixed income but it's broke.

Ed
_______________________________________
50 gallon FOWLR, 10 gallon sump.
130 gallon reef, 20 gallon sump, 10 gallon refugium.
10 gallon quarantine.
60 gallon winter tank for pond fish.
300 gallon pond with waterfall.
Reply With Quote
  #3  
Old 12-11-2006, 02:19 AM
niloc16's Avatar
niloc16 niloc16 is offline
Member
 
Join Date: Mar 2006
Location: mission,bc
Posts: 1,299
niloc16 is on a distinguished road
Default

squiddy this is awesome. unreal wiring in the box. very neat and tidy. most definitely keep us updated. good job
__________________
Colin

my tank setup
Reply With Quote
  #4  
Old 12-11-2006, 04:30 AM
Dale's Avatar
Dale Dale is offline
Member
 
Join Date: Jun 2006
Location: Abbotsford, BC.
Posts: 189
Dale is on a distinguished road
Default

I don't know... don't see any black electrician tape in there...


Hah! just kidding. Looks awesome. I admire someone who can understand electronics like that. A skill I wish I had picked up (along with welding).
I utilize technology but I don't really understand it.
Reply With Quote
  #5  
Old 12-11-2006, 05:35 AM
Delphinus's Avatar
Delphinus Delphinus is offline
Member
 
Join Date: Dec 2001
Location: Calgary
Posts: 12,896
Delphinus has a spectacular aura aboutDelphinus has a spectacular aura aboutDelphinus has a spectacular aura about
Send a message via MSN to Delphinus
Default

Looks great. To be honest I'm sort of surprised we don't see more of this ou there. If I could get my hands on a decent PLC one day I might try this as well (I work with PLC's as well).

Anyhow good on ya' for actually getting it done.
__________________
-- Tony
My next hobby will be flooding my basement while repeatedly banging my head against a brick wall and tearing up $100 bills. Whee!
Reply With Quote
  #6  
Old 12-11-2006, 02:25 PM
cinci cinci is offline
Junior Member
 
Join Date: Nov 2005
Location: tecumseh
Posts: 10
cinci is on a distinguished road
Default

i have a plc 5/60 as well as a slc processor and rack. i planned to do this as well and have it connected to a panelview 550 for control and display. the one thing that was holding me back was the connection of the probes. if you get a circuit working please let me know. i would love to get mine going.
thanks.
Reply With Quote
  #7  
Old 12-11-2006, 02:50 PM
Squiddy's Avatar
Squiddy Squiddy is offline
Member
 
Join Date: Mar 2005
Location: Fort St. John, BC
Posts: 115
Squiddy is on a distinguished road
Default

Thanks guys. I love doing this kind of thing. It's going to be even more fun designing a controller from scratch I think.

If you look on ebay, there are a number of PLCs available at fairly reasonable prices... considering what they're worth. The one I used was an old one from work. Served its purpose controlling a water treatment plant for years, and now gets turned into a fish tank controller.

You don't even need anything that amazing to do this. It's not like you're running a paper mill or something that requires millisecond response time.

cinci: I would love to add a touch panel to the outside of my stand. One of the guys at work is working with a tiny 4-5" Magelis panel from Telemecanique. It would be PERFECT! The $2500 price tag is not so cool though... There are actually a few of those PanelView 550's on ebay right now... one that is at $9.99. Do you happen to have a surplus of these?

I'm going to try and get some plexi cut for the front of the box and then I can get it mounted up in the stand.

I'm going to use a couple of these to monitor level in my display and sump. The forks on these things vibrate, so when they are immersed in a liquid, the device senses a dampening in vibratation and turns a contact on. I can use this contact as a condition for the main pump in the logic. If the level in the display gets too high, shut off the main pump and sound alarm/flash light/do something.

__________________
Jeremy


Reply With Quote
  #8  
Old 12-12-2006, 04:07 AM
cinci cinci is offline
Junior Member
 
Join Date: Nov 2005
Location: tecumseh
Posts: 10
cinci is on a distinguished road
Default

sorry no extras. i know awhile back i was doing some work with rsview connected to a plc. it can do more than a panelview. if you used a usb touch screen (ebay) i think you could have some cool looking control panel. a problem with some of the old plc stuff is the comunication to the processor. we are starting to switch over to control logix its nice it uses ip for everything. are you planning on using a analog input card for you probes?
Reply With Quote
  #9  
Old 12-12-2006, 04:08 PM
Midknight's Avatar
Midknight Midknight is offline
Member
 
Join Date: May 2006
Location: Surrey, B.C.
Posts: 499
Midknight is on a distinguished road
Send a message via MSN to Midknight Send a message via Yahoo to Midknight
Default

And when are you coming over to Vancouver to run a DIY seminar on how to do all this?
I'd be there in a heart beat (or 2, getting slow in my old age)
__________________
Enquiring minds want to know…
Reply With Quote
  #10  
Old 12-12-2006, 10:15 PM
Squiddy's Avatar
Squiddy Squiddy is offline
Member
 
Join Date: Mar 2005
Location: Fort St. John, BC
Posts: 115
Squiddy is on a distinguished road
Default

cinci: Aww too bad about the displays. I'm sure I can find something. This PLC actually has a number of analog in's already so I'll just use those. Haven't got that part worked out yet though. I actually have a pressure transducer that I might use somewhere. The sensor I have is 0-5psi which is about 0-12ft. I think the analog in's are 12 bit which means 341 counts per foot. If I use one in my sump, 1 foot would be all that the level would change anyways so I would still have 341 points of resolution. I think it would be kinda fun to have a graph showing sump level. Then I could graph it next to humidity and temperature and get a good idea of where the water's going or the moisture is coming from . I'll get the rest sorted out first though . I could also stick a pressure transducer in my mixing bin to show how much water I have left. Too many ideas. I need my own house...

Midknight: Ha, yea right. Don't know about a seminar. If you're over this way you could come take a look. I'm sure if you wanted to do something like this I could point you in the right direction. I like doing this over buying a predesigned controller because I can make this one do whatever I want it to.

Here I am spending all this time on what controls the tank and what I really need to be doing is stocking the tank with more corals. My rocks are looking a little bare.
__________________
Jeremy


Reply With Quote
Reply


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 Off
Forum Jump


All times are GMT. The time now is 02:03 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.