Hello, I am currently working on a simple GPS tracker. Our tracker consists of a GSM Module, GPS Module, and a Pro Trinket. We know the parts work together, however the code does not compile. The libraries (SoftwareSerial and GSM) from the GSM and the GPS conflict, and we get a "multiple vector error". Is there a simple fix?
Is there a simple fix?
There is one fix. Get a Mega or Due, and quit using SoftwareSerial.
If you connect the GPS TX to pin 8 (use AltSoftSerial) and connect the GSM to pins 0 & 1 (use Serial), it might work. You didn't bother to show any code or links to libraries, so that's all I can say.
Like PaulS said, it would be easy to make this work on an Arduino with more than one serial port (Mega, Leo, Micro, Due, Teensy...).
SoftwareSerial is very inefficient, so it's very unlikely that you could make two serial devices work.
Some GSM libraries allow you to edit the H file (header) to select a serial port (e.g., SoftwareSerial or a HardwareSerial port like Serial).
What would you do with the RX pin on the GPS?
What would you do with the RX pin on the GPS?
If you don't send configuration commands to the GPS device, you don't have to connect the GPS RX pin. Some warnings about connecting this pin here. You might have a 3.3V GPS device; be careful when connecting an input pin to a 5V Arduino output pin.