Go Down

Topic: NeoSWSerial problem (Read 412 times) previous topic - next topic

abosalah99

Mar 09, 2018, 04:46 pm Last Edit: Mar 09, 2018, 05:01 pm by abosalah99
Hi all,
I have a problem in NeoSWSerial lib
I have a GPS NEO 6M which is work with 9600  baud rate
And i have a GSM sim 900 which is work with 19200 baud rate
on arduino uno

In the void setup when i start with:
GPS.begin(9600);
SIM900.begin(19200);

The GPS not work.

But

When i start with :
SIM900.begin(19200);
GPS.begin(9600);

The GSM not work.

How can i use both devices in the same time with different baud rate

robtillaart

use hardware serial ports as much as possible.
or
Have a look at AltSoftSerial - https://www.pjrc.com/teensy/td_libs_AltSoftSerial.html

THis website also compares some diffs between serials.


Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

abosalah99

in my research i found that AltSoftSerial use only ping 8 & 9.
And i want to use another pins like 2 & 3 for some reasons.
anyone can help.

robtillaart

What are those reasons?
the more you tell, the better we can provide help.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

abosalah99

What are those reasons?
the more you tell, the better we can provide help.

ok
check this site :https://randomnerdtutorials.com/sim900-gsm-gprs-shield-arduino/

Under Automatically turn on the shield section

I use pin 9 to turn on the GSM automatically
And the TX/RX pin 7/8

That's why

Go Up