Robo-Tank DIY Aquarium Controller Forum
smart Power strip - Printable Version

+- Robo-Tank DIY Aquarium Controller Forum (https://www.robo-tank.ca/forum)
+-- Forum: Robo-Tank (https://www.robo-tank.ca/forum/forum-1.html)
+--- Forum: Robo-Tank Circuit Board Questions (https://www.robo-tank.ca/forum/forum-4.html)
+--- Thread: smart Power strip (/thread-1608.html)



smart Power strip - gandalf - 03-12-2022

do you know any smart power strip that could be used with robotank, maybe by opening It and adding a db9 cable or something similar?


RE: smart Power strip - Rob F - 03-12-2022

Not for my app, reef-pi will work with some Kasa's. At some point I do plan to explore this. Here's a link to another alternative however you need to add the circuit from the guide.

https://learn.adafruit.com/reef-pi-power-controller


RE: smart Power strip - gandalf - 03-13-2022

american DJ are not available here in Italy.

honestly i don't like the idea to have a Power strip controlled via wifi only. if you loose the connection to the strip, you could make huge damage (in example a pump always on or always off.)


RE: smart Power strip - Rob F - 03-13-2022

I agree, hard wired is best. You might have to DIY one or use what I have. You can get relay modules that connect to a Raspberry Pi so it could be connected to a DB9 on controller.


RE: smart Power strip - gandalf - 03-14-2022

yours has a strange form factor, i prefere to use the standard outlet available in Italy, much more compact (and easier to replace as they are available in any store)


RE: smart Power strip - Rob F - 03-14-2022

Strange lol. Yeah there's a lot of space on the universal bar as the UK plugs are very large. On the US version I added extra space on two outlets for larger AC adapters. Definitely can't beat DIY though. :)


RE: smart Power strip - gandalf - 03-14-2022

this is what i like
8 plugs on the left and in the 4 slots on the right i'd like to placeĀ the relay boardĀ but it won't fit inside

[attachment=595]


RE: smart Power strip - Rob F - 03-14-2022

Yeah looks tight and it's a lot of wires. Maybe two 4 channel modules or eight 1 channel.


RE: smart Power strip - gandalf - 03-14-2022

How many power string I can plug to the v2 robo-tank board ? Because using the 4 channel will be easier, but i'll need twice the ports on the board.


RE: smart Power strip - Rob F - 03-14-2022

On the base controller you can connect up to 16 relays to the DB9 plugs, this is the same on all of them. Each plug has 8 signals so you would need to split 4/4 for each relay module.


RE: smart Power strip - gandalf - 03-14-2022

can i expand this in some way?


RE: smart Power strip - Rob F - 03-14-2022

Yeah you can add an additional pca9685, this will add 16 extra outputs.

Adding a 2nd pca9685 will cause a problem in v6.3 though, I have this fixed for 6.4.


RE: smart Power strip - gandalf - 03-14-2022

how many pca9685 i can add?


RE: smart Power strip - Rob F - 03-14-2022

Technically 64 of them but reality maybe 2-3. The problem is I2C can only support a handful of devices without buffers etc. If you connect multiple you should daisy chain them all together so you create a single line vs a Star pattern. If possible use jumpers under 6" to connect them together. It's important to keep I2C cable very short.


RE: smart Power strip - gandalf - 03-17-2022

So, if I understood properly, using one pca9685 i get get 16 power outlet (8 for each DB9 on the pca9685) using only one DB9 on the controller (the one connected to the pca9685)

But what if my relay board only has 4 channels ? Can I connect two 4 channels relay boards to a single DB9 ?

Let's assume I need 16 power outlet but I can just use multiple 4 channels relay boards. Any idea ?


RE: smart Power strip - Rob F - 03-17-2022

The DB9's don't have any signals from pca9685, these are all GPIO's from Pi. You can split them up, simply run 4 wires to one relay board and 4 wires to another. Then the same with Ground. Here's a link showing which pins are what on the DB9's.

https://docs.google.com/document/d/1FtkRidTqk-7t8PHlatf8LvtjlZwUSyRf/edit#heading=h.44sinio


RE: smart Power strip - gandalf - 03-18-2022

Can i daisy chain multiple pca9685 ?


RE: smart Power strip - Rob F - 03-29-2022

I'm sorry, I'm sure I replied to this long ago. You can daisy chain multiple pca9685's however it's important to keep wires as short as possible, 1-2" inches would be great for daisy chain and then 3-4" to controller. I2C is very sensitive and limited amount of power so you need to keep external device count as low as possible. Something like this would be good if you start adding multiple devices.

https://www.adafruit.com/product/4756?gclid=Cj0KCQjw3IqSBhCoARIsAMBkTb2vfh163SdRhqOLGwiX94uGtm3hnALavWroDkR4-F802CYF3rKm0_0aAjf4EALw_wcB


RE: smart Power strip - gandalf - 03-29-2022

Cool this is perfect for my kh tester. 1 on this placed near the robotank and the kh tester far away.


RE: smart Power strip - Rob F - 03-30-2022

This is the better method but you need a piece at each end. This will send the signal down two lines, when it gets to the other end it compares both signals, if they are exact it accepts them as it's likely a valid reading, if the signals don't match when they arrive it means noise got in so it will discard.

https://learn.sparkfun.com/tutorials/qwiic-differential-i2c-bus-extender-pca9615-hookup-guide/all