0

I'm trying to create an UART connection between a Nano and an NodeMCU, running MicroPython.

Code for trying is meaningless - Arduino says "HI", and ESP8266 should receive and print msg value.

Connections :

Nano Rx --> ESP Tx

Nano Tx --> ESP Rx

Nano USB -- > Mac running repl

ESP USB --> Linux running Arduino IDE

BUT- when I physically connect as described the ESP BOARD freezes, in a way I can't even connect it using repl. Only after disconnecting wires (not only powering off the Nano), ESP unfreezes.

Appreciate any help.

  • io 1 of esp8266 is RX, io 3 is TX. clear the wiring description – Juraj Oct 23 '18 at 19:11
  • do you connect ground? which esp module you have? – Juraj Oct 23 '18 at 19:13
  • hi @Juraj - Tx on Nano connects to Rx on ESP, and RX on Nano, connects to Tx on ESP – Guy . D Oct 23 '18 at 19:15
  • @Juraj no ground is connected. should it ????. connected to a NodeMCU – Guy . D Oct 23 '18 at 19:16
  • @Juraj - please explain what to clarify – Guy . D Oct 23 '18 at 19:19
1

You can't connect the same Serial to a computer over USB and to a Nano at the same time. Not only because the Nano is on 5 V which disturbs the 3.3 V side of the USB converter.

Disconnect the NodeMCU from computer, try to power it from Nano's 3.3 V pin (not for WiFI) and don't forget to connect ground between the MCUs.

Nano has one Serial, which is connected over USB to computer too. So there too you can't use the USB and RX TX pins at the same time. You could use SoftwareSerial to connect to NodeMCU.

The Nano TX to esp8266 RX should have logic level conversion to not to send 5V to esp8266 3.3V pin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.