ondrej1024 / crelay

Controlling different relay cards for home automation with a Linux software
GNU General Public License v2.0
81 stars 31 forks source link

Suggestions for Multiple Relay Hardware? #29

Closed NadavK closed 5 years ago

NadavK commented 6 years ago

Can anyone suggest hardware for a total of 48 relay outputs? Another thing, it needs to handle 16A @ 250VAC (at least for some of the relays)

I apologize if this is not the correct forum/channel for questions like this.

ondrej1024 commented 6 years ago

From the relay cards I have tested you could use 6 Sainsmart 8 channel cards or 3 16 channel cards. However the relays on these cards have a maximum rating of 10A @ 250VAC.

NadavK commented 6 years ago

Thanks for the suggestion! Does issue https://github.com/ondrej1024/crelay/issues/26 prevent using multiple cards?

ondrej1024 commented 6 years ago

Yes, but wit the patched HIDAPI from @derekatkins it works, as explained in the related discussion.

NadavK commented 6 years ago

The 16 channel model you linked to is no longer available. Would this 16 channel model be compatible? (hope I am not abusing your helpfulness)

derekatkins commented 6 years ago

@NadavK -- it may or may not be compatible. It claims USB, but not necessarily HID, so it will depend on which USB API is presented. I would expect that my HIDAPI changes would not directly apply if it's not a HID device. On the other hand if it's a libusb-compatible device then you could use those APIs directly to obtain the physical path for a stable address, which is what you really need to support multiple cards.

ondrej1024 commented 6 years ago

The 16 channel model you linked to is no longer available. Would this 16 channel model be compatible?

This relay card is not yet supported by crelay. We have discussed this with @kjatar in issue #21 . It should be possible to implement support for this card but I need someone to test is as I don't have the card myself (and no time at the moment :cry: )