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

Somnifac

Active Member
View Badges
Joined
Oct 6, 2017
Messages
141
Reaction score
378
Rating - 0%
0   0   0
Sorry, the link for the regulator was a 7810, as ranjib suggested. The one I was looking at was 296-1996-ND, slightly different but should be the same result.

No worries. I put an order in for a few. It just seems good practice to limit voltage to 10v, and then fine tune the off/full on points using the limit points in software.

And re: the enclosure.

I was thinking about about designing and 3D printing an enclosure, but it would have been complicated by the fact that it would have to have been printed in multiple parts. The printer I have access to has a print area of about 6x6x6 (not exact, but close enough). That would have meant it would be printed in at least 2, but more likely 4 sections (then again for the cover/lid).

So, I looked at Home Depot and found a 12" x 12" Junction Box. This may simplify the process greatly, needing only internal mounting/wire management to be printed and glued inside. I think the most complicated part will be cutting an area of one of the sides out to be replaced with a 3D printed panel to house the panel mount outlets. The outlets are intended to clip in place, but need a much thinner mount point than the junction box offers.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,056
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
No worries. I put an order in for a few. It just seems good practice to limit voltage to 10v, and then fine tune the off/full on points using the limit points in software.

And re: the enclosure.

I was thinking about about designing and 3D printing an enclosure, but it would have been complicated by the fact that it would have to have been printed in multiple parts. The printer I have access to has a print area of about 6x6x6 (not exact, but close enough). That would have meant it would be printed in at least 2, but more likely 4 sections (then again for the cover/lid).

So, I looked at Home Depot and found a 12" x 12" Junction Box. This may simplify the process greatly, needing only internal mounting/wire management to be printed and glued inside. I think the most complicated part will be cutting an area of one of the sides out to be replaced with a 3D printed panel to house the panel mount outlets. The outlets are intended to clip in place, but need a much thinner mount point than the junction box offers.
I like the idea of using a junction box. Let us know how it goes, I might consider it to build a power bar
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,056
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I am thinking, whether to ship a feature to make the dashboard configurable or not, as part of 1.0 release. I dont want to add new features, but also dont want to ship something thats unusable to other screens. Suggestion?
Currently, I use the 2x3 grid , this is pretty much unusable for mobile devices
Screen Shot 2017-11-13 at 6.00.03 PM.png
 

philshel

Active Member
View Badges
Joined
Jul 24, 2010
Messages
364
Reaction score
381
Rating - 0%
0   0   0
I am thinking, whether to ship a feature to make the dashboard configurable or not, as part of 1.0 release. I dont want to add new features, but also dont want to ship something thats unusable to other screens. Suggestion?
Currently, I use the 2x3 grid , this is pretty much unusable for mobile devices
Screen Shot 2017-11-13 at 6.00.03 PM.png

@Ranjib Can't you do like most web sites and have a mobile version "m.(IP)"? On a different subject, do you have a problem with your Kessils turning on full power when you dim down to 0%? I've had similar issues before with other LEDs and I was led to believe it had to do with needing a pull down resistor someplace. I'm also having issues with the Kessils flickering at certain low color settings, do you experience that?
 

Gareth elliott

Read, Tinker, Fail, Learn
View Badges
Joined
May 7, 2017
Messages
5,468
Reaction score
6,935
Location
NJ
Rating - 0%
0   0   0
I am thinking, whether to ship a feature to make the dashboard configurable or not, as part of 1.0 release. I dont want to add new features, but also dont want to ship something thats unusable to other screens. Suggestion?
Currently, I use the 2x3 grid , this is pretty much unusable for mobile devices
Screen Shot 2017-11-13 at 6.00.03 PM.png

Perhaps move on the graphs to their own tab. Would clean up the home page and then have the charts engaged or disengaged by jcheckboxes.

Then on homepage display the current stats (temp, ph etc). In a smaller area
Or perhaps button for common functions already written into the code.

Feeding button (pumps off)
Water change button (ato off)
Take Picture
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,056
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Notifications UI is in progress, this
Perhaps move on the graphs to their own tab. Would clean up the home page and then have the charts engaged or disengaged by jcheckboxes.

Then on homepage display the current stats (temp, ph etc). In a smaller area
Or perhaps button for common functions already written into the code.

Feeding button (pumps off)
Water change button (ato off)
Take Picture
Camera has its own dedicated tab
reef-pi does not have feed mode or macro like capabilities yet,.As of now, I am intending to keep the dashboard for charts only (i.e its not a homepage) , but I can see the value in keeping some handy controls there..
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,056
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib Can't you do like most web sites and have a mobile version "m.(IP)"? On a different subject, do you have a problem with your Kessils turning on full power when you dim down to 0%? I've had similar issues before with other LEDs and I was led to believe it had to do with needing a pull down resistor someplace. I'm also having issues with the Kessils flickering at certain low color settings, do you experience that?
m.IP will be a bit hard thing to do with pi, since we dont have DNS control . Here both the controller and the web UI are powered by the raspberry pi, nothing goes to cloud. If we were using a cloud service doing something like this will be easy. But still belive this is not very hard even for reef-pi because its a single page app built with react and bootstrap, both of which support responsive UI (UI that adjust to the screen), I am still learning about this aspect of the UI. May be one of the future release.. or even a minor release dedicated on making all the UI smooth on phone and tablet will be enough.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,056
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib Can't you do like most web sites and have a mobile version "m.(IP)"? On a different subject, do you have a problem with your Kessils turning on full power when you dim down to 0%? I've had similar issues before with other LEDs and I was led to believe it had to do with needing a pull down resistor someplace. I'm also having issues with the Kessils flickering at certain low color settings, do you experience that?
I do not think that the flickering of kessil was due to pull down resistor. It was reproducible only at low pwm values, and the experience is consistent with other high power LED lights, I also did not find any specific evidence that indicate its a pull down resistor issue. If i recall correctly the kessil controller itself does not produce low pwm values , I can re-check things , since I have an oscilloscope now, and if so, it will further reinforce the idea that this is low pwm value related not pull down resistor . I have also noticed that the way some pwm drivers work , they inerpreter the values in periodic fashion. For example: pca9685 board is 12 bit which translates to 0-4096 range. If you pass 0 its the lowest, if you pass 4095 its the highest , and if you pass 4096 its same as 0, 4099 will translate to 3 ... etc . I encountered this during reef-pi led dimming implementation where I convert user's input from slider which is 0->100 to 0->4096 rang. Extreme right end of slider, if it generates 100 and if we set the corresponding value to 4096 it acts same as setting 0. reef-pi. Here is the reef-pi code: https://github.com/reef-pi/reef-pi/blob/master/controller/utils/pwm.go#L48
 

philshel

Active Member
View Badges
Joined
Jul 24, 2010
Messages
364
Reaction score
381
Rating - 0%
0   0   0
I do not think that the flickering of kessil was due to pull down resistor. It was reproducible only at low pwm values, and the experience is consistent with other high power LED lights, I also did not find any specific evidence that indicate its a pull down resistor issue. If i recall correctly the kessil controller itself does not produce low pwm values , I can re-check things , since I have an oscilloscope now, and if so, it will further reinforce the idea that this is low pwm value related not pull down resistor . I have also noticed that the way some pwm drivers work , they inerpreter the values in periodic fashion. For example: pca9685 board is 12 bit which translates to 0-4096 range. If you pass 0 its the lowest, if you pass 4095 its the highest , and if you pass 4096 its same as 0, 4099 will translate to 3 ... etc . I encountered this during reef-pi led dimming implementation where I convert user's input from slider which is 0->100 to 0->4096 rang. Extreme right end of slider, if it generates 100 and if we set the corresponding value to 4096 it acts same as setting 0. reef-pi. Here is the reef-pi code: https://github.com/reef-pi/reef-pi/blob/master/controller/utils/pwm.go#L48

Please don't waste any time on this for me, I was mostly curious if it was something you had encountered before or it was just me. The dimming issue is easy to deal with, I just don't dim all the way to "0". The kessils go off by "13". Same goes for the color setting, I just don't go below "15". I had to do the same thing a while back using a "Storm" controller and some DIY leds.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,056
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Please don't waste any time on this for me, I was mostly curious if it was something you had encountered before or it was just me. The dimming issue is easy to deal with, I just don't dim all the way to "0". The kessils go off by "13". Same goes for the color setting, I just don't go below "15". I had to do the same thing a while back using a "Storm" controller and some DIY leds.
Ack. I am finishing off the coding for the last thing, notifications. Hopefully I'll be done by this weekend , and release 0.9. After the reef-pi will have feature freeze and only bug fix/documentation till I cut 1.0.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,056
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Ranjib,
What is supposed to be the length of records displayed in the heater/cooler graph.
It is going almost a week now and still hasn't cycled. The bars just keep getting narrower and narrower.
upload_2017-11-16_16-13-54.png
The first temperature graph, which shows only temperature reading holds latest 180 points. So, if you are monitoring temperature 1 minute interval it will have last 3 hours data. The second temperature chart which shows hourly temperature value (average of all the readings in that hour) alongside heater/cooler usage stored last 1 week data, i.e. last 24x7 hourly averages and associated equipment usage points.

Does that makes sense? I love your dashboard, it looks like the heater is working hard to keep the tank warm. 0.9 is bringing temperature and ato alerts.
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
The first temperature graph, which shows only temperature reading holds latest 180 points. So, if you are monitoring temperature 1 minute interval it will have last 3 hours data. The second temperature chart which shows hourly temperature value (average of all the readings in that hour) alongside heater/cooler usage stored last 1 week data, i.e. last 24x7 hourly averages and associated equipment usage points.

Does that makes sense? I love your dashboard, it looks like the heater is working hard to keep the tank warm. 0.9 is bringing temperature and ato alerts.
That makes sense then.
Currently I have the temp probe on 10 min intervals. I was trying to use that as a form of hysteresis, so that the heater would stay on for at least 10 minutes when it does come on.
 

Cary

Well-Known Member
View Badges
Joined
Feb 19, 2016
Messages
638
Reaction score
766
Location
Allen, Tx
Rating - 0%
0   0   0
Ranjib, I was listening to Jim today and realized that I gave you the wrong nickname. I should have called you "The Axis", as in "Ask the Axis".

So I propose that we change your nickname to Ranjib "The Axis" Dey or Ranjib/The Axis.


sorry that I don't have any project comments right now. That being said, you are an amazing programmer.
 

Being sticky and staying connected: Have you used any reef-safe glue?

  • I have used reef safe glue.

    Votes: 42 85.7%
  • I haven’t used reef safe glue, but plan to in the future.

    Votes: 2 4.1%
  • I have no interest in using reef safe glue.

    Votes: 2 4.1%
  • Other.

    Votes: 3 6.1%
Back
Top