Two relays are available on the CM3-HOME-B and CM3-HOME-F board. This article explais how to use them.
- Normally-Opened and Normally-Closed contacts available on screw terminals
- Max rated: 24 VAC/DC @ 1A
- Snubbers already on-board to increase reliability with inductive loads
- RL1 (left relay) GPIO21
- RL2 (right relay) GPIO22
This example turns-on the relays alternately with a period of 1 second.
import RPi.GPIO as GPIO
for i in range(5):