Control Led All Over the World Using Internet Using Arduino

by Rithikthegr8 in Circuits > Arduino

1200 Views, 9 Favorites, 0 Comments

Control Led All Over the World Using Internet Using Arduino

Arduino logo.png

Hi,

I am Rithik. We are going to make an internet controlled led using your phone.

we are going to use software like Arduino IDE and Blynk.

It is simple and if you succeeded you can control as many electronic components you want


Things We Need:


Hardware:

NodeMCU

LED

Breadboard

some jumper wires

Software:

Arduino IDE

Blynk

let's start our Project

Connection

Untitled Sketch_bb.png

Connection is:

NodeMCU====== Led

D4==========Longer End

Gnd=========Shorter End

Setting Blynk

Now We are going to Set up Blynk

Step 1

Download and Install the Blynk app

Step 2

Create an account in your email (Make sure you have access to the mail because you will receive auth token)

Step 3

Click Create New Project

Step 3

Write a name for your project and select board as NodeMCU, hen you will see a new box appearing at last, select Wifi in that. Then select create

Step 4

After you create you will see a new window shows "auth token have sent to your email" Just Click ok

Step 5

You will see a clear window, click anywhere in the window and you will see a column right side select button in that and place anywhere click on the button and you will see a new window you will see a "Button" Below the picture. Type there a name like LED and you will see "Pin" click there and select D4, then change "Push to switch" then go back that all you need

Note: For more Clear tutorial for the Blynk set up Please Download and watch the Video Below

Code NodeMCU

code.png

Install Arduino from the link below or if you are in Windows 10 just install it from Microsoft store

https://www.arduino.cc/en/Main/Software

Download library below :

https://github.com/blynkkk/blynk-library/releases

unzip the library

Go to sketch => include Zip => select the library we Downloaded.

It should show you at the bottom that "Library is added"

Start Arduino and open Preferences window.Enter http://arduino.esp8266.com/stable/package_esp8266... into Additional Board Manager

then close the window

Then go to Tools =>boards=>Boards Manager and type in the search box ESP8266 and install the board

Now go to Tools=>Boards=>and select NodeMCU and also go to connect the NodeMCU with your micro USB

Now go to Tools=>Ports and select the only option.

Now go to the link and copy and paste in Arduino IDE

https://drive.google.com/file/d/1Bk5GY_XwXeRyMv9pKI-UNPWdf2ZOWJqL/view?usp=sharing

In the code, you enter your auth token which you received from blynk in your email (paste the auth token in your auth token)

Now enter Wifi Name and Password in the place where it shows wifi name and wifi password

then You will see a right-pointing arrow in the top right corner that means upload click on that (make sure your NodeMCU is connected to your laptop)

Mostly Done!!

Final Step

Now open Blynk and you will see a rotated triangle or play button in right side corner click on that

Now click the Button your led should Glow

Now you are done The Tutorial

If you have any Questions or Issues,

Please email me on rithikthegr8@gmail.com

Thank You,

Hope you enjoyed this Tutorial