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

I have Reef Pi up and running with the 16 channel dimmer attached. I don't have anything plugged into the dimmer yet. I am having trouble viewing the dimming data in adafruit.io. It automatically set up 10 feeds (for 10 of my dimming channels), but there is no data going to them...
 
Im afraid it wont. The circuit you linked requires and analog input pin, pi does not have any. You are right, the current reef-pi ph code is tied to AtlasScientific circuit (their i2c protocol to be specific), but we can revisit that, change it to support something else if theres a compelling reason. I did a fair amount of research before going with atlas scientific probes/circuit. My finding was getting a marine aquarium compatible probe that will be used for continuous monitoring is not cheap. Atlas was the only supplier with some reputation. I do agree its expensive :-( .

I am learning electronics, and once my chops are good enough, I'll certainly attempt to address this. From my discussion with @theatrus , it looks like we should be able to use a dedicated micro controller and to roll our own ph circuit (that does the analog voltage to ph conversion along with voltage isolation. But thats a distant future

Thanks Ranjib. Going to find an Atlas kit to buy then.
 
looking to give this another shot. I noticed that there is support now for pwm straight off the pi now for 2 channels. also I plan on using this for a office nano tank, is it possible to just have it broadcast its own adhoc network, I don't want it on the office wifi so IT doesn't get annoyed.

also any new wiring diagrams to point me at? might do a simple full blown controller, optical ATO, heater control, and wave maker cycle (have a sicce nano wave maker, should be able to be cycled with a relay)
 
I have Reef Pi up and running with the 16 channel dimmer attached. I don't have anything plugged into the dimmer yet. I am having trouble viewing the dimming data in adafruit.io. It automatically set up 10 feeds (for 10 of my dimming channels), but there is no data going to them...
the adafruit integration has to be revisited for 2.0 release.
Also you dont really need light data logging in adafruit, since it will not change over time, and you can see the graph in reef-pi directly.
 
the adafruit integration has to be revisited for 2.0 release.
Also you dont really need light data logging in adafruit, since it will not change over time, and you can see the graph in reef-pi directly.
I'm using version 1.5. I just wanted to see it plot my dimming % until I add temp, pH, etc.
 
looking to give this another shot. I noticed that there is support now for pwm straight off the pi now for 2 channels. also I plan on using this for a office nano tank, is it possible to just have it broadcast its own adhoc network, I don't want it on the office wifi so IT doesn't get annoyed.

also any new wiring diagrams to point me at? might do a simple full blown controller, optical ATO, heater control, and wave maker cycle (have a sicce nano wave maker, should be able to be cycled with a relay)
this is something i have to explore, using pi's wifi straight as hub and then connecting mobile or laptop to interact with reef-pi. I think its doable, but I dont know how yet.
Some update on the pi based pwm, recently after doing some oscilloscope based analysis i found the pi pwm is jitterry if i power it via GPIO/lm2596, and stable if i power it via dedicated power supply + micorusb. I am talking to folks in raspberry pi forum, also ordered a microusb breakout board from adafruit to check if i power it via microusb+lm2596 anything changes or not. I am trying to nail down if its the microUSB/GPIO issue or power source issue (lm2596 vs 2.5A micro usb wallwart). I'll keep you posted. what light you are planning to use?
 
this is something i have to explore, using pi's wifi straight as hub and then connecting mobile or laptop to interact with reef-pi. I think its doable, but I dont know how yet.
Some update on the pi based pwm, recently after doing some oscilloscope based analysis i found the pi pwm is jitterry if i power it via GPIO/lm2596, and stable if i power it via dedicated power supply + micorusb. I am talking to folks in raspberry pi forum, also ordered a microusb breakout board from adafruit to check if i power it via microusb+lm2596 anything changes or not. I am trying to nail down if its the microUSB/GPIO issue or power source issue (lm2596 vs 2.5A micro usb wallwart). I'll keep you posted. what light you are planning to use?

Diy. Plan on putting the pi couple ldd drivers and a blueacro acrostar inside a 5in makersled slim heatsink enclosure. Kinda a poormans ai prime lol. But thinking I could make a break out box for more functionality if I wanted too. Can the pi be setup to login to the strongest public no password wifi automatically upon booting up?
 
Diy. Plan on putting the pi couple ldd drivers and a blueacro acrostar inside a 5in makersled slim heatsink enclosure. Kinda a poormans ai prime lol. But thinking I could make a break out box for more functionality if I wanted too. Can the pi be setup to login to the strongest public no password wifi automatically upon booting up?
Probably, it’s a computer , so you should be able to code whatever you want :-)
 
Pi as WiFi access point :)
https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md

I’ll try it out this weekend . I think it will be fairly straight forward and once setup , we can connect to a reef-pi hotspot directly from mobile or laptop and configure things. So , no external network (internet or home WiFi ) is required .

Thank you for bringing this up @Kampo

@Ranjib, if you do this can it be an option? I for one like having reef-pi as part of my home network. I had a controller that was it's own access point and it was a bit of pain in the butt to log out of my home network and login to it every time I wanted to do something with it.
 
@Ranjib, if you do this can it be an option? I for one like having reef-pi as part of my home network. I had a controller that was it's own access point and it was a bit of pain in the *** to log out of my home network and login to it every time I wanted to do something with it.
Hi @philshel
This is definitely an optional thing. In fact it will be completely de-coupled thing from reef-pi. Put other way, reef-pi the software itself is not really aware of any of this. I will just add a documentation page on how to do this on raspberry pi, and how to access reef-pi in such setup. Its up to user how to setup the controller, but reef-pi the software is pretty much same, running a server bound to an IP (or localhost), its upto you to connect it to home wifi, or use it as an access point, or run it without any network, just by attaching a physical display.
Does that answer your question ?
 
Hi @philshel
This is definitely an optional thing. In fact it will be completely de-coupled thing from reef-pi. Put other way, reef-pi the software itself is not really aware of any of this. I will just add a documentation page on how to do this on raspberry pi, and how to access reef-pi in such setup. Its up to user how to setup the controller, but reef-pi the software is pretty much same, running a server bound to an IP (or localhost), its upto you to connect it to home wifi, or use it as an access point, or run it without any network, just by attaching a physical display.
Does that answer your question ?

Yep, thank you.
 
I have pushed a lot of fronend/UI updates in past two weeks: https://github.com/reef-pi/reef-pi/pulls?q=is:pr+is:closed

Details (heavy in tech): I am slowly updating all the react components to use redux. Last beta release had a major react version update (16.0) which allowed us to roll in newer , more efficient ajax /asynchronous calls using redux. Its significant amount of work, as current reef-pi has more code doing the UI (almost 5K lines of code) than backend/conroller logic (almost 4k). More over, the frontend code has really no unit tests whatsoever, other than a single end to end integration test. So, one of my goal was to update, improve and test the front end code before 2.0 release, so that we can provide a stable and robust platform for UI work going forward. Opensource code always needs to be in pristine state, otherwise newer contributors will have hard time to push additional code.
In past two weeks, i have updated almost 1K lines of front-end code, also started with unit testing front end code. I still have a long way to go, but I am new to this (front end testing), so the taking the first stab was time consuming, but an important milestone...
 
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
 
trying to layout a simple light controller and make sure i'm ordering the right parts, was there ever a diagram made up or doumentionation in this post on wiring a light using the PWM straight off the pi, I can't seem to locate it. also you mention more stable pwm when you use usb to power it over the pins. would I be able to get the same effect if I took the power I would be hooking to the pins to a microusb cable to plug into the pi?
 
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.
 
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,
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • 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%

New Posts

Back
Top