Main Menu

search

You are here

GPS Module - Adafruit 746

[last updated: 2022-03-24]
hiking tracker
Latitude/Longitude Code
-----

Needs editing - see bottom of page:

  • (link to:) Ultimate GPS Breakout - Adafruit: 746
  • (link to:) Adafruit tutorial
    746
    Ada-746

  • This GPS module communicates with the Arduino via a serial data connection.
    If your Arduino model has a "native" hardware serial port, then you can use it to connect to the GPS module with the Arduino's Tx and Rx lines.
    If you want to use different hardware pins to connect to the GPS, then a serial port emulator (software) can be used.
    SoftWareSerial is the built-in library, but others are available:

  • If you are using hardware serial ports Tx & Rx on your Arduino to connect to the GPS module:
      You MUST disconnect GPS Rx & Tx from the Arduino before doing a program upload.

  • Function test:
    • from tutorial listed above...
    • "Direct Computer Connection:"
      • This is a hardware-only test. It does not use libraries or code.
        It connects serial data coming from the GPS to the Arduino hardware serial port,
        where it can be displayed on the serial monitor.

      • Connect GPS power and ground:
          GPS-Gnd to Arduino Gnd
          GPS-Vin to Arduino +5
      • Be sure that the GPS Tx and Rx are NOT connected to the Arduino.
      • Connect USB cable from Arduino to PC and load a "null program" (GPS-nullTest.ino)
      • Connect GPS Rx and Tx:
          GPS-Tx to Arduino-Tx (Nano-D0)
          GPS-Rx to Arduino-Rx (Nano-D1)
      • GPS-onboard-LED will flash slowly (~1/15sec) when connected/fixed on a satellite.
        or fast (~1/sec) if Not connected.
      • Open IDE Serial monitor at 9600 baud to see the stream of serial output from the GPS
      • If you're not fixed, the data will be mostly commas.
      • It may take anywhere from a few minutes to a few hours to make a fix connection.

  • Aduino setup:
    • Load library:
      In IDE: Tools -> Manage Libraries
      Enter GPS in search field
      Find Adafruit GPS Library - click install (current version 1.6.0)
      Close library manager window.
    • Close and restart IDE.
  • Function Test Example Programs:
    • In IDE: File -> Examples -> Adafruit GPS Libraries
      Find: GPS_SoftwareSerial_EchoTest
      Worked correctly.
    • In IDE: File -> Examples -> Adafruit GPS Libraries
      Find: GPS_SoftwareSerial_Parsing
      After some editing, SS_Parsing-03.ino also worked.

    ----------------------------------------------------------

  • Hardware and Software to use this GPS module in my (go to:) Hiking Tracker project:
    ----------------------------------------------------------

  • Other pins:
    • FIX output pin (also drives the onboard-GPS LED):
      pulses once per second when there's No Fix.
      pulses high 200ms every 15 sec when there IS a Fix.
    • PPS outuput pin:
      pulses high 3.3v 50-100ms once per second.
      Used if the MCU needs to synch up to the GPS module.

    ----------------------------------------------------------

  • Software:

    ------------------------------------------------------------


Needs editing below here...

  • Note from forum:
    "To store latitude and longitude values and maintain full accuracy,
    store either the text string as received from the GPS unit,
    or store the long integer values maintained internally by TinyGPS.
    You will lose accuracy if you save the float value."
      My experience did not confirm this.

  • Hardware/breadboard problems:

    .

    .

    .

    eof