Introduction: Electric Imp Garage Door Opener

I've lost count of the number of times we have set off on a trip only to have to turn back to check to see if we remembered to close the garage door. This ‘ible shows you how to connect the Electric Imp to your garage door opener, how to control your garage door from your iPhone and how to check the status of the door from anywhere. Every time the door is opened or closed a sensor is triggered, and a text is sent to a predefined group of phones so that you are always "in the know" as to door status. Commercially available options abound but this solution is easy enough to hack together yourself for small $ outlay.

Even though I’ve used an iPhone for this ‘ible, you could use any smartphone, tablet or other computing device with an Internet connection. As a bonus feature, you can cache the HTML App on your iPhone so that it appears and runs just like a real App Store app, without needing to jump through app distribution hoops or Apple Developer program registration. The smartphone has become an indispensable attachment - most people will never leave home without it, and most people I know can no longer conduct a conversation without checking their phones repeatedly. Tighter integration would require surgery but that is some way out in the future. The net result is that you always have a garage door opener on your person.

The Electric Imp is a fantastic device that enables WiFi control of anything and everything. With a small amount of effort, you can control anything you want with your smartphone, web browser or other Internet enabled device.

To complete this project, we will assemble electronics, write firmware, and develop an HTML App for controlling the garage door. This project interfaces to your existing electric garage door opener via the pushbutton switch that you normally use to open the door. If you have a manual garage door, you are out of luck on the automation side, but will still learn a bit about the Imp, and about creating an HTML App for your phone. After completion of the project, you will be able to use either the pushbutton switch or your smartphone to open the door – all existing garage door opener functionality is maintained.
I do get that opening the garage door from your phone is hardly novel. Someone has most likely cobbled together a steam punk version from scrap parts discovered in a dumpster in some far away country! However, this is my version that answers Imp related questions that appear frequently on forums like “how do I control my imp from a web browser”, or “how do I add a relay to my imp” or “how do I create an html app for my phone?” or “how do I get data from the Imp back to my phone” etc.

Step 1: Operational Secrets

The standard garage door opener button completes a circuit which signals your garage door motor to start opening or closing the door depending on the previous action. If the previous action was to close the door, the next button press will be to open the door and vice versa. The circuitry we add is wired in parallel to the manual pushbutton switch so that either a relay controlled by the circuit or a push of the button will activate the door opener.

With the Electric Imp solution, a tap of the iPhone screen in the Sesame App sends a message via HTTP Post (using either the wireless network or cellphone network) to the Imp Servers with the unique ID of your specific Electric Imp module.

The Imp Server finds the IP address of the Electric Imp being addressed and forwards the message on to your Electric Imp via the internet and wireless router. On the Electric Imp, your Agent code receives the message and forwards it on to your firmware via the "device.send" API function. Finally, your firmware interprets the message according to your functional requirements. In our case, the HTTP message results in closure of the relay contacts connected to PIN 7 of the circuit. Billions of dollars of networking infrastructure are being leveraged to communicate a simple switch contact closure. And it is fast. Occasionally there may be a second or 2 of latency, but for the most part it is pretty quick.

The connectivity is seamless thanks to the magic of the smartphone. When your phone is within WiFi range of your router, you will connect via your router to the Electric Imp Cloud Server, which sends the message on to the Imp through your WiFi router. The message goes from Phone->Router->Imp Server->Router->Imp. When you are out of WiFi range (or turn WiFi on your phone off), the message goes via the cellular network to the Electric Imp Cloud Server, which then sends the message on to the Imp through your WiFI router, or in other words: Phone->Cell Network->Imp Server->Router->Imp.

Step 2: Parts 'n Tools

Now that I have now sketched the scene, the rest of this 'ible concerns the circuit construction, and firmware/software development and installation. You will need the following components and tools to build the electronics

The firmware and software have been updated and are available from Step 6.

If you want to build your own, this is what you will need:

Step 3: Constructing the Electronics

The Electric Imp is a fantastic device (may have said that a number of times already but it’s true!) that provides most of the functionality for the solution. The Imp looks like an SD card and slots into an SD card slot on a carrier board. The carrier board provides the ID for the imp which is critical for the communication channel back to the Imp Server. A good overview of the Imp is available here:

When you buy a new Imp, the Imp will need to be commissioned. This is done using a smartphone app that “blinks” the configuration information of your wireless network into the Electric Imp’s non-volatile memory. The detail instructions are available on the Imp Web Site here:

The circuit is constructed by following the wiring diagram provided. I used Vero board but you can use anything that you like.

Step 4: Sensor Switch Brackets and Wiring

The sensor switch brackets are hand bent strips of aluminum about 0.060" thick. The sensors are mounted to the track where the carriage will activate them in the open and closed door positions.

The switches are wired to the sensor inputs of the circuit. When a switch is closed, the input line is pulled to ground. The firmware detects this as a zero or active sensor. So, if the door is closed the "Closed" sensor input line is pulled low, and the "Open" sensor is pulled high. The reverse is true when the door is open.

The circuit is powered via USB using an iPhone USB charger that plugs into the AC located near the garage door opener. The circuit is hung from a zip tie.... not very elegant but it works! 

Step 5: Firmware

The firmware for the Electric Imp lives on the Imp Servers in the cloud. When your imp powers up, it connects back to the mother ship and requests firmware. The mother ship downloads the firmware configured for your Imp.

7 December 2013 Update
Please not that the Planner is now obsolete. Electric Imp has replaced the planner with Agents. I have attached new agent and new HTML code to this page that will work with the new Agents. Please use the miHomeGarageAgents.Zip file attached to this step. To get an overview of how to work with the new IDE and Agent basics, please watch this video:

Electric Imp Agents

The firmware and other files for this application are attached to this step.

Step 6: Status Feedback Via SMS

SMS Service is provided by

This was a great free service - you used to get 500 free texts per month and the API is well documented. But this has recently (2014) been reduced to 100 free texts per month which is marginal for the typical garage door. They have done a great job describing the interface and how to get started so I will not repeat that here. There is only one tricky bit, so for the most part just follow their docs!

UPDATE: 9/13/2014 - SendHub appears to have re-instated the 500 text limit for new free accounts, although my account shows a limit of 100. Others have received notification from sendhub that their free accounts are about to expire. However, Twitter is a useful alternative for messaging. I have added an attachment to this step that details how to set up Twitter (ConfigTwitterApps.pdf). It's 100% free and messages are unlimited.

The tricky bit is finding your group ID for SMS. Once you have followed all their instructions, there's another step to retrieving your group ID. You need to navigate to the following URL in your Web Browser using your Cell Number that you registered with SendHub and the API key they assigned to you

Send hub will return a bunch of stuff that looks like this. Your group ID is in bold below where I have 888888888888

{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null, "total_count": 1}, "objects": [{"date_created": "2013-12-19T23:48:41.811793", "date_modified": "2013-12-20T04:28:15.277988", "deleted": false, "id": "888888888888", "id_str": "888888888888", "is_shared": true, "name": "mmmm", "parent_id": null, "parent_user_id": null, "permissions": "write", "resource_uri": "/v1/groups/888888888888/", "share_invite_count": 0, "size": 1, "slug": "mmm", "text_to_subscribe": true, "ttjResponse": "You are now subscribed."}]}

Now, make sure you use this group ID in the line in your agent code file that looks like this

local json = "{\"groups\": [\"888888888888\" ], \"text\": \"Sesame Door : "+a_currentDoorState+"\"}";

local req =" Key Goes here",

Step 7: The HTML App – Configuration Details

The application that runs on the iPhone is a web page that is a combination of HTML, CSS and Javascript. To get the web page to appear to be a native iOS App, there are meta tags that are understood by the Safari browser that hide the navigation bar at the top of the display and the button bar at the bottom. To get the app to run without being loaded from a web server, you can cache the page on the phone. This means you can load the page from a temporary web server onto the phone, and then shut the web server down so that no one else can get access to the App. Once the page has been cached to your phone, Safari will no longer make HTTP requests for the page when it is re-opened and will load it directly from the local cache, and display it to look like a native app. The tags that control the display format are:
  • Viewport
This defines how the Web page will be displayed and should be set as shown according to the Apple guidelines. You will need to make sure that your buttons and images are large enough because the user will not be able to zoom the page.
  • apple-mobile-web-app-capable
This tag makes the web page run in full screen mode. The browser navigation bars are hidden
  • apple-mobile-web-app-status-bar-style
Displays a black status bar at the top of the phone. Less obtrusive I guess.


This is the start of the HTML file with the meta tags defined
<html manifest="manifest.appcache">
        <meta charset="utf-8" />
        <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />

Application Icon
To make an application icon, you need to create a 114x114 pixel png image. iOS will take care of rounding the corners and applying the “shine”. 

Finally to cache the app, you need a manifest file. Make sure that your web server serves up the manifest file with MIME type “text/cache-manifest” for this to work. For IIS Express, you edit the application.config file to add the file type. For other servers – your mileage may vary.
The HTML App will load with the last loaded version of the image and HTML files from cache. If network connectivity is available, the browser will check the status of the manifest file on the server. If the manifest file has changed, the new files will be loaded. This is useful during development when files are being updated – you can change the version number within the manifest file to force new files to be loaded and cached. However, sometimes you have to manually clear the cache to get new files to load. Just something that happens that you need to be aware of. I also found it easier during debugging to eliminate the manifest statement. Once the file is debugged, you can work with the cache version.
The manifest file has two sections – files that will be cached and files that will be loaded from the network. For this app, we cache all files and leave the NETWORK section empty.


#version 3.3




The version number is a trigger to the web browser to load new versions of the file.  I found a good blog entry that covers this at if you need more information about running HTML Apps on the iPhone.

Step 8: The HTML App – Walkthrough

The client app starts up by loading the 4 images used for animating the WiFi waves emanating from the robot (Marvin the paranoid android from Hitchhikers Guide to the Galaxy) when the robot is touched. You can get free artwork for non-commercial use here:

I cobbled together images of Marvin with a WiFi icon. I cut the WiFi icon into three parts to animate the RF waves emanating from Marvin’s head. When the screen is touched in the area of the image, the JavaScript animation begins. The animation cycles through the 4 images with a 250ms delay between pictures to simulate the wireless sending of a message to the garage door. The cycle is repeated twice mainly because this avoids impatient family members from poking at the screen when there isn't immediate response on the part of the door. As mentioned before, latency can be about 2 seconds sometimes so the animation lets users think that communication is still in progress.

Communicating with the Electric Imp is done by sending a message to the Imp Agent URL specific to your Imp.
For the HTML App, we create an XMLHttpRequest object and then post the button ID to the Imp Agent for your garage door. Technically we could have a number of different button functions so sending the ID to the firmware would allow the firmware to make decisions based on the button that was sent. However, for this app we only have one button so the ID is a bit redundant but we have to send something! One issue I ran into was that iOS6 would cache the outgoing posts. The workaround is to make sure that the data you are posting changes every time. This was done by adding the time stamp to the string which ensured that each post was unique and thus not cached by iOS. Having outgoing calls cached makes no sense to me but it made sense to someone at Apple. There is a way to specifically request that the outgoing call not be cached but that did not work for this interface…. See the comments in the code."POST", "", true);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
// Sending a Date Time stamp prevents iOS6 from caching the query. If you set the cache-control header
// for this request, it does not work. Odd since it does work for the COSM query
xmlhttp.send("value=" + + Date());

To get status of the door sensors, a query message is sent to the Imp Agent. You can check the status by pressing the button or pulling the screen down.

And that takes care of the HTML App. The next step will discuss loading the HTML App and making it appear to be a native iOS App.

Step 9: Configuring IIS Express and Loading the App Onto Your IPhone

All development was done using Visual Studio Express 2012 for Web which is free and downloadable from Microsoft here:
Testing the HTML app automatically fires up IIS Express (Microsoft Web Server) in the background when you use your desktop browser (Chrome/Safari/IE etc) as your debug target. However, to test the HTML App on your phone, you need to make some changes to IIS Express to allow remote connections to it.

Configuring IIS Express for Remote Connections
The application.config XML file is located here: C:\Users\YourName\Documents\IISExpress\config
First thing to do is to set the mimeType for your cache-manifest. We use .appcache as the file extension. You can use any extension you want but .appcache seems common. The manifest MIME type is text/cache-manifest which tells the browser the type of file. Once the type is registered web server will include the MIME type in the response header each time the page is requested.
The second change to the file is to allow IIS Express to serve pages to remote connections. By default it will only bind ports to connections from “localhost” which is no good for remote testing with the iPhone. To change this behavior, you need to modify the site configuration settings for your Web Site by changing the bindingInformation atttribute from “localhost” to “*”,allowing IIS Express to bind to any IP address, not just “localhost”. Your port number will be different from the snippet shown below – that’s ok because it will be the port allocated by IIS Express on your machine. Your web “Site Name” will also be different. Mine is : “miHomeGarage”.

<site name="miHomeGarage" id="2005659527">
	<application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="C:\Users\midnight\WebSites\miHomeGarage" />
        <virtualDirectory path="/miHomeGarage" physicalPath="C:\Users\midnight\WebSites\miHomeGarage\miHomeGarage" />
               <binding protocol="http" bindingInformation="*:49292:" />

Finally, run this as administrator from a command prompt to add Everyone to the access list for the port:

C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-10>netsh http add urlacl url=http://*:52917/ user=Everyone

Your port number will be different and will match the information displayed in the element in the application.config XML file.
I pulled this information together from many google searches. This site was the most helpful but I modified the approach slightly to allow any IP address binding because DHCP caused me some problems at some point.

This site will also come in handy:

Loading the App onto the iPhone
All of this prep work is so that you can load the HTML App onto the iPhone. To load the app, start Visual Studio 2012 Express for Web which will start IIS Express (you can also start IIS Express form the command line but since I’m using the IDE editor, it’s easier to just use the IDE to start it up). The virtual path for the app is “/” so connecting to http://youripaddress:yourport/ will connect to the IIS Express root. I added a folder called Imp Garage and the page name is Index.html.

To load to the iPhone, open Safari and open URL http://youripaddress:yourport/ImpGarage/Index.htm...
Once the Web page is displayed, you need to save it to your desktop by clicking the “sharing” button in the middle of the bottom navigation bar. Press the “Add to Home Screen” button and select a title for displaying on the home screen. The Icon for the app will be added to the home screen when you press the Add button.

You are done. The App will now be launched from the Home Screen like a native iOS application.

Step 10: Action

With the app loaded, tapping the image will send a message to the Imp hardware (via the Imp Agent in the Imp Cloud) to activate the garage door relay. If the door is open, then the relay closure will cause the door to close. If the door is closed then relay closure will cause the door to open. If the door is moving and the image is pressed, the door will stop. Text messages will be sent to your phone with the status whenever a door sensor changes state. To manually check status, drag the screen down and release to initiate a query of the door status. This is useful when you want to check the door status remotely.

If someone opens the door from a Car remote or via the push button, you will get text messages alerting you of the status.

The end of another marathon write-up. The time spent writing the code and building the electronics is a small fraction of the time spent doing the documentation. The project itself can be knocked together easily in a day. Building the electronics will take about 3 hours (if you have all the stuff on hand!), installation of the brackets and sensor switches another 2 hours. Then all that's left to do is download the code, configure IIS and the Imp, and you will be off and running in another 2-3 hours. If you don't have any electronics or firmware/software experience, then expect to spend double the amount of time. Let me know if you have any questions!

Step 11: Feedback From Lfzguud

Instructables member lfzguud took on the challenge of building one of these himself. In doing so he learned a number of lessons along the way that might be useful for you. He also sent pictures of his completed unit which are shown in this step. Here are his lessons learned:

Lessons learned by lfzguud

The list of materials could also include:

A Microsoft web hosting (not web page) service subscription (such as 1and1) –OR- a windows XP Pro or 7 pro home server running a server (such apache server which is free)

A free subscription to sendhub

The direction of the diode (the tiniest component on here) DOES matter. Thankfully your pictures were nice and clear and the schematic as well.

If you can’t find the molex connectors, another option are board terminals from Radio Shack:

In the first step of commissioning the Imp, it is imperative that you follow the instructions and do the “Hello World” set up. This fixes a bug in the imps. If you don’t do this – you might find it hard to get it to connect.

If the imp does not connect (i.e. weird blinking led sequences) be sure to check the list that shows what the blinks mean. Then, take a good hard look at the Imp forums.

I have a Dlink DIR-655 router. It turns out to get an imp connected to that router you must first un-check the “enable DNS relay” block in the router admin section. Took 3 hours to find that little tid-bit in the forums.


When you set up your SendHub account, you must MUST MUST read the GettingStarted document with regards to the api. On that page, about half-way down is a one line request that you put in your web browser’s address bar to get your group ID number. If you fail to do this step and don’t get the group number, the web server software won’t work.

Found this great site for setting up a home server. Works great – though now I have it and a year’s worth of pre-paid web hosting at 1 and 1 (oops!).


JoeyH64 made it!(author)2017-02-28

Hey, so much detail about making the iPhone App. Can we just access a website from any device, what is the process!

broncosis made it!(author)2017-01-17

Just pulled this back up I am still using it but its time to update it to work with google voice so I can open the garage door hands free

squire_matt made it!(author)2016-01-31

Hi MidnightMaker - thanks for the great instructions!

I've just tried to buy all the bits, and it seems that the radioshack links are broken, and the 5v relay is no longer available. I've sorted the rest of the components, but I cant figure out what I should be looking for in a replacement relay. Are you able to assist?

Thanks in advance!

MidnightMaker made it!(author)2016-01-31

Hi, any 5V relay will work. Here's an example

uxcell® 5 Pcs DC 12V Coil SPDT 5 Pin Mini Power Relays PCB Type HHC66A-1Z-12VDC


klamberth made it!(author)2016-01-16

Do I have to use .net or visual studio or can I download the file and upload to my webserver?

MidnightMaker made it!(author)2016-01-16

You can load the files to your web server. You do not need Visual Studio. Just beware that anyone who can access your web server will be able to open your garage. The best thing to do is cache the files to your phone and delete the files from your web server when that is done.

broncosis made it!(author)2015-10-23

Thanks for this I have been using it for quite a while I just put the html code on my public web server and have no links to it anywhere

ay2459 made it!(author)2015-08-15

How do you find the right port to use?

MidnightMaker made it!(author)2015-08-16

The port is automatically assigned by Visual Studio. If you use the "open in web browser" command from Visual Studio (right click on the html file), you will see the port number in the browser address bar. You can also find the number in the applicationhost.config file.

jbennett38 made it!(author)2014-07-03

This project has gotten me back into tinkering, which is a great thing. I've successfully built the unit and am able to see it on my laptop which is running the IIS server. I can see the status of the unit just fine. However, I cannot connect to the page in order to cache it on my phone. I can run a terminal emulator and am able to ping the IP of the machine running IISExpress, but I cannot access the web page via the phone.

I have edited my applicationhost.config file with the following:

<binding protocol="http" bindingInformation="*:57700:" />

I have run the following from an administrator command prompt with "URL reservation successfully added" as a result:

netsh http add urlacl url=http://*:57700/ user=everyone

netsh http add urlacl url=http://+:57700/ user=everyone

netsh http add urlacl url=http://*:57700/GarageImp/miHomeGarage.html user=everyone

netsh http add urlacl url=http://+:57700/GarageImp/miHomeGarage.html user=everyone

I have tried the following in order to ensure the firewall on my Windows 7 box isn't blocking access:

netsh advfirewall firewall add rile name="IISExpressWeb" dir=in protocol=tcp localport 57700 profile=private remoteip=localsubnet action=allow

netsh advfirewall firewall add rile name="IISExpressWeb" dir=in protocol=tcp localport 57700 profile=Domain remoteip=localsubnet action=allow

I'm simply stuck. :( Any help would be greatly appreciated!!

MidnightMaker made it!(author)2014-07-08

The easiest way to check to see if IISExpress is set up correctly is to try and open the page from a browser on the host machine using the IP address and not localhost, For example,

If this does not work from the local browser, then IIS is configured incorrectly. My <site> key looks like this:

<site name="ImpWebApp" id="228143298">

<application path="/" applicationPool="Clr4IntegratedAppPool">

<virtualDirectory path="/" physicalPath="c:\users\midnight\documents\visual studio 2010\Projects\ImpWebApp\ImpWebApp" />



<binding protocol="http" bindingInformation="*:50442:" />



I did a bit of googling and found some useful information here. You appear to have hit most these points but maybe methodically going through this persons suggestions will highlight the problem.

If you are still stuck, I can temporarily host the page for you on my web server.

ay2459 made it!(author)2015-08-08

Could you explain to me what /GarageImp/ stands for in the link below?

MidnightMaker made it!(author)2015-08-09

Garageimp is the web folder that contains your html file. If your html file is in another folder, then you should change the address to

where YourFolder is the folder on your web server that contains miHomeGarage.html.

You need to edit the html file as described in the comment above this one

jbennett38 made it!(author)2014-07-14

Well, in the process of trying to go through the steps once more, I've gone backwards. Now I get the following when I pull up the web app using localhost:

Web Query Failed [0] responseText =

When I point to my local IP, I just get a 403 error (Service Unavailable).

I'm not sure why this would be (on either case). Any ideas would be greatly appreciated!!

MidnightMaker made it!(author)2014-07-15

The Web Query Failed message is most likely because the URL for the Imp Agent has not been updated in the HTML file.

If you look at the code in the HTML file, you will find these lines:"POST", " URL Here?timestamp=" + new Date().getTime(), true);

You need to put the imp Agent URL code where it says "Your URL Key Here".

Your command should end up looking something like"POST", "" + new Date().getTime(), true);

where zbgd32jkjw is specific to your imp and can be found at the top of the Electric Imp IDE Agent Window

ay2459 made it!(author)2015-08-08

I am getting the same error but my URL has been changed. What else could be causing the error?

instructaspark made it!(author)2014-12-31

This has been a great project. I just noticed on that you aren't producing any more. I just wanted to thank you again for providing such a good Instructable! Happy New Year!

SamW2 made it!(author)2014-12-30

The video link seems to be broken.

sogseal made it!(author)2014-12-21

Thanks for the project, i finished it, now its time to learn about imp.

MidnightMaker made it!(author)2014-12-26

That's great!

sogseal made it!(author)2014-12-21

This is what i was looking for! I got everything on a breadboard and using files that you provided, all working fine, im just confused on where is the button to open door? :D or you just click on that robot to open/close the door? Thank you

MidnightMaker made it!(author)2014-12-21

Correct! Just touch the robot - that sends the signal to the imp agent

sogseal made it!(author)2014-12-21

Thanks! im gonna start soldering everything up if my kid lets me , hehe

snowb made it!(author)2014-11-08

can anyone please share a picture of how you have the "Close Door" switches? Thank you

instructaspark made it!(author)2014-11-19

My garage door rail is a bit different. It has the chain above an inverted T-shaped rail. I piggy backed my bracket onto 2 bolts which were already there. I had to drill 2 holes for the closed door sensor (used the same bracket).

To mount the IMP, I designed and 3D printed a mount which bolted to the rail above the opener motor.

MidnightMaker made it!(author)2014-11-09

Here's mine.

DSC00434 (Custom).JPG
instructaspark made it!(author)2014-10-05

I have mine up and running. I haven't installed it in the garage yet, because I want to add the auto-close feature and don't want the garage door operating while I test the code. So far it is a nice neat package. I am planning to 3D print a protective mount for it so that nothing can short out the bottom of the board.

instructaspark made it!(author)2014-10-21

Mine has been running for about a month so far with no issues.

instructaspark made it!(author)2014-10-29

I made some further additions. In addition to twitter, the agent code has access to email and the twilio sms site (not just sendhub). I added the time of the message to the message body so that you could tell when the message was sent in case there was a delay in delivery. To get this right, I had to add the option for the agent to get the timezone offset from Working great so far.

MidnightMaker made it!(author)2014-11-09

Looks great!

instructaspark made it!(author)2014-11-10

Thanks! Your Instructable was instrumental in helping me complete mine. If you want, I can send you my code if you want to check out the autoclose feature.

MidnightMaker made it!(author)2014-11-12

PM'd you my email address. Send me the code and I'll add it to the last step.


ctmorrison made it!(author)2014-11-04

I recently modified the HTML page to include our name at the top -- making it a bit more personal. However, once I did this, I no longer could get it to cache the file. It would not run unless I had the web server running on my MacBook. After a wee bit of research, I discovered there apparently can be an issue with corrupted manifest files on iOS devices. The article recommended turning on/off airplane mode to clear any cached manifest files. This resolved the problem.

instructaspark made it!(author)2014-10-21

I recently made some additions to the code so that it continues in the case that it loses network connectivity. With the example which is downloadable from here, it isn't needed because the IMP does nothing but update status/listen for instructions from the net (which can't be done if there is no net). My version will autoclose the door if it is left open and requires this function to continue even if the network connection is lost. Just something to think about. If anyone is interested in my version of the code, let me know and I can send it to them

RonBrugger made it!(author)2014-09-12

I made this instructable many months ago and have been a happy user. I'm getting a notice from SendHub that the free service is ending tomorrow. Has anyone switched to another text service, like the Google service mentioned below? I don't think I can figure out how to switch on my own.

MidnightMaker made it!(author)2014-09-13

Twiiter instructions are now attached to step 6. Let me know how it goes!

MidnightMaker made it!(author)2014-09-12

Hey Ron, you can use twitter. I have put together a PDF instruction that should get you going on twitter. Essentially you create a twitter account for your garage door, and then follow that account with your regular twitter account (assuming you have one of course). This requires changes to the imp agent code. I'll post this as well. Give me a couple of hours.

nickckingjr made it!(author)2014-09-06

MM and all, I'm up to step 9 - does anybody have any advice for running the HTML app on an android phone?

MidnightMaker made it!(author)2014-09-07

The app is just an html page so will work on any phone with a web browser. How to cache the app to the phone so that you don't need to access a web server, has only been documented for iOS because that's the phone I have. There may be a similar method of adding the app page to the home screen on android. You could try pinging member lfzguud. He used android phones for the units he built.

ctmorrison made it!(author)2014-08-13

I had suggested changing the filename to index.html, but you can't do this unless you also update the appcache file the same. I changed the filename back to the original and no longer got errors in my browser.

I did have some issues getting the most recent version down to the iPhone and I believe this was due to sloppiness on my part with the manifest file revision number.

I'm now try to ascertain what all needs done for a 2 door application. Looks fairly straight forward as long as I get the HTML div's set up correctly.

MidnightMaker made it!(author)2014-08-16

Hi ctmorrison, if you need code for a dual door solution, I can email it to you. Just send me a PM with your email address.

ctmorrison made it!(author)2014-08-13

This really is a super project and I'm very appreciative of @midnightmaker for taking the time to help us all benefit from his experience.

One of the issues I struggled with is how to do this on a Mac running Mavericks. As you Mac-heads might know, Apple chose to disable the personal web server in Mavericks. Fear not, it's easy to get it up and running. Through quite a bit of web browsing, I was able to get enough info to offer some guidance on getting the iPhone files ready to be served so the app could be installed via my Mac. Rather than regurgitate, I'm going to offer a few web links that I believe will get you through this.

To get Apache up and running:

Make sure you modify the AllowOverride to "all" if it's not already that. This is required in order for the .htaccess file to be effective.

You will want to edit the .htaccess file located at /Library/WebServer/Documents/.htaccess and include the MIME file type with the following command at the top (use Nano in a terminal window in a similar fashion to what is described in the above link):

AddType text/cache-manifest .appcache

Here's my reference link for the above:

I wanted to make files available in my Sites (User/tom/Sites) folder to be served, so I also created a tom.conf file in the /etc/apaches/users folder as described in the coolest guides site. This is purely optional. In either case, you'll want to create something like the suggested "impgarage" folder in the location of choice and put the downloaded files there, renaming the html file to index.html to make getting to it a bit easier.

I believe that's it. I gave it and try and was pleased it all worked. In the spirit of instructables, I thought I'd pass along what I learned for others who may have been facing the same frustrations as I was.

ctmorrison made it!(author)2014-08-12

Nice project! I've been thinking of doing this, but would likely use GroveStreams as a place to log open/close requests and events. It can also be used to send SMS (fees may apply) or email (free) status updates. Your project has me re-inspired!

I did notice the device code seems to be a cross between imp001 and imp002 devices, based upon what pins are referenced. Any chance of cleaning this up? Don't mean this as a complaint, but thought you'd want to be aware of what I noticed. I'm assuming it's due to the original device being an imp001 and then your revision being based upon an imp002.


instructaspark made it!(author)2014-07-25

Well done project! I purchased an ElectricImp after seeing your project. However, I'm planning to add a feature which needs some additional inputs. I thought I would post it here in case it's of interest to anybody.

I want the garage door to automatically close after 20 minutes if left open. I also want to add an override switch inside the garage which would disable this feature (for when you're working in the garage/driveway). I want this auto close feature to work regardless of how the door was opened (even if opened using the real remote opener).

Just FYI. Thanks again.

bbiandov made it!(author)2014-04-17

On the 100 TXT limit issue at sendhub: Google Voice now has java API and their TXT is still unlimited and free:

MidnightMaker made it!(author)2014-04-19

Thanks for the info. I will try this out for sure

bbiandov made it!(author)2014-04-29

I hope I'm not crowding out the discussion; I noticed that the Imp has configurable internal pull ups and you do configure those in your code using configure(DIGITAL_IN_PULLUP, checkSensorStates); However you also use external hard-wired pull ups. The internal ones pull to 3.3v and the external once pull to 5v though via a 56k resistor. Wouldn't that create a strange voltage devider across the Imp's internal 3.3v regulator and your 56k resistor?

MidnightMaker made it!(author)2014-04-29

You are right - this will affect the overall resistance of the pull-up. 56K in parallel with the imps roughly 10K results in about 8k4 pullup. Not a concern at all, but certainly redundant. You have choices

1. Remove the external switch pullups and use the imp internal pullups - DIGITAL_IN_PULLUP

2. Leave the external pullups and change the pin configuration to DIGITAL_IN

3. Leave the external pullups and leave the pin configuration as DIGITAL_IN_PULLUP

I recommend removing the external pullups and using the imps internal pullups as the most cost effective solution i.e. option 1. I changed the code when I stopped using external pullups on the commercial board. Thanks for pointing this out.

menerso made it!(author)2014-04-23

You da man! Awesome device. You should sell on kickstarter.

Thanks for answering my stupid questions.... mine is up and running.


MidnightMaker made it!(author)2014-04-26

Good job Marty, glad to help... now spread the word!

About This Instructable




More by MidnightMaker:Cafe Racer Gas Tank Bluetooth ThermometerCNC Padded Jewelry Boxes
Add instructable to: