Introduction: Arduino Bluetooth for Android (One for All)

Picture of Arduino Bluetooth for Android (One for All)

INTRODUCTION

Did you know? with the use of bluetooth module and arduino you can turn your android phone or any gadgets with built in bluetooth into a useful module for your project. Like turning your android phone into a Serial monitor, LCD Screen, and much more.

With the help of this instructable you will be able to turn your devices into a bluetooth module for your bluetooth projects :D

In the end of this project you will be able to make your own android app. :D

Step 1: Gathering Parts

Here are the parts you will need in this instructable:

Bluetooth module: HC-05 OR HC-06

Arduino any flavor:

Is this all the parts!? yes it is :D but in order to turn your android device you will need a sensor or something that will give data to our arduino and then send it via bluetooth. It depends on you in which sensor you will use. for the sake of this project i am going to use my rotary angle sensor.

Did you get all the parts?
if yes then lets go to the next step :D

Step 2: Creating Your First Android App

There are a lot of android programming IDE out there but since this is your first time making an app :D we will use a simple one.

THUNKABLE - The best open source programming IDE for us haha :D

The first thing you will need to do is to sign up for account. i will not going to show you how. it's easy and i know you can do it :D

After you create your account then sign in.

Android APK File - If you dont want to crete your own android app you can use mine.

1. Follow this video

Export your app as shown in the video then copy the android apk file in your android phone and install it. and were almost done :D


Are you done watching the video? and have you finished your first android app if yes then let's go to the next step :D

Step 3: Creating and Uploading Your Arduino Sketch

Open your Arduino IDE then type This code. Then Upload it.

IMPORTANT: DO NOT CONNECT ALL THE COMPONENTS YET.

Arduino INO File - You can download the sketch here

Step 4: Connecting All the Components Together

After you upload the ketch in your arduino connect all the components like this:

Arduino RX <--- Bluetooth TX

Arduino TX <--- Bluetooth RX

Arduino GND <--- Bluetooth GND

Arduino VCC <--- Bluetooth VCC


Arduino GND <--- SENSOR GND

Arduino VCC <--- SENSOR VCC

Arduino A5 <--- SENSOR SIG


And now we are all done :D lets go to the next step.

Step 5: Running the Bluetooth App

Install the apk file that you exported from thunkable.com and open it

go to settings and pair your arduino bluetooth and go back to your app and it will work now. thats all thank you :D

Please vote for my instructable for more.

I cannot show you a demo because my phone is currently in other hands. thank you

Comments

Lokesh Mamidi (author)2017-09-14

please upload the working video

NeilM77 (author)2017-09-07

Isn't the way you've wired it have a full 5v going to the bluetooth module's Tx instead of 3.3v? The HC-05 and HC-06 have 3.3v written on the TXD pin.

The instructable linked below uses 2 resistors to drop the voltage. It says "I have found that a voltage divider using 3k3 and 6k8 resistors works up to 115200 serial baud rates."

https://www.instructables.com/id/Arduino-Smartphone-ComsSerial-Monitor-Via-Bluetoot/

Hey Dave (author)NeilM772017-09-07

It's okay. :D you can power Bluetooth module HC-06 from 3.3v - 6v it means 5v is okay. i try powering the bluetooth module with 3.3v and 5v but the result is the same so dont worry :D.

About This Instructable

1,967views

45favorites

License:

Bio: IT'S NOT ABOUT THE FINISH LINE. IT'S ABOUT ENJOYING THE PROCESS OF GETTING THERE.
Add instructable to: