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
- ESP-12E WiFi Module (16 GPIOs)
- 4 MB (32 Mb) Flash Storage
- 128 KB Memory
- Micro USB (5V Power, Program, Debug)
- 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.
- Install Arduino IDE
- Start Arduino and open Preferences window
- Enter board URL into Additional BM URLs
- Open Boards Manager and install esp8266
- Select your NodeMCU board
NodeMCU and Blynk
- Configure Arduino IDE for NodeMCU (as before)
- Install Blynk Library
- Prepare/Configure Blynk App
- Prepare the Board, Create the Sketch & Flash
- Play the Project (Blynk App)!
NodeMCU and Firebase
- Configure Arduino IDE for NodeMCU (as before)
- Install FirebaseArduino Library
- Create a Firebase Project
- Use Example Sketch
FirebaseRoom_ESP8266
- Prepare the Circuit & Flash
- Play!
References
- NodeMcu - An open-source firmware based on ESP8266 wifi-soc
- nodemcu/nodemcu-devkit-v1.0
- NodeMCU Documentation
- esp8266/Arduino: ESP8266 core for Arduino
- Getting Started - Blynk
- Simple Led Control With Blynk and NodeMCU Esp8266 12E
- FirebaseDemo_ESP8266 - firebase/firebase-arduino
- NodeMCU is both a Breadboard-Friendly ESP8266 Wi-Fi Board and a LUA based Firmware
- NodeMCU - Wikipedia