Relay integration
#15
Alright, the relay via GPIO project works, my python code attached at the bottom, one anomaly i noticed just now, whenever i power cycle or turn on the pine64 board, it triggers the relay, which is obviously a bad thing because my relay triggers the garage gate to open or close.
so then if power blips - my garage gate will open.

Any idea how to prevent GPIO blips on boot or on power on ?

my python code (no rocket science, and based on relay rpi lab):
import RPi.GPIO as GPIO ## Import GPIO library
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(15, GPIO.OUT)
GPIO.output(15,False)
time.sleep(4)
GPIO.output(15,True)
  Reply


Messages In This Thread
Relay integration - by vigor - 08-15-2016, 06:08 PM
RE: Relay integration - by jl_678 - 08-17-2016, 03:48 PM
RE: Relay integration - by MarkHaysHarris777 - 08-17-2016, 04:22 PM
RE: Relay integration - by vigor - 08-21-2016, 09:37 PM
RE: Relay integration - by pfeerick - 08-22-2016, 03:27 AM
RE: Relay integration - by MarkHaysHarris777 - 08-22-2016, 07:40 PM
RE: Relay integration - by vigor - 08-22-2016, 08:41 PM
RE: Relay integration - by MarkHaysHarris777 - 08-22-2016, 09:21 PM
RE: Relay integration - by Boring - 08-22-2016, 10:11 PM
RE: Relay integration - by MarkHaysHarris777 - 08-22-2016, 10:20 PM
RE: Relay integration - by Boring - 08-23-2016, 12:35 AM
RE: Relay integration - by pfeerick - 08-23-2016, 06:11 AM
RE: Relay integration - by MarkHaysHarris777 - 08-23-2016, 12:50 AM
RE: Relay integration - by MarkHaysHarris777 - 08-23-2016, 06:57 AM
RE: Relay integration - by vigor - 08-25-2016, 01:17 AM
RE: Relay integration - by MarkHaysHarris777 - 08-25-2016, 01:42 AM
RE: Relay integration - by pfeerick - 08-25-2016, 06:53 AM
RE: Relay integration - by MarkHaysHarris777 - 08-25-2016, 11:07 AM
RE: Relay integration - by vigor - 08-25-2016, 03:30 PM
RE: Relay integration - by MarkHaysHarris777 - 08-25-2016, 08:35 PM
RE: Relay integration - by pfeerick - 08-25-2016, 09:48 PM
RE: Relay integration - by MarkHaysHarris777 - 08-25-2016, 09:58 PM
RE: Relay integration - by vigor - 09-04-2016, 03:25 PM
RE: Relay integration - by pfeerick - 09-05-2016, 12:27 AM
RE: Relay integration - by MarkHaysHarris777 - 09-04-2016, 09:00 PM
RE: Relay integration - by MarkHaysHarris777 - 09-05-2016, 11:33 AM

Forum Jump:


Users browsing this thread: 11 Guest(s)