Software apps and online services
Today I show you how to control LED using Blynk App In IOT platform. First I introduce what is Blynk and why to use Blynk App.
This book will help you to gain more knowledge about this subject:
What is Blynk App
Blynk is a Platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet.
It's a digital dashboard where you can build a graphic interface for your project by simply dragging and dropping widgets.
It's really simple to set everything up and you'll start tinkering in less than 5 mins.
Blynk is not 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 Internet over Wi-Fi, Ethernet or this new ESP8266 chip, Blynk will get you online and ready for the Internet Of Your Things.
More info Click HereWhy you use Blynk app
There are many third party IoT platforms but I think Blynk is the best since it is very user friendly. Blynk is not an app that works only with a particular shield. Instead, it's been designed to support the boards and shields you are already using. And it works on iOS and Android.How it works
Blynk works over the Internet. So the one and only requirement is that your hardware can talk to the Internet. No matter what type of connection you choose - Ethernet, Wi-Fi or maybe this new ESP8266 everyone is talking about – Blynk libraries and example sketches will get you online, connect to Blynk Server and pair up with your smartphone.
Architecture of Blynk system -MechatronicslabrpiWhere to get the app
No problem for that, I will give it to you:
Or you can download it on Google Play. After you finish your download and install it, you can see this interface:
Now sign up and go to log in your apps. Click the “Create New Project” in the app to create a new Blynk app. Give it any name.
Blynk works with hundreds of hardware models and connection types. Select the Hardware type. After this, select connection type. In this project we have selected WiFi connectivity.
The Auth Token is vary important you can get this your mail address .Add Widgets in your Project
To open the widget box, click in the project window to open.
Now selecting a button to control Led connected with NodeMCU:
- Click on Button.
- Give name to Button say led.
- Under OUTPUT tab- Click pin and select the pin to which led is connected to NodeMCU, here it is digital pin 2, hence select digital and under pin D2. And Click continue.
- Under MODE tab- Select whether you want this button as "push button" or "Switch".
First you have no need download library following link: Blynk library
Blynk library should be installed manually. Follow the instructions:
- Unzip the Blynk_Release_vXX.zip archive. You can see a library and tools folder copy the library and tools then past to the Arduino library and tools folder.
Upload the firmware following the instructions: File > Examples > Blynk > Boards_WiFi> ESP8266_Standalone menu.
Now Enter your auth token:
You get this token from your email:
After the app has uploaded, open the serial monitor, setting the baud rate to 9600. Wait for the “Ready” message:
NodeMCU LED connection:
About more tutorials about NodeMCU:
1. Intoduction to nodemcu8266 & Steps to Import ESP Board Libraries
2. NodeMCU8266 Basic Project-Blink a LED
3. NodeMCU8266 Digital Read (Push Button)
4. Analog Data read using NodeMcu8266