This instructable will show you how to control your computer's keyboard and mouse with an Android app via bluetooth to an Arduino.

Ever wanted to control your computer's mouse/keyboard functionality without having to actually sit in front of it? I do all the time. For instance, I often hook my laptop up to the TV in my living room to watch a show on Netflix. Well, roughly 20 minutes later, when the show is finished I have to get up, walk over to the laptop, click next episode, let it buffer for several seconds, click full screen mode, then walk back to the couch. This becomes a hassle when watching multiple episodes back-to-back... for several hours... burning through an entire season in one sitting. Okay, so maybe I'm just lazy and this doesn't exactly apply to you but this has been bugging me for awhile and that's what us makers do, we engineer solutions to our problems. (Regardless of how oddly specific those problems may be.)

I'm sure many of you will find other uses for this project, like a custom video game controller with buttons that send specific keystrokes from your phone... Or perhaps something more practical. Either way, here's how you build it....

Before we start, familiarize yourself with the diagram describing the flow of communication. (I recommend clicking the "i" in the upper-left corner, then clicking the link to the original file, in order to view full size)

Step 1: Materials | Hardware and Software

Now that you understand how it works, let's get your materials ready....

- 1 x Arduino board (I'm using an Arduino UNO: http://arduino.cc/en/Main/arduinoBoardUno)
- 1 x Android device (I'm using a Droid 2)
- 1 x Bluetooth stick (I'm using BlueSMiRF Gold: http://www.sparkfun.com/products/10268)
- 2 x USB cable (A to B to program Arduino; A to Micro-B to program Droid 2)
- 1 x computer

- Arduino IDE (to program your Arduino board: http://arduino.cc/en/Main/Software)
- Eclipse IDE (to write the Android app: http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/heliossr2)
- Android SDK/ADT Plug-in for Eclipse (http://developer.android.com/sdk/index.html)
- Processing IDE (to control your computer's keyboard/mouse at runtime: http://processing.org/download/)
- Amarino and MeetAndroid Arduino library (to assist bluetooth communcation from Android to Arduino: http://www.amarino-toolkit.net/index.php/docs.html)
<p>what kind of wire do you use to connect BlueSmirf to Arduino Uno? (complete beginner here ) Many thanks!</p>
<p>can u give me the link for .apk file for your app please</p>
<p>If allowed possible code transmitter via Bluetooth</p>
Very good job, but I think that this could be done without the Arduino.

About This Instructable


72 favorites


More by plowdk51: Control Keyboard & Mouse w/ Android app via Arduino
Add instructable to: