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

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
209
Reaction score
163
Rating - 0%
0   0   0
Looks like main sends power dirrectly to motors. Ok so I will connect 3 mosfets between this paths and I will send signals via phone cable connector to reef pi, and provide 12v power supply dirrectly to mosfets. Sounds ok?

3F4FA224-54C9-47D2-8BC1-B40129510A92.jpeg
 

lilgrounchuck

Well-Known Member
View Badges
Joined
Sep 12, 2019
Messages
694
Reaction score
968
Rating - 0%
0   0   0

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
209
Reaction score
163
Rating - 0%
0   0   0
Yes I know that but shipping to Slovenia takes like forever.. last time 1 waited for 2 months.. went from usa to eu to Vienna like 150 km from me and then back to usa and then back to me;). Mikes things are like the best! I will do it like this and then I will also modify main 5ch unit for pi..and also I have 20 mosfets, so I need to put them somewhere:)
 

elysics

Valuable Member
View Badges
Joined
Jan 15, 2020
Messages
1,695
Reaction score
1,607
Rating - 0%
0   0   0
Are decimal places for the duration of a dosing pump not allowed?

When i put in a number like "1.1" , so with a dot, the field goes red and says "Duration is required"
dos_dot.png


When i then instead put it like "1,1", with a comma, the field goes red without an error message
dos_comma1.png


but then when i save, i get a popup message that basically says "please choose a valid value. The two closes valid values are 1.1 and 2.1."

dos_comma2.png


Is that popup message just wrong? Because it tells me to use 1.1 or 2.1 but they dont work.
 

lilgrounchuck

Well-Known Member
View Badges
Joined
Sep 12, 2019
Messages
694
Reaction score
968
Rating - 0%
0   0   0
Are decimal places for the duration of a dosing pump not allowed?

When i put in a number like "1.1" , so with a dot, the field goes red and says "Duration is required"
dos_dot.png


When i then instead put it like "1,1", with a comma, the field goes red without an error message
dos_comma1.png


but then when i save, i get a popup message that basically says "please choose a valid value. The two closes valid values are 1.1 and 2.1."

dos_comma2.png


Is that popup message just wrong? Because it tells me to use 1.1 or 2.1 but they dont work.
Try staying with whole seconds on the duration and adjusting the speed % to calibrate. That's what I did and got everything dialed in exactly where I wanted based on the viscosity of the stuff each pump was adding. You might have to play with the numbers on each to get just right though (ie drop %, add a second or raise %, drop a second.)
 
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
Are decimal places for the duration of a dosing pump not allowed?

When i put in a number like "1.1" , so with a dot, the field goes red and says "Duration is required"
dos_dot.png


When i then instead put it like "1,1", with a comma, the field goes red without an error message
dos_comma1.png


but then when i save, i get a popup message that basically says "please choose a valid value. The two closes valid values are 1.1 and 2.1."

dos_comma2.png


Is that popup message just wrong? Because it tells me to use 1.1 or 2.1 but they dont work.
That’s validation error message is a bug . Only whole values are allowed
 

marekd1

Active Member
View Badges
Joined
Dec 24, 2019
Messages
133
Reaction score
199
Rating - 0%
0   0   0
Hi, thanks for the tip. However in the Adafruit tutorial (PCA chaining) there is no mention of this and they say up to 62 can be chained !
Also many of us are running reef pi with PCA and pH boards working nicely together. So i would assume that it is just a precautionary act rather than necessary.

I am pretty sure you will have to remove them as both I2C lines need pull up resistors unless they use some exuberantly large value for the resistors. You have two options; source the schematic of the device or measure the resistance between SCL and VCC then SDA and VCC before you plug it in to the i2C bus and after you plug it into the i2C bus. (Without applying power to the circuit) If the resistance value is half after you plugged it in then you will eventually have a problem. Anything less than 1K Ohm resistance on pull up will create an issue.

found the schematic in the document they publish but can't read the value (see the red box). 66 devices I don't think so...

1581627498523.png



Just to picture the impact, if you have 10 boards and each board has 1k pull up resistors your final resistance on the i2C bus will be 100 Ohms. Not sure if you will be able to pull the line low with that level of resistance not to mention the amount of current you will be draining on the lines. If the processor gets hot you will know why :)

Hope this paints a better picture
 
Last edited:

Dave's Reef

Active Member
View Badges
Joined
Nov 4, 2018
Messages
102
Reaction score
148
Rating - 0%
0   0   0
Hi everyone so I have a question I have been trying to figure this out for a few day and have skimmed over like 100 pages of this thread and cant seem to find any instructions on the hs300 and how to make it communicate with reef-pi I found the IP address of the power strip and see where to add it in reef-pi but I keep getting an error that it can't be found.. please help its driving me crazy. I'm sure I'm missing something stupid. Can you please point me in the direction of some type of instruction on how to make this work?

Thank you
 

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
209
Reaction score
163
Rating - 0%
0   0   0
Hi all about pumps.. I cant adjust speed, ok I can from 95 to 100% but less then that I just get noise out of mosfets. Can I do something about that. If not ok.. just asking.
For others I am using led driver as output for control 4,5,6 pins on mikes hat, all works as it should exept that speed thing..
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
Hi all about pumps.. I cant adjust speed, ok I can from 95 to 100% but less then that I just get noise out of mosfets. Can I do something about that. If not ok.. just asking.
For others I am using led driver as output for control 4,5,6 pins on mikes hat, all works as it should exept that speed thing..
There is an option to change the PCA9685 frequency. You will have to change the frequency to the optimal one.
You can start at 100Hz and make steps of about 200Hz, later you can fine-tune if needed.
Some PCA9685 have max 1500Hz and other max 1000Hz.
 

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
209
Reaction score
163
Rating - 0%
0   0   0
BenB thank you! I will do this. I have another glich, my dashboard wont recognize pumps I get http error item doesnt exist. They are all turned on and working with calibrate buttons. I have then configured under jacks and under pumps. Am I missing something?
 

robsworld78

Valuable Member
View Badges
Joined
Feb 14, 2020
Messages
1,029
Reaction score
1,293
Location
Edmonton, Canada
Rating - 0%
0   0   0
Just a note to be aware of: each pca9685 has pull-up resistors for the SCA and SDA lines. If you are planning to add more than one board you should remove them on the others as they will be all in parallel drastically reducing the overall resistance. As a result I2C communication will be failing or be inconsistent.
The PCA9685 operates with a supply voltage range of 2.3 V to 5.5 V and the inputs and outputs are 5.5 V tolerant.

And you can connect more than one like this:
1580975133229.png

And give it a proper address. https://learn.adafruit.com/16-channel-pwm-servo-driver/chaining-drivers

If the second pca9685 is in another box that is further away than 1 meter best is to use a shielded cable.

If you have multiple I2C devices connected or want to extend further look at the PCA9507 these work well. Easy to connect and I can confirm 25ft of USB cable is no issue although probably still not a good idea. Still need to remove additional pullups for extra devices.
 
Last edited:

brandonq81

New Member
View Badges
Joined
Feb 14, 2020
Messages
1
Reaction score
3
Rating - 0%
0   0   0
Can anyone help me get a Ph Probe setup in Reef-Pi? I am just starting out, and I am stuck. I am using the Atlas Scientific EZO-pH board. I have a Raspberry Pi 3 Model B setup with Reef-Pi version 3.2 for Pi 3. I've enabled I2C on the Pi. I can read from the probe with a basic python program, and I have setup the driver, analog connection and probe. I can calibrate the probe, but when I try to enable the probe I get an error:
1581714115173.png

When I try to add the Ph to the Dashboard:
1581714194680.png

I get the same error and don't see any output: 1581714267242.png
 
Last edited:

marekd1

Active Member
View Badges
Joined
Dec 24, 2019
Messages
133
Reaction score
199
Rating - 0%
0   0   0
If you have multiple I2C devices connected or want to extend further look at the PCA9507 these work well. Easy to connect and I can confirm 25ft of USB cable is no issue although probably still not a good idea. Still need to remove additional pullups for extra devices.


Nice find. Now this becomes very interesting, remote I2C devices over 2 wire bus + ground. Cat5 should help with capacitance. Looks like spec is quite large. See below.

1581782009033.png


Check this out... https://www.ebay.com/itm/Differenti...638844&hash=item1a3653139a:g:XrwAAOSw~RVaGkNP

look at the signal waveform over 300m
 
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
Can anyone help me get a Ph Probe setup in Reef-Pi? I am just starting out, and I am stuck. I am using the Atlas Scientific EZO-pH board. I have a Raspberry Pi 3 Model B setup with Reef-Pi version 3.2 for Pi 3. I've enabled I2C on the Pi. I can read from the probe with a basic python program, and I have setup the driver, analog connection and probe. I can calibrate the probe, but when I try to enable the probe I get an error:
1581714115173.png

When I try to add the Ph to the Dashboard:
1581714194680.png

I get the same error and don't see any output: 1581714267242.png
The stats related errors are benign and will go away after some time. Did you setup the ezo circuit to be used as i2c from uart? You have to do that using their python library.
 

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.0%
  • 100% dry rock + 100% live sand

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

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

    Votes: 14 10.2%
  • 25% live rock, 75% live sand

    Votes: 10 7.3%
Back
Top