HOW TO CREATE ANDROID APP TO
CONTROL ARDUINO PROJECTS
In this tutorial i use:
-Arduino board
-HC06 Bluetooth Receiver
-LED
-Jumper cables
In this video i use Google Chrome browser to create the APK.
Before you start creating an application for android you need to go this website
http://appinventor.mit.edu/explore/
Click on the "Create apps!" at top right.
Now your android connected to your Arduino board,
You can see the "Connected To Arduino" on your screen
-Arduino board
-HC06 Bluetooth Receiver
-LED
-Jumper cables
In this video i use Google Chrome browser to create the APK.
Before you start creating an application for android you need to go this website
http://appinventor.mit.edu/explore/
Click on the "Create apps!" at top right.
Start Create App Now!
and log in with your gmail to create an account.
Then watch this video for the next step.
Then watch this video for the next step.
i recommend watch this video on youtube for better quality:
After you finished create and install the apps on your android, wire up HC06, LED, and Arduino like this.
Dont forget to connect 5V and Gnd pin from Arduino to breadboard!
Then copy and paste this Arduino Code and upload to your Arduino board!
Or you can directly download the code here <<<<<<<<<<<<<<<<Download Code
Or you can directly download the code here <<<<<<<<<<<<<<<<Download Code
Its very simple code. Modify the code if you want!
Remember! Disconnect jumper cables at TX and RX pin on Arduino board when you upload the code!
Now you ready test the code and apps together!
First turn on your device's bluetooth.Pair your device's bluetooth connection with HC06. If it request the pin number, the pin is 1234. Your need to do this for the first you connect your android and HC06
Second, open the apps that you have installed on your android, and
click on "Select Bluetooth Client"
click on "Select Bluetooth Client"
Now your android connected to your Arduino board,
You can see the "Connected To Arduino" on your screen
How your app? running smooth?
You can try this apps that i've make to control the blender. You can download the APK and Arduino code. Go to the bottom of this page and you can see "Download Link". Its work perfectly on my ASUS T00K.
You can try this apps that i've make to control the blender. You can download the APK and Arduino code. Go to the bottom of this page and you can see "Download Link". Its work perfectly on my ASUS T00K.
HIGH VOLTAGE!
To handle high voltage/current you need a RELAY to seperate them. Arduino just can handle 5v voltage.
With relay you can separate high current and high voltage. This can avoid your Arduino from toasted!
You need a relay 5V 220V.
Its stand for 5V input, 220V output.
The coil of relay need 5vdc to switch from normally close state(NC) to normally open(NO) state.
this type of relay that you can use:
In my case, i use this relay. It can triggered at 5vdc but need 9vdc power supply.
i bought this at Kytron, Seksyen15, Shah Alam, Malaysia.
Your circuit become easier if youre using relay module.
http://www.lelong.com.my/srd-5v-dc-5-pin-relay-mcs123-167817400-2016-09-Sale-P.htm
To handle high voltage/current you need a RELAY to seperate them. Arduino just can handle 5v voltage.
With relay you can separate high current and high voltage. This can avoid your Arduino from toasted!
You need a relay 5V 220V.
Its stand for 5V input, 220V output.
The coil of relay need 5vdc to switch from normally close state(NC) to normally open(NO) state.
this type of relay that you can use:
In my case, i use this relay. It can triggered at 5vdc but need 9vdc power supply.
i bought this at Kytron, Seksyen15, Shah Alam, Malaysia.
Your circuit become easier if youre using relay module.
http://www.lelong.com.my/srd-5v-dc-5-pin-relay-mcs123-167817400-2016-09-Sale-P.htm
Here my another simple projects that i've use MIT Inventor and HC06 Bluetooth Receiver.
I will make a tutorial for this project later :D
Another project. Tutorial already posted on my blog
I will make a tutorial for this project later :D
Another project. Tutorial already posted on my blog
https://www.youtube.com/watch?v=Bf0AWFzodZU
Tutorial:
http://ohhmyproject.blogspot.my/2015/09/hack-rc-car-and-control-using-your.html
Tutorial:
http://ohhmyproject.blogspot.my/2015/09/hack-rc-car-and-control-using-your.html
Download Link
Arduino Code:
-LED Controller
-LED Controller
-Blender Controller
https://drive.google.com/open?id=0B3c_VPBO9Qq3OWZJZ2E1S3kxWWs
Android APK:
-LED Controller
https://drive.google.com/open?id=0B3c_VPBO9Qq3VHQwejBWZDB3VGs
-Blender Controller
https://drive.google.com/open?id=0B3c_VPBO9Qq3ZE5qTWxoUUpVa00
https://drive.google.com/open?id=0B3c_VPBO9Qq3OWZJZ2E1S3kxWWs
Android APK:
-LED Controller
https://drive.google.com/open?id=0B3c_VPBO9Qq3VHQwejBWZDB3VGs
-Blender Controller
https://drive.google.com/open?id=0B3c_VPBO9Qq3ZE5qTWxoUUpVa00
Thank you! :)
ReplyDelete