The contacts are available on screw terminals. Each contact can be closed on a single common line.
The input lines are opto-isolated from the CPU side and are in the same "electrical domain" of the RS485 ports.
The GPIOs used are:
import RPi.GPIO as GPIO import time INP_LEFT=28 INP_RIGHT=29 RELAY_LEFT=21 RELAY_RIGHT=22 GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(INP_LEFT,GPIO.IN) GPIO.setup(INP_RIGHT,GPIO.IN) GPIO.setup(RELAY_LEFT,GPIO.OUT) GPIO.setup(RELAY_RIGHT,GPIO.OUT) while True: if GPIO.input(INP_LEFT): GPIO.output(RELAY_LEFT,GPIO.LOW) else: GPIO.output(RELAY_LEFT,GPIO.HIGH) if GPIO.input(INP_RIGHT): GPIO.output(RELAY_RIGHT,GPIO.LOW) else: GPIO.output(RELAY_RIGHT,GPIO.HIGH)
CM3-HOME-F - CM3-Home board full (mother board only)
CM3-Home is a Raspberry Pi Compute Module 3 motherboard designed to provide a reliable Home Automation hardware equipped with a wide range of electrical interfaces
For more info please visit the product description page| Product description || CM3-Home catalog |