Introduction: Control Arduino Using Blynk Via Usb

Picture of 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


Don't forget to like & subscribe

Step 1: Parts

1.Arduino Uno phone & computer.


4.latest arduino ide

Step 2: Blynk Setup

Picture of 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:

Picture of

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


upload the sketch .

then search blynk-ser.bat file in


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.


avairale21 (author)2017-09-30

My Blynk app shows Device is Offline how to solve error

nandhiniram (author)2017-09-18

is same code applicable to blink 4 leds

MatiasG11 (author)2017-09-01

This was easy and helpful!

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 ?

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

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 :)

saurabh47 (author)devan-s132016-12-12

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

devan-s13 (author)saurabh472016-12-12

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)

saurabh47 (author)devan-s132016-12-12

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.

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!

saurabh47 (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 ??

afz2004 (author)2016-10-20

can we use this tutorial with arduino nano?

GhadiA1 (author)2016-09-12

Thank you, it totally worked

ArthurK25 (author)2016-08-05

The system cannot find the file specified.

Connecting device at COM13 to

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

operable program or batch file.

Reconnecting in 3s...

ArthurK25 (author)2016-08-05

The system cannot find the file specified.

Connecting device at COM13 to

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

operable program or batch file.

Reconnecting in 3s...

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.

saurabh47 (author)maxvoltha2016-07-30

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

AntoninoC3 (author)saurabh472016-08-04

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?

saurabh47 (author)AntoninoC32016-08-04

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

AntoninoC3 (author)saurabh472016-08-04

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

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".

saurabh47 (author)AntoninoC32016-08-03

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

MuddassirG1 (author)2016-06-25

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

saurabh47 (author)MuddassirG12016-06-25

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

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

Please help.

Connecting device at 3 to

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

Reconnecting in 3s...

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)2015-12-19

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

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

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

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?

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

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.

90nurayu. (author)saurabh472015-10-23

thanks i made it successfully!!:D

itsmeclaudz (author)2015-10-08

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


saurabh47 (author)itsmeclaudz2015-10-08

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.

saurabh47 (author)itsmeclaudz2015-10-08

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

joseph07 (author)2015-10-02

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

saurabh47 (author)2015-10-02

If you have any doubts please ask without any hesitation.

About This Instructable



More by saurabh47:Humanoid Robot Humanoid Robot Make a Python Powered ChatBot #Raspberry Pi
Add instructable to: