Scheme and source code I use:
Checked this scheme on arduino Leonardo - it works. It even works with 5V from usb - no additional power required.
But when I try to do the same scheme with R1 D1 or NodeMCU - it doesn't want to work. It seems I have tried everything except of changing of scheme - pins, apps...
Could you explain what am doing wrong? Is it occurs because of boards based on esp8266?
P.S. Added "servo" tag because I don't need it but the same situation occurs with servos.