# Relay

<abstract>
This article explains how to use the CM-Panel-POE on-board relay
</abstract>

GPIO used

* GPIO34

### Manage the relays using RPi.GPIO

Save this source on a file calles relay.py:

	import RPi.GPIO as GPIO
	import time
	
	RELAY=34

	GPIO.setmode(GPIO.BCM)
	GPIO.setwarnings(False)
	GPIO.setup(RELAY,GPIO.OUT)

	for i in range(5):
	    GPIO.output(RELAY,GPIO.LOW)
	    time.sleep(0.5)
	
	    GPIO.output(RELAY,GPIO.HIGH)
	    time.sleep(0.5)
	
	GPIO.output(RELAY,GPIO.LOW)

The launch it by typing:

	python relay.py


<hr>

@include='adv_cmpanel'
