0

two gps inputs
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

two gps inputs

by selkirksghost on Wed Oct 26, 2016 10:18 pm

Is there a way to use two gps inputs on RasPi or Arduino for navigational calculations?

I'm guessing it would be best to use two separate shields. Is it possible to use the embedded antenna AND an external antenna with one shield? Or is there a limit to the sorting engine on the NMEA string?

selkirksghost
 
Posts: 1
Joined: Wed Oct 26, 2016 10:00 pm

Re: two gps inputs

by adafruit_support_rick on Sat Oct 29, 2016 9:59 am

The R Pi only has one serial port, so you can't do it that way.

You can sort-of do it with an Arduino. You have to use hardware serial for one GPS and software serial for the other.

The GPS will only use one antenna. If you attach an external antenna, that's the one it will use.

An Arduino should be able to handle two NMEA streams at least up to 5Hz. That's equivalent to a single stream at 10Hz, which a Uno can handle.

You might want to consider a 32U4-based Arduino, since the hardware serial port on those is not used for uploading and serial monitor. If you use a Uno or Mega, you would have to disconnect the GPS every time you wanted to upload a sketch.

You could also use an M0-based Arduino. The M0 does not support software serial, but you can define additional hardware serial ports (Serial1 is already defined for you)
https://learn.adafruit.com/using-atsamd ... new-serial

adafruit_support_rick
 
Posts: 33044
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Please be positive and constructive with your questions and comments.