• Welcome back Guest!

    MARSH is a private reefing group. Comments and suggestions are encouraged, but please keep them positive and constructive. Negative threads, posts, or attacks will be removed from view and reviewed by the staff. Continually disruptive, argumentative, or flagrant rule breakers may be suspended or banned.

Reef-Pi (Raspberry Pi Aquarium Controller) (1 Viewer)

Users who are viewing this thread

Tenny

Supporting Member
Build Thread Contributor
Joined
Jul 18, 2018
Messages
755
Reaction score
588
Location
League City
So on my main tank I have an Apex Classic and love it. It works great and I trust it 100%. On my smaller 12g cube, I have no controller on this tank. I just put in a couple fish (GoldxLightning Maroon Clowns and an Anemone) over the weekend and a little concerned about a runaway heater. So I began my search of course by looking for a cheaper controller and I couldn't find anything that I was happy with for under the price of an Neptune ApexEL and I didn't want to spend $499. Plus the tank already has an expensive ATO (came with it) so I don't need much functionality.

So eventually my search lead me to the Reef-Pi. It's under development still and looks to be a capable but very DIY solution. I'm into this sort of things and have done many similar things for my 3D Printer over the years. I also built 100w COB LED's for my frag tanks back when I lived in Cali (components tanks assembled assembled led ). I had done PAR tests on them and they ended up being very close to those of Kessil 360's. The only issue is they didn't have any colors other than blue / white so I ended up having to get a full spectrum LED's to supplement it. Still those were about $30 each and I had 8 of them running at one point.

I only want two things from it:
  • Multiple Temperature Probe (two in this example)
  • Control of ~4 Outlets

So my parts list (ordered)


So a few things I want to say about my order list. Tons of Raspberry Pi Zero W kits out there, I went with this one because I'll take a power supply for a few bucks over a blank one. No plan on using the case though. I may later regret going with a Pi Zero W instead of a 3+ (thinking of having a screen) but I will deal with that later. Maybe I'll upgrade then and want PH also. I went with mechanical switches over solid state. I don't plan on going over the wattage of a solid state, but I also have no plan to run a doser. If I was planning on running doser's I would have gone SSR. The temperature probe isn't coated, I am going to dip it in PlastiDip once I get it.

Other stuff not mentioned PCB Material, Resistors, Water-Proof Plugs, AC Outlets, Power Gang Box (for lack of the technical term), Project Box, etc. All in, if I had to buy everything from the start this would be about $80. Since I have a lot of the stuff already it'll probably be closer to $55-60.

I am following this guide: Temperature Controller

All the parts are ordered, and I will update this and document what I do as we go in case anyone else wants to go a cheaper route for their controller.
 
Last edited:

Cody

Vice President
Staff member
Administrator
Moderator
Content Moderator
Board Member
Supporting Member
Joined
Jul 23, 2014
Messages
7,304
Reaction score
4,253
Location
Spring, TX
Dude, figure out how to get these up and running and I'm right behind you using one. I'll try it out on a smaller system for a while then move it to my main if it is reliable.

Also, while you're going through it, see how difficult it would be to add more controllable outlets. What would be the max? Juwt keep that in your mind while you're working on them :D
 
OP
OP
Tenny

Tenny

Supporting Member
Build Thread Contributor
Joined
Jul 18, 2018
Messages
755
Reaction score
588
Location
League City
Dude, figure out how to get these up and running and I'm right behind you using one. I'll try it out on a smaller system for a while then move it to my main if it is reliable.

Also, while you're going through it, see how difficult it would be to add more controllable outlets. What would be the max? Juwt keep that in your mind while you're working on them :D

Definitely. After I get it setup I'll probably run it in a bucket of water for a week or two just to ensure it seems to be working properly.

As far as controllable outlets, I think it's 28 outlets max (w/ RP3) BUT you start sacrificing probes (other outputs / inputs) for the outlets. You can easily buy a 16 port relay for cheap though ($15-20) which will probably be enough for most of us. Then maybe a 4 port solid state (for dosing / ato) and then you'll still have 8 spots for other stuff like i/o.

There's actually a lot of great development going on there related to Digital Aquatics (ReefKeeper) talking about re-using the stuff sensor ports, Power Brick 4, and stuff like that. I have a bunch of older RK stuff I was about to sell but I think I'm going to hold onto that. That would make it a lot easier for most people!
 

lucho

Supporting Member
Joined
Sep 28, 2009
Messages
25
Reaction score
8
Location
77005
Great idea. I ended up building one with an Arduino, and has been running my tank for a few months now. I had a Reef Angel before and wanted to reuse some of their stuff, that is why I went with Arduino.



Sent from my iPhone using Tapatalk
 
OP
OP
Tenny

Tenny

Supporting Member
Build Thread Contributor
Joined
Jul 18, 2018
Messages
755
Reaction score
588
Location
League City
Great idea. I ended up building one with an Arduino, and has been running my tank for a few months now. I had a Reef Angel before and wanted to reuse some of their stuff, that is why I went with Arduino.



Sent from my iPhone using Tapatalk
That's awesome! Any pics or thing to show us what you did?


I got the Raspberry Pi in today and loaded ReefPi on it. All the sensors come in Wed-Thurs, but I leave to NH tomorrow. So I will resume Sunday or next week.
Annotation 2018-11-13 183524.jpg

Also doing a little experimenting with PlastiDip and Magnets.

It's not working out so well. lol
 

lucho

Supporting Member
Joined
Sep 28, 2009
Messages
25
Reaction score
8
Location
77005
It doesn’t look very pretty. I have 3 ph probes, 4 temp probes, and 4 8-outlet relays attached to it. Also a humidity sensor and 4 water level sensors. The water level sensors are the best feature in my opinion, they came from the RA and are pressure sensors that measure the column of water. You can see in the display that they show % of water.




425828e764b8c570e87aa34bcd88db0c.jpg



Sent from my iPhone using Tapatalk
 

Cody

Vice President
Staff member
Administrator
Moderator
Content Moderator
Board Member
Supporting Member
Joined
Jul 23, 2014
Messages
7,304
Reaction score
4,253
Location
Spring, TX
Do y'all have links on where to ready up on how to make one of these?
 
OP
OP
Tenny

Tenny

Supporting Member
Build Thread Contributor
Joined
Jul 18, 2018
Messages
755
Reaction score
588
Location
League City
It doesn’t look very pretty. I have 3 ph probes, 4 temp probes, and 4 8-outlet relays attached to it. Also a humidity sensor and 4 water level sensors. The water level sensors are the best feature in my opinion, they came from the RA and are pressure sensors that measure the column of water. You can see in the display that they show % of water.




425828e764b8c570e87aa34bcd88db0c.jpg



Sent from my iPhone using Tapatalk

That looks awesome. Nice little LCD screen with status of everything on it. I'm guessing you have multiple conditions on it for the various things. Any more pics to share? Is it hosting a webserver (i think this is the pi's strength) so you can configure stuff that way or do you have to upload new code to the arduino whenever you do it? Did you write it all yourself or is there others doing it too? Opensource? Sorry ... tons of questions :)

Do y'all have links on where to ready up on how to make one of these?
https://reef-pi.github.io/ for the Raspberry Pi
 

lucho

Supporting Member
Joined
Sep 28, 2009
Messages
25
Reaction score
8
Location
77005
I need to upload a new code when I want to change things. Not the most efficient, but workable. I am using the Blynk app to use it with my phone.
I coded most of it, but also used some of the RA code as inspiration when I used their hardware.
Here is a pic of the app and a crappy picture of the back of the controller


8982a354bf46328fd598de98a92a3a76.jpg

17f156db8c7e97c6119953e643dec09e.jpg





Sent from my iPhone using Tapatalk
 
OP
OP
Tenny

Tenny

Supporting Member
Build Thread Contributor
Joined
Jul 18, 2018
Messages
755
Reaction score
588
Location
League City
I need to upload a new code when I want to change things. Not the most efficient, but workable. I am using the Blynk app to use it with my phone.
I coded most of it, but also used some of the RA code as inspiration when I used their hardware.
Here is a pic of the app and a crappy picture of the back of the controller


8982a354bf46328fd598de98a92a3a76.jpg

17f156db8c7e97c6119953e643dec09e.jpg





Sent from my iPhone using Tapatalk
App looks great. Very functional. Also... 4 ethernet ports?

What's your outlet's look like?

I'm wondering if I can rip open a basic power strip and wire to them versus using standard duplex outlets.

It appears that the ReefPi doesn't support two temperature sensors currently.
 

lucho

Supporting Member
Joined
Sep 28, 2009
Messages
25
Reaction score
8
Location
77005
Thanks! I actually have 3 Ethernet ports. I haven’t yet finished that part, intended to control 3 jebao return pumps using the controller that links to the apex (hence the Ethernet). I had to get a voltage increase module since the arduino only outputs 5v and Apex is 10v. That was intended for my new build, will try it in a few months.
On the relays, I am essentially using the RA ones. I use one built from a relay, but had 3 more in my RA so it didn’t make sense to build one that looks ugly when I could use those.




Sent from my iPhone using Tapatalk
 

newellio

Supporting Member
Joined
Oct 27, 2018
Messages
36
Reaction score
18
Location
Bryan, Tx
When i had my tank setup in San Diego i built a complete my own Reef Pi type controller. I can't wait to get unpacked and get a new tank setup so i can add some new features. I had 16 outlets, temp, ph, salinity, full web interface with an app for my phone. Also had a second pi with a touchscreen mounted into the stand so i could quickly see an alert if i missed one. I had wrote all my own code.. Time consuming, but i got it to do what i want.

Another cool feature you may want to consider adding is leak detection.
 

steveb

Staff member
Administrator
Moderator
Board Member
Build Thread Contributor
Joined
Jun 24, 2009
Messages
11,953
Reaction score
2,856
Location
Spring
When i had my tank setup in San Diego i built a complete my own Reef Pi type controller. I can't wait to get unpacked and get a new tank setup so i can add some new features. I had 16 outlets, temp, ph, salinity, full web interface with an app for my phone. Also had a second pi with a touchscreen mounted into the stand so i could quickly see an alert if i missed one. I had wrote all my own code.. Time consuming, but i got it to do what i want.

Another cool feature you may want to consider adding is leak detection.


Y'all need to post detailed plans for us electronically challenged folk who would like to do the same..

None of that fancy resistor, transistor funny talk...lol just pictures and instructions a 6th grader can follow ;)



Seriously... Anyone interested in doing a show and tell DIY controller MARSH meeting at some point?
 
Last edited:

newellio

Supporting Member
Joined
Oct 27, 2018
Messages
36
Reaction score
18
Location
Bryan, Tx
i have no issue releasing my code and design... i'm just technically homeless right now and my computers and raspberry pi are buried in the bottom of a uhaul storage. When i move to my real place in January and dig stuff out of storage, i'll be happy to post some code, steps and designs. You do need a little linux OS/ bash shell ability. Put something on your calendar and hit me up in January. :)
 

steveb

Staff member
Administrator
Moderator
Board Member
Build Thread Contributor
Joined
Jun 24, 2009
Messages
11,953
Reaction score
2,856
Location
Spring
i have no issue releasing my code and design... i'm just technically homeless right now and my computers and raspberry pi are buried in the bottom of a uhaul storage. When i move to my real place in January and dig stuff out of storage, i'll be happy to post some code, steps and designs. You do need a little linux OS/ bash shell ability. Put something on your calendar and hit me up in January. :)

Got ya covered on the Linux OS/bash shell front! I’m a Unix/Linux escalation engineer.


Sent from my iPhone using Tapatalk Pro
 

sneezebeetle

Treasurer
Staff member
Moderator
Board Member
Supporting Member
Joined
Jul 9, 2015
Messages
5,526
Reaction score
1,886
Location
Houston, TX
This is all like a foreign language to me. I am by no means technilogically or electronically gifted but man do I wish I was! Agree with Steve though, need 6th grade level instructions haha! I wouldn't mind trying this out.

Sent from my SM-G920V using Tapatalk
 
OP
OP
Tenny

Tenny

Supporting Member
Build Thread Contributor
Joined
Jul 18, 2018
Messages
755
Reaction score
588
Location
League City
Update time!

So I received almost all the parts for the controller while I was out of town:
Rw23Kr0QKChSpc-YKbDA1QxsnPwlZuFhk-x1TBc2SWOPzdWCrTX74zPRmVxCwXkS8qNK2heXcESsnNW4di6Uy_RnNf-9bTQ3cosOb8mOgozbL6_uC8buzZjpSHSfcoj41k-KMhB0Q8MYDaJQ91SZpbZ2p6zKb8ZbxU4TdyboMiuNOZcjkx7OKq5ErZKnGcLRHJ0BjttZ-Pr26kuq5syShCc_A5HIfYpsKZJafJ0IN-NsXxuwmcCjdU__JkRhhfOJelttsJhwr8agaMiloqTiYs2ivAUZ-U6-K54bNzOvWuqVpsNhrcNFxIyKP8ylEksovyYGQoIZTYnUoyhCTB9k5JjO1JfYug-4tZs0fDQ4oOd72v1EcTnfVHPeFi2rSQe3Wq-ZBLkD61m2OWXhrEGaDNVkrF4fZTMCrRat2-OASHAnmx13k8a_UpDvbQhJfECSZM_qhQ94XPsXnPhaSkKXpeG3ljB7-xOyZ8DXWaX0A39bzAjFSO-xBWqjjNoBVMY9Xvx6GDVwB4pz9js5kAhHtowSd3u3XHOJzCG-TgQKsL0ck_NLcBUi64ttngtbyD6oaUzpRhtMKq--PKKEgeeyiN9virVLonCW9_rwptZtDqvTGebnx3ytjlu6TvHSYyZcChLcb9VoLJzmWbkC6Gjj_9vmpF5zYNRAj5TEmApW0eniwbEGjpcvwwxmjhINbwiFLPNcy6BzTkPofHFCWAg=w1410-h1057-no


I have one of the temperature probes dipped in Plasti-Dip. I dipped it twice to ensure it wouldn't rust (they say the probe can handle f/w... not s/w). I question if that's too much insulation now though... I also read that it can support two temperature probes, but I'm not 100% certain yet.

I got the basics wired up:
QgseIpzjgVu3b1F4qYmdUQVbD34kTl6nzbPD52BoMmDnD3olopiG7Cz_Ct4jd84KF0ylRA-ZMcMaUUbXC6kwc_mlcvpVZ767mr8gYXQRUIxAvVwZT8uYF2FruU_OcrmJxX0Z-kPKT8XQQYlqxRsyGNVB5Dx3T7vZRzCZ0wPY9_M39yEk9x7_nKtnjx6oYkY0lCXXO_n3jgYAfmFECyqZFqXaCdd6t5voiSrXkxY0HihOaAoXEz7yfWrkl9sIEnB4vs5AcyuIqbjLlerrGDzmT8p4_l3K-s-GrYoSmLlFjH-W1iEspgWKLMG8-c6DM3WkZ1WO26a99VFj1dEWMrlNWn-LlD0p0br78WCzYHW_MAEpEjJClkPgz-w4QixyRtJbDn6CXaYonhSaTFI_WFXzn1M8y-EFuXyPL_whkjpm5zSNVJF9zWlVq7FEzOBkKr7yHaIJBJunB4fQnq-0p23G5cJirjQJDOjHrj2P0IaBNyzllVImGatl752oK9fpTBFZ6rsmZ6nlz6f3WwbImZZxzGXy8GXKtsXZsF4rnf5W0IW6SK1Ab1DMk1ZeuK1DYlekn5id7U6FhAcK4X_o-_JX9hcq6agIPDV7qOburhiPSSQvTDqbiqf3fddlxJqdv-WvROYSdv05xaOBjy07ibaFYnL7UAuLuk2V3KVhNaNJw14qolz2ZdSKHSuKrKLNMsvENmRnK78xeLYCYJy_zk8=w793-h1057-no


And it works properly. I've had it running since Sunday check monitoring temperature fluctuations in the house and it's controlling the relay just fine. I did have a weird incident yesterday where the temperature went out of the norm (went up to 80*f in the house, when it should have been between 66-70*f). I do just have the probe laying on my table, and my cats do lay on the table at times. So I am monitoring it closely... I may put it on my water change station for a few days or weeks before I actually put it on the tank. I am going to just throw in another temperature sensor tonight just to monitor the difference between them.

I ordered a few more parts last night (sadly they won't be here until Friday).
- Power Plugs (connectors)x5 Individual
- Waterproof Project Box
- Power Socket w/ 10A Fuse

I am re-using cables like this for the temperature probe connection: 2 3 4 5Pin Waterproof IP67 68 LED Strips Connector Cable for 3528 5050 5630 UE (although the ones I have are 4 pin).

My current plan is to wire the five outlets to the top of the power box, and house everything inside.

I am kind of torn... part of me feels I should have bought six of those power plugs, that way I could use one to power the pi, and the other to control my AI Prime (both always on).... BUT I feel that if I run the Pi off the wall directly if something trips the fuse, the Pi will still know alert me of issues (unless whatever tripped it fries the pi).
 
OP
OP
Tenny

Tenny

Supporting Member
Build Thread Contributor
Joined
Jul 18, 2018
Messages
755
Reaction score
588
Location
League City
Just a crazy idea...

What if we did a Marsh build party for something like this? Everyone would have to bring their own components but we could kind of run it like a class? I've done a lot of educational robotic and drone classes like that... it could work and get those that want to do it but don't have any experience the "push" for them to start.
 
OP
OP
Tenny

Tenny

Supporting Member
Build Thread Contributor
Joined
Jul 18, 2018
Messages
755
Reaction score
588
Location
League City
Set up the second temperature probe. Was kind of surprised that it's hooked into the same data pin going to the Pi. Didn't realize it was doing that tbh... but I know other things that can communicate like that... just caught me off guard.
piSX4tgxh4AxEghqsDIXPfl98ejSfuYCN7UTDVD0W0XqQX_ROkinA3373SmCka63VnI7In0yJaBEjLwlMA6WMlyY4B5yfpfWdDyBKMV52BggY34btG_EN7gj1Xmx5nn25dgr73ZFmWBaIuYdscsItHctBbAAnUxB0yyT4diQdo1lX99ZFCyw4LkTqYKA05yhao8nDG05IxSxe7s-64VGtKE4bQMo1iDREp6B7t2kmhj6CGzBeUWRNIMPKScF8JtOSgaETZPu2kX7SL_Y_n9PfvpRnHHkFXGHbgoyxgM30p9f-_eJ5FLN3fk4djKjxsojvohi8sy4HA0THnRkvrghbQM1XVOJiRFfHmQ-elgtg66xEKJ-ogqQU4pYLkmwZdIFuKceH3SvibYC1bW7n6cyhOAkci_5YQgfyMg2pbop8qRdXRS62RzDk-UZulbufgOKp5BVBafCQOqHaRIPUCFd4qHA1yT9nvEeULOwRVRVsk7PbMqAzf21xCFe06VkqVNNsynDhwVcAWLKYqJTsZiIi72EEvvEMbdWjdG6YvN7zWp69lXC5JCueZ92Kq-hQ84fxvD5JruEeEF_tOaRbamM4s7QyN4nLwgi3ewjgdxqfQgHsXVjH86FOIQwaVOpCeZF6P1B7m54XViLkUTzxkseObglRmXz4kJENDcU83uC4HWRSW5V6VpGL5ChfIH6EuL8iANql6SChEoOgKEZc7M=w1439-h1079-no


Reef-Pi also released 2.0 (no longer RC).
iwG6F7vbGGgUgTjA2WAB2b0sfxAyzdeZ6ez9m2c7Szt1HXd6sD1WY5mzYjTc1FDMnlfQuVKrbXbfndhWTdyFwA913lQaDSpE-VL2EDmI8tG6mkl4c-nc7eWWKXR6a8ZKD2FG0qyb0Mkjt-BRX5GonU6d2M6j1vTwZDKGQai_GIpgD89xfJCD4DOhMrUPRM0zV36PbqgPNHkZDD1hPEd_qLWky9tEPwHjU4pCEt9Bxrxak_TnGEl9irXzCXnWM19jlJ-MeB44qid97Om7wWHROHS39g3lN7ToJusHf6DObRyythXBJyKA7PkpN89MUXvMV6kBzAXxWqDk9WdtJHNfsf9c2IxpZi6QrIMPhMlHZU_cZFXW6xBh_EBYWSP-1UfDMQbgw7IYLapa2c8q7bx74eP203btLH3P_0O4ACVRPqYfI44mZn8G-6znm2pumjb68TPtNCR8_Pu2aUMjYFX11JpNHW_q8l46yd2uFzug4tE8Nzf5wYdb6YKuzOg24Z0Q8g0cYJ9HjOxQEfoAcgT7GWEUbyIlCRk9R9Ppd-6TSrj44I8QrBBgaUw44jYFNGA5tpvdMwqOb0FR52IrAFkIzSz1_sz95BYryFqPVc44FKU0KzilxbrbkWzfmj5e95SYrOCn94Sd4kS1F4ceiMV0dLId-wwubIDmGvw0ix8tla6xfti6YbtrKv2nao-KrmRBW8CjH88-q7peA5gqgeM=w1398-h1079-no

(Temp readings are off because I was messing with them). Hopefully Friday or Saturday I can finish this project up and put it on the water change to monitor it keeping the temp accurate.
 
Top