Control a 5v relay with a raspberry pi ssh.
Simple python code:
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(19, GPIO.OUT)
GPIO.output(19, GPIO.HIGH)
time.sleep(1)
GPIO.output(19, GPIO.LOW)
time.sleep(1)
GPIO.output(19, GPIO.HIGH)
time.sleep(1)
GPIO.cleanup()
Replace gpio pin in the code (19) by the one you use.
On this page of the site you can watch the video online Raspberry pi relay via ssh python code with a duration of hours minute second in good quality, which was uploaded by the user Rui Mendes 13 June 2019, share the link with friends and acquaintances, this video has already been watched 72 times on youtube and it was liked by 0 viewers. Enjoy your viewing!