Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PCA 9685 Expander
#1
Hi.  Just checking if I'm understanding things correctly.

If using the PCA9685 Expander, does it allow you to use :-

4 x Power Bars 
or
3 x Power Bars and 1 x Reef-Pi Extension (6+2)
or 
2 x Power Bars and 2 x Reef-Pi Extension (6+2)

Or any other combination of the above you might see fit?

If so, I think this is an absolute game changer.
Des
Durban - South Africa
Reply to top
#2
Hi Des, yeah you're right but one thing to note is the pca9685 expander only has outputs, if an extension was plugged into it only the DC ports would work. This means currently only two extensions are fully supported and the power bars would plug into the pca9685 expander. You can daisy chain the expanders as well so more than 2 power bars could be used. The max limit of sensors is 18.
Reply to top
#3
Currently I have enough sensors. What I would like is to add a universal Power bar to make a total of 3 Power Bars.

So could I have 2 x Universal Power Bars on the Power 1 and 2 Ports on the controller and then a pca9685 expander on the I2C port with 1 x Power Bar and possibly one of the extensions if I really found that necessary?
Des
Durban - South Africa
Reply to top
#4
Yeah that'll work.
Reply to top
#5
Hi Rob,
I am not sure I understand... could you show the fitting of PCA9685 Expander and extension? Also how to setup the new sensors and DC ports?

Dom.
Reply to top
#6
(04-16-2021, 06:24 AM)Dom59 Wrote: Hi Rob,
I am not sure I understand...  could you show the fitting of  PCA9685 Expander and extension? Also how to setup the new sensors and DC ports?

Dom.

Hi Dom, here's something I wrote up going through the steps. The extensions need to plug into a controller DB9 and you plug the power bars into the PCA9685 expander.

PCA9685 expander
  • Connect to I2C port on controller. You’ll need to remove the lid from expander so you can see which pin is SCL, SDA, +5v and GND. The header pins and green connector on back of expander are the same.
  • Once connected run i2cdetect -y 1 in the Raspberry Pi terminal window, it should print a list with 4 numbers, one of them should be 50. If so you are good to continue as the controller sees the expander. 
  • In reef-pi you need to create a driver for pca9685 expander, go to configuration -> driver tab, you'll see one named "extra ports" you need to add another like that except use address 80, you can name it Expander 1 or something.
  • Now go to configuration -> admin tab and press the “reload” button.
  • Now you need to remove any outlets you might be controlling through timers, ATO, or macros. For example if you have a timer for outlet 5 you need to delete the timer or remove the outlet from timer so it’s not pointing to it, same with everything else. If you change “control” to nothing on all these it should be ok and when you get things finished you can go back to these and select the devices to control.
  • Now you need to delete all 16 outlets from the "equipment" tab. If you have a chart on the home page for outlets delete that first.
  • Then you need to go to configuration -> connectors and edit all the connectors for the power bar outlets, should be 16 of them. When you edit them change the driver for each outlet from Raspberry Pi to the new driver you created for the pca9685 expander. Then change the pin number, you should have 0-15 to choose from. Here’s how you configure them.
Power Bar 1 – Outlet 1 =  0
Power Bar 1 – Outlet 2 =  1
Power Bar 1 – Outlet 3 =  2
Power Bar 1 – Outlet 4 =  3
Power Bar 1 – Outlet 5 =  4
Power Bar 1 – Outlet 6 =  5
Power Bar 1 – Outlet 7 =  6
Power Bar 1 – Outlet 8 =  7

Power Bar 2 – Outlet 1 =  8
Power Bar 2 – Outlet 2 =  9
Power Bar 2 – Outlet 3 =  10
Power Bar 2 – Outlet 4 =  11
Power Bar 2 – Outlet 5 =  12
Power Bar 2 – Outlet 6 =  13
Power Bar 2 – Outlet 7 =  14
Power Bar 2 – Outlet 8 =  15
  • When finished go to configuration -> admin tab and press the “reload” button.
  • Now you need to add all 16 outlets again to the “equipment” tab and after this you can put back pointers to timers, ATO and macros that you may use.
  • That should be it for the expander and both power bars should be working again.

Extension – 6 DC, 2 Sensors
  • First you want to add connectors, go to configuration -> connectors tab and add “outlet” connectors for DC ports and “inlet” connectors for sensor ports, you’ll need 6 and 2 respectively. For driver you use the “Raspberry Pi” and these are the pin numbers for each port.
DC 6 =  9
DC 5 =  10
DC 4 =  22
DC 3 =  15
DC 2 =  14
DC 1 =  23
Sensor 1 =  24
Sensor 2 =  25
  • Now go to configuration -> admin tab and press the “reload” button.
  • Now these are ready to add to “equipment” tab and “ATO” tab.
Extension – 2 DC, 6 Sensors
  • First you want to add connectors, go to configuration -> connectors tab and add “outlet” connectors for DC ports and “inlet” connectors for sensor ports, you’ll need 2 and 6 respectively. For driver you use the “Raspberry Pi” and these are the pin numbers for each port.
Sensor 6 =  16
Sensor 5 =  6
Sensor 4 =  5
Sensor 3 =  7
Sensor 2 =  11
Sensor 1 =  8
DC 1 =  12
DC 2 =  13
  • Now go to configuration -> admin tab and press the “reload” button.
  • Now these are ready to add to “equipment” tab and “ATO” tab.
[-] The following 1 user Likes Rob F's post:
  • JFReyes
Reply to top
#7
Thanks, Rob. It’s running now.
[-] The following 1 user Likes Dom59's post:
  • Rob F
Reply to top


Forum Jump:

Current time: 04-28-2024, 10:57 AM