Elipse Mobile Tutorial - Connecting to Arduino

Using Elipse Mobile, it is easy to build an application integrating your smartphone to an Arduino board. In this tutorial we assume you are familiar with Arduino development.

The Arduino Uno is a microcontroller board based on the ATmega328 (datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started.

Software and hardware requirements for this tutorial:

  • Arduino board with cables connected to PC
  • Computer (PC) with Elipse Mobile Server installed
  • Arduino communication software installed with Elipse library loaded
  • Elipse Mobile app installed in each smartphone (iOS, Android or Windows Phone)
  • Wifi network

In order to properly communication from Elipse Mobile Server to Arduino, the board must be connected via serial cable in the same computer as Elipse Mobile Server (make sure Arduino power LED is ON) and with drivers installed.

Download development IDE and launch Arduino (arduino.exe).

Import ElipseMobile.zip library (located in "Arduino" folder in "Program Files (x86)\Elipse Software\Elipse Mobile Server") in your Arduino code, start Elipse Mobile Server, create an app and done! (Click here to learn how to import a library to Arduino)

The following code contains a sample using Elipse Mobile in your Arduino code:


#include <ElipseMobile.h>

ElipseMobile elipse;

void setup()
{
  // how many analog and digital tags you want to use?
  //elipse.DigitalTags(14);  // 14 digital tags
  //elipse.AnalogTags(6);  //6 analog tags

  // start serial port at 9600 bps:
  Serial.begin(9600);
  while (!Serial) {
    ;  // wait for serial port to connect. Needed for Leonardo only
  }
}

void loop()  // run over and over
{
   /* 
  Put your code here 
  */
  elipse.ProcessCommands();  // Communication interface with Ellipse Mobile Server.
}

In Elipse Mobile, use pencil button to create controls and fill tag naming as follows:

  • ConnectionName:DigitalXX (where XX means Digital port number, ex: 01 for port 1, 02 for port 2, and so on);
  • ConnectionName:AnalogXX (where XX means Analog port number)

For instance, when creating a connection name "Ard", tag name for Digital Port 2 will be: Ard:Digital02

Another example, to use one LM35, as follows:

As central pin is connected to Analog port 05, the tag name must be: ConnectionName:Analog05. In the next picture, you will see how to setup a display control to show this value in Elipse Mobile, with connection name set to "Arduino":

After testing Arduino communication, install Elipse Mobile client in each mobile platform: iOS, Android or Windows Phone. Start mobile app and set Elipse Mobile Server address and port (along with username and password). Don't forget your mobile devices must be in the same network as Elipse Mobile Server. See here How to connect to Elipse Mobile Server using your phone.

If you have any question, please send us your inquiry.