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

jcmental

Active Member
View Badges
Joined
Jan 25, 2018
Messages
114
Reaction score
137
Rating - 0%
0   0   0
This guide has example of get and update settings
https://reef-pi.github.io/additional-documentation/api/

Use the get api to obtain and save a copy of your setting in a file (>settings.json) , then check it for dashboard configuration , fixes if there’s a zero, ), then update setting using the update example.
Or just reset dB :-/
Thanks @Ranjib But to me that’s all Greek. I’m thinking it my be something wrong with my rasprian program. I did the sudo apt-get remove reef-pi
And then reinstalled reef pi and it still just flashes up then just goes blank
 
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
Thanks @Ranjib But to me that’s all Greek. I’m thinking it my be something wrong with my rasprian program. I did the sudo apt-get remove reef-pi
And then reinstalled reef pi and it still just flashes up then just goes blank
I don’t think there anything wrong with as card or raspbian. You can simply stop reef-pi (sudo systemctl stop reef-pi.service) and remove the data base (sudo rm /bar/lib/reef-pi/reef-pi.db) and start reef-pi again (sudo systemctl start reef-pi.service) , and things should work
 

jcmental

Active Member
View Badges
Joined
Jan 25, 2018
Messages
114
Reaction score
137
Rating - 0%
0   0   0
Some update on led circuit.

For sometime folks have asked for circuits other than kessil (which I use exclusively), I had tested a few things which worked earlier but never had a full on build. After some new requests this week, I decided to build out a permenant controller for my moon lights. I may combine this with one of the existing build as well, the circuit is a standalone one and will work for a wider range of voltage .

This is the circuit to control direct led power, allows you to dim led strips /bulbs etc. For my case, I want to dim coralife biocube moonlight strip, it has tree leds , runs at 12v and draws 1 amp at peak

Here is the whole setup :
C5EA402F-0F4F-4862-B7F6-2FC39D78070A.jpeg


I am using pi for generating pwm straight. Which controls a power mosfet , which in turn controls the led power. I am using a single 12v power source , and an lm2596 to step down to 5v, which feeds pi. The custom circuit houses the power rails, connectors for power in, led power out , male headers for connecting lm2596 and pi pwm out. It should work with pca9685 as is. Just wire a pwm source .
70D0EC59-5B22-432B-BB4F-253997A1F517.jpeg


So looking at the spec for the p30n06le
I am using adafruit perma proto board to solder everything , the mosfet gate (which is connected to pwm) is pulled down (connected to grown) using a 100k resistor. I am using p30n06le power mosfet.
4AB50D18-B5E7-46F2-89AF-FECEDAF839E4.jpeg


621AA399-57CF-49AC-986F-657ECFA1941F.jpeg


I am very happy with the results. I was able to dim down to 1%. I’ll do a thorough thorough test with multimeter and oscilloscope next and share with you.
I think I am close to the solution of rpi pwm problem. I had to dial down the pwm frequency . I have also added a setting for specifying pwm frequency (details to 100) in the api and ui

So looking at the spec for the p30n06le i.e 30A 60V would you be able to run a full bank of LED's from it that had a draw from 20 x 3v 3w led's in series ?
 
Last edited:
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 looking at the spec for the p30n06le i.e 30A 60V would you be able to run a full bank of LED's from it that had a draw from 20 x 3v 3w led's in series ?
yeah, but you'll need heatsink (and fan probably), also they'll be not be independently dimmable.
 
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
2018-07-04 13.11.28 (Medium).jpg


Well, it ain't pretty, but I think it might just work... for now until Amazon gets that SRP8 back in.

I'm using the RJ45's for Temp, and ATO input.

This is such an awesome project @Ranjib , Thanks for all your hard work!!!
I am assuming this is powered by a 8-channel relay internally ?

Looks so much better than my scratch builds :-) . Good job
 
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 to all,some good news this is a beauty just some little hick up. Where is the max temp adjustment?

Screenshot from 2018-07-04 13-02-33.png


Screenshot from 2018-07-04 13-02-48.png
:-( , thats a bad UI bug. Let me fix that asap.

Sorry about that.
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
2018-07-04 13.11.28 (Medium).jpg


Well, it ain't pretty, but I think it might just work... for now until Amazon gets that SRP8 back in.

I'm using the RJ45's for Temp, and ATO input.

This is such an awesome project @Ranjib , Thanks for all your hard work!!!


I wanna see whats inside.........I wanna see whats in side.. I wanna see what is inside I want to see .. Ohh wait.. just show the inside already..

Sheesh ..

Please ..
 
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
@janos released a new beta with fixes

reef-pi 2.0.0-beta-5
Changes:
- Fix temperature control (max value) UI
- Fix redundant api errors in configuration tab
- API error will have better error message in UI
- Allow setting custom RPI pwm frequency
- Allow enabling pprof (for performance profiling) via UI

Release builds can be found in usual place: https://github.com/reef-pi/reef-pi/releases/tag/2.0.0-beta-5


Upgrade should be simple as:
Code:
wget -c https://github.com/reef-pi/reef-pi/releases/download/2.0.0-beta-5/reef-pi-2.0.0-beta-5-pi0.deb
dpkg -i reef-pi-2.0.0-beta-5-pi0.deb
 

philshel

Active Member
View Badges
Joined
Jul 24, 2010
Messages
365
Reaction score
375
Rating - 0%
0   0   0
Just a quick question to the electronics gurus, on the temperature circuit, how important is the value of the 4.7k resistor? The closest thing I have is a 5.1k, does this throw the calibration off?
 
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
Just a quick question to the electronics gurus, on the temperature circuit, how important is the value of the 4.7k resistor? The closest thing I have is a 5.1k, does this throw the calibration off?
Should work fine
 
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
Ok, good. Then regarding calibration, I checked the probe/reef-pi to a known good thermometer and it fluctuated between 2.5 and 3 deg cooler. Is there a way to calibrate reef-pi, or is it just the way it is?
We don’t have any calibration module (I intend to add one , there’s already issue tracking that) .
That’s odd though , ds18b20 should always be accurate within 0.5 degree Celsius. The resistor should be ok till 10k :-/

I’ll do a round of testing soon and verify it
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
Ok, good. Then regarding calibration, I checked the probe/reef-pi to a known good thermometer and it fluctuated between 2.5 and 3 deg cooler. Is there a way to calibrate reef-pi, or is it just the way it is?

That is odd.. I have 4 temp probes , One is next to a high end temp-humidity thing, One is outside the window (yes just to make sure its tracking separate from the others ) One is in a Hvac floor register, and One is actually on top the heat sink on my pi zero..

temp probe next to Known good probe near perfect... on fireplace
temp probe in ac duct shows 55 deg when ac is running and slowly moves up once its off. its high temp is about a deg lower the then temp probe on the fireplace
temp prob outside the window . Well it depends on where the sun is.. But it does kinda follow local weather app. ( i assume its accurate ) Mid day today 109 .. GRRR .
The probe on the pi heat sink runs at 100.5 to 110.00 If i boot the pie into ui it will jump to 125. So i assume its working well..

The pi zero booted to desktop might as well be brick when it comes to usability .well thou its not heavy enough o break anything so less useful then a brick .

Some of these probes are on very long cat3 wires .. See post above Somewhere ....
 

philshel

Active Member
View Badges
Joined
Jul 24, 2010
Messages
365
Reaction score
375
Rating - 0%
0   0   0
We don’t have any calibration module (I intend to add one , there’s already issue tracking that) .
That’s odd though , ds18b20 should always be accurate within 0.5 degree Celsius. The resistor should be ok till 10k :-/

I’ll do a round of testing soon and verify it

Sorry, didn't mean to throw a wrench in the works.
 

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