Androino! Control an Arduino From Your Android Device Using a Cheap Bluetooth Module.





Introduction: Androino! Control an Arduino From Your Android Device Using a Cheap Bluetooth Module.

This instructable shows you how to read sensor values from an Arduino with your Android device using a cheap bluetooth serial device you can order for under $10 on dealextreme or ebay.
This example uses Python as the scripting language for the Android scripting layer (SL4A) but you can choose from other languages like Perl, Lua, JavaScript etc. see:

Step 1: You Need:

1. JY-MCU bluetooth wireless serial port module.
or search for "bluetooth module" on ebay
I've bought mine for $8.20 on dealextreme.
2. An Android device with bluetooth.
3. An Arduino board.
4. Some sensor or potentiometer to read values from.

Step 2: Setup the Arduino Hardware

The BT module comes preprogrammed with the following settings:
Device name: linvor
Baud rate: 9600
PIN: 1234

You can leave the settings as they are or change them with a serial adapter.
For more info see:

Connect the bluetooth module to your Arduino.
BT module Rx-> Arduino Tx
BT module Tx-> Arduino Rx
VCC to 5v

Connect a sensor or potentiometer to analog pin A0.

Upload this sketch to your Arduino:
The onboard LED at D13 is toggled everytime a sensor value is requested from the Arduino.

Step 3: Setup the Android Device

Install Android Scripting Layer and Python for Android:
(This instructable is based on SL4A r4)

Copy the code from
and name it androino.html
Copy the code from
and name it
Change the BT_DEVICE_ID in to the address of your BT module.
If set to None, Android will ask you at program start which bluetooth device to use.
Upload both files to the /sdcard/sl4a/scripts/ directory on your phone.

Step 4: Have Fun

Turn on Bluetooth on your Android and pair the device using the pin 1234.
Start SL4A on your Android device.
Select and then the gear symbol to start the application.
The SMD LED on your BT module should stop blinking at this point.
A WebView is started and when you click on the button, the sensor value gets read and displayed.

It's really that easy :)

SL4E API reference:

I've added this script which simply dumps anything that is send via serial out from your arduino.
Select and then the console icon in SL4A to start.



    • Science of Cooking

      Science of Cooking
    • Trash to Treasure

      Trash to Treasure
    • Paper Contest 2018

      Paper Contest 2018

    We have a be nice policy.
    Please be positive and constructive.




    find the code given in below link and troubleshooting techniques and circuit diagram

    The bluetooth module does not work with arduino micros's RX and TX pins, but I does work with software serial. Any advice on that, anyone? I can't use software serial as I need the PWM pins for other stuff...

    Hello Friend, I am doing a mechanical arm, and I wonder how I control the servos via Bluetooth? Has a model Tutorial?
    thank you

    can I test this application with hyper terminal in windows ?
    i make a connection between mobile bluetooth and my labtop
    and select the com port of the Bluetooth in hyper terminal

    but when i open the mobile application to send any thing from the terminal as a test before connecting the arduino
    The application cannot start
    it gives me w white screen with no thing else

    I installed the sl4a r4 and python interpreter

    but the problem still exists ?

    Hi metanurb,

    I have the exact bluetooth module that you have but I can't send anything to this module. Below is simple echo code that I use. Have I missed anything?

    Thank you.

    Arduino mega 2560

    const int LED_PIN = 13;
    boolean toggle = true;

    void setup() {

    void loop() {
    if (Serial1.available()) {
    digitalWrite(LED_PIN, toggle);
    toggle = !toggle;

    With ArduinoDroid ( you can develop for Arduino on Android:

    HI ..
    please tell the program for arduino to transfer accelerometer sensor value serially using a bluetooth ttl interface

    My bluetooth module is discovered by Nokia feature phone but Samsung Galaxy Ace can't find it. FYI, Ace is running on Android GingerBread 2.3.6. Is there any problem with class parameter of Bluetooth module?

    My module's documentation goes here :

    I think this will be helpful to lot of other undocumented module owners cause I have similar module.

    Is there any idea how to make it discovered by Android?