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........
List Of Items Required:
|Arduino Uno Board|
|Arduino Ethernet Shield|
|Any WiFi Router|
|iPhone, iPad or iPod touch with iArduino App installed on it|
Working Scheme Of iArduino:
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 carried out by the arduino board.
iArduino Code Download And Setup:
First of all download iArduino Code from the link below:
iArduino Code Setup:
After you finish downloading the file open it with Arduino IDE
( i recommend you to upgrade your Arduino IDE, Check for latest IDE here Latest Arduino IDE Download).
After opening up the Arduino IDE with iArduino code here is the screenshot.
After making above changes upload the code to your Arduino Board.
Now stack your Ethernet Shield on Arduino UNO board as follows:
Now connect 1 Red LED between Pin 2 and Ground.
LED's Anode to
Pin 2 and Cathode to ground.
Now connect your Ethernet Shield to WiFi router with the help of
ethernet cable and power your Arduino board.
Now, Power on your WiFi Router.
In this way you have finished setting your arduino board completely.
Now open your iArduino app which you have downloaded in your iOS
device (If you have not downloaded the iArduino App yet then click
on the logo 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 like below:
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 Pin 2 of arduino board, click on Pin 2 Toggle 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 Toggle 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 the 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's 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 ( email@example.com )
Support me by Rating this app in App Store