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

MikeSpike

Member
View Badges
Joined
Jan 2, 2019
Messages
46
Reaction score
44
The second one. Configure the ato to run every 5 seconds. I’ll be changing the default check frequency to 5 in next minor release

We are thinking of a feature akin to option 1, as you called out. Feel free to add comments in the tracking issue https://github.com/reef-pi/reef-pi/issues/701
Thank you!

One other suggestion (apologies don't understand how to do on GitHub) would be good if you could click on the bar chart in the dashboard to make things go on and off rather than having to go to the equipment tab
 
Best reef aquarium LED lighting

hhaase

Member
View Badges
Joined
Nov 11, 2019
Messages
28
Reaction score
45
Based on Ranjib's input, here's my updated hat board. Same concept as before, basically taking my previous one and adding the PH and Orp probe circuits. But based on the ReefPi PH probe board, instead of the Atlas Scientific. The various chips needed for these circuits aren't cheap, but still a lot more affordable than using the Atlas stuff, that's for sure.

Schedule wise, I'm hoping to have these ready to test around the end of the year. I should probably get another Pi or two at some point as well, since I plan on using these in a few locations once the tank gets here.



Reefpi v0_2_1.jpg
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,608
Reaction score
13,580
Location
Palo Alto, Bay Area
Thank you!

One other suggestion (apologies don't understand how to do on GitHub) would be good if you could click on the bar chart in the dashboard to make things go on and off rather than having to go to the equipment tab
We have discussed something similar, a widget instead of chart for equipment in dashboard, that will allows switching equipment on/off from dashboard directly .ill see if we can get it done soonish
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,608
Reaction score
13,580
Location
Palo Alto, Bay Area
Based on Ranjib's input, here's my updated hat board. Same concept as before, basically taking my previous one and adding the PH and Orp probe circuits. But based on the ReefPi PH probe board, instead of the Atlas Scientific. The various chips needed for these circuits aren't cheap, but still a lot more affordable than using the Atlas stuff, that's for sure.

Schedule wise, I'm hoping to have these ready to test around the end of the year. I should probably get another Pi or two at some point as well, since I plan on using these in a few locations once the tank gets here.



Reefpi v0_2_1.jpg
Looks awesome .
Remind us again what all this board will offer ? I noticed double ph probe , db9 for power strip , couple of temp probe and two ato probe ( photoelectric ). No float switch and 10v pwm output right ?
 

PaulJ2303

Member
View Badges
Joined
Sep 30, 2018
Messages
76
Reaction score
172
Can I ask a small QOL question:
Is there a way to manually set the vertical scale of temperature displays on the dashboard?
 

hhaase

Member
View Badges
Joined
Nov 11, 2019
Messages
28
Reaction score
45
Looks awesome .
Remind us again what all this board will offer ? I noticed double ph probe , db9 for power strip , couple of temp probe and two ato probe ( photoelectric ). No float switch and 10v pwm output right ?
Two temp probes. Two measurement probes (Can be either Ph or Orp depending on the installed resistor). DB9 power controller output. One photo-electric water sensor.

For this version I haven't done a float switch yet, but that's on my list for the next version after this. I haven't looked at the 10v pwm yet either. I could probably still add a float switch but I haven't had time to dig up the needed circuit. Would it still be just a power/ground/signal header, with a pull-up resistor on the signal? If you can suggest which GPIO pin to attach to, I can add one or more of them easily. I haven't ordered these yet.

-hans
 

Des Westcott

Active Member
View Badges
Joined
May 29, 2018
Messages
373
Reaction score
586
Location
Durban - South Africa
Can you file a issue in github to track this. I need to dig deeper into this. Somethings to remember
- reef-pi stores all stats in memory to reduce disk io. This is a global strategy to avoid sad card wear and tier as much as possible,
- reef-pi will save the stats in disk (sd card ) during regular shutdown and hourly roll up .
- if you are shutting down the pi abruptly , it is expected to loose the current hours data,

I have to decipher if your condition is as expected due to those. Or we have a bug somewhere
I have filed a bug on GitHub. It is definitely happening outside the 1 hour window. ie data from a water change 6 hours ago disappears when I lose power unexpectedly.
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,608
Reaction score
13,580
Location
Palo Alto, Bay Area
I have filed a bug on GitHub. It is definitely happening outside the 1 hour window. ie data from a water change 6 hours ago disappears when I lose power unexpectedly.
Thank you . I’ll investigate as soon as I can. Meanwhile if you know the time of power outage it’s worth configuring a systemD timeR (cron job) for reloading reef-pi before the outage. That will save things on disk proactively . Keep a backup sd card ready , sudden shutdown will speed up the bad card wear n tear
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,608
Reaction score
13,580
Location
Palo Alto, Bay Area
Two temp probes. Two measurement probes (Can be either Ph or Orp depending on the installed resistor). DB9 power controller output. One photo-electric water sensor.

For this version I haven't done a float switch yet, but that's on my list for the next version after this. I haven't looked at the 10v pwm yet either. I could probably still add a float switch but I haven't had time to dig up the needed circuit. Would it still be just a power/ground/signal header, with a pull-up resistor on the signal? If you can suggest which GPIO pin to attach to, I can add one or more of them easily. I haven't ordered these yet.

-hans
Yes, the float switch circuit is exactly same as attaching any latching /spst switch . Use any of the free gpio excluding i2c, pwm and one wire.

Gpio 18 & 19 are normal 3.3v pwm output , Gate them with a npn transistor to convert them to 10v pwm. This will allow kessil light, deltec pump and variety of other equipment control
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,608
Reaction score
13,580
Location
Palo Alto, Bay Area
Can I ask a small QOL question:
Is there a way to manually set the vertical scale of temperature displays on the dashboard?
Not right now. We removed it in 3.0 due to some inconsistent behavior. We plan to reintroduce it back after we have some idea how to cleanly support this
 
Top Shelf Aquatics

hhaase

Member
View Badges
Joined
Nov 11, 2019
Messages
28
Reaction score
45
Ahhhh, now I see it. The PWM control falls under the 'light controller' design, with the PCA9685, correct? So there will be additional voltage regulation and such involved.

I think I'm going to handle that as a daughter-board actually. But I can very easily add on a header for that until I have time to do that extra board.

-Hans
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,608
Reaction score
13,580
Location
Palo Alto, Bay Area
Ahhhh, now I see it. The PWM control falls under the 'light controller' design, with the PCA9685, correct? So there will be additional voltage regulation and such involved.

I think I'm going to handle that as a daughter-board actually. But I can very easily add on a header for that until I have time to do that extra board.

-Hans
PCA9685 provides additional 16 channels of pwm, but Pi itself has two hardware backed pwm (GPIO18/19), I was referring to the later, as it wont increase the price/complexity significantly. Yes, generally a voltage regulator (lm2596 is what I use, but you can go with lm7810 or something similar) is use to supply the target pwm voltage (10V), frequency control is done on pi (via reef-pi)
 

hhaase

Member
View Badges
Joined
Nov 11, 2019
Messages
28
Reaction score
45
Makes sense. If it's just a generic NPN transistor and 10k resistor it'll be easy enough to add, I'll have to see what kind of compact regulator I can find in 10v to keep wiring simple. I still think I'll add an output header location though for additional SCA/SCL driven hardware, with 5v/10v/12v available too.

No promises it'll all make it on this revision though.

-Hans
 

Michael Lane

Active Member
View Badges
Joined
Aug 11, 2018
Messages
456
Reaction score
789
Here's a picture. Just deleted & re-added the probe.

After I type the value in:
1575841112532.png


After I go up by one:
1575841152209.png


After I go back down by one:
1575841173707.png
I haven't seen this behavior. Which browser are you using? I'll try to recreate and solve the bug.
 

hhaase

Member
View Badges
Joined
Nov 11, 2019
Messages
28
Reaction score
45
I opted, for now, to put all the PWM stuff off onto a separate daughter board. The cost of all the components for the PH probes makes me not want to go through too many iterations. That and doing the isolation and guarding traces on the main board took a while, and I just don't want to tear all that up right now.

So the separate daughter board is going to have the GPIO18/GPIO19 PWM signals, plus the PCA9685PW decoder. It also lets me off-board the 10v regulator for the time being. Still a few things I want to clean up, I'm concerned with connector amperage over the long term in some locations. Should have it ready to order in a couple days.

I'm also going to lock it the feature set for this version too. If I keep adding stuff I'll never get anything built.

-Hans
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
7,608
Reaction score
13,580
Location
Palo Alto, Bay Area
I opted, for now, to put all the PWM stuff off onto a separate daughter board. The cost of all the components for the PH probes makes me not want to go through too many iterations. That and doing the isolation and guarding traces on the main board took a while, and I just don't want to tear all that up right now.

So the separate daughter board is going to have the GPIO18/GPIO19 PWM signals, plus the PCA9685PW decoder. It also lets me off-board the 10v regulator for the time being. Still a few things I want to clean up, I'm concerned with connector amperage over the long term in some locations. Should have it ready to order in a couple days.

I'm also going to lock it the feature set for this version too. If I keep adding stuff I'll never get anything built.

-Hans
I feel its wiser to keep the pwm outputs in the board and ph as separate. Its a relatively expensive. standlone module (ph). In its current form that can be used, sourced, assembled or added/removed from an existing build easily (just hook up the i2c wires). The same is not true with PWM, they have much bigger use cases, they are cheaper and you will have lesser complexity on the board. Doing the pwm bits by hand with through hole components is rather tricky i feel.
Your call at the end, its DIY and opensource , so nothing stops you really from tinkering with the design. I do think theres might be some niche use cases with dual ph probe.
 

hhaase

Member
View Badges
Joined
Nov 11, 2019
Messages
28
Reaction score
45
All good thoughts. I'm still figuring out how I want to sub-divide everything in the long term to be honest. Particularly with me not having a reef tank again yet (it'll be a month or two till I can set it up).

Right now I don't have anything I can PWM control, so it's a lower priority for me,. But I have a freshwater tank and my RO storage system I can monitor. So I've been focused mostly on the monitoring portion.


-Hans
 
Last edited:

Des Westcott

Active Member
View Badges
Joined
May 29, 2018
Messages
373
Reaction score
586
Location
Durban - South Africa
I've always though that modular stackable hats are the way. Start with a Pi. You only want equipment control? Stack an equipment control hat onto the Pi. You want to control lighting? Add a Light control Hat to the top of the stack. You want a few dosers 6 months down the line? Stack a doser hat on top.

Or am I missing something as usual? maybe limit it to 3 hats that when used together will give you full functionality, but you can choose to have partial functionality if you prefer to start and then increase later really easily.
 

Michael Lane

Active Member
View Badges
Joined
Aug 11, 2018
Messages
456
Reaction score
789
I've always though that modular stackable hats are the way. Start with a Pi. You only want equipment control? Stack an equipment control hat onto the Pi. You want to control lighting? Add a Light control Hat to the top of the stack. You want a few dosers 6 months down the line? Stack a doser hat on top.

Or am I missing something as usual? maybe limit it to 3 hats that when used together will give you full functionality, but you can choose to have partial functionality if you prefer to start and then increase later really easily.
The difficulty with stacking hats is ensuring gpio compatibility between the modules. It either requires standards, or a disciplined design and everything from a single designer/vendor.
It's an interesting idea though. I've considered making a pi tower based on that concept.
 
Top Shelf Aquatics

Is there too much BLAME in this hobby when something goes wrong?

  • Yes

    Votes: 221 55.0%
  • No

    Votes: 79 19.7%
  • Not sure

    Votes: 102 25.4%

Online statistics

Members online
828
Guests online
4,335
Total visitors
5,163
New Easy Masstick Fish Food: JUST STICK IT!
Top