I notice a strange problem (at least for my limited electronic knowledge) while putting all together my project. I decided to power up both the thermal printer and the NodeMCU 1.0 from the same PSU. Also, the RX and TX pins of the printer are already connected to the NodeMCU (the TX has the voltage divider to not damage the board). I'm using the Vin pin of the NodeMCU to power it up, not the 5V.
Now, when I power it up, the nodeMCU is unable to boot properly. If I disconnect the printer (so all 4 pins), power up, then reconnect the printer all work properly. Also, if the TX and RX pin are connected to the board, no matter what, the serial monitor of the NodeMCU is unusable. I attach a png of my schematic.
What can cause this problem?
Thanks in advance!