NodeMCU With Blynk App/Server

by zeyadremaih in Circuits > Electronics

839 Views, 2 Favorites, 0 Comments

NodeMCU With Blynk App/Server

Blynk - Kickstarted campaign video
Introduction to IoT | NodeMCU and Arduino

What is Blynk and how it works, watch their campaign video !

First, As it turns you can program the NodeMCU with Arduino IDE check the video above.

Here is the Written Tutorial for the setup : https://www.teachmemicro.com/intro-nodemcu-arduino/

Supplies

  1. Breadboard
  2. Two NodeMCUs 1.0
  3. Arduino Uno or any other type
  4. Jumpers
  5. USB Power Cables

Here Is an Overview

NodeMCU and Blynk APP

1st - Download Blynk application

2nd- add your devices as shown in the video and copy the Authentication Token created for our device as we will use it later in the code

- In this project we are setting two NodeMCU devices and connecting them to oue WiFi network , then start to sending data (Integer/Character) from NodeMCU 1 to NodeMCU 2

- Also we will connect Arduino UNO to NodeMCU 2 through wired serial communication

- the data recieved from NodeMCU 1 will be sent to the Arduino UNO at the end and we can use this single to toggle a LED or any other thing

- we will display on the Blynk Application wether the LED is ON or OFF

NodeMCU 1 Code

NodeMCU sending data to other NodeMCU using Blynk server

no wiring is needed for Node MCU 1 as it will connected to wifi and just send "1" or "0"
all we need is the Authentication Token we created

Built in LED in D2 is used as indication for successful WiFi Connection

then start writing the code above

NodeMCU 2 + Arduino Codes

9b85dc9ed38064469d67b07e9beb598e.jpg
arduino_schematics_pins.jpg
NodeMCU receiving data through WiFi (Blynk Server)

NodeMCU 2 - we used D7 as RX and D8 as TX , built in LED in D13 is used as an indication

Arduino - we used Pin 8 as RX and Pin 9 as TX

Wiring:

  • D7 in NodeMCU to Pin 9 in Arduino
  • D8 in NodeMCU to Pin 8 in Arduino
  • VIN in NodeMCU to 5V in Arduino
  • GND in NodeMCU to GND in Arduino (Common Ground)

After setting all connections , please start downloading the code above in the NodeMCU 2

Arduino Code

arduino recieve.JPG
Expirement Video NodeMCU + Arduino Uno

Here is the code needed to recieve the data from NodeMCU 2 to Arduino

you can connect a LED to Pin 13