1

I'm new and I just want to know if we can use more than 2 Serial comms in nodemcu by using Software Serial.. I m currently using 3 modules which need serial communication and I want to use them with a single Nodemcu. Is it possible?

I'm trying to use GPIO 4 and 5 for one serial Comm and Rxd2 and Txd2 for second serial. will it work?

Zeeshan
  • 11
  • 2

1 Answers1

1

This won't work.

Although there are two UARTs(0 and 1) available to NodeMCU, UART 1 is not capable of receiving data and is therefore transmit only.

For reference: https://nodemcu.readthedocs.io/en/latest/en/modules/uart/

Marcel Stör
  • 22,695
  • 19
  • 92
  • 198
  • Thanks for replying .. I need to know that how can I use three different Serial comms in a single nodemcu using SoftwareSerial. Is it even possible? – Zeeshan Mar 06 '18 at 12:32
  • You can't. The H/W architecture doesn't support it easily. One UART back to the mothership, and Wifi to the world. That's what you get, all in a $2 package. – TerryE Mar 08 '18 at 02:23
  • What if I use SoftwareSerial? – Zeeshan Mar 08 '18 at 17:35