# 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)


## 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)
### Small Alligator Clip Test Lead (set of 12)

[Small Alligator Clip Test Lead (set of 12)](https://www.adafruit.com/product/1008)
Connect this to that without soldering using these handy mini alligator clip test leads. 15" cables with alligator clip on each end, color coded. You get 12 pieces in 6 colors. Strong and grippy, these always come in handy! We often use these in conjunction with a multimeter so we...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1008)
[Related Guides to the Product](https://learn.adafruit.com/products/1008/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)
### 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)
### JST-PH Battery Extension Cable - 500mm

[JST-PH Battery Extension Cable - 500mm](https://www.adafruit.com/product/1131)
By popular demand, we now have a handy extension cord for all of our JST PH-terminated battery packs (such as our LiIon/LiPoly and 3xAAA holders). One end has a JST-PH compatible socket, and the other end has a matching plug. Between the two, 500mm of color coded wire. Handy for wearable...

In Stock
[Buy Now](https://www.adafruit.com/product/1131)
[Related Guides to the Product](https://learn.adafruit.com/products/1131/guides)
### Getting Started with Adafruit FLORA

[Getting Started with Adafruit FLORA](https://www.adafruit.com/product/1839)
 **Making Wearables with an Arduino-Compatible Electronics Platform**  
  
This book introduces readers to building wearable electronics projects using Adafruit's tiny FLORA board: at 4.4 grams, and only 1.75 inches in diameter, and featuring Arduino compatibility, it's the...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1839)
[Related Guides to the Product](https://learn.adafruit.com/products/1839/guides)

## Related Guides

- [FLORA Pixel Brooch](https://learn.adafruit.com/flora-pixel-brooch.md)
- [Let’s Put LEDs in Things!](https://learn.adafruit.com/lets-put-leds-in-things.md)
- [Simple and Beautiful NeoPixel Holiday Lights](https://learn.adafruit.com/simple-beautiful-color-changing-light-strand.md)
- [FLORA and GEMMA ICSP](https://learn.adafruit.com/flora-and-gemma-isp.md)
- [GPS Logging Dog Harness](https://learn.adafruit.com/gps-logging-dog-harness.md)
- [Sunscreen Reminder Hat](https://learn.adafruit.com/sunscreen-reminder-hat.md)
- [VU Meter Baseball Hat](https://learn.adafruit.com/vu-meter-baseball-hat.md)
- [Sparkle Skirt](https://learn.adafruit.com/sparkle-skirt.md)
- [Flora-Powered TARDIS Costume (for Dogs!)](https://learn.adafruit.com/wearable-flora-powered-tardis-costume-dogs.md)
- [Heart Rate Badge](https://learn.adafruit.com/heart-rate-badge.md)
- [NeoPixel Matrix Snowflake Sweater](https://learn.adafruit.com/neopixel-matrix-snowflake-sweater.md)
- [LED Ampli-Tie](https://learn.adafruit.com/led-ampli-tie.md)
- [NeoPixel Ring Clock](https://learn.adafruit.com/neopixel-ring-clock.md)
- [3D Printed Daft Punk Helmet](https://learn.adafruit.com/3d-printed-daft-punk-helmet.md)
- [NeoPixel NanoRing](https://learn.adafruit.com/neopixel-nanoring-gemma.md)
