I am having a problem using the ultimate GPS moduel with an Arduino chip running at 16MHz. I know the GPS works since it worked fine with a Raspberry Pi.
However when connected to an Arduino using SoftwareSerial, the GPS readings are allways zero (even after the GPS has settled and should be giving readings).
Here is the GPS code I am using:
#include <SoftwareSerial.h> //Needed for GPS
#include <TinyGPS++.h> //GPS parsing
// create GPS object
TinyGPSPlus gps;
static const int RXPin = 16, TXPin = 17; //GPS is attached to pin D16(A2)(TX from GPS) and pin D17(A3)(RX into GPS)
SoftwareSerial ss(RXPin, TXPin);
// In the setup loop:
ss.begin(9600); //Begin listening to GPS over software serial at 9600. This should be the default baud of the module.
// GPS functions
int altitude = gps.altitude.meters();
float latitude = gps.location.lat();
float longitude = gps.location.lng();
int satellites = gps.satellites.value();
problem using ultimate GPS with Arduino
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: problem using ultimate GPS with Arduino
Could you post clear pictures of both sides of your board showing any soldering you have done and the connections to it?
Could you post your code and a description or drawing of your connections between it all?
Please use the code button "</>" or
Could you post your code and a description or drawing of your connections between it all?
Please use the code button "</>" or
Code: Select all
tags when posting code to the forums.
- sfleming144
- Posts: 11
- Joined: Mon Sep 01, 2014 3:31 pm
Re: problem using ultimate GPS with Arduino
I checked the continuity of the connections and they are fine. I have decided to change my project from using an Arduino to using the Raspberry Pi since I have better success with the GPS. Also I have had other problems with the Bluefruit module working with Linux, not being able to program the Arduino and not connecting to the Raspberry PI.
Please be positive and constructive with your questions and comments.