Power
Under construction
The ESP8266 is not very power hungry, but it requires some special measures to operate in a predictable way and to avoid many spurious reboots.
Most disturbances are caused by problems with the power supply
First some facts:
The ESP8266 uses between 50 mA and 170 mA
Since the ESP8266 is transmitting in bursts, it is easy to understand that this behavior will cause a lot of spikes and other undesired signals on the power lines and these can easily translate into unwanted resets and other disturbances. This also pops up when factory made boards like NodeMCU are being used, especially in conjunction with external devices.
What can you do?
1 - First, use a good power supply, capable to deliver 5 volt at 1 Amp. 2 - mount capacitors across the power lines, as close as possible to the ESP8266 3 - mount a 10 nF (multi layer, preferably smd) capacitor from the reset terminal to ground 4 - Use at least one 10uF (tantalum) and one 100 nF (multi layer) capacitor per externally connected device