CM3-Home

Relay interface

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

GPIO used

  • RL1 (left relay) GPIO21
  • RL2 (right relay) GPIO22

Python example

This example turns-on the relays alternately with a period of 1 second.

import RPi.GPIO as GPIO
import time

RELAY_LEFT=21
RELAY_RIGHT=22

GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(RELAY_LEFT,GPIO.OUT)
GPIO.setup(RELAY_RIGHT,GPIO.OUT)

for i in range(5):
        GPIO.output(RELAY_LEFT,GPIO.HIGH)
        GPIO.output(RELAY_RIGHT,GPIO.LOW)
        time.sleep(1)
        GPIO.output(RELAY_LEFT,GPIO.LOW)
        GPIO.output(RELAY_RIGHT,GPIO.HIGH)
        time.sleep(1)

GPIO.output(RELAY_LEFT,GPIO.LOW)
GPIO.output(RELAY_RIGHT,GPIO.LOW)

eShop

EUR 130.00


CM3-HOME-B - CM3-Home board basic (only mother board)

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

  • NOT INCLUDED:
    • TP-BUS, LIGHT-BUS, RS485 (one instead of two), Yarm 868 MHz radio module (available on CM3-HOME-F)
    • Wifi module (Product # WIFI-2) amd antenna (Product # AN-WIFI-01)
    • The Raspberry Compute Module 3 or 3L (Product # CM3L)
    • MicroSD (Product # MICROSD8G-E)
    • Case (Product # CM3-HOME-CASE)
| Product description || CM3-Home catalog |

EUR 290.00


CM3-HOME-F - CM3-Home board full (only mother board)

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

  • NOT INCLUDED:
    • Raspberry Compute Module 3 or 3L (Product # CM3L)
    • Yarm antenna (Product # YARM-ANT-01)
    • Case (Product # CM3-HOME-CASE)
    • MicroSD (Product # MICROSD8G-E)
  • Included:
    • WiFi module (Product # WIFI-2)
    • WiFi antenna (Product # AN-WIFI-01)

For more info please visit the product description page

| Product description || CM3-Home catalog |

Author:
Sergio Tanzilli - tanzilli@acmesystems.it
http://www.tanzolab.it - http://www.tanzilli.com - https://github.com/tanzilli