4 of 4 people found this helpful
It depends what you wish to control. If it is mains devices, then nearly all relay cards are not recommended.
If you wish to control low voltage devices, then there are some Relay card options here.
Once you have made your choice, it should be possible to find code examples for the programming language of your choice, i.e. all the cards will be usable in many languages.
low voltage is OK so should I use following card.
Daughter Board, PiFace Relay Plus, For Raspberry Pi Model B Plus, Relay
1 of 1 people found this helpful
I've not used it, but on paper it seems fine.. URL is here: PiFace – PiFace Relay Plus
There is a link to the github page there too, with example code for it using Python.