0

Adafruit Ultimate GPS Logger Shield code not uploading
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit Ultimate GPS Logger Shield code not uploading

by tamusana on Sun Nov 19, 2017 7:23 am

Hi,

I'm new to arduino, and want to get my Ultimate GPS Logger Shield working. I've been following the official Adafruit tutorial [url](https://learn.adafruit.com/adafruit-ult ... al-connect)[/url], but to no avail. I soldered all the pins in place, attaching the shield to my Arduino Uno, but when I attempt to upload any piece of code to it, I get the message "Problem uploading to board."

Here are some images of my setup and the code I'm trying to upload.
Code: Select all | TOGGLE FULL SIZE
// 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);

// 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(2000);
  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);
  }
}

https://imgur.com/zQKD6pL
https://imgur.com/SyVntAS
https://imgur.com/7mzEtCx
https://imgur.com/iRqwgLl
Any Help would be much appreciated! Thanks!
Attachments
IMG_3.jpg
IMG_3.jpg (624.93 KiB) Viewed 101 times
IMG_2.jpg
IMG_2.jpg (464.09 KiB) Viewed 101 times
img_1.jpg
img_1.jpg (542.43 KiB) Viewed 101 times

tamusana
 
Posts: 6
Joined: Sun Nov 19, 2017 6:56 am

Re: Adafruit Ultimate GPS Logger Shield code not uploading

by franklin97355 on Sun Nov 19, 2017 3:08 pm

Take a look at this Soldering Guide and re-do the connections. Also, you seem to have the Bluetooth port selected. Is that the port your Uno is connected to?

franklin97355
 
Posts: 17047
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Adafruit Ultimate GPS Logger Shield code not uploading

by tamusana on Mon Nov 20, 2017 4:32 pm

Thank you so much for the advice franklin!
It turned out to just be a matter of the wrong serial port -- meanwhile, I was preparing to re-solder every pin. :P
Apologies if my question was too basic, but thanks for the quick response.

tamusana
 
Posts: 6
Joined: Sun Nov 19, 2017 6:56 am

Please be positive and constructive with your questions and comments.