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

janos

Active Member
View Badges
Joined
Jun 4, 2017
Messages
267
Reaction score
259
Location
Toronto,Canada
Rating - 0%
0   0   0
Hi Ranjib this is the original error msg. :
18/07/2019, 19:11:51UIERROR{"error":"json: cannot unmarshal object into Go value of type []hal.Measurement"} | HTTP 400
 
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
Hi Ranjib this is the original error msg. :
18/07/2019, 19:11:51UIERROR{"error":"json: cannot unmarshal object into Go value of type []hal.Measurement"} | HTTP 400
Ok, so you are using the opensource ph board. This will not work on 2.4 and it requires 3.0 onwards. Support for this driver was done recently and its scheduled to be available for public release later this year. You can use the 3.0 testing builds to use the ph board but calibration is still not supported via the UI yet. @Michael Lane is working on this (calibration support via UI), but its not ready yet
 
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
So I have a question... Can the reef-pi software handle the following situation:

1. Can it handle a leak sensor, and activate a solenoid valve if it detects a leak?

2. What other sensors can it handle?
I have not tried this but from what I understand you can treat it as a water level sensor since it give 0/1 input, and if the solenoid valve is controlled by a relay or outlet then its straight forward. Just use ATO ui to control a valve based on leak sensor input
 
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 have not tried this but from what I understand you can treat it as a water level sensor since it give 0/1 input, and if the solenoid valve is controlled by a relay or outlet then its straight forward. Just use ATO ui to control a valve based on leak sensor input
As of now, it supports ph (and orp, but not tested yet), water level (float sensor and photoelectric sensors), temperature sensors.
 

janos

Active Member
View Badges
Joined
Jun 4, 2017
Messages
267
Reaction score
259
Location
Toronto,Canada
Rating - 0%
0   0   0
Ok, so you are using the opensource ph board. This will not work on 2.4 and it requires 3.0 onwards. Support for this driver was done recently and its scheduled to be available for public release later this year. You can use the 3.0 testing builds to use the ph board but calibration is still not supported via the UI yet. @Michael Lane is working on this (calibration support via UI), but its not ready yet
Thank you Ranjib so this one least not my fault.Could not believe i am so dang can not install that.Am running reef-pi 3.0.0-pre-alpha-2-pi3.deb
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
Calibration code for reef-pi v3 was recently completed, so I hope it will be in the next alpha release. In the meantime, pH calibration must be completed using the command line.

Here's Ranjib's post describing the process.

If you are still having trouble getting the pH board connected, I can work on setting up a pH probe on a spare pi and share screenshots of the settings screens.
 

janos

Active Member
View Badges
Joined
Jun 4, 2017
Messages
267
Reaction score
259
Location
Toronto,Canada
Rating - 0%
0   0   0
Calibration code for reef-pi v3 was recently completed, so I hope it will be in the next alpha release. In the meantime, pH calibration must be completed using the command line.

Here's Ranjib's post describing the process.

If you are still having trouble getting the pH board connected, I can work on setting up a pH probe on a spare pi and share screenshots of the settings screens.
Thank you Michael installed the PH and working good,i try to read Ranjib post.
 

janos

Active Member
View Badges
Joined
Jun 4, 2017
Messages
267
Reaction score
259
Location
Toronto,Canada
Rating - 0%
0   0   0
Read Ranjib post but to me is not reading -8K to me reading 8.72 ph

Next, create a pH monitor (if you dont see ph tab, then probably its not enabled, enable this module under Configuration -> Settings, and reload reef-pi). Associate the ph monitor with the newly created analog input. And thats it, you should see your ph sensors reading. Note, without calibration it will emit sensor values in raw milivolts, which for me is around -8K.
 

Alaa

Community Member
View Badges
Joined
Nov 28, 2018
Messages
74
Reaction score
80
Rating - 0%
0   0   0
Hi all
i was thinking if it is possible to keep my DIY ATO (float switches hi low connected to relay board) working and share the signal with reef pi for logging the data, so i keep the control independent of pi and take advantage of data logging

i connected (as in the first pic) one float switch to pi and relay switch and it worked nicely data recorded by pi and relay working

my question do i need to protect my pi from the other circuit (knowing the i connect to ground) or it is fine

my second question if i want to connect the high low float switches setup (pic 2) will it work with my attached relay board since i have separate input for low and high FS and they are not connected like in the diagram.
thanks for all your support

Pic one.jpg Pic two.jpg
 

Reef Recked

Active Member
View Badges
Joined
Oct 13, 2018
Messages
152
Reaction score
236
Location
South Florida
Rating - 0%
0   0   0
Hello All, bear with me ive never programmed anything before let alone a raspberry (Reef) -Pi.

Im using a Raspberry Pi zero W running version 2.4

I thought i configured everything correctly following the directions but during testing i could not get the testjack / PWM to work. the first test worked and i can turn the led on and off, but when trying to add the test jack it will not let me set to rpi it gives me the " {"error":"failed to update.Error: write/sys/class/pwm/pwmchip0/period: invalid argument"} | HTTP 500 " error. and nothing happens when i try to test the jack.

IMG_5307.jpg


i think that im running the wrong package for pi zero but when i tried to install that package it says cannot access archive.
IMG_1237.jpg


now i also noticed that when i follow the pins on the instructions that i got the led to turn on and off with nothing happens for the 2nd test but when i place the leads in what my info card says is the GPIO 18 & 19 pins on my pi zero W the led is on (although dim) even if the reef-pi is off. im not sure what any of this means o_O .

another side note when i try to enable the notification and the pca options, all of a sudden i cant connect to the reef pi through my macbook it says "site cant be reached" but if i stop and start the reef pi service again it fixes it.

Here is the setup when it worked for the first test, the errors shown right now, and the end of my config.txt file if it helps.
IMG_4219.jpg
IMG_4581.jpg
IMG_4732.jpg
IMG_5679.jpg



Please Help a noob!

And thanks to Ranjib and all of you for helping to create such an awesome and fun alternative to expensive controllers! Ive always wanted to get into coding and electronic builds and this seemed like the perfect opportunity to get my feet wet!
 

Alaa

Community Member
View Badges
Joined
Nov 28, 2018
Messages
74
Reaction score
80
Rating - 0%
0   0   0
Hello All, bear with me ive never programmed anything before let alone a raspberry (Reef) -Pi.

Im using a Raspberry Pi zero W running version 2.4

I thought i configured everything correctly following the directions but during testing i could not get the testjack / PWM to work. the first test worked and i can turn the led on and off, but when trying to add the test jack it will not let me set to rpi it gives me the " {"error":"failed to update.Error: write/sys/class/pwm/pwmchip0/period: invalid argument"} | HTTP 500 " error. and nothing happens when i try to test the jack.

IMG_5307.jpg


i think that im running the wrong package for pi zero but when i tried to install that package it says cannot access archive.
IMG_1237.jpg


now i also noticed that when i follow the pins on the instructions that i got the led to turn on and off with nothing happens for the 2nd test but when i place the leads in what my info card says is the GPIO 18 & 19 pins on my pi zero W the led is on (although dim) even if the reef-pi is off. im not sure what any of this means o_O .

another side note when i try to enable the notification and the pca options, all of a sudden i cant connect to the reef pi through my macbook it says "site cant be reached" but if i stop and start the reef pi service again it fixes it.

Here is the setup when it worked for the first test, the errors shown right now, and the end of my config.txt file if it helps.
IMG_4219.jpg
IMG_4581.jpg
IMG_4732.jpg
IMG_5679.jpg



Please Help a noob!

And thanks to Ranjib and all of you for helping to create such an awesome and fun alternative to expensive controllers! Ive always wanted to get into coding and electronic builds and this seemed like the perfect opportunity to get my feet wet!
Hi
Welcome to reef pi
I can only help with the rpi error as i had rhe same issue
This is related to ver 2.4 and you can set the jack using pca9685 board with no troubles
If you want to use rpi upgrade to version 3 alpha 2 as it is working nicely
For the LED always on i can't find reason except that the connections are wrong and positive and ground are running though the pi is off i think this goes with you able to connect only after restart
Hope others will be more helpful
 
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
Read Ranjib post but to me is not reading -8K to me reading 8.72 ph

Next, create a pH monitor (if you dont see ph tab, then probably its not enabled, enable this module under Configuration -> Settings, and reload reef-pi). Associate the ph monitor with the newly created analog input. And thats it, you should see your ph sensors reading. Note, without calibration it will emit sensor values in raw milivolts, which for me is around -8K.
@janos did you get this working or is it still reading around 7/8 without any calibration?
 
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
Hello All, bear with me ive never programmed anything before let alone a raspberry (Reef) -Pi.

Im using a Raspberry Pi zero W running version 2.4

I thought i configured everything correctly following the directions but during testing i could not get the testjack / PWM to work. the first test worked and i can turn the led on and off, but when trying to add the test jack it will not let me set to rpi it gives me the " {"error":"failed to update.Error: write/sys/class/pwm/pwmchip0/period: invalid argument"} | HTTP 500 " error. and nothing happens when i try to test the jack.

IMG_5307.jpg


i think that im running the wrong package for pi zero but when i tried to install that package it says cannot access archive.
IMG_1237.jpg


now i also noticed that when i follow the pins on the instructions that i got the led to turn on and off with nothing happens for the 2nd test but when i place the leads in what my info card says is the GPIO 18 & 19 pins on my pi zero W the led is on (although dim) even if the reef-pi is off. im not sure what any of this means o_O .

another side note when i try to enable the notification and the pca options, all of a sudden i cant connect to the reef pi through my macbook it says "site cant be reached" but if i stop and start the reef pi service again it fixes it.

Here is the setup when it worked for the first test, the errors shown right now, and the end of my config.txt file if it helps.
IMG_4219.jpg
IMG_4581.jpg
IMG_4732.jpg
IMG_5679.jpg



Please Help a noob!

And thanks to Ranjib and all of you for helping to create such an awesome and fun alternative to expensive controllers! Ive always wanted to get into coding and electronic builds and this seemed like the perfect opportunity to get my feet wet!
Hello All, bear with me ive never programmed anything before let alone a raspberry (Reef) -Pi.

Im using a Raspberry Pi zero W running version 2.4

I thought i configured everything correctly following the directions but during testing i could not get the testjack / PWM to work. the first test worked and i can turn the led on and off, but when trying to add the test jack it will not let me set to rpi it gives me the " {"error":"failed to update.Error: write/sys/class/pwm/pwmchip0/period: invalid argument"} | HTTP 500 " error. and nothing happens when i try to test the jack.

IMG_5307.jpg


i think that im running the wrong package for pi zero but when i tried to install that package it says cannot access archive.
IMG_1237.jpg


now i also noticed that when i follow the pins on the instructions that i got the led to turn on and off with nothing happens for the 2nd test but when i place the leads in what my info card says is the GPIO 18 & 19 pins on my pi zero W the led is on (although dim) even if the reef-pi is off. im not sure what any of this means o_O .

another side note when i try to enable the notification and the pca options, all of a sudden i cant connect to the reef pi through my macbook it says "site cant be reached" but if i stop and start the reef pi service again it fixes it.

Here is the setup when it worked for the first test, the errors shown right now, and the end of my config.txt file if it helps.
IMG_4219.jpg
IMG_4581.jpg
IMG_4732.jpg
IMG_5679.jpg



Please Help a noob!

And thanks to Ranjib and all of you for helping to create such an awesome and fun alternative to expensive controllers! Ive always wanted to get into coding and electronic builds and this seemed like the perfect opportunity to get my feet wet!
There’s lot of things to unpack here. Let’s tackle them one by one . But before everything , thank you for considering reef-pi. Your detailed posts help us making the software bit better for everyone else.
I see an error in the screenshot that’s related to the downloaded file not being present, hence the installation command is failing . Make sure you are downloading the file correctly
I see pwm is enabled in config.txt, did you reboot after updating that file?
I am hearing issues with pi pwm in 2.4, I’m yet to reproduce it
 
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
Been playing with the 3d printer a lot recently . Here is my first take at 3.0 ato unit.

1190B4E7-5644-451E-A25B-648E8DE17A0B.jpeg

The controller itself is bare bone , consist of just pi zero and an audio jack (similar to temperature controller)
C213E8DE-2915-4663-8F1F-E8A1C739DA1C.jpeg

Audio jack is used to hook up a floatswitch
E2D0BD3D-3A25-4B78-B4B5-A9552EB134FE.jpeg

This unit will be powered by micro USB port , so no extra power related circuit .
Planning to use peristaltic pump for adding water. It will be plugged into the Kasa smart powerstrip
F9CCFA39-5764-4A67-85E1-F7B333C48B3C.jpeg


This unit be powered directly using a 12v adapter (plugged into the smart outlet).
C1D2FDE2-310A-49E5-A7C2-4A0470D02D39.jpeg

The onboard potentio meter allows adjusting the peristaltic pump speed. There’s a mechanical switch for manually turning it on/off.
D900043B-AD88-4697-A900-33503C034DF0.jpeg


There are notches to easily mount the units
8635949A-8B24-4A5C-A77F-99D11D6F5C1D.jpeg


Overall I’m excited to build these sleek units. I am little concerned about the smart plug performance , but we’ll see, it’s big advantage over the adj powerstrip , with less work involved and having manual overrides and current monitoring is really nice addition
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
Been playing with the 3d printer a lot recently . Here is my first take at 3.0 ato unit.

1190B4E7-5644-451E-A25B-648E8DE17A0B.jpeg

The controller itself is bare bone , consist of just pi zero and an audio jack (similar to temperature controller)
C213E8DE-2915-4663-8F1F-E8A1C739DA1C.jpeg

Audio jack is used to hook up a floatswitch
E2D0BD3D-3A25-4B78-B4B5-A9552EB134FE.jpeg

This unit will be powered by micro USB port , so no extra power related circuit .
Planning to use peristaltic pump for adding water. It will be plugged into the Kasa smart powerstrip
F9CCFA39-5764-4A67-85E1-F7B333C48B3C.jpeg


This unit be powered directly using a 12v adapter (plugged into the smart outlet).
C1D2FDE2-310A-49E5-A7C2-4A0470D02D39.jpeg

The onboard potentio meter allows adjusting the peristaltic pump speed. There’s a mechanical switch for manually turning it on/off.
D900043B-AD88-4697-A900-33503C034DF0.jpeg


There are notches to easily mount the units
8635949A-8B24-4A5C-A77F-99D11D6F5C1D.jpeg


Overall I’m excited to build these sleek units. I am little concerned about the smart plug performance , but we’ll see, it’s big advantage over the adj powerstrip , with less work involved and having manual overrides and current monitoring is really nice addition

Looks awesome! Great work! Did you use these? or something similar? because I was literally just looking at adding maybe 3 of these in a box for ATO and dosing.

 
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
Looks awesome! Great work! Did you use these? or something similar? because I was literally just looking at adding maybe 3 of these in a box for ATO and dosing.

I’m using the ones from adafruit . I bet they are very similar if not same
 

Reef Recked

Active Member
View Badges
Joined
Oct 13, 2018
Messages
152
Reaction score
236
Location
South Florida
Rating - 0%
0   0   0
There’s lot of things to unpack here. Let’s tackle them one by one . But before everything , thank you for considering reef-pi. Your detailed posts help us making the software bit better for everyone else.
I see an error in the screenshot that’s related to the downloaded file not being present, hence the installation command is failing . Make sure you are downloading the file correctly
I see pwm is enabled in config.txt, did you reboot after updating that file?
I am hearing issues with pi pwm in 2.4, I’m yet to reproduce it
Hey Ranjib, thank you for putting all the time into creating it and constantly trying to improve it as well as helping us less technically inclined!

When I tried @Alaa suggestion i didnt get the error code but nothing happens when i adjust the light levels for the LED etc. I tried changing the pins i was using and reversing the power and negative and still couldnt get the LED to light up.

here is the setup currently and settings.
IMG_5161.jpg
IMG_5415.jpg
IMG_7244.jpg


Actually looking at the pin layout im wondering if i messed up and am looking at the board upside down? i believe im atleast trying to use the right pins. 18/19 highlighted in the below picture.

Screen Shot 2019-07-24 at 11.42.03 AM.png


and for the download i was trying to see if i was typing the code wrong so was trying a few different versions. Will this code work for Pi Zero W or should i use a different package?
  1. wget -c https://github.com/reef-pi/reef-pi/releases/download/2.4/reef-pi-2.4-pi0.deb
  2. sudo dpkg -i reef-pi-2.4-pi0.deb
Also how would i uninstall reef pi and try to reinstall ? I did reboot after pwm line and a bunch of times since trying to figure out how to get it to work ;Shamefullyembarrased
 

Reef Recked

Active Member
View Badges
Joined
Oct 13, 2018
Messages
152
Reaction score
236
Location
South Florida
Rating - 0%
0   0   0
Hi
Welcome to reef pi
I can only help with the rpi error as i had rhe same issue
This is related to ver 2.4 and you can set the jack using pca9685 board with no troubles
If you want to use rpi upgrade to version 3 alpha 2 as it is working nicely
For the LED always on i can't find reason except that the connections are wrong and positive and ground are running though the pi is off i think this goes with you able to connect only after restart
Hope others will be more helpful
 
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
Hey Ranjib, thank you for putting all the time into creating it and constantly trying to improve it as well as helping us less technically inclined!

When I tried @Alaa suggestion i didnt get the error code but nothing happens when i adjust the light levels for the LED etc. I tried changing the pins i was using and reversing the power and negative and still couldnt get the LED to light up.

here is the setup currently and settings.
IMG_5161.jpg
IMG_5415.jpg
IMG_7244.jpg


Actually looking at the pin layout im wondering if i messed up and am looking at the board upside down? i believe im atleast trying to use the right pins. 18/19 highlighted in the below picture.

Screen Shot 2019-07-24 at 11.42.03 AM.png


and for the download i was trying to see if i was typing the code wrong so was trying a few different versions. Will this code work for Pi Zero W or should i use a different package?
  1. wget -c https://github.com/reef-pi/reef-pi/releases/download/2.4/reef-pi-2.4-pi0.deb
  2. sudo dpkg -i reef-pi-2.4-pi0.deb
Also how would i uninstall reef pi and try to reinstall ? I did reboot after pwm line and a bunch of times since trying to figure out how to get it to work ;Shamefullyembarrased
If you have a multi meter then check voltage at the other end of the jumper thats connected to the pwm pins. The download link is correct and should work.
Code:
sudo apt-get remove -y —purge reef-pi
Should remove reef-pi

You don’t need to uninstall the old version while updating it should work just fine.
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 38 27.1%
  • 100% dry rock + 100% live sand

    Votes: 47 33.6%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 31 22.1%
  • 75% live rock, 25% live sand

    Votes: 14 10.0%
  • 25% live rock, 75% live sand

    Votes: 10 7.1%
Back
Top