reef-pi :: An opensource reef tank controller based on Raspberry Pi.

hhaase

Active Member
View Badges
Joined
Nov 11, 2019
Messages
415
Reaction score
355
Rating - 0%
0   0   0
Hmmmm..... I think I'll take my dive into this via just building one up. This way I can get a good feel for areas that might be well served by having a dedicated PCB. I've never really used a pi before but no reason I can't start now. From what I can tell there are a few main system groups, which are all independent standalone systems right now. Is that a safe assumption?

Here's the systems I see at current in the adafruit guides that would line up as their own schematic/layout sets. Feel free to correct me at any point. I'd like to start doing up schematics for these individual units.

A main hat, which includes the external power controller, temp controller, and level controller. This should be very easy to incorporate into a single dedicated PCB.

A PH monitor controller. This looks like just a basic breakout board.

A dosing controller. Very simple looking single board system to be honest.

A lighting controller system. Most of this could also be put onto a single board, with the PCA9685 as a daughter-board stacked on top. Once the design is nailed down, given that adafrut stuff is typically also open-source based, it could potentially be integrated into a single board system, but I'd probably not do that yet. I also don't have lights that are compatible, but doesn't mean boards can't be made. Just that I can't test here.
 

Blaxkin

Community Member
View Badges
Joined
Oct 4, 2019
Messages
27
Reaction score
46
Rating - 0%
0   0   0
So now iam also finished my build :)

With 3.0 and pca9685 as outputs i integrated 5 12v outputs :) thanks for that

i designed 3 pcbs, two of them are stackable

a jebao dp4s can be directly connected.

thank you ranjib for reef pi :-D

618B166C-3A28-46D1-8CA6-A6C61350BE59.jpeg
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
So now iam also finished my build :)

With 3.0 and pca9685 as outputs i integrated 5 12v outputs :) thanks for that

i designed 3 pcbs, two of them are stackable

a jebao dp4s can be directly connected.

thank you ranjib for reef pi :-D

618B166C-3A28-46D1-8CA6-A6C61350BE59.jpeg
Woohoo :) . thats awesome . Thank you for sharing
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hmmmm..... I think I'll take my dive into this via just building one up. This way I can get a good feel for areas that might be well served by having a dedicated PCB. I've never really used a pi before but no reason I can't start now. From what I can tell there are a few main system groups, which are all independent standalone systems right now. Is that a safe assumption?

Here's the systems I see at current in the adafruit guides that would line up as their own schematic/layout sets. Feel free to correct me at any point. I'd like to start doing up schematics for these individual units.

A main hat, which includes the external power controller, temp controller, and level controller. This should be very easy to incorporate into a single dedicated PCB.

A PH monitor controller. This looks like just a basic breakout board.

A dosing controller. Very simple looking single board system to be honest.

A lighting controller system. Most of this could also be put onto a single board, with the PCA9685 as a daughter-board stacked on top. Once the design is nailed down, given that adafrut stuff is typically also open-source based, it could potentially be integrated into a single board system, but I'd probably not do that yet. I also don't have lights that are compatible, but doesn't mean boards can't be made. Just that I can't test here.
On spot with your assessment
 

DawnfromPa

Community Member
View Badges
Joined
Nov 11, 2019
Messages
85
Reaction score
215
Rating - 0%
0   0   0
Let me know when you master this and it comes to market. I will buy for sure just price it under 99 so I can afford it. I know this will be huge especially for all in ones. I use apps that were set it and forget it...and barely do much now.
 

burningbaal

Active Member
View Badges
Joined
Aug 13, 2019
Messages
232
Reaction score
257
Location
Near Seattle
Rating - 0%
0   0   0
So now iam also finished my build :)

With 3.0 and pca9685 as outputs i integrated 5 12v outputs :) thanks for that

i designed 3 pcbs, two of them are stackable

a jebao dp4s can be directly connected.

thank you ranjib for reef pi :-D

618B166C-3A28-46D1-8CA6-A6C61350BE59.jpeg
wanna send one to me!? :)
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hive minds,
I have just cut another release candidate, reef-pi 3.0-rc0 . This is the first release candidate for 3.0, coming two weeks after 3.0 beta release. This means we have fixed all the critical bugs. And unless some new blockers found (serious bugs ) we are on our course for final release. This is mostly a bugfix release since 3.0 beta with some ui improvements for the light module. Here is a summary of changes, taken straight from the release page,

  • bugfix: reef-pi db command argument processing
  • bugfix: jack remove ui was broken
  • feat: expose reversible option for macro (required for control target)
  • feat: light ui support for 3.0 api
  • feat: dutch translation
  • bugfix: temperature and ph chart current reading not showing
  • chore: log driver initialization errors
  • chore: improve internationalization coverage (connectors ui)
  • feat: use selectable pins for connectors based on driver types
  • bugfix: email to ui field under telemetry section does not accept user input


packages can be found in usual location: https://github.com/reef-pi/reef-pi/releases/tag/3.0.0-rc0
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,035
Location
Durban - South Africa
Rating - 0%
0   0   0
Is one wire enabled and the sensors are detected by raspbian. Reef-pi can only show them and use them if its detected. If its not,, this is beyond reef-pi, and we have to look are circuit/raspbian configuration
They were working for about 5 days then stopped. So 1-wire must be enabled or they wouldn't have been detected and installed in the beginning. Not so?
I'll run Raspi-Config now and check though.
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,035
Location
Durban - South Africa
Rating - 0%
0   0   0
They were working for about 5 days then stopped. So 1-wire must be enabled or they wouldn't have been detected and installed in the beginning. Not so?
I'll run Raspi-Config now and check though.

Update

Before checking Raspi-Config, I physically unplugged my sensors from the board. Rebooted and plugged back in. Reef-Pi now sees the sensors = win.

BUT because I deleted my "Tank Temp" from the Temperature tab, I needed to set that up again with Temp control. I can't save the settings because the UI tells me "The temperature settings cannot be saved due to validation errors. Please correct the errors and try again. " in the pink box. I also get the "hysteresis_less_than" notification in red under the Hysteresis box. I have tried various numbers for hysteresis.

Reef-Pi is measuring temp and plotting the graph now, but I can't add control.

Solution?
 

PaulJ2303

Community Member
View Badges
Joined
Sep 30, 2018
Messages
76
Reaction score
172
Rating - 0%
0   0   0
Hi @Ranjib
just tried rc0 everything looks good apart from my first temp sensor disappears when you reboot the pi ... i've attached ac couple of screen shots to help with any debugging as i know you've had this from a couple of others:

temp 1.JPG temp 2.JPG

these screen shots are both from after a reboot and the tank temp disappears from my dashboard.

Edit:
if i then delete "tank temp" from reef pi and re make it ... i can then re initialise it in the dashboard and it's fine again until the next reboot
hope that helps.
 
Last edited:

Mike Kearns

Active Member
View Badges
Joined
Apr 4, 2019
Messages
252
Reaction score
370
Rating - 0%
0   0   0
So now iam also finished my build :)

With 3.0 and pca9685 as outputs i integrated 5 12v outputs :) thanks for that

i designed 3 pcbs, two of them are stackable

a jebao dp4s can be directly connected.

thank you ranjib for reef pi :-D

618B166C-3A28-46D1-8CA6-A6C61350BE59.jpeg
That looks awesome. Did you 3D print the box?
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,035
Location
Durban - South Africa
Rating - 0%
0   0   0
Update

Before checking Raspi-Config, I physically unplugged my sensors from the board. Rebooted and plugged back in. Reef-Pi now sees the sensors = win.

BUT because I deleted my "Tank Temp" from the Temperature tab, I needed to set that up again with Temp control. I can't save the settings because the UI tells me "The temperature settings cannot be saved due to validation errors. Please correct the errors and try again. " in the pink box. I also get the "hysteresis_less_than" notification in red under the Hysteresis box. I have tried various numbers for hysteresis.

Reef-Pi is measuring temp and plotting the graph now, but I can't add control.

Solution?

Discovered something.... When setting up Temperature control, you need to define Chiller Threshold as well as Chiller in addition to defining your heater, even if you have no chiller attached. If not, you get the "Hysteresis error" described above.
 

mk1scott

New Member
View Badges
Joined
Nov 13, 2019
Messages
10
Reaction score
9
Rating - 0%
0   0   0
Hey guys & gals, first time poster, long time reader. First and foremost, a huge thank you to everyone involved in developing this software! This is a game changer for me (just getting back into reefing after a 10 year hiatus).

I've been running Reef Pi flawlessly for a little over 4 months now running 3.0 alpha 2 (Pi zero w/ Pico board). However, just this week, I have seen my system load spike (max out) and crash the web UI twice. Both times requiring a power cycle to get back online. When the system load spikes and crashes the UI, Reef Pi continues to control my system as it should, but stops sending data to the web UI as well as adafruit IO. It first occurred Sunday afternoon (2:56pm typical load of 0.06; 3:13pm load jumped to 1.01) and then again this morning (7:38am load 0.06; 8:09am load 1.00).

I'll try pulling the logs tonight but wasn't sure if anyone else was experiencing any recent unexpected spikes.
 

Blaxkin

Community Member
View Badges
Joined
Oct 4, 2019
Messages
27
Reaction score
46
Rating - 0%
0   0   0
Now here is my Problem. After Restart i get some Errors from Temp Probes. But i only have to delete and recreate the Probes because they are always aviable to choose.
I hope you know what i mean.

95C920D8-4167-49DF-A249-E8652FFF8B44.png 5349DA60-3853-48B4-BB95-124850302BFD.png BD9300EA-F04C-448E-A560-0600A28358B9.png 40D45D1A-5459-473D-AF83-858CAAEB79F9.png
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Now here is my Problem. After Restart i get some Errors from Temp Probes. But i only have to delete and recreate the Probes because they are always aviable to choose.
I hope you know what i mean.

95C920D8-4167-49DF-A249-E8652FFF8B44.png 5349DA60-3853-48B4-BB95-124850302BFD.png BD9300EA-F04C-448E-A560-0600A28358B9.png 40D45D1A-5459-473D-AF83-858CAAEB79F9.png
Thank you for reporting this. I think I understand the problem a bit better now. Can you confirm following:
- Does this only happen if you reboot? What if you just reload reef-pi ?
- When you next encounter this, instead of deleting /adding them, can you just wait few seconds and reload reef-pi, and see if that resolves this.
- FYI: those "error: stats not found" issues are benign and just side effect sensor not being detected or enabled. they are used for charting only. I'll see if we can suppress those
 

Blaxkin

Community Member
View Badges
Joined
Oct 4, 2019
Messages
27
Reaction score
46
Rating - 0%
0   0   0
Thank you for reporting this. I think I understand the problem a bit better now. Can you confirm following:
- Does this only happen if you reboot? What if you just reload reef-pi ?
- When you next encounter this, instead of deleting /adding them, can you just wait few seconds and reload reef-pi, and see if that resolves this.
- FYI: those "error: stats not found" issues are benign and just side effect sensor not being detected or enabled. they are used for charting only. I'll see if we can suppress those


-Yes it only happens after a reboot

-I tried a reload and the problem is the same

-but now i see when i only click edit on the sensor and save. they came up after about 5 minutes

-and now i see the problem is not only on the temp probes. its the same problem with the pca9685

-the only i2c device that's always without an error is the ph ego board
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
-Yes it only happens after a reboot

-I tried a reload and the problem is the same

-but now i see when i only click edit on the sensor and save. they came up after about 5 minutes

-and now i see the problem is not only on the temp probes. its the same problem with the pca9685

-the only i2c device that's always without an error is the ph ego board
I am postulating a theory that sensors and other i2c devices are being initilized after reef-pi starts, as a result when reef-pi starts it does not find them.. I dont know how to verify this, as im never encountered it, but i am aware of some trick on systemd level we can do to make sure reef-pi starts after those things are up and running, i 'll cross check how to get it done and what implications of this.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I am postulating a theory that sensors and other i2c devices are being initilized after reef-pi starts, as a result when reef-pi starts it does not find them.. I dont know how to verify this, as im never encountered it, but i am aware of some trick on systemd level we can do to make sure reef-pi starts after those things are up and running, i 'll cross check how to get it done and what implications of this.
BTW, this is pi 4 or 3 or zero?
 

High pressure shells: Do you look for signs of stress in the invertebrates in your reef tank?

  • I regularly look for signs of invertebrate stress in my reef tank.

    Votes: 5 23.8%
  • I occasionally look for signs of invertebrate stress in my reef tank.

    Votes: 8 38.1%
  • I rarely look for signs of invertebrate stress in my reef tank.

    Votes: 4 19.0%
  • I never look for signs of invertebrate stress in my reef tank.

    Votes: 4 19.0%
  • Other.

    Votes: 0 0.0%
Back
Top