# GPS Logging Dog Harness

## Overview

https://www.youtube.com/watch?v=ID9dJE75VQU

Make a GPS logger to map your dog's playtime at the park or hike in the woods! This intermediate FLORA microcontroller circuit is a great first GPS project! Use conductive thread to stitch up the sewable GPS and FLORA so there's no soldering required.  
  
Before you begin, check out these guides:

- [Getting Started with FLORA](../../../../getting-started-with-flora)
- [FLORA GPS](../../../../flora-wearable-gps)

You'll have installed the Adafruit Arduino software by now, OR you can program your FLORA directly from your browser using [Codebender](../../../../flora-and-codebender). Fancy!   
  
For this project you'll need:

- [FLORA main board](http://www.adafruit.com/product/659) (Gemma/Trinket is not good for this project, so stick with Flora!)
- [FLORA sewable GPS](http://www.adafruit.com/product/1059)
- [conductive thread](http://www.adafruit.com/product/641)
- [sewable coincell battery holder](http://www.adafruit.com/product/653) with [battery](http://www.adafruit.com/product/654)
- [3xAAA battery holder](http://www.adafruit.com/product/727 "Link: http://www.adafruit.com/product/727") and [batteries](http://www.adafruit.com/product/617 "Link: http://www.adafruit.com/product/617")
- scrap of tablecloth vinyl
- [sewing needle](http://www.adafruit.com/product/615) and thread
- scissors
- sturdy tape like gaff or packing
- clear nail polish

We're building the circuit on the [Ruffwear Single Track dog backpack.](http://www.ruffwear.com/Singletrak-Pack-Dog-Pack "Link: http://www.ruffwear.com/Singletrak-Pack-Dog-Pack")

![](https://cdn-learn.adafruit.com/assets/assets/000/017/116/medium800/gps_Screen_Shot_2014-06-03_at_9.02.58_PM.png?1401847385)

# GPS Logging Dog Harness

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/017/126/medium800/gps-dog-harness-diagram.jpg?1401887305)

Use this diagram as a reference as you follow the construction guide (click to enlarge). The connections are as follows:  
  
FLORA 3.3V -\> GPS 3.3V  
FLORA RX -\> GPS TX  
FLORA TX -\> GPS RX  
FLORA GND -\> GPS GND  
  
GPS BAT -\> positive coincell battery terminal  
GPS GND -\> negative coincell battery terminal

# GPS Logging Dog Harness

## Sew Circuit

![](https://cdn-learn.adafruit.com/assets/assets/000/017/077/medium800/gps-dog-harness-00.jpg?1401833821)

Find a spot on the harness/backpack for your circuit. The GPS needs to face the sky (through some fabric is ok).

Stitch FLORA to the fabric around one of the GPS pins used in the circuit diagram (we chose RX to stitch first). Leave about a 6-inch tail of thread (we'll tie it later). Make several stitches around to create a secure mechanical and electrical connection.   
Don't cut any thread yet, and position the GPS module next to FLORA.

![gps-dog-harness-01.jpg](https://cdn-learn.adafruit.com/assets/assets/000/017/078/medium640/gps-dog-harness-01.jpg?1401834442)

![gps-dog-harness-02.jpg](https://cdn-learn.adafruit.com/assets/assets/000/017/079/medium640/gps-dog-harness-02.jpg?1401834600)

Continue stitching with the same thread to connect to the GPS' TX pad. Loop several times around and then tie the working thread to the tail you left earlier.

  

Make a tight double knot!
![gps-dog-harness-03.jpg](https://cdn-learn.adafruit.com/assets/assets/000/017/080/medium640/gps-dog-harness-03.jpg?1401835767)

![gps-dog-harness-04.jpg](https://cdn-learn.adafruit.com/assets/assets/000/017/081/medium640/gps-dog-harness-04.jpg?1401835949)

Dab a tiny amount of clear nail polish to the knot you just made. Try to get it only on the knot! Hold the threads taut at different angles for better access with your brush, and try not to get any polish on the pads of FLORA or the GPS.

  

Tug on the knot while the polish dries to tame that springy stainless steel! Leave long enough tails that you can tug on them again later-- don't cut them super short yet.
![gps-dog-harness-05.jpg](https://cdn-learn.adafruit.com/assets/assets/000/017/082/medium640/gps-dog-harness-05.jpg?1401836780)

![gps-dog-harness-06.jpg](https://cdn-learn.adafruit.com/assets/assets/000/017/083/medium640/gps-dog-harness-06.jpg?1401836890)

![gps-dog-harness-07.jpg](https://cdn-learn.adafruit.com/assets/assets/000/017/084/medium640/gps-dog-harness-07.jpg?1401837137)

Repeat this stitching process to connect FLORA's TX to the FLORA GPS' RX, and likewise with 3.3V and GND according to the circuit diagram.  
  
Double check your knots again, adding a tiny bit more nail polish if any of them aren't staying tight. Once the nail polish is completely dry, you can cut your thread tails very short.

![gps-dog-harness-08.jpg](https://cdn-learn.adafruit.com/assets/assets/000/017/085/medium640/gps-dog-harness-08.jpg?1401837261)

![gps-dog-harness-09.jpg](https://cdn-learn.adafruit.com/assets/assets/000/017/086/medium640/gps-dog-harness-09.jpg?1401837631)

![](https://cdn-learn.adafruit.com/assets/assets/000/017/087/medium800/gps-dog-harness-10.jpg?1401838182)

Check your connections using a multimeter on continuity mode. Touch the probes to the pads on the circuit boards, not the thread, and check to make sure there is continuity between all four connections, and that there aren't any shorts. For more info on [using your multimeter, check out our guide](https://learn.adafruit.com/multimeters).  
  
While the GPS doesn't have to be as close to FLORA as pictured to work well, it also shouldn't be too far away or the communication signal will degrade as the thread length increases. We recommend keeping them within six inches of each other.  
  
At this point you can test the GPS the same way you did in the [FLORA GPS guide](https://learn.adafruit.com/flora-wearable-gps), and verify your GPS is communicating with FLORA over the conductive thread!

![](https://cdn-learn.adafruit.com/assets/assets/000/017/088/medium800/gps-dog-harness-13.JPG?1401840032)

Next add the coincell battery holder. Sew the + side to the FLORA GPS' BAT pad, and the - side to GND. This battery helps the GPS acquire a fix more quickly upon starting up, since it helps the GPS remember which satellites it connected to last time it was on.  
  
Knot, seal, and snip the thread tails as in previous steps.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/089/medium800/gps-dog-harness-11.jpg?1401840375)

The 3xAAA battery pack will live in one of the pockets, and we've taped it up to provide extra strain relief on the wires and prevent the switch from getting toggled off inside. The wire passes through a small hole we snipped, then under the sewable battery holder and over to FLORA's JST connector.  
  
You can even use a safety pin to affix the gaff tape to the inside of the pocket, so it doesn't shake around when the dog runs.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/090/medium800/gps-dog-harness-12.jpg?1401840714)

Lastly, add a piece of vinyl if your circuit is exposed. This will prevent the circuit from catching on branches, and provide a dampness guard against wet grass and slobbery dog friends.  
  
We built the circuit right up top so you could see it better, but it would work just as well sewn entirely into one of the side pockets. The conductive stitching doesn't go all the way through the padded harness; it just pierces the top layer, so no threads are touching the dog's fur.  
  
This circuit is not waterproof and should be removed from your dog before swimming or if it rains.

# GPS Logging Dog Harness

## Use It!

![](https://cdn-learn.adafruit.com/assets/assets/000/027/993/medium800/gps_Screen_Shot_2014-06-03_at_6.47.41_PM.png?1444253287)

Once you've tested your GPS circuit using the FLORA GPS guide, it's time to load the logging program. Plug in your FLORA over USB. In the Adafruit Arduino IDE or on [Codebender](https://codebender.cc/example/Adafruit_GPS/leo_locus_status), choose the Adafruit\_GPS library sample program **leo\_locus\_status**.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/094/medium800/gps_Screen_Shot_2014-06-03_at_8.19.02_PM.png?1401841174)

Find the line of code **#define GPSECHO false** and change to **true**. This isn't necessary for logging but helps you verify over serial that it's running properly.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/092/medium800/gps_Screen_Shot_2014-06-03_at_6.48.02_PM.png?1401840955)

Choose Adafruit Flora from the Boards menu.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/093/medium800/gps_Screen_Shot_2014-06-03_at_6.48.12_PM.png?1401841147)

Choose your board's serial port, it will look like tty.usbmodemXXX on Mac, and one of the COM ports on a PC.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/096/medium800/gps_Screen_Shot_2014-06-03_at_6.48.52_PM.png?1401841218)

Click **upload** to load the program onto FLORA.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/097/medium800/gps_Screen_Shot_2014-06-03_at_8.18.28_PM.png?1401841282)

Once uploaded, click the serial monitor button in the upper right, and check to make sure the "Starting logging..." message appears. You're good to go!  
  
Go outside and take your dog for a walk. =]  
  
Come back inside and complete the following steps to get the log information onto the computer.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/098/medium800/gps_Screen_Shot_2014-06-03_at_8.22.43_PM.png?1401841424)

Next we'll load the program that will transmit the log stored on the GPS module to the computer over serial. Connect FLORA over USB and load up the **leo\_locus\_dumpbasic** example (also on [Codebender](https://codebender.cc/example/Adafruit_GPS/leo_locus_dumpbasic)).

![](https://cdn-learn.adafruit.com/assets/assets/000/017/099/medium800/gps_Screen_Shot_2014-06-03_at_8.22.58_PM.png?1401841452)

Upload this sketch to your FLORA and open serial monitor.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/100/medium800/gps_Screen_Shot_2014-06-03_at_8.23.10_PM.png?1401841699)

The GPS log data will flow into the window. Wait until it finishes.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/101/medium800/gps_Screen_Shot_2014-06-03_at_8.28.38_PM.png?1401841819)

Highlight and copy the log data from the line below --------------- and ending with $PMTK001,622,3\*36.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/102/medium800/gps_Screen_Shot_2014-06-03_at_8.28.25_PM.png?1401841835)

![](https://cdn-learn.adafruit.com/assets/assets/000/017/104/medium800/gps_Screen_Shot_2014-06-03_at_9.00.01_PM.png?1401843922)

Paste your log into [our LOCUS Parser](https://learn.adafruit.com/custom/ultimate-gps-parser), which will nicely format the GPS sentences into XML that Google Maps can understand. Click **Parse Data**.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/105/medium800/gps_Screen_Shot_2014-06-03_at_9.00.21_PM.png?1401843967)

Copy the KML output into a text file (TextEdit or Notepad) and save it somewhere on your computer.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/106/medium800/gps_Screen_Shot_2014-06-03_at_8.58.02_PM.png?1401844010)

Open up Google Maps in your browser and click **My places** then **Or create with classic My Maps.**

![](https://cdn-learn.adafruit.com/assets/assets/000/017/107/medium800/gps_Screen_Shot_2014-06-03_at_8.58.19_PM.png?1401844032)

Click **Import**.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/108/medium800/gps_Screen_Shot_2014-06-03_at_8.58.33_PM.png?1401844093)

Click **Choose File** and find your saved log, then click **Upload from File**.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/109/medium800/gps_Screen_Shot_2014-06-03_at_9.02.09_PM.png?1401844187)

Voila! Your log will be displayed as a map overlay. You can select the path to change its color, adjust any errant waypoints, and zoom around your fun dog log.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/110/medium800/gps_Screen_Shot_2014-06-03_at_9.02.58_PM.png?1401844273)

Here's where we did the majority of the filming for this project's video, you can see where we hung out the most and how we moved through Prospect Park.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/111/medium800/gps_Screen_Shot_2014-06-03_at_9.04.14_PM.png?1401844303)

We also made a brooch version of this circuit, and I wore it on a bike trip to Governor's Island. You can see the path the ferry took as well as my bike path around the island. The battery died just as I was getting back on the ferry, and so the path shoots over to my next logged location back in Brooklyn.  
  
You are now fully equipped to log the great outdoors, so wire up a circuit and go have some fun outside!


## Featured Products

### FLORA GPS Starter Pack

[FLORA GPS Starter Pack](https://www.adafruit.com/product/1090)
Get started with the fabulous Adafruit Flora platform with this lovely starter kit. Included are plenty of parts to make a few different fun projects! There's a Flora motherboard, a GPS module that can also perform location datalogging, eight ultra-bright chainable RGB pixels, a battery...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1090)
[Related Guides to the Product](https://learn.adafruit.com/products/1090/guides)
### FLORA - Wearable electronic platform: Arduino-compatible

[FLORA - Wearable electronic platform: Arduino-compatible](https://www.adafruit.com/product/659)
FLORA is Adafruit's fully-featured wearable electronics platform. It's a round, sewable, Arduino-compatible microcontroller designed to empower amazing wearables projects.FLORA comes with Adafruit's support, [tutorials and...](http://learn.adafruit.com/category/flora)

In Stock
[Buy Now](https://www.adafruit.com/product/659)
[Related Guides to the Product](https://learn.adafruit.com/products/659/guides)
### Flora Wearable Ultimate GPS Module

[Flora Wearable Ultimate GPS Module](https://www.adafruit.com/product/1059)
This module is the best way to add a GPS to your wearable project. It's part of the Adafruit Flora series of wearable electronics, designed specifically for use with the Flora motherboard. Installed on the PCB is the latest of our Ultimate GPS modules, a small, super-thin, low-power GPS...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1059)
[Related Guides to the Product](https://learn.adafruit.com/products/1059/guides)
### Stainless Medium Conductive Thread - 3 ply - 18 meter/60 ft

[Stainless Medium Conductive Thread - 3 ply - 18 meter/60 ft](https://www.adafruit.com/product/641)
After months of searching, we finally have what we consider to be the ultimate conductive thread. It's thin, strong, smooth, and made completely of 316L stainless steel. Once you start working with this thread you'll quickly agree its optimal for any wearables work!  
  
This...

In Stock
[Buy Now](https://www.adafruit.com/product/641)
[Related Guides to the Product](https://learn.adafruit.com/products/641/guides)
### Sewable CR2032 Battery Holder

[Sewable CR2032 Battery Holder](https://www.adafruit.com/product/653)
This battery holder is by far the easiest way to add a battery to a small wearable project. By coincidence, there are two small 1mm diameter holes in the metal connection tabs, just large enough for a #5 or smaller needle to pass through. One tab connects to common ground (negative) and the...

In Stock
[Buy Now](https://www.adafruit.com/product/653)
[Related Guides to the Product](https://learn.adafruit.com/products/653/guides)
### CR2032 Lithium Coin Cell Battery

[CR2032 Lithium Coin Cell Battery](https://www.adafruit.com/product/654)
A perfect match for our [sew-able coin cell holder](http://www.adafruit.com/products/653). This non-rechargeable coin cell is CR2032 sized: 20mm diameter, 3.2mm thick. It has a nominal voltage output of 3V (although it starts a little high at 3.2V and slowly drifts down to 2.5V as...

In Stock
[Buy Now](https://www.adafruit.com/product/654)
[Related Guides to the Product](https://learn.adafruit.com/products/654/guides)
### Needle set - 3/9 sizes - 20 needles

[Needle set - 3/9 sizes - 20 needles](https://www.adafruit.com/product/615)
Mighty needles, sew like the wind! This needle set is the only one you'll need for any sort of hand sewing, especially using our conductive thread and wearable electronics parts.  
  
Each pack contains 20 gold-eye sharps, with eye sizes ranging from #3 (1.75" long) to #9...

Out of Stock
[Buy Now](https://www.adafruit.com/product/615)
[Related Guides to the Product](https://learn.adafruit.com/products/615/guides)
### 3 x AAA Battery Holder with On/Off Switch and 2-Pin JST

[3 x AAA Battery Holder with On/Off Switch and 2-Pin JST](https://www.adafruit.com/product/727)
This battery holder connects 3 AAA batteries together in series for powering all kinds of projects. We spec'd these out because the box is slim, and 3 AAA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries and have an on-off switch. That makes...

In Stock
[Buy Now](https://www.adafruit.com/product/727)
[Related Guides to the Product](https://learn.adafruit.com/products/727/guides)

## Related Guides

- [Pac Man Pixel Suspenders](https://learn.adafruit.com/pac-man-pixel-suspenders.md)
- [STEAM-Punk Goggles](https://learn.adafruit.com/steam-punk-goggles.md)
- [Adafruit Flora Bluefruit LE](https://learn.adafruit.com/adafruit-flora-bluefruit-le.md)
- [Chameleon Scarf](https://learn.adafruit.com/chameleon-scarf.md)
- [Flora GPS Jacket](https://learn.adafruit.com/flora-gps-jacket.md)
- [Let’s Put LEDs in Things!](https://learn.adafruit.com/lets-put-leds-in-things.md)
- [Flora TSL2561 Lux Sensor](https://learn.adafruit.com/flora-lux-sensor.md)
- [Flora Wearable GPS](https://learn.adafruit.com/flora-wearable-gps.md)
- [Plush Game Controller](https://learn.adafruit.com/plush-game-controller.md)
- [FLORA & Codebender](https://learn.adafruit.com/flora-and-codebender.md)
- [Capacitive Touch with Conductive Fabric & Flora](https://learn.adafruit.com/capacitive-touch-with-conductive-fabric-and-flora.md)
- [Mailbox Notification Service](https://learn.adafruit.com/mailbox-notification-service.md)
- [Adafruit Arduino Selection Guide](https://learn.adafruit.com/adafruit-arduino-selection-guide.md)
- [Citi Bike Helmet](https://learn.adafruit.com/citi-bike-helmet.md)
- [Wearable Piezo Tones with Flora](https://learn.adafruit.com/wearable-piezo-tones-with-flora.md)
