GPS board not producing any information

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
pizzaboy
 
Posts: 6
Joined: Tue Mar 11, 2014 8:21 pm

GPS board not producing any information

Post by pizzaboy »

Hello,

I hooked up my new Arduino Yun with an Adafruit GPS board but it's nothing is coming over and the "fix"light isn't coming on.

I have tried using this code (leo_echo)

Code: Select all

// Test code for Adafruit GPS modules using MTK3329/MTK3339 driver
//
// This code just echos whatever is coming from the GPS unit to the
// serial monitor, handy for debugging!
//
// Tested and works great with the Adafruit Ultimate GPS module
// using MTK33x9 chipset
//    ------> http://www.adafruit.com/products/746
// Pick one up today at the Adafruit electronics shop 
// and help support open source hardware & software! -ada

//This code is intended for use with Arduino Leonardo and other ATmega32U4-based Arduinos

#include <Adafruit_GPS.h>
#include <SoftwareSerial.h>

// Connect the GPS Power pin to 5V
// Connect the GPS Ground pin to ground
// If using software serial (sketch example default):
//   Connect the GPS TX (transmit) pin to Digital 8
//   Connect the GPS RX (receive) pin to Digital 7
// If using hardware serial:
//   Connect the GPS TX (transmit) pin to Arduino RX1 (Digital 0)
//   Connect the GPS RX (receive) pin to matching TX1 (Digital 1)

// If using software serial, keep these lines enabled
// (you can change the pin numbers to match your wiring):
SoftwareSerial mySerial(8, 7);
Adafruit_GPS GPS(&mySerial);

// If using hardware serial, comment
// out the above two lines and enable these two lines instead:
// HardwareSerial mySerial = Serial1;

#define PMTK_SET_NMEA_UPDATE_1HZ  "$PMTK220,1000*1F"
#define PMTK_SET_NMEA_UPDATE_5HZ  "$PMTK220,200*2C"
#define PMTK_SET_NMEA_UPDATE_10HZ "$PMTK220,100*2F"

// turn on only the second sentence (GPRMC)
#define PMTK_SET_NMEA_OUTPUT_RMCONLY "$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"
// turn on GPRMC and GGA
#define PMTK_SET_NMEA_OUTPUT_RMCGGA "$PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28"
// turn on ALL THE DATA
#define PMTK_SET_NMEA_OUTPUT_ALLDATA "$PMTK314,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0*28"
// turn off output
#define PMTK_SET_NMEA_OUTPUT_OFF "$PMTK314,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28"

#define PMTK_Q_RELEASE "$PMTK605*31"

void setup() {
  while (!Serial); // wait for leo to be ready

  Serial.begin(57600); // this baud rate doesn't actually matter!
  mySerial.begin(9600);
  delay(500);
  Serial.println("Get version!");
  mySerial.println(PMTK_Q_RELEASE);
  
  // you can send various commands to get it started
  //mySerial.println(PMTK_SET_NMEA_OUTPUT_RMCGGA);
  mySerial.println(PMTK_SET_NMEA_OUTPUT_ALLDATA);

  mySerial.println(PMTK_SET_NMEA_UPDATE_1HZ);
 }


void loop() {
  if (Serial.available()) {
   char c = Serial.read();
   Serial.write(c);
   mySerial.write(c);
  }
  if (mySerial.available()) {
    char c = mySerial.read();
    Serial.write(c);
  }
}
But nothing is coming over in the serial monitor. Do you have any ideas what I'm doing wrong?

***Edit: picture***
Attachments
unnamed.jpg
unnamed.jpg (36.53 KiB) Viewed 339 times

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: GPS board not producing any information

Post by adafruit_support_mike »

How have you made the connections between the GPS breakout and the jumper wires?

pizzaboy
 
Posts: 6
Joined: Tue Mar 11, 2014 8:21 pm

Re: GPS board not producing any information

Post by pizzaboy »

they have been soldered to the GPS board.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: GPS board not producing any information

Post by adafruit_support_mike »

Thank you.

I have to admit that I'm not as familiar with the Yun as with the regular Arduino. There may be some issues with the serial connection that I don't know.

So you happen to have a regular Arduino that you can use for a direct-wiring connection between your computer and the GPS module? That would make it a bit easier to narrow down the list of possible causes.

pizzaboy
 
Posts: 6
Joined: Tue Mar 11, 2014 8:21 pm

Re: GPS board not producing any information

Post by pizzaboy »

Unfortunately I this is my only arduino. I can remove the wires from it and try it with the breadboard if you think that might have a better chance of working.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: GPS board not producing any information

Post by adafruit_support_mike »

The jumpers are fine as long as they're soldered securely.

What we need to do is get information from the GPS module's TX/RX pins to a computer that can display it to a screen. The Yun makes that challenging both because it uses the TX/RX feature on pins 0 and 1 to communicate with the Linux console, and because the ATmega32u4 uses those pins for USB communication.

First of all, let's check some of the basics in your existing setup. I can't see the connections to the Yun very well in the photo, so where do you have the jumpers from the GPS module's RX and TX signals plugged into the Yun?

pizzaboy
 
Posts: 6
Joined: Tue Mar 11, 2014 8:21 pm

Re: GPS board not producing any information

Post by pizzaboy »

Hello,

I've attached another picture which might help.

The Orange wire goes from 5V on the Arduino to the VIN on the GPS
The Red wire goes from the GND on the Arduino to the GND on the GPS
The Yellow wire goes from pin 7 on the Arduino to RX on the GPS
The Black wire goes from pin 8 on the Arduino to TX on the GPS.

There are leads connected to each of the other terminals(?) on the GPS, but they are not connected to anything or touching anything conductive.

Pins 7 & 8 were specified for the software serial (?) in the code.

Since my first post I have also tried this code:

Code: Select all

// Test code for Adafruit GPS modules using MTK3329/MTK3339 driver
//
// This code turns on the LOCUS built-in datalogger. The datalogger
// turns off when power is lost, so you MUST turn it on every time
// you want to use it!
//
// Tested and works great with the Adafruit Ultimate GPS module
// using MTK33x9 chipset
//    ------> http://www.adafruit.com/products/746
// Pick one up today at the Adafruit electronics shop 
// and help support open source hardware & software! -ada
//This code is intended for use with Arduino Leonardo and other ATmega32U4-based Arduinos

#include <Adafruit_GPS.h>
#include <SoftwareSerial.h>

// Connect the GPS Power pin to 5V
// Connect the GPS Ground pin to ground
// If using software serial (sketch example default):
//   Connect the GPS TX (transmit) pin to Digital 8
//   Connect the GPS RX (receive) pin to Digital 7
// If using hardware serial:
//   Connect the GPS TX (transmit) pin to Arduino RX1 (Digital 0)
//   Connect the GPS RX (receive) pin to matching TX1 (Digital 1)

// If using software serial, keep these lines enabled
// (you can change the pin numbers to match your wiring):
SoftwareSerial mySerial(8, 7);
Adafruit_GPS GPS(&mySerial);

// If using hardware serial, comment
// out the above two lines and enable these two lines instead:
//Adafruit_GPS GPS(&Serial1);
//HardwareSerial mySerial = Serial1;

// Set GPSECHO to 'false' to turn off echoing the GPS data to the Serial console
// Set to 'true' if you want to debug and listen to the raw GPS sentences
#define GPSECHO  true

void setup()  
{    
  // connect at 115200 so we can read the GPS fast enuf and
  // also spit it out
  Serial.begin(115200);
  delay(2000);
  Serial.println("Adafruit GPS logging start test!");

  // 9600 NMEA is the default baud rate for MTK - some use 4800
  GPS.begin(9600);
  
  // You can adjust which sentences to have the module emit, below
  // Default is RMC + GGA
  GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA);
  // Default is 1 Hz update rate
  GPS.sendCommand(PMTK_SET_NMEA_UPDATE_1HZ);

  delay(500);
  Serial.print("\nSTARTING LOGGING....");
  if (GPS.LOCUS_StartLogger())
    Serial.println(" STARTED!");
  else
    Serial.println(" no response :(");
  delay(1000);
}[code]
void loop() // run over and over again
{
char c = GPS.read();
// if you want to debug, this is a good time to do it!
if ((c) && (GPSECHO))
Serial.write(c);
}
[/code]

which produced this output in the serial log, but nothing more after several minutes:

Code: Select all

Adafruit GPS logging start test!

STARTING LOGGING....
Attachments
Arduino2.jpg
Arduino2.jpg (69.14 KiB) Viewed 239 times

pizzaboy
 
Posts: 6
Joined: Tue Mar 11, 2014 8:21 pm

Re: GPS board not producing any information

Post by pizzaboy »

I should also mention that the GPS chip gets quite warm when it's attached the Arduino, when there is power to the Arduino, but the "fix" light still doesn't come on, but it seems from the heat that the power is getting to it.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: GPS board not producing any information

Post by adafruit_support_mike »

Your pin connections sound right for the code. The part about the GPS module getting hot is a bit of a warning flag though.. they usually don't generate much heat.

Let's try a new module. Send a note to [email protected] with a link to this thread and the folks there will get you a replacement.

pizzaboy
 
Posts: 6
Joined: Tue Mar 11, 2014 8:21 pm

Re: GPS board not producing any information

Post by pizzaboy »

The new module is working!!!!

Thank you so much!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”