Arduino Multiple Software Serial

Active7 years, 1 month ago
  1. Arduino Nano Two Software Serial
  2. Arduino Multiple Software Serial Number
  3. Arduino Two Software Serial
  4. Arduino Multiple Serial Ports
$begingroup$

I have obtain 2 shield from Itead; GPS Shield & IComSat GSM Shield. I have a requirement todevelop an Arduino Uno prototype and used a serial interface to communicate with this two shield. My sketches using SoftwareSerial but it seem not working properly, is there any optimal way to combine these two shield?

In this project I will be using multiple ESP8266 WiFi modules (4) connected by software serial to an Arduino Leonardo Micro (1 UART). I plan to rotate between all 4 (starting with 2): Open port, wr.

Arduino GPS Shieldhttp://imall.iteadstudio.com/im120417017.html

Software

IComSat GSM/GPRS Shieldhttp://imall.iteadstudio.com/im120417009.html

wajatimurwajatimur

Arduino Nano Two Software Serial

$endgroup$

1 Answer

$begingroup$

Arduino Multiple Software Serial Number

Are you running afoul of any of the restrictions of Software Serial?

  • If using multiple software serial ports, only one can receive data at a time.
  • Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69
  • Not all pins on the Leonardo support change interrupts, so only the following can be used for RX: 8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).

Given that you're using the shields, you'd have trouble with my favorite trick. I've occasionally used relays, analog multiplexers, or transistors to switch the functionality of pins on-the-fly. By using one digital pin to select which serial device you want to talk to, you can have both of your communication pipelines taking place on pins 0 and 1. However, that's not an option with off-the-shelf shields.

Software
user30997user30997

Arduino Two Software Serial

$endgroup$

Arduino Multiple Serial Ports

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

Comments are closed.