Introduction: Control Arduino Using Blynk Via Usb

This is my second instructable. In this instructable i will show how to control LED's using Blynk.

Blynk is application which provides us dashboard as well as connectivity. which you can download it from google play store (for Android).& app store (for apple).using blynk you can control led from any where in world over internet.

for video guidance

MUST WATCH VIDEO

Don't forget to like & subscribe

Step 1: Parts

1.Arduino Uno

2.android phone & computer.

3.LED's

4.latest arduino ide

Step 2: Blynk Setup

create account on blynk app.then select bottons according to your requirement and select pins on which led is connected.

email your token to your gmail account.

Step 3:

Download Blynk library.

unzip this zip file and copy all the folders and paste it to arduino ide/ libraries.

then open the sketch in arduino ide from file "examles/blynk/bordandsheilds".select on Arduino serial usb.

then edit the sketch by entering

YourAuthToken

upload the sketch .

then search blynk-ser.bat file in

"Blynk-library\blynk-library\scripts"

edit the line no. 6 enter your serial com no.

(In my case where COM7 is port with my Arduino)

then run the file.

DAM YOU ARE SUCCEFULLY CONNECTTED to blynk connect leds to arduino and

control leds any where in world.


Comments

author
pkburnwal made it! (author)2017-01-16

Does PC and Mobile should be connected to same network ???

I am seeing below error in my cmd and not able to understand why ?

Error_Blynk.png
author
pkburnwal (author)pkburnwal2017-01-16

I could figure out problem myself .. I was connected to my office WiFi which was not allowing to connect to Blynk-Cloud ... However, thank you for the nice tutorial ..

author
devan-s13 (author)2016-12-11

Hi, I am using this with a Mac. When I tried to upload the sketch "Arduino_Serial_USB", it gives the error message saying that it doesn't recognize the file/directory "BlynkSimpleStream.h". I understand the tutorial is designed for Windows but do you know how I can fix this error message?

Thank You :)

author

Use latest arduino ide 1.6.12
I am little bit busy due to exams.
If you not able to resolve the problem then visit & post your problem here
http://community.blynk.cc

author

Thanks it worked one more question if you have the time. My sketch is verified but won't upload to my Arduino. Is this just due to the fact that it is a big file? Should I expect to wait the whole night? Or is there something else wrong? It just constantly says "Uploading"

Thanks Again (I know you have exams)

author

Arduino just take 3-4 seconds to upload a sketch.if sketch compiles then it definitely uploadable.
are you able to upload simple blinking LED sketch.??
If not then Check
1)have you select right COM port.
2) driver's installed properly or not.
3)if both not work then your arduino is damaged.

author
VuM6 (author)2016-11-05

Hi I tried to connect it via USB on my mac but it does not work :(

This is what it says in the Terminal. ANd on the app it says Arduino Mega is offline. Can someone help please? Thanks lot!

Screen Shot 2016-11-06 at 1.27.22 PM.png
author
Saurabh Gangamwar47 (author)VuM62016-11-05

Sorry ,i haven't mac.this guide is for Windows.
have to you closed Arduino ide serial monitor when terminal is open??
Have to entered right serial port no. in bat file ??

author
afz2004 (author)2016-10-20

can we use this tutorial with arduino nano?

author
GhadiA1 (author)2016-09-12

Thank you, it totally worked

author
ArthurK25 (author)2016-08-05

The system cannot find the file specified.

Connecting device at COM13 to blynk-cloud.com:8442...

'com2tcp' is not recognized as an internal or external command,

operable program or batch file.

Reconnecting in 3s...

author
ArthurK25 (author)2016-08-05

The system cannot find the file specified.

Connecting device at COM13 to blynk-cloud.com:8442...

'com2tcp' is not recognized as an internal or external command,

operable program or batch file.

Reconnecting in 3s...

author
maxvoltha (author)2016-07-29

hello.. i have a little problem with the blynk-ser file, i cannot edit the 6 line in order to write my com no. port. and in my blynk library a dont find a file named blynk-ser.bat, i just find this file: blynk-ser.

author

Try to edit using notepad ++ or reinstall blynk library.
For detail guidance must watch video.

author

I tried, but it says "access denied, 0 file copied --- command com2tcp unknown or not internal" when I run the modified batch file.. should I modify the server port or other parameters?

author

You don't require to edit other parameters.
Try to run batfile as run administrator.
Post some screenshots.
Post your problem on blynk community.

author

running the prompt as administrator, and writing the command as shown in the examples, it is working correctly.. thank you so much! :)

n.b. if I run the file as administrator (not first the prompt as I finally do ), it wasn't working.. I need to run first the prompt itself as administrator, then write the commands

author
AntoninoC3 (author)2016-08-03

Hello.. i have a problem when i try to modify the batch file.. it says "access denied", so I can't modify it.. and if i try to write the right port in the prompt window, I obtain that the window says "access denied, 0 files copied".

author

Try to edit using notepad ++.edit bat file without running it.

author
MuddassirG1 (author)2016-06-25

Thanks for this nice tutorial..fully working...

author

Welcome!,
If you have any idea to improve its features fill free to suggest.

author
ЕвгенийН4 (author)2016-03-17

Please help.

Connecting device at 3 to cloud.blynk.cc:8442...

OpenC0C(): CreateFile("\\.\3") ERROR No such

Reconnecting in 3s...

author

I think u hadn't edited
line no. 6 Of
blynk-ser.bat file which is located at
"Blynk-library\blynk-library\scripts" with your com no.

author
МаратД (author)2015-12-19

Oh no, "COM10 not found, or may be busy"

author

edit line no. 6 Of
blynk-ser.bat file which is located at
"Blynk-library\blynk-library\scripts" with your com no.

author
90nurayu. (author)2015-10-21

whenn i run back the sketch after the step 3, the blynk apps shows'your arduino not in network" how it is to be solve?

author

After uploading the sketch run the blynk-ser.bat file you had edited with your serial COM.then open the blynk app and press on play button.
Or check your internet connection on pc and phone.

author

thanks i made it successfully!!:D

author
itsmeclaudz (author)2015-10-08

This is my result. OpenC0C(): CreateFile("\\.\COM1") Error NO such file or directory


T_T

author

If you not edited blynk-ser.bat with serial com on which your Arduino connected.then this error occurs .or
Remove usb plug and then plug it again and then run bat file.

author

if you not edited blynk_ser.bat file then this error occurs .remove usb plug and then run bat file.

author
jcommisso (author)2015-10-02

Thanks for posting this! I'm going to try it!

author
Saurabh Gangamwar47 (author)2015-10-02

If you have any doubts please ask without any hesitation.