Saturday, May 15, 2021

IoT Controlled LED using Blynk and ESP8266 (NodeMCU)

                                        Getting to Know NodeMCU Board


It is an Open-source, Interactive, Programmable, Low cost, Simple, Smart, WI-FI-enabled board that may assist you to create IoT projects with ultra-fast prototyping.

The Development Kit supported ESP8266, integrates GPIO, PWM, IIC, 1-Wire, and ADC beat one board. Power your development within the fastest way with NodeMCU Firmware! . 

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


                                                Getting to Know Blynk

blynk_server_working

Blynk may be a Platform with iOS and Android apps to regulate Arduino, Raspberry Pi and therefore the likes over the web .

Blynk was designed for the web of Things. It can control hardware remotely, it can display sensor data, it can store data, vizualize it and do many other cool things.

It's a digital dashboard where you'll build a graphic interface for your project by simply dragging and dropping widgets. It's really simple to line everything up and you will start tinkering in but 5 mins. Blynk isn't tied to some specific board or shield. Instead, it's supporting hardware of your choice. Whether your Arduino or Raspberry Pi is linked to the web over Wi-Fi, Ethernet or this new ESP8266 chip, Blynk will get you online and prepared for the web Of Your Things.

How does it work?

There are three major components within the platform:

Blynk App- allows to you create amazing interfaces for your projects using various widgets we offer.

Blynk Server - liable for all the communications between the smartphone and hardware. you'll use our Blynk Cloud or run your private Blynk server locally. It’s open-source, could easily handle thousands of devices, and may even be launched on a Raspberry Pi.

Blynk Libraries - for all the favored hardware platforms - enable communication with the server and process all the incoming and outcoming commands.

                                    Setting Up Blynk With Arduino IDE

Setting_Up_Blynk_With_Arduino_IDE
                                          
This blynk app has set of library files which need to be included within the Arduino IDE environment before the project is executed
1. Follow the link to put in libraries

2. Once the Zip file is downloaded,extract it and individually copy all the folder to your libraries folder of your arduino

3. Once done just open Arduino IDE and attend Sketch-> Include libraries and you'd see blynk within the menu

4. If you see that then libraries are included successfully
*Now it's time to incorporate the board configuration within the Arduino IDE

Board configuration?

Lets start. within the Arduino IDE attend File->Preferences
Now Copy the below link and paste it within the Additional Boards Manager Url text box
Restart the Arduino IDE then .
Now after restarting the Arduino IDE , attend Tools->Boards and choose Node MCU board , mine was version 0.9 

                                             Setting Up Blynk

1. First install the Blynk app from google play store then check-in 

2. Click on New Project and you'll get a screen

*Enter the name of your project, I even have given it as iot led

*Then Select the Board as NODEMCU and then you'll recieve the authentication token no to your email id.

*And then Finally click on to the create button

3. Now you'll get your dashboard screen. Just click on the button "+" on the upper corner to feature widgets for your project.

4. During this project we add a button then configure its settings as Digital D4 pin.(Refer Screen Shots)

5. Its your choice you'll either have the button set as push type or as a switch

6. Then label the Button as ON and OFF within the settings 

                                                  Circuit Diagram:

Circuit_diagram

1. The connection is pretty simple just connect the Led to D4 pin via 330/220Ohm resistor. (refer to the diagram) 

                                             Uploading the Code

                                 Uploading the code

1.Connect your Esp8266 Wifi to your PC

2. Open Arduino IDE

3. Then attend File->Eamples->Blynk-Boards_Wifi->Esp8266Standalone

(Refer screen shot)

4. Select the right board (NodeMCU 1.0) and therefore the com port from the Tools Menu

Finally Save the file and Press Upload

                                                 Final Execution

                        

1. After uploading the code

2. Open the Blynk app in the Phone

3. Let it connect to the internet

4. Then you would see your dashboard with a button

5. Press Play button on the top most right corner of the app

6. Then Alas!! Press the Button and you would see the LED Turn ON!!!:)




ManiTesla.tech

Author & Editor

Innovator and Robotics enthusisast intrested in building robots and web development

0 comments:

Post a Comment

Ask Something