Control an Arduino With Your Phone

83,165

782

23

About: I love making stuff, whether it's robots, music or electronics.

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

Share

    Recommendations

    • Optics Contest

      Optics Contest
    • Make it Glow Contest 2018

      Make it Glow Contest 2018
    • Plastics Contest

      Plastics Contest

    23 Discussions

    0
    None
    Treker2

    2 years ago

    Have you configured your Ethernet shield to work with blynk?

    0
    None
    SIBZ NG

    2 years ago

    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

    0
    None
    SIBZ NG

    2 years ago

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

    0
    None
    bingdo72

    2 years ago

    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.

    1 reply
    0
    None
    Treker2bingdo72

    Reply 2 years ago

    Thanks! go right ahead, just give me credit.

    0
    None
    Sandile10

    3 years ago

    how to unlock the phone pattern

    0
    None
    PeterS48

    3 years ago on Introduction

    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. :(

    1 reply
    0
    None
    saurabh47PeterS48

    Reply 3 years ago

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

    0
    None
    Treker2

    3 years ago

    Oops sorry for the bad grammer, stupid phone keyboard

    0
    None
    Treker2

    3 years ago

    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)

    0
    None
    AllanA2

    3 years ago on Introduction

    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.

    0
    None
    Treker2

    3 years ago

    Follow the instructions in the top part of the sketch.

    0
    None
    Treker2

    3 years ago

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

    0
    None
    Treker2

    3 years ago

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

    0
    None
    Dave-Smart

    3 years ago on Introduction

    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.

    0
    None
    Treker2

    3 years ago

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

    Thanks

    0
    None
    instructible01

    3 years ago

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

    0
    None
    Treker2

    3 years ago

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

    0
    None
    Treker2

    3 years ago

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

    0
    None
    Umbra55

    3 years ago on Introduction

    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?