Raspberry pi relay via ssh python code
Channel:
Subscribers:
157
Published on ● Video Link: https://www.youtube.com/watch?v=uKcXBKNvFMo
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.
Other Videos By Rui Mendes
2021-12-15 | Morris mini Especial Deluxe 1972 |
2019-06-13 | Raspberry pi relay via ssh python code |
2019-05-31 | WRC 2019 Portugal Góis |
2019-05-21 | Userland msfconsole android no root 2019 |
2017-05-11 | Kali Linux 2017.1 xfce |
2017-04-20 | Running Powershell in Kali Linux 2016.2 |
2017-04-14 | Learn python code and programming online free |
2017-04-04 | Cmd admin privileges with Rubber Ducky |
2017-03-14 | Fotocover Rali Castelo Branco 2017 |
2017-02-17 | Norse map attack |
2017-01-18 | Raspberry Pi GUI Xming 2017 |
2017-01-13 | Raspberry Pi web server 2017 |
2017-01-06 | Rubber Ducky Notepad++ Language file 2016 |
2016-12-30 | Crack wifi Wpa2 - Kali Linux 2016.2 |
2016-12-12 | Dosbox Kali linux 2016 |
2016-12-12 | Kalilinux Gameboy emulator |
2016-12-12 | Linux debian Spectrum emulator 2016 |
2016-12-10 | Hide a Payload/Virus in Jpeg file 2016 |
2016-12-10 | Windows 10 Black Theme PowerShell |
2016-10-25 | Kali Linux fix audio 2016 start pulseaudio |
2016-10-20 | Kali Linux 2016.2 Create Payload and Listener bypass AV |
Tags:
raspberry pi
gpio
2019
ssh
pi
python
code
relay
pin
program
water
pump