New Reef-Pi Forum as a DIY Subforum!

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,281
Location
Edmonton, Canada
Rating - 0%
0   0   0
First of all, I would like to congratulate and thank @Ranjib for developing and working hard to make the Reef-Pi stable, safe and reliable!
This takes time and dedication, in addition to a lot of knowledge!

Now I have the vnc working, I have access to Reef-Pi inside and outside my network! I've done all the tests, now it's time for the parts list.

I intend to have:
8 relay-controlled sockets
Temperature sensor
PH monitor

Set up some timers and macros, all of which I have already found instructions on how to do, but I need:

4 metering pumps!

But I only found an explanation, tutorial, schema and parts for just two pumps, with the Reef-Pi pwm, I already searched the old forum, with more than 800 pages and I didn't find it, I would like to have an assembly scheme, tutorial and parts for 4 or more pumps, with PCA9685, can I connect the pumps directly to it or do I need some other module?
Thanks in advance!

I was deceived by the previous message, I wrapped up here with the translator and I was unable to delete it afterwards.
You can use the same instructions for the two Pi pwm pins but the extra two you would use pwm from the pca9685. If you prefer you can use 4 pwm pins from pca9685 instead of the pins from Pi. The pca9685 connects to the SCL/SDA pins on the Pi and then you added a pca9685 driver in reef-pi to use the pins. Once you add the driver in reef-pi you'll have access to all 16 pins when you create connectors for the dosing pumps so select the pins you use.
 

Cristiano Souza

New Member
View Badges
Joined
Apr 5, 2021
Messages
17
Reaction score
11
Location
Rio de Janeiro - Brasil
Rating - 0%
0   0   0
You can use the same instructions for the two Pi pwm pins but the extra two you would use pwm from the pca9685. If you prefer you can use 4 pwm pins from pca9685 instead of the pins from Pi. The pca9685 connects to the SCL/SDA pins on the Pi and then you added a pca9685 driver in reef-pi to use the pins. Once you add the driver in reef-pi you'll have access to all 16 pins when you create connectors for the dosing pumps so select the pins you use.
Thank you!
So the pca9685 is only for generating the pwm, and the l293d is the one that will generate the power and speed control?
 

Cristiano Souza

New Member
View Badges
Joined
Apr 5, 2021
Messages
17
Reaction score
11
Location
Rio de Janeiro - Brasil
Rating - 0%
0   0   0
@robsworld78
I think I found exactly what I wanted, with ULN2803A, with a simpler and more direct connection, without direction control, only power, I can use two, one powered by 12v, for the motors, and the other with 24v, for my LEDs !
Thank you all!

Screenshot_2021-04-08-19-28-39-158_com.android.chrome.jpg
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,281
Location
Edmonton, Canada
Rating - 0%
0   0   0
@robsworld78
I think I found exactly what I wanted, with ULN2803A, with a simpler and more direct connection, without direction control, only power, I can use two, one powered by 12v, for the motors, and the other with 24v, for my LEDs !
Thank you all!

Screenshot_2021-04-08-19-28-39-158_com.android.chrome.jpg

Looks good. The ULN2803 doesn't handle a lot of current so check the lights don't draw too much. Any Arduino DC module will work as well.
 

lepetitnicolas

New Member
View Badges
Joined
Dec 1, 2019
Messages
5
Reaction score
8
Rating - 0%
0   0   0
Hello,

my ReefPi project is almost finished.
He works for 4 months on my new aquarium.
I wanted to add a physical button to trigger a macro.
What is the API syntax for triggering a macro ?

http: //reefpi_IP/api /macros / ???

I want to use my Domoticz server to send this http request to the reefpi.

Thank you
 

Cristiano Souza

New Member
View Badges
Joined
Apr 5, 2021
Messages
17
Reaction score
11
Location
Rio de Janeiro - Brasil
Rating - 0%
0   0   0
Looks good. The ULN2803 doesn't handle a lot of current so check the lights don't draw too much. Any Arduino DC module will work as well.
It supports up to 500ma per channel, I've read cases in which they used 2 or 3 channels in parallel to increase this amperage, does this happen?
Can it be done like this?
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,281
Location
Edmonton, Canada
Rating - 0%
0   0   0

Cristiano Souza

New Member
View Badges
Joined
Apr 5, 2021
Messages
17
Reaction score
11
Location
Rio de Janeiro - Brasil
Rating - 0%
0   0   0
Hello friends, I need help with the PCA9685! I connected it with the raspberry following the tutorials, but the reef-pi does not find it, it does not communicate with the drive, I have already activated I2c in the config, and even then it does not recognize, it is necessary to change some file or command in the terminal for the installation and recognition of this drive?
 

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
Hello friends, I need help with the PCA9685! I connected it with the raspberry following the tutorials, but the reef-pi does not find it, it does not communicate with the drive, I have already activated I2c in the config, and even then it does not recognize, it is necessary to change some file or command in the terminal for the installation and recognition of this drive?
once you have enabled i2c and connected pca9685 physically with i2c wires (4 wires involved), you should see the pca9685 address using i2cdetect command, as described in the tutorial. if this is not happening, then its something outside reef-pi code. its either a bad IC or bad connection or some configuration issue.
 

Cristiano Souza

New Member
View Badges
Joined
Apr 5, 2021
Messages
17
Reaction score
11
Location
Rio de Janeiro - Brasil
Rating - 0%
0   0   0
once you have enabled i2c and connected pca9685 physically with i2c wires (4 wires involved), you should see the pca9685 address using i2cdetect command, as described in the tutorial. if this is not happening, then its something outside reef-pi code. its either a bad IC or bad connection or some configuration issue.
Thanks @Ranjib !
Problem solved!
I had made many modifications to the rasp files, making tests, mainly in the config!
I was using version 3.0 of reef-pi!
I installed raspbian again, updated the reef-pi to version 4.1 and now everything works normally, PCA9685 detected and working!
Now a question with the temperature sensor DS18B20, to use more than one, 2 or 3, are all connected to GPIO4?
Are they used in parallel?
 

Cristiano Souza

New Member
View Badges
Joined
Apr 5, 2021
Messages
17
Reaction score
11
Location
Rio de Janeiro - Brasil
Rating - 0%
0   0   0
Thanks @Ranjib !
Problem solved!
I had made many modifications to the rasp files, making tests, mainly in the config!
I was using version 3.0 of reef-pi!
I installed raspbian again, updated the reef-pi to version 4.1 and now everything works normally, PCA9685 detected and working!
Now a question with the temperature sensor DS18B20, to use more than one, 2 or 3, are all connected to GPIO4?
Are they used in parallel?
I just found the solution to my question, really the DS18B20 sensors are connected in parallel, share the same pins and only a 4.7k resistor!
 

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 just found the solution to my question, really the DS18B20 sensors are connected in parallel, share the same pins and only a 4.7k resistor!
yes i have tested till 5, know some folks who run 7 sensors. But in operation i run 3 at a time max , for one of the non-reef usage.
 

Fusion in reefing: How do you feel about grafted corals?

  • I strongly prefer grafted corals and I seek them out to put in my tank.

    Votes: 3 3.7%
  • I find grafted corals appealing and would be open to having them in my tank.

    Votes: 47 58.0%
  • I am indifferent about grafted corals and am not enthusiastic about having them in my tank.

    Votes: 23 28.4%
  • I have reservations about grafted corals and would generally avoid having them in my tank.

    Votes: 5 6.2%
  • I have a negative perception and would avoid having grafted corals in my tank.

    Votes: 3 3.7%
Back
Top