Hello, I'm trying to exchange data via UART between an arduino mega and a nodemcu (programming both using arduino IDE).
I lowered the voltage from the arduino to 3V3 and I'm able to receive data in arduino mega from nodemcu. The problem is that I can't receive data in nodemcu.
When they are disconnected I can clearly see the arduino mega sending my data, but as soon as I connect to my RX pin in nodemcu, the signal gets pulled down to 0V and there is no more data going through.
Does anyone have any idea as to why this happens?
I tried using Seria.swap and I can still see the signal clearly going from nodemcu to arduino mega but the same problem happens with the Rx pin.
Cannot exchange data between nodemcu and arduino mega
Re: Cannot exchange data between nodemcu and arduino mega
Postby pratik » Wed Mar 01, 2017 2:05 pm
What firmware is your NodeMCU running?
You must enable the UART0 Tx and Rx pin functionality on the ESP8266 if you are using your own ESP8266 program. In this case it seems like your NodeMCU Rx pin is configured as a GPIO and is putting out a low state. That may be why the UART signal is possibly being pulled low.
Also, make sure that your UART signal voltages are 3V3 compatible, and not 5V. The ESP8266 is supposed to run at 3V3 (including IOs). It can handle 5V in open drain mode but anyway, better to err on the safe side.
You must enable the UART0 Tx and Rx pin functionality on the ESP8266 if you are using your own ESP8266 program. In this case it seems like your NodeMCU Rx pin is configured as a GPIO and is putting out a low state. That may be why the UART signal is possibly being pulled low.
Also, make sure that your UART signal voltages are 3V3 compatible, and not 5V. The ESP8266 is supposed to run at 3V3 (including IOs). It can handle 5V in open drain mode but anyway, better to err on the safe side.
Who is online
Users browsing this forum: No registered users and 3 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.