Forum Controladores/PLC

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

How to use Serial1 on Arduino PLCs?

Avatar
Guest

How can I use Software Serial on an Arduino 21+? When including the SoftwareSerial.h I don't know which RX and TX pins to use.

Avatar
Descartar
1 Respuesta
0
Best Answer

In order to work with the Software Serial we reccomend you using the SPI pins [50 (MISO), 51 (MOSI) or 52 (SCK)] for the RX and any of the I2C pins if they are not being used or Pin 2 and Pin 3 for the TX. Take in mind that if using multiple software serial ports, only one can receive data at a time. On the following blog you can check out how to work with the Software Serial using our devices:

I hope this helps!

Avatar
Descartar