Introduction: Garage Door Opener With Iphone (Arduino Project)

About: CEO of iwupmobile.com and Author of "How to create your first iPhone App" Book. He is a lawyer who specialises in New Technologies, although he studied Naval Engineering, what he is really passionate about is…
You can also buy iWUP 100% assembled at: iwupmobile.com

Step 1: Start Project Materials

What do I need to start?

The hardware requirements to start is:

*Note: where can I purchase the material  with all the components to build myself the system:
http://iwup.altervista.org/shop/reference_list.pdf

1.-) Arduino UNO with USB cable
2.-) Ethernet Shield Arduino
3.-) Relay (for arduino 5 V) 
4.-) Router Belkin (we recommend N150 or N300), also TPLink models( we recommend TL-WR740N). See TPLink model configutarion: http://iwup.altervista.org/shop/tplinkconfiguration.pdf
5.-) Arduino Case (optional, not necessary)

The software requirements to start is:

1.-) Arduino v0022 IDE you can download here: http://arduino.googlecode.com/files/arduino-0022.dmg
2.-) Open Your Garage project firmware, called “openyourgarage_arduino.pde”, you can download here: http://iwup.altervista.org/shop/openyourgarage_arduino.pde.zip
3.-) Open Your Garage vPRO iOS App.

Tools:

1.-) Welder 25-30 W.
2.-) Cable for soldering connectors.


Also I recommend, if you like  mobile programming and you want to start from level 0,  purchase my new book "How to create your first iPhone App, turning your idea into App easily"  that will be released next month of September 2013. You can make a preorder : http://www.how2appbook.com



Step 2: Upload the Software to Our Arduino UNO Module

The first thing we must to do is to upload the software to our Arduino UNO module.

But before that we need to install Arduino IDE or application in our computer.
For that copy the Arduino application into the Applications folder (or elsewhere on your computer). You don't have any drivers to install. Skip ahead to the next step.

Launch Arduino application with double click.

For this purpose we run the software that you downloaded in step 1. Once run a screen as seen below. In the "Tools" tab we select our board which will be the Arduino Uno.

Step 3:

Once selected the board Arduino Uno, let's load the firmware of the software that we insert in our module Arduino Uno. Select the file "openyourgarage_arduino.pde" that you downloaded in the software section and click Open.

Step 4:

Currently loaded firmware will appear on screen. Do not forget to connect the Arduino module with the USB cable to your Mac.

Select the serial device

Select the serial device of the Arduino board from the Tools > Serial Port menu. On the Mac, this should be something with /dev/tty.usbmodem

Step 5:

Connect the Arduino board to your computer using the USB cable. The green power LED (labelled PWR) should go on.

Once connected the Arduino uno board to our MAC computer press the icon as it appears in the photo below illustration "upload".

Step 6:

Once connected the Arduino uno board to our MAC computer press the icon as it appears in the photo below illustration "upload".

Step 7:

If the process has exited successfully and the firmware is installed correctly on your arduino module, a message appears at the bottom of the Arduino IDE like: “Binary Sketch size: 6492 bytes”. and "Done uploading".

Now your Arduino UNO module is now ready to operate, and will only weld the relay to operate with its iphone application.

Step 8: Welding

Now will make the step more easy and fun to our module, which is weld the relay to the arduino module so that it reacts to our iphone señals by Open Your Garage vPro App.

  As you can see you can see in the pictures, the relay has three connectors, one directly connected to port 6 of the Arduino module, one that will be connected to the positive port of the Arduino, and finally the otherone to the negative port of the Arduino. Don't worry because we will show you with pictures how it connects and solder wires.

Well right now, at the following illustrations we can see how and where they must be connected for proper operation, do not forget that THE SIGNAL WIRE will only work if you connect on port N ° 6, that in our App will correspond to the right button called Door 1.

Important note: If you need another aditional signal, you can repeat the same operation with another relay and welding to port Nº5. The i WUP system it´s ready to go up to 3 doors.

Just for two or tree doors: The Port Nº 5 of the Arduino UNO activates the central button (Door 2) of iOS App Open Your Garage, and the Port Nº 4 of the Arduino UNO the right button (Door 3).

Welding it must be so, as shown in the illustration below. Three welds can be appreciated how are connected to Pin 6, Positive and Negative of our Arduino UNO board.

Step 9: Join the Ethernet Shield With the Arduino UNO Board

Now that the relay it´s welded to the Arduino UNO board, we have to make easiest step, that it´s to join the Ethernet Shield with the Arduino UNO board, as shown in the illustration below.

  The Ethernet Shield board managament the signal between the Router (which receives our iPhone) and our  Arduino UNO board, so that it activates the relay.

Step 10:

The result should be as shown below, i.e., Arduino UNO board with its relay joins to the Ethernet Shield board.

So, now we have below the iwup receiver. Relay, Arduino UNO & Ethernet Shield board, and Belkin Router.

Step 11:

Now, we will link the entire system so that it works correctly, connecting or plugin the router (as shown in the picture) and feeding the Arduino Board with 5 V. We can optionally assembling the set in its box specially designed for this purpose.

Step 12: Starting the IWUP System

Starting the iWUP system (Router+Arduino UNO+Ethernet Shield+relay)

Well, once assembled all necessary hardware, we will put the iWUP in working state, so plug our Router Belkin to the Arduino uno board with RJ45 LAN CABLE and feed the system with a 5 V power source through usb port.


Downloading and Installing the Software IOS (iPhone and iPod)

To use the iWUP receiver (Arduino UNO + RELE + Ethernet Shield + Router), you need first of all download the application "Open Your Garage vPRO" that you can find on the app store App Store, si ya lo tiene instalado en su móvil pase al paso siguiente.

If you are an iPhone user, follow these steps:

1.-) Click the icon on your iPhone "App Store" and search for "Open Your Garage vPRO"

Step 13: Link Your Iphone With the IWUP System.

Download and install it in an accessible place in your home screen of your iphone since it will give you enough everyday use.

  Installation and configuration of the receiver iWUP

 IWUP module is very easy to implement because it is 100% set up and ready to connect to your Smartphone.

Link your iphone with the  iWUP system.


Check your Smartphone WiFi Network to match the Network Name (see the label above the router), in our example would be the belkin.3974. See the picture.

We have the WIFI network identifier (SSID Network Name), the password of your iWUP and Security Type, the latter only indicates the type of protection, for peace of mind is the most secure and much harder to copy than a rolling code . Do not miss the paper and leave it next to the router for the life of the recipient.

Step 14:

Check your Smartphone WiFi Network to match the Network Name (see the label above the router), in our example would be the belkin.3974. See the picture

Click to “join” in that network, your iphone ask you for the password to register.
The password is printed on the label of the Router in our case would be: a4666672

Enter the passwaord (that your label, not the example!) And already have established a connection between iWUP and your iphone.Remember you should always be connected to the Belkin Wifi iWUP to open/close your door. Fortunately our Smartphone once it is in the range of the wifi will connect automatically if we have already done once.

Once we are connected to the Belkin Wireless Network we can open the application "Open Your Garage" and make the first test. To do this, open the application and click the first button to the left of the App, - identified as "Door 1" -.

If all goes well, you hear a noise like "fasten seat belt on a plane," - in the App- and hear a "click" (sound of the relay) with a small red LED lights for a second from iWUP receiver. If all this happens is that the device is ready to move to the next and final phase: Connecting the relay to the motor of the garage door.

Step 15: Connecting the Relay to Motor Garage Door.

Connecting the relay to motor garage door.

  This is the phase that may have more difficulties, but in the background is very simple. If in doubt call a professional installer, he will know easily connect the relay to the wall switch that acts on the engine of your garage door or even connect to the motor directly. You can also contact us and we will send a qualified technician. Remember to turn off the power to handle your installation.

  Example of installation scheme:







The door opener wall that normally activates the garage door from the inside has two wires to activate the motor shorted by opening or closing the door. That takes the iWUP relay, that when we send the signal shorted. Connect the two wires parallel to the button as shown in the diagram above.

UP! Contest

Participated in the
UP! Contest