# Flora GPS Jacket

## Overview

http://youtu.be/3n9nRSYNg38

Make your coat react to your location with color-changing LEDs! The Flora GPS Jacket tracks your coordinates and then pulses the lights around the collar when you reach your destination. Change the waypoints and range in the provided project code to make your garment light up near your favorite coffee shops or the perfect picnic spot.  
  
Before you begin this project, please freshen up on the following guides containing skills you'll need:

- [Getting started with FLORA](http://learn.adafruit.com/getting-started-with-flora "Link: http://learn.adafruit.com/getting-started-with-flora")
- [Flora RGB Smart Neo Pixels](http://learn.adafruit.com/flora-rgb-smart-pixels "Link: http://learn.adafruit.com/flora-rgb-smart-pixels")
- [Flora Wearable GPS](http://learn.adafruit.com/flora-wearable-gps)
- [Conductive Thread](http://learn.adafruit.com/conductive-thread)  
- [Flora with Snaps](http://learn.adafruit.com/flora-snaps "Link: http://learn.adafruit.com/flora-snaps")  

![](https://cdn-learn.adafruit.com/assets/assets/000/003/488/medium800/flora_gps-jacket.jpg?1396797170)

# Flora GPS Jacket

## Tools & supplies

The [Flora GPS Starter Pack](http://adafruit.com/products/1090) is perfect for this project. It contains all of the supplies you need, just grab a few tools and get to work!

![flora_ID1090_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/510/medium640/flora_ID1090_LRG.jpg?1396797511)

http://youtu.be/SE6vut7nl_4

If you don't have the starter pack, you'll need a [Flora main board](http://adafruit.com/products/659 "Link: http://adafruit.com/products/659"), [Flora GPS](http://adafruit.com/products/1059 "Link: http://adafruit.com/products/1059") and eight [Flora pixels](http://adafruit.com/products/1060 "Link: http://adafruit.com/products/1060").  
  
Other parts:

- Battery holder ([3xAAA w/JST](http://adafruit.com/products/260) recommended)
- [USB cable (A to miniB)](http://adafruit.com/products/260 "Link: http://adafruit.com/products/260")
- [Sewable battery holder](http://adafruit.com/products/653 "Link: http://adafruit.com/products/653") and [coincell battery](http://adafruit.com/products/654) (optional for faster GPS fix)  

![flora_1059launch_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/508/medium640/flora_1059launch_LRG.jpg?1396797490)

![flora_1060quattro_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/509/medium640/flora_1060quattro_LRG.jpg?1396797501)

 **Conductive thread**  
  
[3 ply conductive thread](http://adafruit.com/products/641) is best for thick fabrics like that of our jacket. Don't forget [sewing needles](http://adafruit.com/products/615) and scissors!  
  
 [Check out our guide to working with conductive thread!](http://learn.adafruit.com/conductive-thread "Link: http://learn.adafruit.com/conductive-thread")  
![flora_DSC_0089.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/511/medium640/flora_DSC_0089.jpg?1396797543)

 **Multimeter**  
  
You will need a good quality basic multimeter that can measure voltage and continuity.  
  
[Click here to buy a basic multimeter.](http://adafruit.com/products/71)  
  
[Click here to buy a top of the line multimeter.](http://adafruit.com/products/308)  
  
[Click here to buy a pocket multimeter.](http://adafruit.com/products/850)  
  
[Don't forget to learn how to use your multimeter too!](http://learn.adafruit.com/multimeters)  
  
![flora_ID850_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/506/medium640/flora_ID850_LRG.jpg?1396797475)

![flora_71temp_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/507/medium640/flora_71temp_LRG.jpg?1396797483)

 **Alligator Clips**  
  
Great for testing out your circuit or mocking up designs, alligator clips can connect different components or clip to conductive threads and your multimeter for measuring continuity and resistance.  
  
[Click here to buy a set of small alligator clip test leads.](http://adafruit.com/products/1008 "Link: http://adafruit.com/products/1008")  
  
![flora_1008_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/512/medium640/flora_1008_LRG.jpg?1396797553)

![flora_1060_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/513/medium640/flora_1060_LRG.jpg?1396797557)

**Snaps (optional)**  
  
Snaps can be used for quick-connecting circuit boards. You can sew them with conductive thread and/or solder them to circuit boards.  
  
[Click here to buy 5mm tin-plated brass snaps.](https://www.adafruit.com/products/1126 "Link: https://www.adafruit.com/products/1126")  
  
[Check out our guide to using snaps with Flora!](http://learn.adafruit.com/flora-snaps)  
![flora_1126card_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/515/medium640/flora_1126card_LRG.jpg?1396797572)

![flora_1126insitu_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/516/medium640/flora_1126insitu_LRG.jpg?1396797581)

# Flora GPS Jacket

## Build it

![](https://cdn-learn.adafruit.com/assets/assets/000/003/519/medium800/flora_gps-jacket-diagram.jpg?1396797612)

Here's a diagram of the jacket's circuit. You'll chain eight pixels together around the collar and attach the GPS to 3.3v, TX, RX, and ground. A 3xAAA battery holder hides in a pocket and extends through a seam to plug into the JST port on the Flora.

Make the connections in your circuit with conductive thread.

![flora_DSC_0103.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/520/medium640/flora_DSC_0103.jpg?1396797635)

http://www.youtube.com/watch?v=XT5ygUt8Cbk

Follow our [guide on conductive thread](http://learn.adafruit.com/conductive-thread) so you can stitch up your circuit like a pro!

Start by stitching the ground bus from GND on Flora to the (-) pads on each pixel.  
  
Next stitch the power bus from VBATT to all of the (+) pads on your pixels.

![flora_DSC_0115.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/521/medium640/flora_DSC_0115.jpg?1396797653)

![](https://cdn-learn.adafruit.com/assets/assets/000/003/522/medium800/flora_Screen_Shot_2013-01-09_at_1.29.05_PM.png?1396797712)

Then connect up the short data connections between each pixel. Be sure to seal the knots with clear nail polish or Fray Check.

![](https://cdn-learn.adafruit.com/assets/assets/000/003/524/medium800/flora_Screen_Shot_2013-01-09_at_2.19.24_PM.png?1396797844)

Attach the GPS next! You can sew it directly to your garment or make it snappy with our Flora with Snaps tutorial. Connect 3.3v on the Flora to 3.3v, GND to GND, and RX-\>TX and TX-\>RX.

You can hide the conductive thread traces just under the top layer of fabric, just make sure the stitches aren't so long that they can move and come into contact with each other. You can see that the thread periodically appears on the outside of the garment to anchor the stitched lines.  
  
You can optionally sew a coincell battery holder on the inside of the garment, connecting + to BAT on the GPS and - to GND. This will help the GPS get a fix on your position faster, since it can keep track of its last known position even when the device is off.

![flora_Screen_Shot_2013-01-09_at_2.24.49_PM.png](https://cdn-learn.adafruit.com/assets/assets/000/003/525/medium640/flora_Screen_Shot_2013-01-09_at_2.24.49_PM.png?1396797889)

The battery holder is hidden in a pocket, with the JST connector poking out through a seam to connect to the Flora. If your pocket is far away from your circuit, Use one of our [handy JST battery extension cables](http://www.adafruit.com/products/1131).

# Flora GPS Jacket

## The Code

The code for the Flora GPS Jacket is pretty simple and straightforward. &nbsp;We are using the standard Adafruit GPS Library, and the&nbsp;NeoPixel&nbsp;Library. In modern Arduino IDE versions, go to the Arduino Library Manager and select the following libraries to load:

- Adafruit GPS Library
- Adafruit NeoPixel Library.

If you are using versions of the IDE older than 1.5, links to the code for the libraries are below. Click the buttons below to download.

[Download the Adafruit GPS Library](https://github.com/adafruit/Adafruit-GPS-Library)
[Download the NeoPixel Library](https://github.com/adafruit/Adafruit_NeoPixel)
![](https://cdn-learn.adafruit.com/assets/assets/000/003/526/medium800/flora_Screen_Shot_2013-01-09_at_1.41.36_PM.png?1396797951)

Follow the [Flora Sewable NeoPixel tutorial](http://learn.adafruit.com/flora-rgb-smart-pixels) for more information about installing the library. Test out the pixel sample code to be sure your pixels are functioning properly.  
  
Next follow the [Flora GPS tutorial](http://learn.adafruit.com/flora-wearable-gps/) to test out your GPS module. To make sure your GPS has a direct view of the sky, dip your jacket out the window (but don't let it fall out!). I used a USB extension cable so I could have the jacket out the window but still plugged in to the computer!

If both your pixels and your GPS module are working perfectly in your jacket circuit, click the Download File button below to get the code for this project:

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Flora/Flora_GPS_Jacket/Flora_GPS_Jacket/Flora_GPS_Jacket.ino

![](https://cdn-learn.adafruit.com/assets/assets/000/003/528/medium800/flora_Screen-Shot-2013-01-09-at-2.41.png?1396798013)

Unzip the package and drag the Flora\_GPS\_Jacket folder into your Arduino folder (located by default in Documents on OS X). Open the enclosed **Flora\_GPS\_Jacket.ino** file in the [Adafruit Arduino IDE.](http://learn.adafruit.com/getting-started-with-flora/download-software)

![](https://cdn-learn.adafruit.com/assets/assets/000/003/529/medium800/flora_Screen_Shot_2013-01-09_at_2.46.01_PM.png?1396798047)

The code is easy to modify for your own waypoint and range of sensitivity. Adjust these variables to your own preference. We like [GetLatLong.Net](https://getlatlong.net/) for finding latitudes and longitudes online. Upload your customized code to your jacket.

# Flora GPS Jacket

## Wear it!

![](https://cdn-learn.adafruit.com/assets/assets/000/003/530/medium800/flora_gps-jacket.jpg?1396798079)

Wear your GPS jacket with pride! Try changing the colors for different types of notifications, and make this project your own. We like to wear the Flora board on the outside of our jackets so we can show it to people and talk to them about it, but you can just as easily hide the main board inside the lining. The GPS, however, must be facing outward to have direct line of sight to the sky.  
  
To wash the jacket, simply remove the batteries. All other components can get wet while off, but should be thoroughly dry before powering back up.

![](https://cdn-learn.adafruit.com/assets/assets/000/009/292/medium800/flora_justine_allthethings.jpg?1396887051)


## Related Guides

- [Sewable NeoPixels](https://learn.adafruit.com/flora-rgb-smart-pixels.md)
- [Bluetooth TV Zapper](https://learn.adafruit.com/bluetooth-tv-zapper.md)
- [TRON DISC](https://learn.adafruit.com/trondisc.md)
- [Circuit Playground Bluefruit BLE Heart Rate Pendant with CircuitPython](https://learn.adafruit.com/ble-heart-rate-display-pendant.md)
- [NeoPixel Spats with Gemma and MakeCode](https://learn.adafruit.com/neopixel-spats.md)
- [Archimedes' Boat](https://learn.adafruit.com/archimedes-boat.md)
- [DIY Circuit Playground Shields](https://learn.adafruit.com/circuit-playground-shields.md)
- [PyPortal Wake-Up Light Alarm Clock](https://learn.adafruit.com/pyportal-wake-up-light.md)
- [Zelda Guardian Robot Terrako Companion](https://learn.adafruit.com/terrako.md)
- [Adafruit LM73100 Ideal Diode Breakout](https://learn.adafruit.com/adafruit-lm73100-ideal-diode-breakout.md)
- [CPX Mystery Dreidel](https://learn.adafruit.com/cpx-mystery-dreidel.md)
- [CRICKIT Exhibit Demo Board](https://learn.adafruit.com/crickit-exhibit-demo-board.md)
- [Crickit Powered Dancin' Snowman!](https://learn.adafruit.com/crickit-powered-dancin-snowman.md)
- [Make It Talk](https://learn.adafruit.com/make-it-talk.md)
- [NeoPixel NanoRing](https://learn.adafruit.com/neopixel-nanoring-gemma.md)
- [Cardboard Box for Circuit Playground Express](https://learn.adafruit.com/cardboard-box-for-circuit-playground-express.md)
