This tutorial will guide you with how to make whole setup to control your Arduino Board with iArduino application.For understanding, we will use Led and we will switch it On and Off with the help of iArduino app.From this you will get the idea about how to setup iArduino to control your Arduino board Wirelessly. Whole setup will take 4-5 min.
So let's get started........
iArduino App Information:
iArduino Application is developed for controlling your loving Arduino Board Wirelessly. Since iArduino App gives you an ability to control output on the confined Arduino Pin, you can implement them for controlling anything you want according to your need. Some PWM capable pins are also provided with slider so that you can control anything which requires PWM.It is having a message window in it which provide you with the signal being sent by iArduinoHD app and receives the feedback message from Arduino Board .
iArduino App requires extra minimal hardware to work, without that it won't do anything. Full details on how to make setup are given on the website.If you require any kind of help then you can mail me at : email@example.com
It can be downloaded from the App Store Just follow the link below:
Step 1: List of Items Required for the Setup :
Here is the list of items Required:
1. Arduino Uno Board
2. Arduino Ethernet Shield
3. Any WiFi Router( in my case i am using i-Ball Router)
4. 8 Blue or any coloured Led's
5. Ethernet Cable
6. Finally an iPhone, iPad or iPod(Touch) with iArduino App Installed on it. If not Downloaded then follow the link: https://www.itunes.apple.com/us/app/iarduino/id578582005?ls=1&mt=8
Step 2: How the IArduino App Works
Here are the steps given in which iArduino App carry out the communication with the Arduino Board :
1. Communication between iArduino and Arduino Board is carried out using UDP packets.And in this WiFi router serves as the intermediate level in the communication.
2.With the help of Arduino Ethernet Shield Arduino Board connects to the network.
3.The UDP packets which are sent by the iArduino App are captured and respective action is carries out by the Arduino board.
Step 3: Download Arduino Code and Setup Arduino Board :
First of download iArduino Code from the link below
Click Here to Download iArduino Code:
( i recommend you to upgrade your Arduino IDE, Check for latest IDE here http://arduino.cc/en/Main/Software).
After opening up the Arduino IDE with iArduino code Just changes which are shown in the attached screen shot.
Just change the IP address which you want to assign to your board and Replace MAC address by your Ethernet Shields
Generally MAC address will be given on back of the ethernet shield.
After making above changes upload the code to your Arduino Board.
Now stack your Ethernet Shield on Arduino UNO board as in the pic attached.
Connect Leds from Pin 2 To Pin 9.
Now connect your Ethernet Shield to WiFi router with the help of
ethernet cable and power your Arduino board.
Power on your WiFi Router.
You have finished setting your arduino board completely.
Step 4: Setup IArduino App on IPhone, IPad or IPod for Use :
device (If you have not downloaded the iArduino App yet then click
on the link to download it from iTunes App Store or search for iArduino
from your iOS device in App Store).
After opening your app it will look as shown in pic attached:
In IP address field, put IP address of your Ethernet Shield. And in Port No. Field enter the
localport number which we have mentioned in arduino code. Make sure that WiFi connection for your iOS device is on and your device is connected to the same WiFi router Network to which Arduino Board is connected.
If everything checked click Connect Button in the iArduino App. Since we have connected the Led to Pin2 of arduino board, click on Pin 2 slide button in app so that the iArduino sends UDP signal to arduino board and set the Pin 2 to HIGH and Led turns ON. Now slide it to OFF position so that Led turns OFF. Similarly check it with other arduino pins also.
iArduino App also provide you to change PWM output on selected pin. With same setup connect Led to Pin 3 and slowly move slider so that that Brightness of Led will increase with your slider position and again slide it back so that Brightness decreases. In this way you can use iArduino app with your current and new Project to control them wirelessly.
Note: If you are not able to control your board even after making above setup, try either resetting arduino or shut it Off and On.And even if the problem still persist you can post your comments or mail me at ( firstname.lastname@example.org)
Here is the Video Explaining All Steps and Working How to Control Arduino Wirelessly:
Participated in the
Instructables Design Competition