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

Free Phyto Promo
Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed
Shop Now Code: FREEPHYTO
Basically a turn off and on, aka mimic an unplug. The pull-up power is also removed as 1-wire devices are supposed to work on a parasitic mode, powered only by a pull up. A lot of clone sensors can’t be powered like this, but in case a sensor is getting powered... (unlikely if it’s also holding the bus low).

As for detecting this, I recommend a quick script that just reads each sensor, and if it’s failing initiate a reset (off, wait a second, on).
Thanks! Ah so when a bus locks a Pi power cycle isn't required, just need to unplug and reattach all sensors connected? When you referred to a power cycle I thought you meant the Pi not the sensor.
 
Thanks! Ah so when a bus locks a Pi power cycle isn't required, just need to unplug and reattach all sensors connected? When you referred to a power cycle I thought you meant the Pi not the sensor.

Thats the operating theory. The Pi is basically just using a GPIO with the 1 wire kernel driver - there isn't any hardware state. That doesn't mean the kernel deadlocks somewhere in the driver state machine, but thats a different debugging problem :)
 
I’m curious , can we do this straight on the ds12b20 driver ? When checksum or missing probe is detected, toggle a gpio twice, which in turn cycles the 3.3 v power (using a common non transistor )
 
> I’m curious , can we do this straight on the ds12b20 driver ? When checksum or missing probe is detected, toggle a gpio twice, which in turn cycles the 3.3 v power (using a common non transistor )

yup!
 
Thats the operating theory. The Pi is basically just using a GPIO with the 1 wire kernel driver - there isn't any hardware state. That doesn't mean the kernel deadlocks somewhere in the driver state machine, but thats a different debugging problem :)
Well if you think this can help with some cases I think it's worth it, I'm going to add it to my boards and that's awesome Ranjib might work it into the driver. Thanks again for the schematic, I would have never thought the pullup could go to a GPIO, that could be really useful for changing port configuration through software. That'll be useful when I have my dream controller finished in 10 years. :)
 
Hey everyone still seem to be having an issue where my ph calibration button is grayed out and pi is not detecting any readings? Any tips on whether this is probably more a hardware or software config issue?

Figured it out, I hadn't put the EZO in I2C mode
 
Last edited:
Settings bucket has the Prometheus enabled/disabled option, set it to false and start reef-pi, then update the relevant equipment name and enable Prometheus again
@Ranjib @Tom Bishop

Worked! Awesome! Thanks.
But, I didn't see a settings bucket so I deleted the Fans/Cooler in the equipment bucket and all is well now.
 
I have 2 heaters in my tank that have internal digital controls. I want to use the heater's internal control as primary and configure reef pi to act as a failsafe. Best situation would be reef pi shutting down the outlets to both at a certain high temp. Looking at the UI it wasn't clear how to accomplish this and my attempts at finding the answer online have bee fruitless. Can anyone point me in the right direction?
Anybody?
 
Hivemind,
I have just cut a new minor release 4.1, for reef-pi. It brings one useful improvement, the ability to set custom upper and lower limit for Y axis of temperature and ph chart. This was causing significant pain in 4.0 release. Other than this important change there are some minor improvements in timer and doser UI, the schedule component is now distinctly isolated to avoid confusion (as noted in the previous posts) . Theres some internationalization and tech chores that went in as well.

Release builds can be found in usual locations: https://github.com/reef-pi/reef-pi/releases/tag/4.1
if you are a 4.1 user, you can use the UI to upgrade your reef-pi straight from there :)

happy reefing,
Thanks for the UI update i was wondering what was going on with that....
However the temp sensor tab the chart color does not change.
 
I run my with the reef pi providing primary control. The reasons I run like this are. The relays I use for the reef pi are a better quality than the relay in the heater. The temp probe of the reef pi is more accurate. I can program a hysteresis that I desire. And I can monitor heater usage in reef pi. For my setup I set the heater controller about 1 degree higher than the reef pi.

for your scenario with the reef pi as the fail safe and the heater as the primary control; set the heater 1 degree or so cooler than the reef pi.
 
Last edited:
I run my with the reef pi providing primary control. The reasons I run like this is. The relays I use for the reef pi are a better quality than the relay in the heater. The temp probe of the reef pi is more accurate. I can program a hysteresis that I desire. And I can monitor heater usage in reef pi. For my setup I set the heater controller about 1 degree higher than the reef pi.

for your scenario with the reef pi as the fail safe and the heater as the primary control; set the heater 1 degree or so cooler than the reef pi.
Pi being primary makes sense, but I can't with these heaters. They have a boot up when power comes on.

I like your suggestion setting it a degree higher. I dont see how to get my temp probe to manage 2 heaters though...
 
Pi being primary makes sense, but I can't with these heaters. They have a boot up when power comes on.

I like your suggestion setting it a degree higher. I dont see how to get my temp probe to manage 2 heaters though...
Create 2 temperature controllers. Use the same temp probe in each but have them control different equipment.
 
why are my temp sensors not being identified by the pi? only one sensor has been discovered and when a second temp probe is plugged in the first one reads 1 and the new one dosnt show up in the sensor list. i have no idea what im doing programming wise just so you know.
 
Well if you think this can help with some cases I think it's worth it, I'm going to add it to my boards and that's awesome Ranjib might work it into the driver. Thanks again for the schematic, I would have never thought the pullup could go to a GPIO, that could be really useful for changing port configuration through software. That'll be useful when I have my dream controller finished in 10 years. :)
10 years is 4 reef year :-) . Reef-pi is almost 5 years old already
 
why are my temp sensors not being identified by the pi? only one sensor has been discovered and when a second temp probe is plugged in the first one reads 1 and the new one dosnt show up in the sensor list. i have no idea what im doing programming wise just so you know.
For temperature probe there is no programming involved. If you are not seeing the sensor it’s a circuit/probe issue . Let me catch up on your thread
 
Wow so simple, but was totally not seeing it! Thank you!
Here is a wrinkly I have my heaters on normally closed relays so the controller is turning them off when its lower than max temp. Is there a way to flip this? I would prefer if my controller stops working that my heaters remain on, but I can move them to normally open if necessary.
 
Here is a wrinkly I have my heaters on normally closed relays so the controller is turning them off when its lower than max temp. Is there a way to flip this? I would prefer if my controller stops working that my heaters remain on, but I can move them to normally open if necessary.
Perhaps just control them as chillers?
 
Perhaps just control them as chillers?
Test it and see if you get the response you want. That is probably the best way to see how it works.

chillers should turn on and stay on any time the temperature is above target.

heaters turn on and stay on any time the temperature is below target.

but I think the option you will want is to reverse the outlet on the configuration-connectors tab.

you can use ice and hot water to test how the system would respond.
 

TOP 10 Trending Threads

Back
Top
Home
Post thread…
Market
What's new