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

sfgabe

Active Member
View Badges
Joined
Sep 7, 2018
Messages
178
Reaction score
258
Rating - 0%
0   0   0
add "IP:9999" as the address for the driver and choose among hs300/hs110/hs103, whatever is appropriate.

Screen Shot 2019-10-30 at 2.06.35 PM.png
I assume they need to be flashed first? Any idea whether it works with other ESP chip based devices? I haven't gotten around to flashing mine but I have some flashed Tuya ones that I think are the same setup.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I assume they need to be flashed first? Any idea whether it works with other ESP chip based devices? I haven't gotten around to flashing mine but I have some flashed Tuya ones that I think are the same setup.
It does not need to be flashed. I know its kinda scary, its autokey encryption over plain http
 

living_tribunal

2500 Club Member
View Badges
Joined
Aug 14, 2019
Messages
4,198
Reaction score
11,326
Rating - 0%
0   0   0
Dev here, and new reefer, going to give this a shot. I've never typed go before, and haven't touched C in years so this will be a fun project. Checked your repo and it looks like y'all have done a great job with this.

I found this thread as I was looking for open-source salinity probes. I'm mapping things out and was potentially going to utilize a reefangel/arduino setup.

Has there been much progress made on the salinity probe front?
 

sfgabe

Active Member
View Badges
Joined
Sep 7, 2018
Messages
178
Reaction score
258
Rating - 0%
0   0   0
Initial test drive found a few bugs, added to github. Mainly, the same temp probe and lighting issues that some others have mentioned.

Has the Kessil controller wiring changed at all from the first go (pre adafruit instructions)? Wondering if I should remake the circuit when I clean everything up, or if that might be the issue with controlling the lighting.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Dev here, and new reefer, going to give this a shot. I've never typed go before, and haven't touched C in years so this will be a fun project. Checked your repo and it looks like y'all have done a great job with this.

I found this thread as I was looking for open-source salinity probes. I'm mapping things out and was potentially going to utilize a reefangel/arduino setup.

Has there been much progress made on the salinity probe front?
most dev specific discussion happens in slack channel, join if you want to get help on boarded/setup dev environment etc. there’s opportunity to learn and experiment with go , JavaScript (react) etc. we could always use some help.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Initial test drive found a few bugs, added to github. Mainly, the same temp probe and lighting issues that some others have mentioned.

Has the Kessil controller wiring changed at all from the first go (pre adafruit instructions)? Wondering if I should remake the circuit when I clean everything up, or if that might be the issue with controlling the lighting.
Thank you for testing. Kessil circuitry remained exactly same as very first prototype
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Dev here, and new reefer, going to give this a shot. I've never typed go before, and haven't touched C in years so this will be a fun project. Checked your repo and it looks like y'all have done a great job with this.

I found this thread as I was looking for open-source salinity probes. I'm mapping things out and was potentially going to utilize a reefangel/arduino setup.

Has there been much progress made on the salinity probe front?
There’s ezo i2c protocol support for atlas ph probes which should be easy starting point for salinity probe. I intentionally deprioritized salinity and do probes due to their poor cost /maintenance to impact factor. If your ato is dialed in , salinity should not change. It’s definitely a good thing to have , but they are expensive and mote prone to error with lesser longevity :-/
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Couple of weeks back i upgraded my biocube lighting to include the noopsyche unit I got from RAP Orlando to address the shadow and lack of lighting thereof due to pendant style lighting

Previous setup:
0FD77F3A-1192-46F7-8E97-A523E235DA17.jpeg


New setup:

4B035597-A8D7-44C1-8798-158E6881E1DA.jpeg

The fixture is what gave me most joy :-) . I used makerbeam for the main support which is mounted with a 3D printed contraption.
7314BA2A-701E-4E0D-A554-FD7D0C1D92A5.jpeg

it snaps in on the rim. Very stable, no screws involved, very easy to remove
A27CA6CF-77F0-4144-9FE1-869D34F2E4A9.jpeg

It looks good , and freed up the back chamber clutter. Wife and Mr.Hendrix both liked the extra purple :-)
1B397F37-2F4B-4B5E-A31B-66DB25C78DBC.jpeg
 

living_tribunal

2500 Club Member
View Badges
Joined
Aug 14, 2019
Messages
4,198
Reaction score
11,326
Rating - 0%
0   0   0
There’s ezo i2c protocol support for atlas ph probes which should be easy starting point for salinity probe. I intentionally deprioritized salinity and do probes due to their poor cost /maintenance to impact factor. If your ato is dialed in , salinity should not change. It’s definitely a good thing to have , but they are expensive and mote prone to error with lesser longevity :-/

I found a few but they were expensive. I'm looking to implement a second layer of redundancy for my ato. Just something for me to continually measure salinity within my tank.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I found a few but they were expensive. I'm looking to implement a second layer of redundancy for my ato. Just something for me to continually measure salinity within my tank.
In my experience, the ATO risks are not necessarily mitigated by redundancies and in some cases the added complexity makes it more risky.
You should be more than covered if you use a peristaltic pump + disable on alert and a judiciously chosen ato reservoir, that holds enough water capable of supporting your refill interval, while not able to flood the tank within an hour/alert threshold. The Smart ATO micro is leaps and bound better in reliability compared to its bulkier competitors that employs more probes/sensors.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
In my experience, the ATO risks are not necessarily mitigated by redundancies and in some cases the added complexity makes it more risky.
You should be more than covered if you use a peristaltic pump + disable on alert and a judiciously chosen ato reservoir, that holds enough water capable of supporting your refill interval, while not able to flood the tank within an hour/alert threshold. The Smart ATO micro is leaps and bound better in reliability compared to its bulkier competitors that employs more probes/sensors.
And that being said, you can use the high/low sensors (i think i read that in your build thread) to trigger a macro that disable /enable ATO, for extra safety. Macros our powerful in ways they can not only turn on/off individual equipment, but alos controllers (ato, ph, temperature) and a whole subsystem/module (all ato, all temperature controller etc). This also means they are risky, and their impact can be hard to assess as they get more and more complex
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
640
Location
United States
Rating - 0%
0   0   0
In my experience, the ATO risks are not necessarily mitigated by redundancies and in some cases the added complexity makes it more risky.
You should be more than covered if you use a peristaltic pump + disable on alert and a judiciously chosen ato reservoir, that holds enough water capable of supporting your refill interval, while not able to flood the tank within an hour/alert threshold. The Smart ATO micro is leaps and bound better in reliability compared to its bulkier competitors that employs more probes/sensors.

I've used the Osmolator for years, and the redundant optical/mechanical switch has never failed. What's nice is that the failure mechanism for one most likely won't be the same as for the other. The only issue I ever had was once with their pump, and Tunze replaced it at no cost. Just my US$0.02.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
So, theory question here... The kessils are designed to be controlled by a 0-10V analog signal. Why does using PWM work?
A quick and dirty answer is...take a pwm channel on your pca9685. Mine are 3.3v , so i have a 3.3v square wave with a relative time peeiod of 0 to 100 percent. So at 50 percent the 3.3v wave is equal to the 0.0v trough. If you use an analog multimeter and read voltage of the 50 percent square wave you get 1.65 volts because the multimeter averages the 3.3 and the 0v. Its not able to read fast enough to catch the 3.3 and 0v waves because the needle can not swing that fast so the reading is an average reading.
If the driver on the kessil isnt fast enough to catch the pwm or isnt really meant for the pwm signal it may just "see" the average like a multimeter would.
 
Last edited:

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
My report on 3.0 beta

I run a pi zero. After backing up my database file I gave 3.0 beta a try and ran into 2 issues. Lighting pwm messed up on only one light for some reason and out of my 3 temperature sensors, 2 "disappeared" which is similar to other reports.

Switching back to 3.0 alpha everything went back to normal with the exception of having to re enter my Adafruit IO key to get the feeds running again.

I did not have time to test 3.0 beta with an all new from scratch configuration however. Thought id have much more time this fall and winter to help with stuff, but work keeps getting in the way. Now they want to send me to Japan for a week of training 2 weeks before Xmas. The Mrs. is not amused.
 
Last edited:

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
@Ranjib I am having issues on the new version it will not let me set up my lights.

The old light settings are not working as well. I need to have my lights work. How do I downgrade to the alpha.

1572469288929.png
1572469381920.png
I'm still working on lighting UI updates to support the new features. There were some breaking changes to the Light API, but I expect to have the first round of UI fixes for the light done this weekend. The next beta release should have that sorted.

If you are comfortable with curl or other web api tools, you could manually configure the lights directly via API. I believe it may also be possible to directly push data into the database with the new db command via command line.
 
Last edited:

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
Dev here, and new reefer, going to give this a shot. I've never typed go before, and haven't touched C in years so this will be a fun project. Checked your repo and it looks like y'all have done a great job with this.

I found this thread as I was looking for open-source salinity probes. I'm mapping things out and was potentially going to utilize a reefangel/arduino setup.

Has there been much progress made on the salinity probe front?
Salinity/Conductivity sensing can be pretty complicated. If you already have a module, then it could be a relatively easy driver implementation. Ranjib and Theatrus have done some great work modularizing the drivers.
I don't have a personal incentive to implement salinity sensing for much the same reasons Ranjib mentioned, but I'd welcome the functionality if you'd like to get it going. My experience with reef-pi has been extremely positive. It's a supportive dev environment - in fact, I hadn't used go nor react when I started helping out. I've felt comfortable asking questions on Slack and have learned tons from the other devs.
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
Salinity/Conductivity sensing can be pretty complicated. If you already have a module, then it could be a relatively easy driver implementation. Ranjib and Theatrus have done some great work modularizing the drivers.
I don't have a personal incentive to implement salinity sensing for much the same reasons Ranjib mentioned, but I'd welcome the functionality if you'd like to get it going. My experience with reef-pi has been extremely positive. It's a supportive dev environment - in fact, I hadn't used go nor react when I started helping out. I've felt comfortable asking questions on Slack and have learned tons from the other devs.

EC testing is useful for knowing the conditions of the water:

Once the most suitable conductivity range for your marine life has been determined, the best use of the conductivity meter in your filter is to monitor the changes in water conditions. Unwanted inorganic and organic pollutants, as well as fertilizers and other chemicals, added to the water by the aquarium keeper, directly affect the EC value, generally by increasing it.

In fact, every chemical, additive, piece of food, medication or conditioner you put into your tank affects the conductivity in your aquarium and the above mentioned "link" becomes less. Therefore, measuring conductivity is a way to continuously monitor the conditions of water, since a change in conductivity also indicates a change in water conditions. Any of these changes should be checked using a chemical analysis (test kit). Sometimes the easiest way to correct the EC value is to change the water, thereby reducing the concentration of pollutants.


When EC testing will be added to Reef-Pi I would be very interested!
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
In 3.0 we are shipping a `reef-pi db` command, which you can use to investigate & change the databased directly, bypassing the controller. Its meant to be used for troubleshooting. With this commmand you can selectively clear/reset those values. Here is an example partinent to your use case. I remembered this as I just did it recently :)

Stop reef-pi

Code:
sudo systemctl stop reef-pi.service



Get the current list of ato, you need the id of the ato that you want to change

Code:
sudo reef-pi db list ato

Get the usage data of that ato (assuming id is 1) , and save it in a file

Code:
sudo reef-pi db show ato_usage 1  > usage.json



Edit the file, you'll notice the abnormal usage values by searching for those values (for me ato usage 3000), edit them whatever value you prefer, or delete. the update it,



Code:
sudo reef-pi db update  -input usage.json ato_usage 1

restart reef-pi



Code:
sudo systemctl stop reef-pi.service





The `reef-pi db` command works across all the things including setting, and has the following pattern:

Code:
reef-pi db list <module>

reef-pi db show <module> <id>

reef-pi db create <module> -input foo.json

reef-pi db update -input foo.json  <module> <id>

reef-pi db delete <module> <id>
Example of modules: ato, temperature .. etc . All the bucket names specified here: https://github.com/reef-pi/reef-pi/blob/master/controller/storage/store.go#L4.

I hope this will help us diagnose & fix issues where reef-pi is not able to start due to inconsistent configuration or the controller is working but UI is broken due to front end code or API related issues.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Here is an example of me using reef-pi db command to get rid of some bogus ATO usage values. This happened due to wifi outlet not working (network issue). The problem chart:
ato-bad.png


Notice the anomolous readings (above 300) in ato usage chart. Normal values are not noticeable (in the range of 40)
Here is the graph after fixing it, with reef-pi db command
ato-fixed.png
 

TOP 10 Trending Threads

Back
Top