Page 1 of 1

how to control relay board USB

Posted: Saturday 03 February 2018 21:20
by DosN
Im a newbe, and im searching how to switch a relay PCB with USB
https://www.sossolutions.nl/2xusbrelais ... hvEALw_wcB
Image

which hardware- and switch setting must be make to control it?

Re: how to control relay board USB

Posted: Sunday 04 February 2018 15:46
by SweetPants
Without a proper manual or documentation of this board, that will be very difficult.

Re: how to control relay board USB

Posted: Sunday 04 February 2018 16:54
by Marci
See https://github.com/darrylb123/usbrelay/ ... /README.md

Create individual bash scripts to turn each relay on and off. Set the relevant bash scripts as on / off actions on whichever dummy switch you want to use to control whichever relay.

Re: how to control relay board USB

Posted: Sunday 04 February 2018 20:52
by DosN
First thanks for responce
But is there not a standard hardware type , which i can select?
How can i add this code in domoticz?

Re: how to control relay board USB

Posted: Monday 05 February 2018 7:37
by SweetPants
There is no standard hardware type to my understanding that supports this relay. You can write some bash scripts and add them to a dummy switch On/Off action or if you know how to do it write your own python plugin for domoticz?

Re: how to control relay board USB

Posted: Monday 05 February 2018 21:05
by DosN
is there a python code or how can i add a C code in domoticz
https://github.com/darrylb123/usbrelay/ ... /README.md

Re: how to control relay board USB

Posted: Tuesday 06 February 2018 14:40
by cyberclwn
Hey,

Why not use this one instead:
Image

https://www.sossolutions.nl/2x-relais

You can easily connect the pins to the Raspberry Pi and then use the GPIO in Domoticz to control it.
Don't know why to complicate things using USB :)

I have this one and it works like a charm.

Re: how to control relay board USB

Posted: Tuesday 06 February 2018 15:22
by bbqkees
DosN wrote: Saturday 03 February 2018 21:20 Im a newbe, and im searching how to switch a relay PCB with USB
https://www.sossolutions.nl/2xusbrelais ... hvEALw_wcB
Image

which hardware- and switch setting must be make to control it?
If it is the same type of relay as what I once had you can use my method which does not need any bash scripts.
https://github.com/bbqkees/Domoticz-Pi- ... -solutions

Re: how to control relay board USB

Posted: Tuesday 06 February 2018 21:33
by DosN
Hi bbqkees
Wooh , that looks good. Thanks i will try that
greetz