Python libraries and support, 2 relay, 10-Amp ProXR Lite

I recently purchased this board and some 8 relay ones and need to control them via python as well, where can I find and download valid python libraries and examples. I went to the site listed in one of the documents but didnt find anything to download, thanks in advance

Here’s an example that communicates with the Relay controller over Serial/COM interface. If you’re using Ethernet/WiFi(TCP) you’ll need to make modifications.

is there a listing of the valid parameters for the library? for example below to change it to tcp
board1 = ncd_industrial_relay.Relay_Controller(serial_port)


Most of it is covered in the README and example files of the github repo: GitHub - ncd-io/Industrial-Relay-Control

An example of using TCP is covered in the Network example on the repo: Industrial-Relay-Control/ at master · ncd-io/Industrial-Relay-Control · GitHub.

The Relay_Controller object accepts either a Serial port or TCP socket as a communication object to be passed in.

1 Like