IPhone Garage Door Opener (Updated!)

213,369

597

49

Published

Introduction: IPhone Garage Door Opener (Updated!)

UPDATED!
I switched to a 12volt relay, added a project box and upgraded the auto relay off  recipe. Joy.

Hi.
I'm a bit ashamed of this hack, since it mostly uses existing technologies, but I shall post it anyway for all of the glory and cash rewards.

My garage opener remote recently passed away with very little notice. This was frustrating because I make it clear to any electronics I adopt that they are to give me ample warning if they are on their way out. No such luck. This remote was a rebel and certainly not a gentleman.

I needed a replacement, naturally. Universal remotes are fine, but there are a few limitations which I'm not keen on:

1. Limited range. I have to be within 50 feet or so of my house to use them. What if I want to let a family member in who is locked out in the frigid 90 degree Florida weather, or open the house for the dog walker (if I had a dog walker), or make all of my belongings available to the crooks who live in my neighborhood for insurance fraud purposes? Right.

2. Remote batteries die. I don't like death. It makes me uncomfortable. iPhone can be recharged anywhere and everywhere, even in the car (imagine that!)

3. Why carry more devices around than necessary? These smart phones are pretty damn smart these days. They should be doing more for us, like massages and walking our dogs. Also, opening our garages or other entry-ways. Plus garage remotes weigh about 45 lbs. Not cool.

4. Physical buttons are a point of failure. Chances are, I'll have to replace an old-school garage remote again after a few million uses. Who needs that kind of uncertainty in their life? No sir, a capacitive (really spell check, "capacitive" is not in your dictionary in this modern age?) touch screen is superior in my book! Dare I say it has billions of touches in store before the glass wears through and liquid crystal toxins seep into my fingers!

I'll admit that point 4 was a weak one, but I like things in fours, which is why I've removed both of my thumbs (see pics).
I can type anything I want here, can't I?
Whhheeeeeeeeeeeeeeeeeeeeeeee! Wooooooords!!!!!


Continue on to see the hows and whats, friends!

Step 1: Belkin Wemo Wifi Outlet (or, Finding Wemo)

Here's the first half of the magic, kids.

These Belkin Wifi outlets are great. They can be controlled from your phone, from anywhere. They cost about $50 at Apple, Target, etc. A bit steep for turning a light on, but I found it a justifiable cost for this use. Certainly there are many other ways to do this same thing (Raspberry Pi, Arduino, laptop, unused cellphone), but this was easy and took about a half hour once I had the supplies in hand.

Setup is really easy. The Wemo connects itself to your home Wifi router and becomes accessible from your phone via their app.

The coolest part is that IFTTT (If This Then That) now supports the Wemo! If you're not familiar with this, then I'll tell you about that .(see what I did there?)

Visit IFTTT.com.It's a free service which connects many different data sources together based on simple rules called recipes. It can even control certain hardware, like this Belkin switch or the Philips LED Hue light bulbs.

More on IFTTT later.

Step 2: The Power

Luckily there is an extra power outlet on the ceiling next to my opener. Perhaps this is how they all are, but I'm going to pretend that I'm lucky to feel better about myself. Also, I have a gambling addiction.

The black cord you see plugged into the Wemo is just a chopped off old lamp cord. I'll show it's use in the next step, but PLEASE MAKE A NOTE OF IT! It needs to be of the type that can handle wall current (110 volts typically, or if in the UK something like 153,000 volts... i don't really know). You'll see why in a moment... turn the page.

Update:
I replaced this power cord with a 12 volt wall wart style transformer instead of a direct 110 volts. Made me feel better. Just need to get a picture of it up here.

Step 3: Switch It Up.

Now then, there comes a time in every young man's (woman's) life when he (she) must do some actual work. Booooo...

Here we see a Tyco Electronics 12 volt Mechanical relay switch. I got this at Radio Shack, but any relay switch which activates under 12 volts and has a normally open state will work. What does normally mean? Glad you asked.

These relay switches work in the following way:
1. Power is applied to an electromagnetic coil inside
2. a metal plate is drawn to the coil, which moves a bunch of metal contacts
3. Some contacts which were already touching (closed) become open, and some open ones become closed.

We want to use two of the normally open contacts, so that when power is applied, they will close and complete a circuit which we'll use to trigger the garage opener. Read on.

Note:
Is should be noted that the 12 volts is simply used here to close the magnetic circuit. This voltage DOES NOT and SHOULD NOT be passed into the garage door opener circuitry. That would likely break stuff. I can't be held responsible for the loss of your home! Mine is 300 square feet. I've got nothing to lose!

Note again:
I did go back and insulate the wires after taking the photo. You must do this to ensure no stray voltage gets out or shorts on the metal housing of the garage opener or someones face. Shrink wrap tubing or black electrical tape should do it. Also, zip tie this relay to a secure post somewhere, just like I didn't do here.

Step 4: Trigger Wires

I have connected the two yellow trigger wires to the same two screw terminals that connect to the manual garage opener button coming from my wall. Be sure they are yellow, since no other color will work. Yellow lets electrons flow best (none of that is true).

The color does not matter. Any wires will work for this step since it is only being used to close the circuit, just as the original wall button wiring does when pushed. I left the original wires there too so that the wall button still works.

I cannot speak to every opener type here, but this is my setup. Simple and clean. Tracing the wires from you wall mounted button is a good way to find out which terminals are the right ones.

Step 5: If This Then That!

So back to IFTTT.

It's a great free (for now) service based out of San Francisco that lets you set up simple rules (or Recipes) to trigger events, messages or actions.

I've set up a few easy ones, which let me trigger my Wemo any time IFTTT receives a text or voice mail from my phone number.
Here's the main recipe: https://ifttt.com/recipes/96423

It is important to note that I have chosen the Wemo action "Turn on then off". This allows the garage opener to activate, but then release, as if the physical wall button was being pressed. If the relay is left switched on, who knows what atrocities could occur!?

Really though, that wouldn't be safe. I accidentally left it switched on for an entire day, and it became fairly warm. For this reason, I added a few more rules which shut the Wemo off several times a day for safety. Read on.

Update:
I added one more rule to rule them all... a rule that says "you turn that junk on? Well I'm turning it the hell off, see!?"
This means that any time the Wemo is triggered on, IFTTT goes and turns it off. So I can use the Wemo app to open now without having to remember to turn off the relay too.

Surely there's a better way.

Step 6: Safety Last!

Here are the safety shutoff recipes on IFTTT.

I just ping the Wemo 4 times a day and tell it to turn off. This affects nothing negatively. If its already off, as it should be, it does nothing. It is not a toggle. At 3am, 6am, 3pm and 6pm my Wemo is told to turn off. Do more if you're paranoid like me.

If somehow I got drunk on chocolate and passed out on my phone with the Wemo app open and my tongue touching the "on" button, then one of these recipes would save my life, or at least save the relay from burning out eventually. Not much different than if I passed out and stuck to the wall in the garage with my tongue on the wall mounted button (button would like that too much).

Be sure that you do not set up any more Wemo based rules! IFTT only supports one Wemo right now, so if you try to add another rule thinking you're turning lights on in your house, it'll affect the garage Wemo. Don't do it!

Update:
Apparently IFTTT now supports multiple devices! Woohoo!
http://updates.ifttt.com/post/50125496053/belkin-wemo-multi-device-control

Step 7: Sucess, With One "C"!

I can now use Siri to text my house and open the garage.

I can now text my house the old fashioned way to open my garage.

I can now call my house to open my garage.

Notice it says "The Mansion". When you text or call iFTTT, they give you a number for their automation servers. I just entered that number in my contacts list as "The Mansion" so that I could say "Siri, text The Mansion and tell it to open my damn garage, now please!"

You can store the number as anything you want. Don't follow my advise. It isn't sound.

Thanks for reading!
I'll be figuring out a way to get out of my garage (phone isn't charged).

Share

Recommendations

  • Oil Contest

    Oil Contest
  • Creative Misuse Contest

    Creative Misuse Contest
  • Clocks Contest

    Clocks Contest

49 Discussions

I've seen quite a few tutorials on doing just that online. A quick search ought bring one up :)

Hey. I have a question that I guess anyone could answer but I was thinking of using the Wemo to do this project until I saw up top you said it could be done with an old cellphone. I have a very capable android phone that I am not using. how could I go about using it to do a similar task? I've always thought about using my phone to do achieve this but can't think of a way to reach my goal... if anyone has any tips let me know. I know someone made the ihued cable. is that something we could make in a diy version?


Might some day
Iphone will get my garage thing re-arranged and I can give a complete makeover
with my fingers. I will try these instruction for garage door opener and
see will it work with my garage door or not.

Besides having the ability to open/close my garage door, I also want the ability to know if the garage door is open. I'd like to have the following feature: Check garage door state at a scheduled time (before I go to bed) and if door is in open state, send me a text or email. We have forgotten to close the garage door too many times and then wake up the next morning and find the door open. So is there any extension that would support the scheduled notification feature?

Have you seen the WeMO Maker? it has a low volt relay built-in, that could make the trick without the extra circuit.

I am ordering one, and trying this idea with it, I'll let you know how it goes.

1 reply

hey guy!!!!! on that wemo maker, did you ever make it to work with your garage????

Hi,

i followed your instructable for wemo garage door opener, this was really inspiring and i did it for myself, i love your writing by the way.

At this time, it works great with the wemo app but i can´t make it work with ifttt because i am not able to send a message to ifttt from my country (Portugal).

Do you know any other way to accomplish that?

By the way you say at the end of your tutorial "I can now call my house to open my garage", how do you do that? isn´t ifttt supposed to work only when you send a message to it?

Thanks and sorry to bother you. :)

Your IFTTT "multiple belkin wemo" thingamababer is 403 Forbidden: That is what I am getting in Safari on OS X Lion.

Screen Shot 2014-12-21 at 9.11.43 AM.png

Good question!
IFTTT supplies a specific number for me to text. The recipe only triggers if the text originates from my phone, so only a villain with my phone can gain access to my home... Or if they can kick the door open... That would work too. ;)

1 reply

Nice work! In theory, could anyone text your house to open your garage door? Does IFTTT provide some security for that?

Thanks

Dude, really enjoy your writing style...

Gotta try this, my POS Sears remote just died...

It only lasted 37 years, sigh, guess they don't make stuff like they used to.

I did it! Kind of...I've run into a bit of a snag. My gate opener has the "feature" of automatically closing if I leave the remote button pressed, and it looks like IFTT is taking too long to send the Off command after I've sent the On command. So I send a text to IFTTT, and a few seconds later my gate starts opening, but then it closes again. I'm thinking it *might* have to do with the fact that the WeMo is at the edge of my network and receives commands too slowly. This is also the case if I try to On/Off it through the app on a 3g connection.

2 replies

I think I may have found the component I need to get over that problem..I've been reading up on a time-delay relay, which basically only powers up after the coil is energized, and immediately closes when de-energized. I'm thinking if the IFTTT delay is long enough to trigger the relay, I'd be golden. The risk would be that it isn't long enough, then I'd be in the same boat :P

Correct. I've not setup anything which indicates open or close if you are using it remotely. I'm always in eyesight of the door in practice so I have no need to know if its open or closed. On the rare occasions when I have used it from another location (to let someone in the house), I have them on the phone to verify while I do it.

So let's say someone closed the garage with another old remote, how would the WeMo know it was already closed wouldn't it just reopen it? It's just works as a trigger, it will not know the difference between open and closed right?

Or am I missing something here.. hope you can help me out a bit.

Thanks!

Great question/concern! Having two kids myself, safety is always of concern. I definitely have the required optical sensor installed and functional. I also removed those auto off recipes from IFTTT in favor of simply sending one Wemo off signal from IFTTT any time it is turned on. Either way it doesn't actually trigger the relay and close on those events. They are not toggle events, they are actual on and off events. Sending an off to Wemo just disables the garage relay, it never makes it close due to how the setup works. Thanks for bringing it up! :)

So what happens if you get home 10 seconds before 3am, 6am, 3pm, or 6pm and open the garage? I assume you have the optical sensor that will prevent closing if there's a vehicle/little baby passing through at those times.

I only ask because we have a driveway with an automatic gate that functions the same way, but for whatever reason, the previous owners didn't install an optical sensor. Scary thought to have the gate close on me or wifey's car!