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

Free Phyto Promo
Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed
Shop Now Code: FREEPHYTO

pies666

New Member
View Badges
Joined
Nov 25, 2019
Messages
12
Reaction score
9
Rating - 0%
0   0   0
Heya,

I have a question regarding RGB lightening. How exacly does the "color slider" setting (in lightening -> lamp tab) works? Does it "mix" R+G+B via 3 PWM signals? If yes, is there any information how it should be set up? If I for example set Jack 1 to use pin no. 1,2,3 which pin corresponds with Red, Green and Blue in reef-pi? I'm hooking up RGB LED strip, not Kessil lights (I guess, Kessils are only R+B - am I right?).

Cheers,
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
Heya,

I have a question regarding RGB lightening. How exacly does the "color slider" setting (in lightening -> lamp tab) works? Does it "mix" R+G+B via 3 PWM signals? If yes, is there any information how it should be set up? If I for example set Jack 1 to use pin no. 1,2,3 which pin corresponds with Red, Green and Blue in reef-pi? I'm hooking up RGB LED strip, not Kessil lights (I guess, Kessils are only R+B - am I right?).

Cheers,
No the color slider just specifies what color the lines on the graph on the dashboard will be for that particular channel. It has nothing to do with color mixing of your lights
 
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
You sir are correct. Upon reload, one sensor failed. Deleted it, rebuilt it, and it works. Something definitely happens on reload.
How many sensor you have?
 
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
I have loaded reef pi 3.0 rc1 and have a weird behavior with temp sensors. First off this is being tested on my bullet proof build that was happily running the 3.0 alpha release for months.
Upgrading from 3.0 alpha i had some temp sensors missing so I deleted them all and remade the sensors. All is good and they happily work.
Upon a reload of reef pi a temp sensor will randomly be missing once it reloads. If you delete and remake that sensor it works fine until you do another reef pi reload. I can see all sensors when ssh into pi and issue the command to see them on the onewire bus.

In short:
Sensors created and work fine but upon reef pi reload they will randomly quit working. After deleting and recreating the sensor it will again work fine until a reef pi reload.

This is definitely reef pi software related as going back to 3.0 alpha everything works.

The lighting in reef pi 3.0rc1 seems to be working !
@Bigtrout i have not been able to reproduce this with single sensor setup. I'll try with multi-sensor setup tonight and report back. Looks like this is reproducible. i just have to recreate it on my end .
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
@Bigtrout i have not been able to reproduce this with single sensor setup. I'll try with multi-sensor setup tonight and report back. Looks like this is reproducible. i just have to recreate it on my end .
It almoat acts like when reef pi initializes after a reboot or reload it only finds the first sensor on the onewire bus even though they are all there.
@Ranjib, doing some reading about the onewire bus, i found some info that it may take some time to initialize, find all the sensors, their addresses and resolutions, etc. Perhaps adding a small time delay on relaoding may solve the problem
 
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
Dang... I was able to reproduce the error :-) . Thank you so much folks. I have been able to reproduce the error in my setup. It's silly bug (As usual) in the backend software code. Off to fixing it.. and 3.0 final release .. or may be cut one last rc
 
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 fix is done.. https://github.com/reef-pi/reef-pi/pull/927
And I have cut a new release (rc2) with the fix and few other fixes. https://github.com/reef-pi/reef-pi/releases/tag/3.0.0-rc2
I think this is it. I dont have anything thats blocking the final release. I could really use a last round of testing if you get a chance @Bigtrout @mk1scott @b4tn


Summary of changes going in rc2 (takes as it is from the release page):
  • Fix multiple sensor bug
  • Make ph rollup values two decimal precision
  • PCA9685 default address should be 64 instead of 68
  • Fix light profile incorrect values
  • Misc internationalization improvements
 

pies666

New Member
View Badges
Joined
Nov 25, 2019
Messages
12
Reaction score
9
Rating - 0%
0   0   0
No the color slider just specifies what color the lines on the graph on the dashboard will be for that particular channel. It has nothing to do with color mixing of your lights
Thank You! So I will just set the R+G+B manually via PWM signals.

One more question - would it be possible to run reef-pi with non-official but still DSI Touchscreen? I've got 5'' DFRobot DSI screen. It seems not to be working (showing Rasbian desktop even when enabled in reef-pi) by default. Receiving "{"error":"strconv.Atoi: parsing \"255\\n\": invalid syntax"} | HTTP 404".
However I can control it's brightness via reef-pi just fine. Any idea what should I look for to change?

Cheers,
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
Ok fix is done.. https://github.com/reef-pi/reef-pi/pull/927
And I have cut a new release (rc2) with the fix and few other fixes. https://github.com/reef-pi/reef-pi/releases/tag/3.0.0-rc2
I think this is it. I dont have anything thats blocking the final release. I could really use a last round of testing if you get a chance @Bigtrout @mk1scott @b4tn


Summary of changes going in rc2 (takes as it is from the release page):
  • Fix multiple sensor bug
  • Make ph rollup values two decimal precision
  • PCA9685 default address should be 64 instead of 68
  • Fix light profile incorrect values
  • Misc internationalization improvements
Ill do some testing after work today! Great job at fixing the bugs. Ill report my findings as soon as I can.
 

mk1scott

New Member
View Badges
Joined
Nov 13, 2019
Messages
10
Reaction score
9
Rating - 0%
0   0   0
I'll try to get the latest release installed tonight before we head to CT for the next few days.
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,679
Reaction score
2,227
Location
Columbia MD
Rating - 0%
0   0   0
I got it installed this morning. So far my temp sensors are good after reboot and everything seems to be working normal. I will play with it more after work today. I have a couple questions not related to the update but more the new features in 3.0

1. Can someone give me an example of what and how the reversible function works in Macros?

2. on the subject of Macros, all of my flow pumps work on timers. In order to completely turn off pumps I have to make a macro like this

"Wavemakers off"
Timers - wavemaker right - off
Timers - wavemaker left - off
Timers - wavemaker lower - off
Equipment - wavemaker right - off
Equipment - wavemaker left - off
Equipment - wavemaker lower - off

To turn them back on I have another macro that turns all the timers back on.

"Wavemakers on"
Timers - wavemaker right - on
Timers - wavemaker left - on
Timers - wavemaker lower - on

Now to complicate things even further, I want to turn off flow pumps inside of a macro for water changes or feeding. Right now I have this huge macro that individually does the steps above for each flow pump... wait... all the steps for each pump again to turn them on... wait... all the steps again to turn them off..etc. Macro is a function to control but it does not seem to work so I do the following:

"Feed (how I actually have it)"
Timers - wavemaker right - off
Timers - wavemaker left - off
Timers - wavemaker lower - off
Equipment - wavemaker right - off
Equipment - wavemaker left - off
Equipment - wavemaker lower - off
Equipment - Return - off
Equipment - skimmer - off
wait 120 seconds
Timers - wavemaker right - on
Timers - wavemaker left - on
Timers - wavemaker lower - on
wait 120 seconds
Timers - wavemaker right - off
Timers - wavemaker left - off
Timers - wavemaker lower - off
Equipment - wavemaker right - off
Equipment - wavemaker left - off
Equipment - wavemaker lower - off
Wait 1200 seconds
Equipment - return - on
Wait 120 seconds
Timers - wavemaker right - on
Timers - wavemaker left - on
Timers - wavemaker lower - on
wait 120 seconds
Equipment - skimmer - on

The question I have is how to I get macro control inside of a macro to work? The option is there but the action is confusing it says on or off. Should it not be run? I have tried setting the action to both on and off for the macro but it does not work like it is above. below would be my understanding of how the above would work if I could have a macro run the macros. It shortens it up significantly

"Feed"
Macro - wavemakers off - (I would think there would be an option for run vs off/on I have tried both off and on with no luck)
Equipment - Return - off
Equipment - skimmer - off
wait 120 seconds
Macro - wavemakers on - (I would think there would be an option for run vs off/on I have tried both off and on with no luck)
wait 120 seconds
Macro - wavemakers off - (I would think there would be an option for run vs off/on I have tried both off and on with no luck)
Wait 1200 seconds
Equipment - return - on
Wait 120 seconds
Macro - Wavemakers on - (I would think there would be an option for run vs off/on I have tried both off and on with no luck)
wait 120 seconds
Equipment - skimmer - on
 

pies666

New Member
View Badges
Joined
Nov 25, 2019
Messages
12
Reaction score
9
Rating - 0%
0   0   0
Every time I attempt to add PCA9685 Driver in 3.0.0 version the UI suggests address "68". I change it to default 40 (as it's my boards address) but I get "Failed to create. Error: remote I/O error reef-pi".
Already checked out i2c via i2cdetect and it show correctly 0x40 address. I have only PCA9685 board attached to rpi.

Fresh rasbian install with updates installed. Newest npm and node.js.

Any suggestions?

Edit:

I obviously didn't convert hexa to decimal. So dumb.
 
Last edited:

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,679
Reaction score
2,227
Location
Columbia MD
Rating - 0%
0   0   0
Every time I attempt to add PCA9685 Driver in 3.0.0 version the UI suggests address "68". I change it to default 40 (as it's my boards address) but I get "Failed to create. Error: remote I/O error reef-pi".
Already checked out i2c via i2cdetect and it show correctly 0x40 address. I have only PCA9685 board attached to rpi.

Fresh rasbian install with updates installed. Newest npm and node.js.

Any suggestions?

Edit:

I obviously didn't convert hexa to decimal. So dumb.

@Ranjib changed the default from 68 to 64 in the RC2 release. Took me a minute also when I was first installing 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
Thank You! So I will just set the R+G+B manually via PWM signals.

One more question - would it be possible to run reef-pi with non-official but still DSI Touchscreen? I've got 5'' DFRobot DSI screen. It seems not to be working (showing Rasbian desktop even when enabled in reef-pi) by default. Receiving "{"error":"strconv.Atoi: parsing \"255\\n\": invalid syntax"} | HTTP 404".
However I can control it's brightness via reef-pi just fine. Any idea what should I look for to change?

Cheers,
The display features are built for raspberry pi official touchscreen, and won’t work with other displays. You can still use your display just fine, but you can’t control it via reef-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
Every time I attempt to add PCA9685 Driver in 3.0.0 version the UI suggests address "68". I change it to default 40 (as it's my boards address) but I get "Failed to create. Error: remote I/O error reef-pi".
Already checked out i2c via i2cdetect and it show correctly 0x40 address. I have only PCA9685 board attached to rpi.

Fresh rasbian install with updates installed. Newest npm and node.js.

Any suggestions?

Edit:

I obviously didn't convert hexa to decimal. So dumb.
It’s 64 in decimal , which is what reef-pi expects. 0x40 is I’m hexadecimal
 

TOP 10 Trending Threads

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

  • 100% live rock + bagged sand

    Votes: 37 27.2%
  • 100% dry rock + 100% live sand

    Votes: 46 33.8%
  • 50/50 live/dry rock, 50/50 live/bagged sand

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

    Votes: 13 9.6%
  • 25% live rock, 75% live sand

    Votes: 10 7.4%
Back
Top