-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Description
Hi!
I have an issue that I'm having a bit of trouble solving. In my application, I'm using a NodeMCU and an Arduino together (which is supposed to drive LEDs and other peripherals) and I'm trying to connect them via HW serial. The communication between the 2 are minimal and event-based. I'm using a speed of 115200 baud. I'm aware of the logic level differences, and I tried testing the connection using a 3.3V Arduino and a 5V arduino using a LLC, in both cases the result is the same.
As soon as the NodeMCU's Rx is connected to the Tx of the arduino (directly in case of the 3v3 Arduino or through the LLC in case of the 5V arduino), the nodeMCU resets and stays in a reset loop until the connection from the Rx pin is removed! After that, it boots and works as intended.
I have also tested both controllers separately, connected to my PC. In that case, serial works perfectly. Both modules are stable and are able to receive and interpret serial commands perfectly sent through the serial monitor. In these cases, the modules are connected throught the USB to the PC. When the Serial lines are connected together, the USB ports are not used, instead, both are powered from an external supply, which is able to provide enough power (this is 100% not the issue).
Honestly, I don't know if this is the right place to post, as I'm not sure what causes this problem. The NodeMCU's HW serial seems to be working fine when connected to the PC, I just don't understand why it triggers a reset loop as soon as it is connected to the arduino. I don't think it has anything to do with message reception either, since no messages are sent initially, only when certain events happen (buttons press, configuration change, etc). Maybe someone can help. I'd really appreciate it. Thanks.