Control a Motor With a Tablet and an Arduino Uno




Introduction: Control a Motor With a Tablet and an Arduino Uno

Control your inventions with Android Tablets! This tutorial goes through a demo of getting an Android tablet to send serial commands to an Arduino board and having the board turn a motor on and off.

Step 1: Things You Will Need

  1. Android (4+) tablet with a USB port.
  2. Arduino Uno Board
  3. DC 5V Stepper Motor (This demo uses Kootek® DC 5V 4-Phase 5-Wire Arduino Stepper Step Motor with ULN2003 Driver Test Module Board)
  4. 6 male-female cable wires
  5. A USB cable to connect the Arduino and Android Tablet

Step 2: Wire Up Your Arduino Uno Board to the Motor

For motors the typical signal pins are 8,9,10 and 11 so we will use those.

Arduino / Motor Driver Wiring Table

5v +
8 1N
9 2N
10 3N
11 4N

Step 3: Program the Arduino

  1. Download and install the Arduino SDK.
  2. Download the MotorControl Arduino Code available here:
  3. Connect your arduino to your computer and upload the code.
  4. (Optional) To confirm it is working, open a serial monitor window (Ctrl+Shft+M) at a 9600 baud rate. Type motoron to start the motor and motoroff to turn it off.

Step 4: Make an App for the Tablet.

1. Download the Android SDK and Eclipse (if you don't already have it) and set the tablet to debug mode.
2. Clone the Motor Control App source code from here:
3. Install on to your tablet and run.
4. Connect the tablet and the Arduino Uno Board through USB. (If the Arduino does not turn on then it is not recieving power through the usb- It will need to have its own power cable plugged in)

Be the First to Share


    • Pocket-Sized Speed Challenge

      Pocket-Sized Speed Challenge
    • Audio Challenge 2020

      Audio Challenge 2020
    • Maps Challenge

      Maps Challenge

    4 Discussions


    4 years ago

    Mohsint1 i think u can get every thing from Apps Android APK and Team Androiders site for all apps


    4 years ago

    can u plz upload the android app for this project ?


    5 years ago on Introduction


    How can I control a DC Brushless motor instead of a Stepper motor in a similar way?

    Are there any small fixes that I can do to achieve that?

    can i use

    Freeduino USB with Atmega8