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

Aaron Smith

Active Member
View Badges
Joined
Apr 9, 2017
Messages
250
Reaction score
273
Location
Oregon
Rating - 0%
0   0   0
Lighting back up and running. How to link to adafruit.io?

Just created an account...
 

Aaron Smith

Active Member
View Badges
Joined
Apr 9, 2017
Messages
250
Reaction score
273
Location
Oregon
Rating - 0%
0   0   0
Ok telemetry graphing. Can't figure out how to overlay white and blue channels.

How did you do that!?

36670fa07aad4054aaa36fb21c1f76da.jpg
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Stand by I found the post. I'll follow that and report back[emoji2]
awesome,
in short,
1) Create a one feed for each of your channel, with same name, make sure you use small case letters, without any special character , space etc
2) Configure reef-pi with adafruit io key (available on adafruit.io website), and enable telemetry (check example config for the format)
3) restart reef-pi, and check journal for any error, reef-pi journal should indicate that telemetry is enabled on start up, no error while setting pwm values mean telemetry data is being sent, failure to send telemetry data to adafruit.io will definitely show up as errors in journal
4) check adafruit.io for the feeds, they should have data now. Start building dashboard with those feeds. For me , my dashboard is composed of two feeds , namely color and intensity, since my light is Kessil, which has two channel control , for you it might be bit different
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Ok telemetry graphing. Can't figure out how to overlay white and blue channels.

How did you do that!?

36670fa07aad4054aaa36fb21c1f76da.jpg
How awesome :)
Click on the settings icon, and edit the block, on the very first prompt, you can select feeds you want to use for charting
 

Mike Logsdon

New Member
View Badges
Joined
May 26, 2017
Messages
4
Reaction score
4
Rating - 0%
0   0   0
Hey Mike, how is your build going ?
Got it loaded, but was working out of town, then vacation, will be working out of town for the next 2 weeks, so brought everything with me, good protect for evening time. Thanks for asking
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
You mean like this....
emoji41.png
b949555cda3813f38657c14a14f52374.jpg
You got it :)
Now, you can remotely check if things are working as expected.
This practice will be super useful, since we'll use the same trick to send all sorts of data to adafruit, and we can chart/graph it there, as well as setting up triggers, i.e. if some telemetry value is above or below certain range email or send a web hook .... exciting time ahead
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Got it loaded, but was working out of town, then vacation, will be working out of town for the next 2 weeks, so brought everything with me, good protect for evening time. Thanks for asking
Awesome, let me know if you have any question or need any help
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Got couple of more things done today,
1) Added an admin API/UI for reef-pi, this will allow powering off or rebooting the reef-pi controller from UI. Like most features in reef-pi, this can be enabled or disabled via the configuration. By default this will be disabled.
https://github.com/ranjib/reef-pi/pull/152
2) On the hardware side, I investigated my 1st build's peristaltic pumps, and the blue led strip from by gutted BioCube 29 hood, both works with pi zero + pca9685 + l293d (to boost pwm output to 12 volt). If things go well, I'll make two standalone controller with pi zero. And if that works, I'll try to control them from a central pi 3 based controller.
On a sad note, I found uln2803a is not working as I expect to boost 5 volt pwm (from pca9685) to 12 volt. I hope I have some wiring or circuit fault, :-/ . This does not block the development, since l293d can provide an alternate, but this means we'll have only 2 channel pwm per IC, while uln2803a would allow 8 channel controls. Although l293d is dual H bridge, which means I can alter the polarity, which may be helpful for pump control (reverse direction), but its pretty useless for LEDs,
Overall today was a very happy day
For those of you in USA , Happy Independence day :)
 

Aaron Smith

Active Member
View Badges
Joined
Apr 9, 2017
Messages
250
Reaction score
273
Location
Oregon
Rating - 0%
0   0   0
Got couple of more things done today,
1) Added an admin API/UI for reef-pi, this will allow powering off or rebooting the reef-pi controller from UI. Like most features in reef-pi, this can be enabled or disabled via the configuration. By default this will be disabled.
https://github.com/ranjib/reef-pi/pull/152
2) On the hardware side, I investigated my 1st build's peristaltic pumps, and the blue led strip from by gutted BioCube 29 hood, both works with pi zero + pca9685 + l293d (to boost pwm output to 12 volt). If things go well, I'll make two standalone controller with pi zero. And if that works, I'll try to control them from a central pi 3 based controller.
On a sad note, I found uln2803a is not working as I expect to boost 5 volt pwm (from pca9685) to 12 volt. I hope I have some wiring or circuit fault, :-/ . This does not block the development, since l293d can provide an alternate, but this means we'll have only 2 channel pwm per IC, while uln2803a would allow 8 channel controls. Although l293d is dual H bridge, which means I can alter the polarity, which may be helpful for pump control (reverse direction), but its pretty useless for LEDs,
Overall today was a very happy day
For those of you in USA , Happy Independence day :)

Great work! Sounds like you were busy! Thanks for the help as well. I always enjoy working with reef-pi[emoji41]

Happy Independence day to you as well[emoji2]
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib

Here is a link to my dashboard. I have my min threshold for both channels set to 5. If you look at the values logged, it appears that I always have 1 value between 0 and 5. Whatcha think?

https://io.adafruit.com/aaronsparky/dashboards/reef-lighting
Has to be a bug or configuration error. whats the journal says ? You can check journal entry for a specific time using
```
journalctl --since "2015-01-10" --until "2015-01-11 03:00"
```
Also, can you share the part of the configuration where you have declared the threshold, there may be typo or indentation error.
 

Aaron Smith

Active Member
View Badges
Joined
Apr 9, 2017
Messages
250
Reaction score
273
Location
Oregon
Rating - 0%
0   0   0
Has to be a bug or configuration error. whats the journal says ? You can check journal entry for a specific time using
```
journalctl --since "2015-01-10" --until "2015-01-11 03:00"
```
Also, can you share the part of the configuration where you have declared the threshold, there may be typo or indentation error.

Here is my config.
ab8ab389b9c8c4a8a1074246644966a4.jpg


Here is a glimpse of the journal right now. White is at 0. I couldn't get the specific journal command to enter right. I'm not sure if it was the date format or what.
6535a52d9eeaf19504a7a9e10c9ab461.jpg


It appears to be working. But the graph on adafruit.io shows a slight blip below threshold.
 

denierlexiese

Active Member
View Badges
Joined
Jul 7, 2017
Messages
106
Reaction score
68
Rating - 0%
0   0   0
@Ranjib Thank you for all your work.

I'm looking into building a raspberry pi controller. I am a programmer by trade. I was thinking of using DS18B20 to get the temp monitoring started since I have an softie / beginner lps tank and I think that's the most critical parameter to monitor my tank.

@Ranjib Keep us posted how your testing goes with the DS18B20. I will also be looking into how easy it is to spin up reef-pi without any modules besides the rasberry pi 3. Hopefully it just works. I'm excited.

This forum suggest you might be able to coat it in reef safe silicon.
http://reefcentral.com/forums/showthread.php?t=2423142

Hopefully I'll be able to contribute to your project at some level. Thanks!!!
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib Thank you for all your work.

I'm looking into building a raspberry pi controller. I am a programmer by trade. I was thinking of using DS18B20 to get the temp monitoring started since I have an softie / beginner lps tank and I think that's the most critical parameter to monitor my tank.

@Ranjib Keep us posted how your testing goes with the DS18B20. I will also be looking into how easy it is to spin up reef-pi without any modules besides the rasberry pi 3. Hopefully it just works. I'm excited.

This forum suggest you might be able to coat it in reef safe silicon.
http://reefcentral.com/forums/showthread.php?t=2423142

Hopefully I'll be able to contribute to your project at some level. Thanks!!!
@denierlexiese Thanks you for the kind words.
I am currently working on the exactly same probe, along side some dosing controls.

On the probe side, I plan to add the code (should be nominal , since it uses 1 wire protocol, i just have to read the values from a file) in reef-pi first, expect that to land sometime next week. I intend to build an independent temperature controller backed by reef-pi first, using a pi zero, a two channel relay (to control heater or fan/chiller) and ds18b20 probe. I have the PID controller code in reef-pi already , if needed I should be able to use that as well.
For next few months, my plan is to first build this independent controllers (doser, temperature, ATO and light) first, and then make the controllable from a central reef-pi.

Let me know if you need any help with you dev environment setup... reef-pi used go lang for backend and react js on the front end. Its pretty similar to a simple web app
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Here is my config.
ab8ab389b9c8c4a8a1074246644966a4.jpg


Here is a glimpse of the journal right now. White is at 0. I couldn't get the specific journal command to enter right. I'm not sure if it was the date format or what.
6535a52d9eeaf19504a7a9e10c9ab461.jpg


It appears to be working. But the graph on adafruit.io shows a slight blip below threshold.
According to the log things are working as expected, we need the log from time period same same as the timeperiod you are seeing with values between 0-5 in the adafruit.io dashboard.
 

HAVE YOU EVER KEPT A RARE/UNCOMMON FISH, CORAL, OR INVERT? SHOW IT OFF IN THE THREAD!

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top