Raspberry Pi RODI Tank Control

KStatefan

5000 Club Member
View Badges
Joined
Jun 24, 2015
Messages
5,589
Reaction score
5,014
Location
MHK
Rating - 0%
0   0   0
Working on a RPi to control RODI tank. I am going to use two solenoids on to bypass DI for 30 seconds prior to filling and one to fill the tank. I think I have the code figured out using two float switches. I am now working on the points of failure. Has anybody else done anything like this?
 

MaddyP

'Til Reefdom Come...
View Badges
Joined
Jul 21, 2016
Messages
1,910
Reaction score
4,485
Location
Vancouver, WA
Rating - 0%
0   0   0
I have done something similar with a couple 110 gallon storage tank. Although, mine is controlled via apex.

Each tank has 3 float switches installed. One near the bottom, another midway, and a third double float at the top. Water from RODI comes in to the left tank through a solenoid. When the water level drops below the middle float, the solenoid opens. The solenoid closes when the water fills to the first top float and stays off until the water drops below the middle float, in which the cycle starts over. I'm using latches programmed through virtual outlets on the apex. It's been running about a year now without problem.

Right tank is saltwater mixing. I don't have it installed yet but I've ordered a motorized tee to automatically transfer water to the saltwater mixing tank when initiated.


image.jpeg
 
OP
OP
KStatefan

KStatefan

5000 Club Member
View Badges
Joined
Jun 24, 2015
Messages
5,589
Reaction score
5,014
Location
MHK
Rating - 0%
0   0   0
I'm building a DYI controller with a Pi. Check out my thread in my signature.

I will take a look at it. I do not think I could go that far but i also never thought I would have a breadboard on my desk. If I could go back to college i would have taken me EE/CE glasses to go along with my ME. I find myself doing and enjoying more circuit stuff at work also. I started with the pi to control my Christmas lights.
 

njtiger aquariums

Well-Known Member
View Badges
Joined
Oct 9, 2015
Messages
513
Reaction score
520
Location
NV
Rating - 0%
0   0   0
When I got into the hobby I never thought about using a Pi as a controller. I was talking to a friend about a system that was able to control lights wireless and they were looking to include pumps next. My friend said "you work in IT why don't you do one with a Pi?" Thats when the project was born. I never really did much circuit stuff but I'm learning and its coming along nicely. Now at work I been moved over to our A/V team so I do the custom code for our A/V controllers as well as wiring them up. It helps with the pi project lol
 

MaddyP

'Til Reefdom Come...
View Badges
Joined
Jul 21, 2016
Messages
1,910
Reaction score
4,485
Location
Vancouver, WA
Rating - 0%
0   0   0
Looks nice. What does the apex do after resetting from a power failure?

Below are the outlet and virtual outlets I'm using for this setup (in case people are curious). You'll notice the latch is set to off for 1 minute in the case of a power reset. Virtual outlets tend to be "sticky" in the case of power resets, it's best to force them on in a state at which it doesn't fail.

Middle Float (Virtual)
Set OFF
If Swx7_3 CLOSED Then ON
Defer 001:00 Then ON
Defer 001:00 Then OFF

Top Float (Virtual)
Set OFF
If Swx7_2 OPEN Then ON
Defer 001:00 Then ON

Latch Reset (Virtual)
Set OFF
If Outlet RODI_Mid = ON Then ON

Latch (Virtual)
If Outlet Res_Latch = ON Then OFF
If Power Apex Off 001 Then OFF
If Outlet RODI_Full = ON Then ON

Solenoid (Outlet)
If Outlet RODI_Mid = ON Then ON
If Outlet RODI_Latch = ON Then OFF
If Outlet RODI_Alarm = ON Then OFF
 

njtiger aquariums

Well-Known Member
View Badges
Joined
Oct 9, 2015
Messages
513
Reaction score
520
Location
NV
Rating - 0%
0   0   0
Below are the outlet and virtual outlets I'm using for this setup (in case people are curious). You'll notice the latch is set to off for 1 minute in the case of a power reset. Virtual outlets tend to be "sticky" in the case of power resets, it's best to force them on in a state at which it doesn't fail.

Middle Float (Virtual)
Set OFF
If Swx7_3 CLOSED Then ON
Defer 001:00 Then ON
Defer 001:00 Then OFF

Top Float (Virtual)
Set OFF
If Swx7_2 OPEN Then ON
Defer 001:00 Then ON

Latch Reset (Virtual)
Set OFF
If Outlet RODI_Mid = ON Then ON

Latch (Virtual)
If Outlet Res_Latch = ON Then OFF
If Power Apex Off 001 Then OFF
If Outlet RODI_Full = ON Then ON

Solenoid (Outlet)
If Outlet RODI_Mid = ON Then ON
If Outlet RODI_Latch = ON Then OFF
If Outlet RODI_Alarm = ON Then OFF

I know what you mean. Now I never handled an Apex before or did anything with an Apex. One of the first things I did with my controller (after getting the relay wired up) was set equipment schedule. If my pi reboots for any reason it has all the outlets off by default and then checks with the schedule to see what should be on. I need to update that code to reflect the delay I wrote for my skimmer
 

Dennis Cartier

Valuable Member
View Badges
Joined
Aug 25, 2016
Messages
1,978
Reaction score
2,319
Location
Brampton, Ontario
Rating - 0%
0   0   0
I used a Pi to run my last tank. It was very handy for remote access and since it runs Linux, programming is easy in scripting languages like python.

For a decent source of peripherals for use with a Pi, take a look at Reefangel products. They use I2C and are great for a Pi controller.

Dennis
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 34 26.8%
  • 100% dry rock + 100% live sand

    Votes: 45 35.4%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 27 21.3%
  • 75% live rock, 25% live sand

    Votes: 11 8.7%
  • 25% live rock, 75% live sand

    Votes: 10 7.9%
Back
Top