Arduino uno with Nodemcu(as wifi shield)


So what happens if you put the IP address in the correct format?



We need all the Serial Monitor data for your connections to the Blynk server and the line of code you are using to connect to it.


OK . Now i need to try this out. And i will let you know if that works.


Make sure you are using a new token in your sketch for connection to the Blynk server.


Yep am aware of it. Because i created a new project and i got an auth token from the blynk server and the same auth token was flashed.


Took me about that long with an ESP01, never again :slight_smile:


If any one got this up and running. Please tell me which version of the Arduino IDE , AT Firmware and Blynk li version. So that i can try the same.


Firmware version is less important than correct IP address syntax :slight_smile:

#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h> // include Blynk ESP8266
#define BLYNK_PRINT Serial  // Comment this out to disable prints and save space

char auth[] = "xxxxxxxxxxxxxxxxxxxx";
char ssid[] = "xxxx";
char pass[] = "xxxx";
char server[] = "";
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // ( RX, TX )
#define ESP8266_BAUD 9600
#define server ""
ESP8266 wifi(&EspSerial);

//Relay in Pin XX
#define Relay1 10
#define Relay2 9
#define Relay3 8
#define Relay4 7
#define Relay5 6
#define Relay6 5

// in Blynk app writes values to the Virtual Pin 1
  int RelayStatus1 = param.asInt();
  if (RelayStatus1 == 1) {
    digitalWrite(Relay1, LOW);
  else {
    digitalWrite(Relay1, HIGH);

  int RelayStatus2 = param.asInt();
  if (RelayStatus2 == 1) {
    digitalWrite(Relay2, LOW);
  else {
    digitalWrite(Relay2, HIGH);

  int RelayStatus3 = param.asInt();
  if (RelayStatus3 == 1) {
    digitalWrite(Relay3, LOW);
  else {
    digitalWrite(Relay3, HIGH);

  int RelayStatus4 = param.asInt();
  if (RelayStatus4 == 1) {
    digitalWrite(Relay4, LOW);
  else {
    digitalWrite(Relay4, HIGH);

  int RelayStatus5 = param.asInt();
  if (RelayStatus5 == 1) {
    digitalWrite(Relay5, LOW);
  else {
    digitalWrite(Relay5, HIGH);

  int RelayStatus6 = param.asInt();
  if (RelayStatus6 == 1) {
    digitalWrite(Relay6, LOW);
  else {
    digitalWrite(Relay6, HIGH);

void setup()

  pinMode(Relay1, OUTPUT); // sets the digital pin as output
  digitalWrite(Relay1, HIGH); // Prevents relays from starting up engaged

  pinMode(Relay2, OUTPUT); // sets the digital pin as output
  digitalWrite(Relay2, HIGH); // Prevents relays from starting up engaged

  pinMode(Relay3, OUTPUT); // sets the digital pin as output
  digitalWrite(Relay3, HIGH); // Prevents relays from starting up engaged

  pinMode(Relay4, OUTPUT); // sets the digital pin as output
  digitalWrite(Relay4, HIGH); // Prevents relays from starting up engaged

  pinMode(Relay5, OUTPUT); // sets the digital pin as output
  digitalWrite(Relay5, HIGH); // Prevents relays from starting up engaged

  pinMode(Relay6, OUTPUT); // sets the digital pin as output
  digitalWrite(Relay6, HIGH); // Prevents relays from starting up engaged

  // communication with the host computer
  // Set ESP8266 baud rate

  Blynk.begin(auth, wifi, ssid, pass, server);
  //Blynk.begin(auth, ssid, pass, IPAddress(1xx,1xx,1,1xx), 8080);
  //Blynk.begin(auth, wifi, "xxx", "xxx", "19x1xx1,1xxx", 8080);

void loop()

Some one the community got this sketch running. So just changed the token , ssid and pass.
But did not work.

Right now am running several Arduino IDE versions on my laptop !! Is that causing any issue ? Because ex. Attiny85 works on 1.0.6 and not anything above it.


Yes am about to try that out.
Do you suggest me to uninstall the arduino IDE and Blynk lib and install everything new !!
Will this Fix the issue ?


That definition only counts if it hurts :scream: … when you have mad wiring and soldering skilz it is easy to hook up :stuck_out_tongue_winking_eye: Every wire in its proper place… just … don’t… sneeze… :rofl::rofl::rofl:

Heck, I still use USB link :open_mouth:


Good for them but I would go back to the super short sketch.

There are problems with IDE’s older than 1.8.8 when using an ESP development board for it’s intended purpose i.e. not a shield. Don’t know about shield mode.

If it’s not a problem then yes kill everything and use 1.8.8.


Right now am using

AT Firmware
AT version: 11 2016 18:09:56) [Blynk suggested]
SDK version:1.5.4(baaeaebb)

(and also other latest few, and too old as well)

Arduino IDE
also tried with

Blynk Lib version
0.4.8 [tried 0.3.3, 0.5.8]

oki will install 1.8.8

and what about the Blynk lib version ?


@Madhukesh It doesn’t really matter what AT firmware version you are using… although newer Blynk versions are usually better for Blynk purposes. I am also currently running IDE 1.8.7

I am using this with a ESP-01 and Arduino Mega on a Local Server.

    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.0 on Arduino Mega

[1751] Connecting to GunnersZone
[4810] AT version:  1 2016 20:04:45)
SDK version:
Ai-Thinker Technology Co., Ltd.
Integrated AiCloud 2.0 v0.0.0.3
Build: Jan 10 2017 18:32:04
[9866] +CIFSR:STAIP,""
[9867] Connected to WiFi
[19958] Ready (ping: 11ms).
Connected to Blynk Server
[20344] Time sync: OK

The problem you are probably running into is that the AT firmware and how you may be wiring things up is tried and true on an ESP-01… but I have yet to find a single working instance of it being done with a NodeMCU.

So, basically you may not be wiring it correctly, using wrong power, the Blynk shield library may not be communication to it correctly… too many unknown variables.


Hmmm… this is wrong…

You should be going from UNO pin 2 to ESP TX and UNO pin 3 to ESP RX

Also, you CANNOT power the NodeMCU from the Arduino, or visa versa… they both need their own 5v USB power… but yes, still shared GND, although that might already be covered if they are using the same power bank or PC USB ports.


Oops !! I will change the Tx and Rx pins.
Power is provided from a solid lab bench power supply. So no issues with power. And i have ground in common between them.


Why do you think it would be any different to an ESP-01?


That might be the key to whole issue there??? They need to communicate like mouth to ear… not mouth to mouth… that is a whole different form of communication :kiss: :stuck_out_tongue_winking_eye:


Only because I haven’t found a web link saying different… lots of people asking how, and being told pretty much the same thing as here… Why?? :smiley:


Can you please share the working code bit (example sketch) ? So that i can put that on my uno.