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

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
I have a question about the doser function. If the pi shuts down (either through power failure or planned maintenance) while the doser is running and the pi "misses" the time when the doser should have been turned off, will the doser keep running indefinitely?

I have realized that it works this way for other timers and outlets. However, I am worried about a doser being stuck in the "on" state for hours and inadvertently dumping a large volume of the dosing solution into the tank
with the Relays you can choose them to be Normally open or normally closed , Depending on which position you put the wire. I have some outlets set to turn on with no Low power and some to go off..... Dosing is a programmed job so will only run during its scheduled time.
 
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 a question about the doser function. If the pi shuts down (either through power failure or planned maintenance) while the doser is running and the pi "misses" the time when the doser should have been turned off, will the doser keep running indefinitely?

I have realized that it works this way for other timers and outlets. However, I am worried about a doser being stuck in the "on" state for hours and inadvertently dumping a large volume of the dosing solution into the tank
You are right, if Pi crashes when the timer is on then pca9685 will continue to send pwm signal (assuming you are using pca9685 to generate pwm). To stop pca9685 sending pwm signal pull down the OE pin (i.e. use a 1k resistor to connect oe pin and ground). if your are using pi for pwm signal then it will stop generating pwm soon after it crashes.

Please test it out and let me know. For the relay's you should be able to exploit two layers of protection 1) what @Erica-Renee mentioned , 2) GPIO should always be in off state when pi is down. And you can design your setup accordingly.

Let me know how if this is not working as I mentioned. Reliability is critical and we will not compromise on that front. I am more than happy to take a step back, and address these concerns before adding more and more features,
 
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
2.0-beta Smoke test video




Still learning how to make videos. Something I want to do for reef-pi build tutorials ..
 

ReefSpy

New Member
View Badges
Joined
Nov 21, 2017
Messages
13
Reaction score
40
Location
Planet Earth
Rating - 0%
0   0   0
Hi guys, I am late to the party and have not read all 200 pages of posts. I have also been working on a reef controller using Raspberry Pi but taking a slightly different approach. Are you guys still looking for people to contribute?
 
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 guys, I am late to the party and have not read all 200 pages of posts. I have also been working on a reef controller using Raspberry Pi but taking a slightly different approach. Are you guys still looking for people to contribute?
We are always looking for people to contribute. You don’t have to read the 200 pages unless you want to know the history :-) . Official docs should be ok, and just start building a controller and ask us if you need any help

And, welcome to reef2reef , you’ll love it here . People are very friendly
 

ReefSpy

New Member
View Badges
Joined
Nov 21, 2017
Messages
13
Reaction score
40
Location
Planet Earth
Rating - 0%
0   0   0
We are always looking for people to contribute. You don’t have to read the 200 pages unless you want to know the history :) . Official docs should be ok, and just start building a controller and ask us if you need any help

And, welcome to reef2reef , you’ll love it here . People are very friendly
Thank you! I will download the source and give it a go. I am currently integrating the cheap pH probe/controller from eBay with the pi (the one with board labeled Logo_PHsensor v1.1 that is like $14-$20). I am pretty sure I have it working, but the probe is so cheap the accuracy leaves much to be desired. I have a new probe coming from BRS this week. If it all checks out, I will have something to contribute.
 
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
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
Thank you Ranjib not looking for more work with my knowledge,just asking before i buy the wrong thing.
If you are in US, get a adj srp8 channel relay pack, db9 connector, db9 cable , uln2803 and you should be gold
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
Ranjib.

That video of 2.0 looks awesome.

Here's a quick pic of the tank I'm going to be running on Reef-Pi (500x500x500mm cube - approx 150l)

FTSr.jpg
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
I'm currently using a TC420 to run my 5 channel LED lighting system. Is there anyone that can advise me on how to set up the PCA 9685? I've had a look at the "Builds" section, but am a little unsure how it should be done.
 
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'm currently using a TC420 to run my 5 channel LED lighting system. Is there anyone that can advise me on how to set up the PCA 9685? I've had a look at the "Builds" section, but am a little unsure how it should be done.
I have never used tc420. Do you have any datasheet or something i can look at to figure out if they can be externally controlled? I couldn't find anything useful on the net
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
Ranjib

The TC420 controls the 5 channels of lighting. My plan is to replace it with the Reef-Pi, so there will just be 5 channels of 12V LED's. The TC420 takes 12V input and splits it to a common + and 5 -'s that connect straight to the dimmable drivers and LED's. The TC420 runs the timing and dimming programs. I will try dig out more info for you though.
 
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
Ranjib

The TC420 controls the 5 channels of lighting. My plan is to replace it with the Reef-Pi, so there will just be 5 channels of 12V LED's. The TC420 takes 12V input and splits it to a common + and 5 -'s that connect straight to the dimmable drivers and LED's. The TC420 runs the timing and dimming programs. I will try dig out more info for you though.

Got it. So, you want something that will convert the 5v pwm coming from pca9685 to 12v for your LEDs.
Depending upon the current draw, you can start with uln2803 and see if that works out, if not Meanwell drivers will definitely work.
 

aquaalgae

Community Member
View Badges
Joined
Mar 22, 2017
Messages
48
Reaction score
30
Rating - 0%
0   0   0
Just to give an example of this, you can use the

POST /api/lights/ID

api endpoint to update a lights intensity directly. So, you can write a tiny bash script that loops over and update the light channel intensities, every second


Could you post a sample bash script - just one that updates a couple of channels of pwm so I can see an example of how this works. I am learning python and have made a small python program that will calculate the pwm value for 16 channels based upon the start time, end time, ramp time and current time. I'm not sure how to implement this though....

Thanks
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
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
Are we able to use a phone for control of reef-pi, as in an app in the future do you think?
reef-pi UI is a website, and can be accessed via mobile. I dont have any plan to write mobile app till 2.0 release at least. I dont know after that I'll write or not, I also dont know if I do wrtite it will be iOS or Android. I personnaly use iPhone, so if I do write an app its likely to be an iOS app first.

In terms of accessing reef-pi from outside your home network, you can setup port forwarding (you can google for your ISP specific steps, i do it using Xfinity portal, AT&T has similar things as well). As @Erica-Renee mentioned, use a strong password & https. And use it temporarily when you need it
 

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