chipKIT® Development Platform

Inspired by Arduino™

Adafruit Ultimate GPS module

Created Mon, 24 Sep 2012 16:06:21 +0000 by h_vestbo


h_vestbo

Mon, 24 Sep 2012 16:06:21 +0000

Need some help here. I have an Ultimate GPS Module from adafruit, and want to use it on my chipKit UNO32. Have tried with the library from the website, but it wont work. Seems like its made to fit arduino. Anyone know?


ricklon

Fri, 05 Oct 2012 04:07:18 +0000

Most of the examples use interrupts. You can disable those which is a good start. Here's the echo example without the itnerrupt stuff. Let me know if that works for you.

/*
* Read Adafruit GPS without all the fancy stuff.
*/
#include <Adafruit_GPS.h>

// 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

Adafruit_GPS GPS(&Serial1);
void setup()
{
   // connect at 115200 so we can read the GPS fast enuf and
  // also spit it out
  Serial.begin(115200);
  Serial.println("Adafruit GPS library basic test!");

  // 9600 NMEA is the default baud rate for MTK - some use 4800
  GPS.begin(9600);
  GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA);
  GPS.sendCommand(PMTK_SET_NMEA_UPDATE_5HZ);
  delay(3000); 
}

void loop()
{
  char c = GPS.read();
     // if you want to debug, this is a good time to do it!
  if (GPSECHO) {
    if (c) {
      Serial.print(c); 
    } 
  }  
}

--Rick