April 28, 2017

346 words 2 mins read

NodeMCU with Blynk and Firebase

NodeMCU with Blynk and Firebase

Introduction to NodeMCU, an IoT Development Board based on ESP8266 SoC. This covers accessing NodeMCU with Blynk App and connecting NodeMCU to Firebase.

Introduction to NodeMCU with Blynk and Firebase:

NodeMCU is a LUA based interactive firmware for Expressif ESP8622 Wi-Fi SoC, as well as an open source hardware board that includes a (CP2102/CH340/..) TTL to USB chip for programming and debugging, is breadboard-friendly, and can simply be powered via its micro USB port. Ref: cnx-software.

NodeMCU Firmware + DevKits

NodeMCU is an eLua based firmware for the ESP8266 WiFi SOC from Espressif. The firmware is based on the Espressif NON-OS SDK and uses a file system based on spiffs.

The NodeMCU firmware is a companion project to the popular NodeMCU DevKits, ready-made open-source development boards with ESP8266-12E chips.

The NodeMCU programming model is similar to that of Node.js, only in Lua. It is asynchronous and event-driven. Many functions, therefore, have parameters for callback functions.

NodeMCU DevKit v1.0

  1. ESP-12E WiFi Module (16 GPIOs)
  2. 4 MB (32 Mb) Flash Storage
  3. 128 KB Memory
  4. Micro USB (5V Power, Program, Debug)
  5. 2x15-Pin Headers (GPIOs, SPI, UART, ADC, Power)

Using Arduino IDE

Develop Sketches and Flash NodeMCU with Arduino IDE (C-Style)! Starting with 1.6.4, Arduino allows installation of third-party platform packages using Boards Manager.

  1. Install Arduino IDE
  2. Start Arduino and open Preferences window
  3. Enter board URL into Additional BM URLs
  4. Open Boards Manager and install esp8266
  5. Select your NodeMCU board

NodeMCU and Blynk

  1. Configure Arduino IDE for NodeMCU (as before)
  2. Install Blynk Library
  3. Prepare/Configure Blynk App
  4. Prepare the Board, Create the Sketch & Flash
  5. Play the Project (Blynk App)!

NodeMCU and Firebase

  1. Configure Arduino IDE for NodeMCU (as before)
  2. Install FirebaseArduino Library
  3. Create a Firebase Project
  4. Use Example Sketch FirebaseRoom_ESP8266
  5. Prepare the Circuit & Flash
  6. Play!


  1. NodeMcu - An open-source firmware based on ESP8266 wifi-soc
  2. nodemcu/nodemcu-devkit-v1.0
  3. NodeMCU Documentation
  4. esp8266/Arduino: ESP8266 core for Arduino
  5. Getting Started - Blynk
  6. Simple Led Control With Blynk and NodeMCU Esp8266 12E
  7. FirebaseDemo_ESP8266 - firebase/firebase-arduino
  8. NodeMCU is both a Breadboard-Friendly ESP8266 Wi-Fi Board and a LUA based Firmware
  9. NodeMCU - Wikipedia
comments powered by Disqus