Program Arduino on IOS

Introduction: Program Arduino on IOS

Hey, guys.

If you love Arduino and your iPhone/iPad then ArduinoCode is for you!

With ArduinoCode you will be able to write sketches with code complete as you type, compile and upload them to your Arduino and communicate with your board using built-in serial monitor.

First, make sure you're having desktop with Arduino IDE installed and iPhone/iPad in the same local network (WiFi) and you're having Arduino Uno, Nano or Mega2560.

Second, download, unzip and run ArduinoCode Agent using run_(your_os) script from the archive.

Third, install ArduinoCode iOS app from App Store and launch it.

Step 1: Blink Sketch

Open Blink sketch: tap More button > Open Example > 01. Basics > Blink.

Choose board type: tap More button > Settings > Board type and select board type.

Compile the sketch: tap Compile button, wait for your ArduinoCode Agent to be discovered on your desktop and type admin as user login and admin as user password.

Skip synchronization by tapping Skip synchronization on iPad or Skip on iPhone.

Wait few seconds until the sketch is compiled.

Connect your Arduino board with USB cable to your desktop and tap Upload button.

Wait few seconds until the sketch is uploaded.

LED 13 is blinking.


Step 2: Echo Sketch

Now it's time for you to start your own sketch.

1. Tap More button > New sketch
2. Type "Echo" sketch name

3. Start editing sketch source code and type:

void setup() {

void loop() {
  while (Serial.available()) {
    int b =;

4. Note you can see errors in Analyzer panel while typing and the code is not yet valid.

5. Note you're having code complete while typing "." and "::"

You can continue typing and code complete results will be filtered to suit what you've typed (f.e. when typed Serial. and can code complete results are shown you can continue typing be and you will see code complete results will be filtered to begin(..) methods only)
6. Launch ArduinoCode Agent if you've stopped it previously and login

7. Compile and upload sketch

8. Tap Monitor to open serial monitor

9. Type hello and tap Send button.

10. Since the sketch just sends incoming bytes back you will see exactly what you've typed.


Step 3: Why ArduinoCode Is Better Than Desktop Arduino IDE?

Since ArduinoCode requires desktop Arduino IDE to be installed why should i use ArduinoCode instead? What makes ArduinoCode better than desktop Arduino IDE? The idea is the same as in famous JetBrain's AppCode and Xcode - built on the top of desktop Arduino IDE ArduinoCode provides some great features which makes coding enjoyment.

Code complete

Code complete is the major feature which makes text editor an IDE actually. ArduinoCode suggests you class methods and arguments so you don't have to remember all this stuff.

Code on-the-go
The world becomes mobile and more and more people do the things on the go - while riding to the office or to the university. Almost 700.000 people using ArduinoDroid (similar app for Android) are happy to arduino on the go. It's more comfortable to code on iPad and iPhone instead of desktop or laptop. Upcoming integration with CodeBender and upcoming built-in compiler makes compilation easy.

Wireless uploading

We're pretty tired of wires so why not upload the arduino sketches wireless over BLE right from your iPad or iPhone? Upcoming integration with Apploader iOS app allows you to forget about the wires forever.

Step 4: Hack of the Day: Run Agent on Raspberry PI

As you know ArduinoCode iOS app requires ArduinoCode Agent java app to be running on your desktop. The developers are working on built-in AVR compiler and it's expected to be released until March, 1. Meanwhile you can install ArduinoCode Agent 1.0.1 ... on your Raspberry Pi instead of your desktop!

You can edit sketch in ArduinoCode right on your iPhone/iPad and use Raspberry Pi to compile and upload sketch to your Arduino board.

Step-by-step guide

1. Install Arduino IDE on your Raspberry Pi (you can read this blog post):

sudo apt-get update
sudo apt-get install

2. Download and unzip ArduinoCode Agent zip file

3. Launch agent: ./

4. Connect your Arduino board to your Raspberry PI using USB cable if you want to upload from your Raspi.

Step 5: App Blog and News

Feel free to visit app blog to read what's next and support the project if you like it!



    • Tiny Home Contest

      Tiny Home Contest
    • Metalworking Contest

      Metalworking Contest
    • Water Contest

      Water Contest