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

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
After doing some wire management I was having trouble stabilizing the Float Switch signal after reconnecting. There was some bouncing going on with the switches it seemed that would keep the switches always on, so I've added a software time mechanism to clear that up. I've also changed to having a python script for each float switch to keep things clean and easy. So a script for ATOfloat1.py, ATOfloat2.py, ATOfloat3.py, etc. Then add the scripts to rc.local again to start on boot. The new scripts look like this...

Code:
#ATOfloat1.py

import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BCM)

GPIO.setup(21, GPIO.IN, pull_up_down=GPIO.PUD_UP)

while True:
    input_state = GPIO.input(21)
    if input_state == False:
        print ('ATOtank Fill')
        time.sleep(10)

In the code example there the float is connected to GPIO 21. Also there's a print command to see if it's working in the terminal. Hope this helps if anyone has issues where everything looks like it should be working, but the switches just wont turn off due to bouncing.
I am curious if something like a schmitt trigger will work in this type of scenarios.
 

PaulJ2303

Community Member
View Badges
Joined
Sep 30, 2018
Messages
76
Reaction score
172
Rating - 0%
0   0   0
Hi,
I've just gone ahead and bought a raspberry-Pi 3b+ and installed Reef-pi on it.
it went really well :) i can now sit the pi across the room and connect to it via WiFi from my PC using putty and VNC on the same local network ... it's all good.
I can also access the reef-pi web UI from my PC whilst on the same local network ... it looks great :)

I only have one real issue right now if anyone could help ?
Although i can connect to reef pi's Web UI using my PC I cant seem to be able to connect to it using my phone ? .... (i am on the same local network (wifi) when i try all of this )

also on a similar vein how do i set up email alerts ?

thanks for any help you guys can be with this
 

PaulJ2303

Community Member
View Badges
Joined
Sep 30, 2018
Messages
76
Reaction score
172
Rating - 0%
0   0   0
Although i can connect to reef pi's Web UI using my PC I cant seem to be able to connect to it using my phone ? .... (i am on the same local network (wifi) when i try all of this )

It's ok I've answered my own question ... for some reason my phone didn't like Reef-pi having a host name ... it connected fine once i reverted back to using an IP address :)
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
It's ok I've answered my own question ... for some reason my phone didn't like Reef-pi having a host name ... it connected fine once i reverted back to using an IP address :)
With my previous and new android phones i can always connect thru the IP address. For some reason my androids dont like the .local after the name so if i type 75gallon.local it does not work. If i just type 75gallon it lets me connect.
 

GTM42

Active Member
View Badges
Joined
Dec 4, 2017
Messages
131
Reaction score
46
Rating - 0%
0   0   0
Wow what an awesome project, have you thought about selling them? Might be interested if the price is right to get one for my nano. I currently have an apex classic on my 150 gallon tank and would love to compare.
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,075
Location
Gambrills
Rating - 0%
0   0   0
Reef-pi has been up for over a month. How much RAM should it cap out at? I've been holding out on rebooting, just to see if it would ever level off, and it hasn't.
Screenshot_20190416-091907_Remote%20Desktop.jpeg
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Reef-pi has been up for over a month. How much RAM should it cap out at? I've been holding out on rebooting, just to see if it would ever level off, and it hasn't.
Screenshot_20190416-091907_Remote%20Desktop.jpeg

@DirtDiggler2823 which version of software are you currently running, and if running 2.2 what are your logging settings. Once I upgraded to 2.2 I have not seen the memory issue, I even increased from the default recommendations that @Ranjib had stated and my memory is pretty flat. Although you may have more components etc that you are controlling.
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,075
Location
Gambrills
Rating - 0%
0   0   0
@DirtDiggler2823 which version of software are you currently running, and if running 2.2 what are your logging settings. Once I upgraded to 2.2 I have not seen the memory issue, I even increased from the default recommendations that @Ranjib had stated and my memory is pretty flat. Although you may have more components etc that you are controlling.
I'm not controlling all that much. Only 1 timer running for the fuge light. I am running 2.2, and I left the logging at the default settings.
 
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
Wow what an awesome project, have you thought about selling them? Might be interested if the price is right to get one for my nano. I currently have an apex classic on my 150 gallon tank and would love to compare.
I (author of reef-pi) don’t sell anything (other than the idea that we can build an open source controller together :) ). But blueacro does sell an premade board (you have to still attach a pi and install reef-pi in it) , and couple of other folks (Michael lane and Wykat ) have pi hats that reduces the amount of soldering work required , check out this page :https://reef-pi.github.io/additional-documentation/resources/
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
I'm not controlling all that much. Only 1 timer running for the fuge light. I am running 2.2, and I left the logging at the default settings.

That's interesting since I am running 2.2and my memory is pretty flat, I'm remote but can do a screenshot when I get home this evening. The other thing that I can think about is which raspbian version are you running on, I'm running on raspbian lite headless with no additional packages. If you are running the desktop version there may be additional proccesses that are consuming memory, just trying to think what else may be different. I'm running 3 temp probes, lighting via rpi pwm, and a 6 equipment outlets.
 
Last edited:

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,075
Location
Gambrills
Rating - 0%
0   0   0
That's interesting since I am running 2.2and my memory is pretty flat, I'm remote but can do a screenshot when I get home this evening. The other thing that I can think about is which raspbian version are you running on, I'm running on raspbian lite headless with no additional packages. If you are running the desktop version there may be additional proccesses that are consuming memory, just trying to think what else may be different. I'm running 3 temp probes, lighting via rpi pwm, and a 6 equipment outlets.
Single temp probe. ATO pump and float senor. I remember updating raspbian within the last 6 months, but I don't believe I'm running the full version. I'll have to check.
 

trackerit

Community Member
View Badges
Joined
Apr 11, 2019
Messages
71
Reaction score
137
Rating - 0%
0   0   0
ML reef-pi hat v2,
I could not buy it, unfortunately the store does not send to freight forwardes, Unfortunately we are not able to ship to Freight Forwarders and needed to cancel and refund your recent order. To clarify, we are not able to ship to Freight Forwarders, P.O. Boxes, hotels, or Package Lockers. The shipping address does need to be a residential or business address. If you have an alternate residential or business address you can use, feel free to place another order.
 

stefanm

Active Member
View Badges
Joined
Oct 11, 2017
Messages
360
Reaction score
394
Location
Sweden
Rating - 0%
0   0   0
ML reef-pi hat v2,
I could not buy it, unfortunately the store does not send to freight forwardes, Unfortunately we are not able to ship to Freight Forwarders and needed to cancel and refund your recent order. To clarify, we are not able to ship to Freight Forwarders, P.O. Boxes, hotels, or Package Lockers. The shipping address does need to be a residential or business address. If you have an alternate residential or business address you can use, feel free to place another order.
So ship to your own address...
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Reef-pi has been up for over a month. How much RAM should it cap out at? I've been holding out on rebooting, just to see if it would ever level off, and it hasn't.
Screenshot_20190416-091907_Remote%20Desktop.jpeg

@DirtDiggler2823 here is my screenshot, it's only been 4 days since I had to rebuild due to the last upgrade, but mine stays pretty level...

Screenshot at 2019-04-16 19-53-38.png


Here are my telemetry settings:



Screenshot at 2019-04-16 19-55-52.jpg
 

Bzar

Community Member
View Badges
Joined
Apr 11, 2019
Messages
32
Reaction score
66
Rating - 0%
0   0   0
I am curious if something like a schmitt trigger will work in this type of scenarios.
I believe it could. There's some other potential hardware solutions to get rid bouncing. I didn't have any of that hardware to try, and the Pi does it anyway, so figured it was worth a try :)
 

phasezero

New Member
View Badges
Joined
Oct 3, 2012
Messages
24
Reaction score
28
Location
WA
Rating - 0%
0   0   0
A prototype circuit was build , to convert pi gpio (3.3v) output to relays required input (12v) using a uln2803a (because I had it, else I would use uln2003)
F8D60489-EBB3-4B6D-92E4-FDA24FC87016.jpeg


Everything worked as expected :) . I’ll be changing my circuit to use uln2003 and adafruit perma proto board . But I am delighted to get this working. I can finally stop thinking about this topic . I wanted you I get this sorted before maker faire , so this can be part of then exhibit

I have the exact same concerns as you when it comes to safety. I don’t currently have a raspberry setup at all but I’m pretty much convinced I want to set one up using that adj 8ch relay. Can you explain with a little more detail your prototype circuit for converting the 3.3v to 12v. Is that accomplished with a transistor?.
 

Mikeneedsahobby

Well-Known Member
View Badges
Joined
Sep 16, 2018
Messages
516
Reaction score
916
Rating - 0%
0   0   0
- Not sure why the millivolt reading is in negative, wrong byte read or something else..
- Also the trend is opposite. That time of the day , pH tend to go down.. I am not sure this is calibration will fix. We'll see. Can be bad probe . I am using american marine pin point probes ..bought from Amazon

Is there anything we can do to help? I could buy a probe, plug it into my pico board and watch what the millivolts do. I could manually confirm ph and match it to points of time from the probe.
 
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
Is there anything we can do to help? I could buy a probe, plug it into my pico board and watch what the millivolts do. I could manually confirm ph and match it to points of time from the probe.
That will be awesome , I’m seeing i2c error on the board , you could double check if you are experiencing same . I’m waiting on @theatrus to get back to me on this, as I suspect this has something to do with firmware. While I continue with the ph board
 

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 26.6%
  • 100% dry rock + 100% live sand

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

    Votes: 32 22.4%
  • 75% live rock, 25% live sand

    Votes: 15 10.5%
  • 25% live rock, 75% live sand

    Votes: 10 7.0%
Back
Top