In this instructable i am going to tell you how to connect arduino to android using bluetooth for GUI and IOT!
In this tutorial,we will use an android phone and blynk app (one of the best GUI option for arduino) to turn on LED and control buzzer using pwm.
Here how it works,
- We will connect an arduino to android using bluetooth.
- We will setup an interface on blynk app.
- Pressing LED on app should turn LED ON.
- And adjusting vtg of buzzer on app should give equivalent output on arduino.
-Board = Arduino
-Connection = HC05/HC06
-Example = GettingStarted/BlynkBlink
16.Now copy example and paste it to the arduino IDE.
17.Now paste the "Auth Token" (mailed by blynk) in the place of "Your Auth" and remove jumpers from pin 10 and 11
from arduino and upload the code to board.
Now your arduino is all set to take instructions from app. Now lets create an interface in app.
- click pin and select the pin to which led is connected arduino, here it is digital pin 13, hence select digital and under pin D13. And Click continue.
- select whether you want this button as "push button" or "Switch". (Stick with "switch" for the sake of this tutorial)
- Name the slider say "buzzer"
- Under OUTPUT tab...
Select the pin no to which buzzer is connected to arduino, here it is digital pin D3. Click "continue".
- under SEND ON RELEASE tab...
set it to OFF
- click back.
Congrats you have successfully created a GUI for arduino. Happy IOT !! Now go ahead and try controlling motor,fan,lamp using bluetooth!!