RemoteXY

1. Introduction

Framework to design a graphical interface to control Arduino via Anrdoid or iOS based smartphone or tablet.

2. Prerequisites

3. Getting Started

3.1 Prepare Arduino IDE

Add RemoteXY library:

  1. Open Sketch → Include Library → Manage Libraries
  2. Enter RemoteXY in the field “Filter your search …”
  3. Select RemoteXY by Evgeny Shemanuev, RemoteXY
  4. Click INSTALL

3.2 Create a User Interface

  1. Open the RemoteXY editor on the web: https://remotexy.com/editor/
  2. Configure properties:
  3. Set connection settings (board name and password)
  4. Design interface, e.g.:
  5. Download source code via Get source code button

3.3 Test Generated Source Code

  1. Check the value of the following two defines in the source code
  2. Click Upload
  3. Wait for upload to finish
  4. Install RemoteXY on your Smartphone
  5. Connect RemoteXY app to your board
  6. The RemoteXY app should show the configured user interface

3.4 Adapt Generated Source Code

The generated source code consists of three sections:

  1. RemoteXY configuration
  2. void setup() function
  3. void loop() function
//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////
...
/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////

void setup() 
{
  ...
}

void loop()
{
  ...
}

3.4.1 RemoteXY Configuration

This section contains

  1. the user interface configuration
  2. the stucture holding the user interface inputs, outputs and status variables

3.4.2 void setup()

https://www.arduino.cc/reference/de/language/structure/sketch/setup/

3.4.3. void loop()

https://www.arduino.cc/reference/de/language/structure/sketch/loop/

4. Examples

4.1 App-Only

4.2 ADC

4.3 Motor