Connecting an Android Phone to Arduino using Bluetooth

Services: 

Additional Software

Arduino IDEArduinoSerialBare.PDE, MyRobotLab.apk

Hardware: 
  • Smartphone running Android 2.3.3 or later
  • LED
  • 1K resistor
  • Arduino bluetooth board, or Arduino clone with bluetooth module

 

Quick Glimpse of MyRobotLab Release 15 - "MyBorg"

admin's picture

Here are a few quick  screenshots of the next release of MyRobotLab.
New features include :

ArduinoBT Service

javadoc

Arduino with Bluetooth serial port.  MyRobotLab on Android uses this to connect to Arduinos or Arduino clones.  A client .PDE will be needed for the Arduino.  ArduinoSerialBare.PDE can be used.

Examples:

[[service/ArduinoBT.py]]

SensorMonitor Service

javadoc

The SensorMonitor takes a variety of input data and displays it to a user interface.  It also has the capability of adding alerts.  An alert would be triggered if a sensor goes above or below some threshold.

Examples:

[[service/SensorMonitor.py]]

Proxy Service

javadoc

The Proxy Service allows interoperability between different services.  This would be necessary for Computers running Sun's Hotspot JVM to interact with Phones or devices running Android's the Dalvik JVM.

Examples:

[[service/Proxy.py]]

Android Service

javadoc

Master service for MyRobotLab running on Android.  It controls what sensors and resources are exposed and running (GPS, Accelerometer, Camera, Bluetooth, etc)

It is a singleton.  Which means only a single instance can be running on any Android device, however, multiple Android devices can pool Services & resources.

Examples:

[[service/Android.py]]

Legacy Video Tutorial

Video Tutorial #1 (Overview)