Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Practical 7: Add Blynk Libraries for NodeMCU and IFTTT Setup

Lesson 7 of 10 in the free Internet of Things (IoT) Lab notes on Siksha Sarovar, written by Rohit Jangra.

Program Statement

Write the steps to add Blynk libraries for NodeMCU and create an account on IFTTT for home automation.

CO Mapping

CO2, CO3, CO4

Objective

To configure Arduino IDE for NodeMCU (ESP8266), install the Blynk library, and set up an IFTTT account for home automation integration.

Part A: Adding NodeMCU (ESP8266) Board to Arduino IDE

Step 1: Open Arduino IDE Preferences

  1. Go to File > Preferences (or Ctrl + ,).
  2. In the "Additional Board Manager URLs" field, paste:
  3. http://arduino.esp8266.com/stable/package_esp8266com_index.json

  4. Click OK.

Step 2: Install ESP8266 Board Package

  1. Go to Tools > Board > Boards Manager...
  2. Search for "esp8266".
  3. Select "esp8266 by ESP8266 Community" and click "Install".
  4. After installation, go to Tools > Board > ESP8266 Boards > NodeMCU 1.0 (ESP-12E Module).

---

Part B: Installing the Blynk Library

Method 1: Library Manager

  1. Go to Sketch > Include Library > Manage Libraries...
  2. Search for "Blynk".
  3. Select "Blynk by Volodymyr Shymanskyy" and click "Install".

Method 2: Manual ZIP Install

  1. Download the Blynk library ZIP from: https://github.com/blynkkk/blynk-library/releases
  2. Go to Sketch > Include Library > Add .ZIP Library...
  3. Select the downloaded ZIP file.

---

Part C: Creating a Blynk Account and Project

  1. Download the Blynk app on your smartphone (Android/iOS).
  2. Open the app, tap "Create New Account", and register.
  3. Tap "New Project", give it a name (e.g., Home Automation).
  4. Select "NodeMCU" as the device and "Wi-Fi" as the connection type.
  5. Click "Create" — Blynk will email you an Auth Token.
  6. Add widgets (e.g., Button, Slider) to your project dashboard.

---

Part D: Setting Up IFTTT for Home Automation

Step 1: Create an IFTTT Account

  1. Go to https://ifttt.com and click "Get Started".
  2. Sign up with Google, Apple, or your email.

Step 2: Create an Applet

  1. Click "Create" on the IFTTT dashboard.
  2. Click "If This" → Search for a trigger service (e.g., Google Assistant, Email, Alexa).
  3. Configure the trigger (e.g., say a specific phrase in Google Assistant).
  4. Click "Then That" → Search for "Webhooks".
  5. Select "Make a web request".
  6. Enter your NodeMCU/server endpoint URL and set the method to GET or POST.
  7. Click "Create Action""Finish".

Step 3: Connect Blynk with IFTTT

  • Use Webhooks in IFTTT to call the Blynk REST API:
  • https://blynk.cloud/external/api/update?token=YOUR_TOKEN&V1=1

  • This allows voice commands or external triggers to control pins on NodeMCU via Blynk.

Result

Blynk libraries have been successfully added for NodeMCU and an IFTTT account has been configured for home automation.