Organized Chaos

Raspberry Pi cycles HVAC Blower Motor
Its been a while since I've posted online. I had a mind-dump blog going for a while but decided against using it. So here I am doing some projects. I gotta give some credit to my long-time friend Chris (Click here for his Youtube channel) for his projects for putting ideas in my head. Its sad that I am a tinker'er but I never played much with a Pi. 

At any rate, Here I go. My first "official" Project is a simple one. I have a video below of some of the work and me blabbing on about it but here was the initial problem... Its hot in my basement and  I wanted to turn on and cycle the HVAC blower motor every so often. With a lot of techno-geek servers and such going on its hot. I have a swamp cooler upstairs and wanted to bring some of that cool air downstairs. It wasn't working with fans blowing down the stairs.. and since the inlet for the furnace was near the cooler.. i figured this was the best thing. 

For those of you who dont want to watch the video, heres the meat-and-potatoes

Pi Pins ----------> Relay Pins
Pin 2 (5volt) -------> VOC
Pin 6 (gnd) ---------> Gnd
Pin 12 (gpio 18) --> In1
Pin 16 (gpio 23) --> In2
NO (normally Open) -> R Screw on HVAC
CON (Switched)        ->G Screw on HVAC

I'm sure there is plenty of better ways of doing the code, Mine is pearl...

The code:
import RPi.GPIO as GPIO
from datetime import datetime
from time import sleep

# The script as below using GPIO Pins

# Set relay pins as output
GPIO.setup(18, GPIO.OUT)
GPIO.setup(23, GPIO.OUT)

while (True):
        # Turn all relays ON
        print "ON at " + datetime.now().strftime('%Y-%m-%d %H:%M:%S')
        GPIO.output(18, GPIO.LOW)
        GPIO.output(23, GPIO.LOW)
        # Stay ON for 10 minutes (Sleep for 600 seconds)

        # Turn all relays OFF
        print "OFF at " + datetime.now().strftime('%Y-%m-%d %H:%M:%S')
        GPIO.output(18, GPIO.HIGH)
        GPIO.output(23, GPIO.HIGH)
        # Stay OFF for 30 minutes (Sleep for 1800 seconds)


Hope this was helpful for some people... I'll be 10-10 on the side....

0 Comments on this article

Comment on this article!

Display name -
Email -
Comment -
.blog.justin.frieze - Raspberry Pi cycles HVAC Blower Motor