Control Arduino Using Blynk Via Usb

33,176

77

34

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 an account on blynk app.then select buttons 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.


Share

Recommendations

  • 1 Hour Challenge

    1 Hour Challenge
  • Growing Beyond Earth Maker Contest

    Growing Beyond Earth Maker Contest
  • Pets Challenge

    Pets Challenge

34 Discussions

0
None
avairale21

1 year ago

My Blynk app shows Device is Offline how to solve error

0
None
nandhiniram

1 year ago

is same code applicable to blink 4 leds

0
None
MatiasG11

1 year ago

This was easy and helpful!

0
None
devan-s13

2 years ago

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

3 replies
0
None
saurabh47devan-s13

Reply 2 years ago

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

0
None
devan-s13saurabh47

Reply 2 years ago

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)

0
None
saurabh47devan-s13

Reply 2 years ago

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.

0
None
VuM6

2 years ago

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
1 reply
0
None
saurabh47VuM6

Reply 2 years ago

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

0
None
afz2004

2 years ago

can we use this tutorial with arduino nano?

0
None
GhadiA1

2 years ago

Thank you, it totally worked

0
None
ArthurK25

2 years ago

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

0
None
ArthurK25

2 years ago

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

0
None
maxvoltha

2 years ago

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.

4 replies
0
None
saurabh47maxvoltha

Reply 2 years ago

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

0
None
AntoninoC3saurabh47

Reply 2 years ago

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?

0
None
saurabh47AntoninoC3

Reply 2 years ago

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

0
None
AntoninoC3saurabh47

Reply 2 years ago

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

0
None
AntoninoC3

2 years ago

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

1 reply
0
None
saurabh47AntoninoC3

Reply 2 years ago

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