Controlling a Type B Plug With a HVAC Relay and a Raspberry Pi

10 months ago
34

In this video I go over how to control a type b plug using and Raspberry Pi and a HVAC relay. I use the GPIO pins and Python 3 to turn on and off the relay controlling the type b plug.
Follow Up video:
https://rumble.com/v4aya4r-controlling-a-hvac-relay-with-a-nodejs-web-server-and-a-raspberry-pi.html

Script:
#!/usr/bin/python3
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(3,GPIO.OUT)
GPIO.output(3,GPIO.HIGH)

#!/usr/bin/python3
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(3,GPIO.OUT)
GPIO.output(3,GPIO.LOW)

Loading comments...