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
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
150
Reaction score
235
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,848
Reaction score
17,081
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,848
Reaction score
17,081
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,848
Reaction score
17,081
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
152
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,848
Reaction score
17,081
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
150
Reaction score
235
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
150
Reaction score
235
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,848
Reaction score
17,081
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.
 

Fish Fan

Valuable Member
View Badges
Joined
Dec 8, 2017
Messages
2,200
Reaction score
4,115
Rating - 0%
0   0   0
Hi all! I have a 10 gallon Nuvo Fusion up and running that I hope to control using Reef-Pi, and I'd like to start my build in the next week or so. I have been following along with this project off and on for a good 18 months or so, and when I first found Reef-Pi the power controller was built from a number of regular duplex outlets placed in a junction box instead of the ADJ powerbar. I understand that the ADJ powerbar maybe safer and simpler for many, but I would prefer to use regular duplex outlets for my build. This should be a good amount Jess expensive, but more important to me is that the outlets will be spaced further apart and can accommodate more adapters and wall warts that come with a lot of equipment. I have built a Raspberry Pi controlled holiday light show in the past with the duplex outlets, so I gave some experience and could likely figure it out, but does anyone still have the original instructions for building the Reef-Pi power controller using duplex outlets? I’d appreciate having access to this instructions if possible, unless I am really missing something about the ADJ power bar.

Thank you for your help!

-Fish Fan
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hi all! I have a 10 gallon Nuvo Fusion up and running that I hope to control using Reef-Pi, and I'd like to start my build in the next week or so. I have been following along with this project off and on for a good 18 months or so, and when I first found Reef-Pi the power controller was built from a number of regular duplex outlets placed in a junction box instead of the ADJ powerbar. I understand that the ADJ powerbar maybe safer and simpler for many, but I would prefer to use regular duplex outlets for my build. This should be a good amount Jess expensive, but more important to me is that the outlets will be spaced further apart and can accommodate more adapters and wall warts that come with a lot of equipment. I have built a Raspberry Pi controlled holiday light show in the past with the duplex outlets, so I gave some experience and could likely figure it out, but does anyone still have the original instructions for building the Reef-Pi power controller using duplex outlets? I’d appreciate having access to this instructions if possible, unless I am really missing something about the ADJ power bar.

Thank you for your help!

-Fish Fan
@Fish Fan you are most welcome to do a scratch build. As you noted, its not in the adafruit guide due to complexity involved and safety concern, but for anyone (which is many of us) who has done something similar or wanted to endavour, they are most welcome. None of reef-pi official documentation should ever be lost as they itself lives as code and we can switch back to historical states if need be. These are also completely open (like the code), its just due to various logistical reasons they are not visible at the front pages (some time its just lack of time). So here you go, this is the link of the power guide, scratch build: https://github.com/reef-pi/website/blob/master/content/guides/power.md
I hope to either make an archive or consolidate all the main different styles under thematic mega-guides (like power controller guide will start with smart outlets, but also cover ADJ wired power strip and finally scratch builds) .
Thank you for considering reef-pi, godspeed
 

Fish Fan

Valuable Member
View Badges
Joined
Dec 8, 2017
Messages
2,200
Reaction score
4,115
Rating - 0%
0   0   0
Thanks, @Ranjib ! I always appreciate that you respond to my questions so quickly. I am about to start the cycle on this tank, and hope to have my Reef-Pi build going soon. Please stand by ;-)

Thanks again!

-FF
 

bala murugan 00500

Community Member
View Badges
Joined
Oct 16, 2018
Messages
34
Reaction score
90
Location
coimbatore ,India
Rating - 0%
0   0   0
hi friends,
I'm getting this error
{"error":"stats for id: '5' not found"} | HTTP 404

now I connected jebao ds-4 to reef pi. it is controlling it, no problem on that, I added dosing in the dashboard , it causing this error..... what i did wrong
Screenshot (145).png



Screenshot (146).png
 

Reef Recked

Active Member
View Badges
Joined
Oct 13, 2018
Messages
150
Reaction score
235
Location
South Florida
Rating - 0%
0   0   0
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.

So i was looking at the board upside down i moved the pins and still nothing is happening when i try to adjust the levels but the LED just stays on constantly but dim. even if the Reef Pi is off the LED stays on, i hooked up a multimeter and there is a constant 3.11 volts coming from my wires.

And when i try to update on the raspberry it keeps telling me update fails.
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
So i was looking at the board upside down i moved the pins and still nothing is happening when i try to adjust the levels but the LED just stays on constantly but dim. even if the Reef Pi is off the LED stays on, i hooked up a multimeter and there is a constant 3.11 volts coming from my wires.

And when i try to update on the raspberry it keeps telling me update fails.
A few things going on here.
In reef-pi you have PCA9685 selected, but you are using the rpi pwm pins.
Do you have an updated image of your wiring? It looks like you are missing a ground connection, for PWM0 on rpi it should go GPIO18(Pin12)->LED&Resistor->GND
 

Stephen2

Community Member
View Badges
Joined
Jul 31, 2014
Messages
48
Reaction score
28
Rating - 0%
0   0   0
I cant't add the annalog input for the ph on the pico board.
I get the following error
ERROR: Failed to create. Error: invalid pin 0: driver for analog input test not found: driver by id not available

Could anyone assist?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I cant't add the annalog input for the ph on the pico board.
I get the following error
ERROR: Failed to create. Error: invalid pin 0: driver for analog input test not found: driver by id not available

Could anyone assist?
Does test driver shows up in drivers section?
 
Back
Top