My vision for our Garage Door is to have an automated way to open and close it from both a web interface and a proximity sensor.
It has taken me a couple of weeks to finally get everything working, but I finally have my garage door automated, with the help of the Raspberry Pi. I will break out each of the steps it took into a different article: Open Door (GPIO Output), Monitor Door (GPIO Input), Web Interface, Vocal Notification, Proximity Sensor.
First step was to get the garage door to open. I started with trying to determine how I could get the Raspberry Pi to trigger the garage door to open/close. After inspecting the wired garage door button, I found a simple solution to trigger the garage door.
Garage door button |
Garage door motor |
I then connected the Raspberry Pi, with attached Wifi dongle, to a breadboard and wired up a relay (relay-diode-transistor-resistor) as described in Driving a Relay using GPIO). A pre-built Relay Module would have been easier, but I did not have an extra one on hand at the moment. I then placed the Raspberry Pi and breadboard into a plastic container, to keep the dust off (which I cut holes for venting).
Raspberry Pi in plastic container to protect from dust |
To trigger the electronic relay switch, which will in turn close the garage door button loop, I use the following Python code.
trigger_door.py:
#!/usr/bin/env python import RPi.GPIO as GPIO import time GPIO_PIN = 25 GPIO.setmode(GPIO.BCM) GPIO.setup(GPIO_PIN, GPIO.OUT) try: print "Trigger Garage Door" GPIO.output(GPIO_PIN, GPIO.HIGH) time.sleep(.5) finally: print "Cleaning up..." GPIO.cleanup()
You may have noticed that the code makes no mention of if it will be opening or closing the door. That is because at this point, there is no way for the code to determine the current state of the garage door.
Stay tuned, in the next article, for solution to detect the state of the garage door: Garage Door Part 2 - Monitor Door (GPIO Input)
That's really incredible! You have done so well with your garage door! What garage door parts or operator parts have you used? I would like to buy those from AODretail because they have the best service providing accessories I ever had!
ReplyDeleteYou can just tell that patching is essential if the entryways don't open without issues. A firm sound might be Clarks Garage Door & Gate Repair Reseda
ReplyDeletePretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. garage door opener repair Thousand Oaks
ReplyDeleteSuperb incredible going, I cherish your work and look forward for more work from your side. I am a customary guest of this site and at this point have recommended numerous individuals. Garage Door Repair & Installation Services in Los Angeles
ReplyDeleteHey, I discover perusing this article a delight.
ReplyDeletedoor repair toronto fast
I thought haven’t read such distinctive material anywhere else on-line. garage door repair
ReplyDeleteSan Francisco Garage Doors
444 22nd Avenue
San Francisco, CA 94121
(415) 223-7600
Many incidences have already been reported concerning accidents consequently of repairs done by unskilled workers. There are even reported deaths, making garage door spring alternative to be highly suggested for skilled personnel in order to prevent such incidents. garage door services
ReplyDeleteDuring the repair, ensure that you check for loose hardware, and tighten them as required. For garage gate terme conseillé which have swing-up system, check the plates where the spring is mounted to ensure that the screws are tight. los angeles garage door repair
ReplyDelete