Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By forlotto
#32280 It will work fine power it with a 5v adapter ....

The trick is the ground from the adapter to the ground on the relay board needs to have a ground spliced and feeding back to the nodemcu so that everything is common.

DO NOT DO THE SAME WITH THE 5 Volt line the node mcu must be powerd through the usb port only. 5v to the 3.3v will fry the nodemcu DO NOT DO IT power it with a usb wall adapter only.

So to recap you have:
A powered usb adapter to power the nodemcu
A powered 5v 1.0amp adapter to power the relay board.
You need to keep everything common linked together which would be the ground from the relay board adapter and the ground from the relay board and a ground pin from the nodemcu.
The reason being is you need the switching action and in order for it to switch the ground needs to be common through the whole thing.

I hope this gets you up and running if you did not figure it out already.