Introduction: Control an Arduino With Your Phone

Hello everyone! In this instructible I will show you how to control and read sensors with arduino and blynk. Blynk is an app that allows full control over arduino, rasberry pi and spark core. With your smartphone! And it is as easy as uploading some code.

Step 1: Materials

You will need:

1 arduino (any model)

1 usb cable/ethernet shield

A computer and smartphone

Step 2: Download the App

Go to the app store / google play store on your phone and download blynk, then create a blynk acount.

Step 3: Configure the App

Once you have the app installed. Take some time to plan out your control layout. Think of your goal and arrange the controls accordingly. In my case it was a bbq thermometer so I added two analog gauges.

Once you have your layout setup, configure the ports.

IMPORTANT: make note of the api key shown in the project settings in the blynk app.

Step 4: Upload the Code

Install the blynk library into your arduino IDE like any other arduino library:

http://www.blynk.cc/getting-started/

And open the sketch that matches your hardware, in my case it was usb serial.

OR:

You can also just click the codebender link amd upload it directly from your browser!

IMPORTANT: paste that api key from earlier into the code where it says "api key"

Step 5: See the Action!

Open your app and plug in a sensor/led to your arduino and watch the magic of blynk!

Note: if you are not using an ethernet shield then you have to keep the usb cable plugged into the computer

Comments

author
Treker2 made it!(author)2016-05-02

Have you configured your Ethernet shield to work with blynk?

author
SIBZ+NG made it!(author)2016-05-02

Hello dear Blynkers !

I've got a problem that's when i want to start cntrolling via Blynk they said your Arduino UNO is not in network i have Arduino UNO REV3 , Arduiono Ethernet Shield !
please i need your supports to solve the problem !
Kind regards

author
SIBZ+NG made it!(author)2016-05-02

i got this " your arduino UNO is not in network". how can i solve it?

author
bingdo72 made it!(author)2016-01-14

This is good.

I have been searching some application references in which WIZnet solution is applied, and found your project using Ethernet Shield.

In the Ethernet Shield WIZnet's W5100 chip is embedded.

If you are O.K. I'd like to post this article in WIZnet Museum (http://wiznetmuseum.com) for others.

author
Treker2 made it!(author)2016-01-15

Thanks! go right ahead, just give me credit.

author
Sandile10 made it!(author)2015-10-05

how to unlock the phone pattern

author
PeterS48 made it!(author)2015-09-06

Tried everything and it seems to be not working with USB connection. I used the Arduino_Serial_USB sketch and it compiled. Followed the manual and installed a button widget. Copied the authorisation code and compiled and pressed play on my phone after placing the LED connected to PIN7 on the board and set button to control pin7 on phone. App says Arduino Uno offline. :(

author
Saurabh+Gangamwar47 made it!(author)2015-10-02

please read this
https://m.instructables.com/id/Control-arduino-using-Blynk-over-usb/

author
Treker2 made it!(author)2015-09-07

Oops sorry for the bad grammer, stupid phone keyboard

author
Treker2 made it!(author)2015-09-07

Yeah I wouldn't use this for final products yet either but if your just tinkering and want an easy way to do stuff, another bonus is that it is all hosted on their servers for free! That was you can use it anywhere in the world where you have internet. And believe me, this is much different than a Microsoft product (and it's free)

author
AllanA2 made it!(author)2015-09-07

Researching this BLYNK software, they seem to still be fairly new and with that comes a fair number of bugs. Not sure if I want to rely on a 'not finalized' product.

Anyone with any Microsoft experience knows you never buy/get version 1 as it is full of headaches.

author
Treker2 made it!(author)2015-09-06

Follow the instructions in the top part of the sketch.

author
Treker2 made it!(author)2015-09-06

Did you run the blynk-ser.bat located in
/documents/libraries/blynklibrarymaster/scripts/

author
Treker2 made it!(author)2015-09-06

Yes, thats great if you have an android phone but your out of luck if you use apple products

author
Dave-Smart made it!(author)2015-09-06

DroidScript is really good for making Android Apps to control embedded devices like Arduino too. It can do USB serial, Bluetooth serial, TCP, WebSockets, XMLHttpRequest etc.

author
Treker2 made it!(author)2015-09-06

If you guys like my instructible, please vote for me in the RePhone contest.

Thanks

author
instructible01 made it!(author)2015-09-06

Thanks for the info! Blynk looks pretty cool. less complex than the MIT build your own app and others I've seen.

author
Treker2 made it!(author)2015-09-06

The bonus of this is that it will work with any arduino, like the mega or micro

author
Treker2 made it!(author)2015-09-06

The arduino connects to the internet by using either a wifi/ethernet shield or by interfacing with the computers wifi via serial usb

author
Umbra55 made it!(author)2015-09-06

I don’t get
it. How can you control an arduino Uno from your smartphone without Wifi
extension board? Any reason why you didn’t use the cheaper Paticle Photon
instead of this Arduino Uno?

author
instructible01 made it!(author)2015-09-06

Ethernet connects to wireless router, extra switch, hub, or etc. via cable then wifi to phone. I imagine that any iot platform will work if compatible with any of the platforms listed. You could use a wifi module instead of Ethernet shield. The particles are $20 to $30. An arduino clone full size, pro micro and pro mini are $2 to $5 on ebay and aliexpress depending on vendor an quantity.

author
DerpS made it!(author)2015-09-06

The Arduino Uno (or most other cheaper Arduino boards) do not have any form of wireless networking on the board, so a Wifi, Ethernet, or maybe Bluetooth shield is a must. The board you mentioned does infact have Wifi onboard, so it would be a great choice for a connected project like this.

author
JohnN3 made it!(author)2015-09-06

@Umbra55, Look at the end of the intractable.........

"Note: if you are not using an ethernet shield then you have to keep the usb cable plugged into the computer"

About This Instructable

78,321views

779favorites

License:

Bio: I love making stuff, whether it's robots, music or electronics.
More by Treker2:The Overwhelmingly Awesome Retro EmulatorSmartphone Controlled RobotArduino EEG
Add instructable to: