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

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,165
Location
Winchester, TN
Rating - 0%
0   0   0
This isn't a big deal. You can use a simple RC integrator circuit to turn the pwm into analog (aka low pass filter). Put a resistor on the output with a capacitor to ground. I used this technique to control Mars Aqua lights. I can help with specific values this evening.
Thanks Michael. I am looking in to see how finicky these pumps are. I heard that it may not matter at all. I need to get the board installed and see if I can make the light program operate a spare unit I have.
 

Johan Fe Scheepers

New Member
View Badges
Joined
Nov 4, 2018
Messages
16
Reaction score
27
Location
Drummond, KZN, South Africa
Rating - 0%
0   0   0
Are there any reason I cant see the health checker?

upload_2018-11-5_20-44-42.png


upload_2018-11-5_20-45-16.png
 

sfgabe

Active Member
View Badges
Joined
Sep 7, 2018
Messages
178
Reaction score
258
Rating - 0%
0   0   0
Guys,

I did some digging and talking to some folks in the know, and I was TOTALLY wrong about he WP versions at least of the Jeboa wavemakers. They are not pwm. They use 0-5V analog signal. so I am not sure that the PCA9685 will work for this exact application.
I did find this digging around. Think it may work instead?
https://shop.controleverything.com/products/ad5669-16-bit-8-channel-digital-to-analog-converter

From what I've read, the pump itself is analog and the controller is pwm, so it all depends on where you are adding the reef-pi connection.

I actually did a quick test of the PWM connection last night. I wired a 3.5 audio jack into the input for the Jabao controller (it comes with a dc jack in that spot so I just bypassed that to connect to the board), and changed the mode to "C" which is supposed to be controller mode. From there I just plugged in my Kessil input wire and played around with the lighting controls a bit. It did work, though I wasn't sure which channel was for what so I was essentially putting in numbers at random. I couldn't get a feeling for speed changes without taking the pump out of the tank, so I'm not sure if the controller was working to that degree either. What I did find was that a "0" setting on both channels turned it off, and 1-50 on both turned it on. A 0/50 made it kind of twitch a bit but not move, which I assume is some kind of conflict. I didn't want to go higher than 50 because I've read about the 5V signal max.

I also came to the same conclusion as @pickupman66 - writing the script to control it will be the challenge. @Ranjib you linked to the feed button example, which looks like a good place to start. I see it's a python script - would it get added into reef-pi as a macro? Is there a config for "if [this] --> run [script]"?
 

Nicolas Sabrun

Active Member
View Badges
Joined
May 23, 2016
Messages
191
Reaction score
89
Location
Petaluma CA
Rating - 0%
0   0   0
This isn't a big deal. You can use a simple RC integrator circuit to turn the pwm into analog (aka low pass filter). Put a resistor on the output with a capacitor to ground. I used this technique to control Mars Aqua lights. I can help with specific values this evening.

Would you mind sharing info?(wiring, parts needed...) How did you do to control your Mars Aqua?

I got 3 165w mars aqua that i would like to control again ( lost all automation since my RKE gave up)

I looked on here but the lighting control are for Kessil. The Mars Aqua use a 0-10v analog signal I believe. How did you get the pwm from Pi to VDM?

I could use all the help i can get. I am a dummie when it comes to electronic.
 

Nicolas Sabrun

Active Member
View Badges
Joined
May 23, 2016
Messages
191
Reaction score
89
Location
Petaluma CA
Rating - 0%
0   0   0
Thanks Michael. I am looking in to see how finicky these pumps are. I heard that it may not matter at all. I need to get the board installed and see if I can make the light program operate a spare unit I have.
Following along. I have 2 Jebao PP 8 that i would love to control from Pi.
 

Nicolas Sabrun

Active Member
View Badges
Joined
May 23, 2016
Messages
191
Reaction score
89
Location
Petaluma CA
Rating - 0%
0   0   0
@Ranjib I've got a couple comments/questions

1. I'm definitely interested to see what hardware you can salvage from the Digital Aquatics kits that are now obsolete and unsupported

2. Have you done any investigations/studies on the limitations of the various pi models? I'm interested to give this a shot with the Pi Zero W instead of buying a Pi 3 kit strictly because of cost. I just want to make sure I'm not losing any functionality or limiting myself somehow by doing so.

Cheers on an awesome build and project! And your write ups on adafruit are fantastic and easy to follow.

I am plannimg on opening all my DA module and share pics on here to see if we can use any of these module with Pi. I think it will help a lot of people recycle their DA stuff.

I am actually asking myself the same question regarding the pi zero or 3B+

Anyone knows the limitations between the 2 in terms of expandability?
 

Nicolas Sabrun

Active Member
View Badges
Joined
May 23, 2016
Messages
191
Reaction score
89
Location
Petaluma CA
Rating - 0%
0   0   0
My last question for the time being is:

Reef pi offers a ramp up/down on a 2h schedule. Can it be modify to a shorter ramp up/down? Like every 15mins.
 

MaccaPopEye

Well-Known Member
View Badges
Joined
Jan 5, 2016
Messages
697
Reaction score
1,224
Rating - 0%
0   0   0
Would you mind sharing info?(wiring, parts needed...) How did you do to control your Mars Aqua?

I got 3 165w mars aqua that i would like to control again ( lost all automation since my RKE gave up)

I looked on here but the lighting control are for Kessil. The Mars Aqua use a 0-10v analog signal I believe. How did you get the pwm from Pi to VDM?

I could use all the help i can get. I am a dummie when it comes to electronic.
If you search my name in this thread and "black box" or something like that you should be able to find a post from a couple of days ago where I linked to some previous posts with good info on this (including a great how to video). I havent done it myself yet but i will eventually.

While the Mars aqua is an analog signal I believe it doesnt seem to have an issue with a pwm signal either (or maybe that is ok only the sb reef lights, I'm not sure)
 

speedstar

Well-Known Member
View Badges
Joined
Sep 18, 2018
Messages
704
Reaction score
1,029
Location
Grand Rapids
Rating - 0%
0   0   0
@wykat I think I found an error in your board layout or documentation. On the temperature sensor the tip goes to the GPO line with 4.7K resistor the middle ring goes to pin 17. I could not get the sensor working till I swapped them. hoe that makes sense Thanks
 

speedstar

Well-Known Member
View Badges
Joined
Sep 18, 2018
Messages
704
Reaction score
1,029
Location
Grand Rapids
Rating - 0%
0   0   0
Starting to box it up, went with just a basic 9pin had them already, did the outlets I think different than most with whips and grommets, like the light-o-rama controllers use. Hopefully be testing again tonight.

GwK56Yv.jpg

lR2kRAg.jpg


Not waterproof but again I had the enclosures around.

Rebuilt it using the Hat board tonight. Ordering a new case plastic to drill it easier. Can anyone remind me where to go for the latest release the ATO doesn't seem to be correct in RC0 that I am running.

Y4GYPiE.jpg


035IDI0.jpg
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
I am plannimg on opening all my DA module and share pics on here to see if we can use any of these module with Pi. I think it will help a lot of people recycle their DA stuff.

I am actually asking myself the same question regarding the pi zero or 3B+

Anyone knows the limitations between the 2 in terms of expandability?
Power and ports.. the pi zero is a 1ghz single core cpu , 1 micro usb port, 1 micro power port , 1 micro usb port, w variant has wifi built on board.

Pi 3 .. dual core 1.4 cpu.. 4 FULL Size usb ports, Full size hdmi port .. On board wifi and wired networking .

both have the same gpio
The pi zero is best ran with no gui Command line only .

Pi3 can run full gui operating system reef-pi Full web browsing and so on.

For a reef-pi build on a pi zero is perfectly fine. My full build is running on pi zero. but my next build will be pi3 .. I personally think having the Gui and working with pi on that device with its browser is useful..

Hope this helps ..
 

hockeyhead019

Well-Known Member
View Badges
Joined
Aug 21, 2017
Messages
566
Reaction score
576
Location
Philadelphia
Rating - 0%
0   0   0
Power and ports.. the pi zero is a 1ghz single core cpu , 1 micro usb port, 1 micro power port , 1 micro usb port, w variant has wifi built on board.

Pi 3 .. dual core 1.4 cpu.. 4 FULL Size usb ports, Full size hdmi port .. On board wifi and wired networking .

both have the same gpio
The pi zero is best ran with no gui Command line only .

Pi3 can run full gui operating system reef-pi Full web browsing and so on.

For a reef-pi build on a pi zero is perfectly fine. My full build is running on pi zero. but my next build will be pi3 .. I personally think having the Gui and working with pi on that device with its browser is useful..

Hope this helps ..

So can you not run the GUI at all on the Zero W? Or is it just laggy because of the load on the processor?
 
Last edited:

speedstar

Well-Known Member
View Badges
Joined
Sep 18, 2018
Messages
704
Reaction score
1,029
Location
Grand Rapids
Rating - 0%
0   0   0

wykat

Active Member
View Badges
Joined
May 23, 2018
Messages
182
Reaction score
421
Rating - 0%
0   0   0
@wykat I think I found an error in your board layout or documentation. On the temperature sensor the tip goes to the GPO line with 4.7K resistor the middle ring goes to pin 17. I could not get the sensor working till I swapped them. hoe that makes sense Thanks
It should be wrong in the documentation then. Unfortunately I don't have that connector yet as I'm waiting for a larger order to avoid shipment costs. I tested it with just some normal jumper connectors and the temperature sensors (I believe I tested 3 DS18B20's simultaneously) did work for me.
Priority at the moment is to complete the PWM module, lay-out has been updated, BOM has been checked (several times) and I'm completing the documentation now. Will order the new PWM PCB's later today and upload to Github all files as soon as the doc is finished. Then I would like to make a review and update of the HAT module package. Therefor it's very helpful to get your feedback :)
 

Nicolas Sabrun

Active Member
View Badges
Joined
May 23, 2016
Messages
191
Reaction score
89
Location
Petaluma CA
Rating - 0%
0   0   0
So I managed to open DA PB4 partially and the ALC module.

Judging by the picture, is there anyway to make the ALC with reef pi?

I was not able to take the top of PB4 off yet so I could not look at the relay in there.

Thank you for your advice. 20181105_225508.jpg 20181105_225529.jpg 20181105_230020.jpg 20181105_230110.jpg
 

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