Public projects 2

Blinking LEDs on Arduino from iOS and Android

Project tutorial by Alex Jonsson

  • 65 respects

Lunar Lander on your phone, Jedi controls on the Arduino

Project tutorial by Alex Jonsson

  • 3 respects

Toolbox 1

Respected projects 3

IMU to You!

by Gregory O. Voronin

  • 40 respects

Create Mobile Apps for Android and iOS Connecting to the MKR

Project tutorial by Chandana Pathirage

  • 20 respects

  • Build your own app that connects to Arduino/Genuino 101 over 5 years ago

    For Android, the BLE service relies on the name of the local name of the board, which you can set in your Arduino code and upload to the board:

    (1) In Arduino101 LED example, from the Arduino SDK, line 42, defaulting to "LED". Looks like it doesn't like whitespace though, so no spacebars in the name, like "Mos Eisley"

    And then just scan for that in the app code, and you're home free (and have updated the arduinoble.js according to Andreas' instructions above.

    (2) Change in the iindex.html, line 98:
    'My101', // Advertised name I chose for local name

    BLE scan for the new name, to make sure that it has taken effect and not cached somewhere. Sometime rebooting the mobile device helps

  • Blinking LEDs on Arduino from iOS and Android almost 6 years ago

    Hi Angelo, please previous remark (which I wrote long after you wrote your highly relevant question)! best /Alex

  • Blinking LEDs on Arduino from iOS and Android almost 6 years ago

    Actually this version needs its direct LAN connection, or a public IP address (the way it was meant to be from the dawning of time?), or a port forwarding in your home router in order to work. Note that we're not setting up a web server onboard the Arduino, but rather using just a TCP socket, which I think is way more fun and leaves more on-board RAM to do cool stuff.
    I'd like very much to post a new version using an MQTT library instead, where the phone speaks with something on Bluemix or AWS, which in turn has contact with the Arduino. Yet, this means that we're either polling using Arduino as a client, or engage some kind of reverse SSH tunnel, which in turn may be tricky with so little footprint as it has. With only a few kbytes of flash that the UNO has, it's difficult even to store the SSH key :-)

Add projectSign up / Login