Arduino uno and nodemcu software serial communication

Before changing the NodeMCU, please check the functionality of your present NodeMCU by uploading the following sketch which blinks the onboard LED connected at GPIO-16/D0.

#define ledpin D0  //I am using built-in LED1 of Node at GPIO-16/D0

void setup()                                                                                                                  
{
  pinMode(ledpin, OUTPUT);
  Serial.begin(115200);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  delay(1000);
  digitalWrite(ledpin, LOW);
  delay(1000);
}
2 Likes

will do sir thanks again.

after trying the code that you've provided me sir D0 is still working so I assume that the node is still fine. will try to change wires I guess

1 Like

You connect a LED with a 2.2k series resitor with DPin-7 and then with DPin-8; upload the blink program of post #22 (don't forget to chnage D0 to D7 and then to D8) and check that the LED blinks. This is to verify that the said pins are working well at least as digital IO pins.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.