Posts

Day 5

Image
So I went back into my code and fixed the light up issue. There is a portion of the code that states how many pixels are connected and I had input 0, rather than 1, so it wasn't actually lighting up. Now that I put in 1, I took everything back outside (and forgot my phone inside) and the pixel worked as it should. My next step was the add three more pixels and then sew everything together. Rather than ruining a jacket or hoodie, I have decided to just use some felt and design a prototype to show how it work and look on clothing. This part was the hardest thing by fair. I have no sewing abilities and I found out quickly how difficult it actually is. As a reference, the fully mobile device was working well when plugged into the computer and then when working off of battery power as well. Very satisfying. // Flora GPS + LED Pixel Code // // This code shows how to listen to the GPS module in an interrupt // which allows the program to have more 'fre...

Day 4

Image
So I started out this class by testing the pixels, to make sure that they were operating properly. Arduino has a function in it that allows you to test the pixels with a pre-written code. I tested one pixel, rather than setting up all four, and it worked without a hitch. From here, I set everything up, with the GPS and one pixel with alligator clips, rather than sewing it. I also altered the code to be set to the location of where I tested the GPS so I wouldn't have to be walking all around to get a pixel response. With the alligator clips, I took everything outside to test it, and sure enough, after a few minutes of acquiring satellites, the GPS light stopped blinking, however, rather than the attached neo pixel lighting up, the pixel on the actual Flora board lit up, which was interesting, but it did seem to work, because as I walked back inside, the GPS lost satellites and the pixel turned off. I think what I will have to do is change the acceptable distance from 20 meter...

Day 3

So for adding in the pixel code, I will have to add in the Neo Pixel Adafruit library, just as I had t add in the GPS library. This was all done from the adafruit website, and as easy as clicking a few buttons. From there, I copied the code that adafurit provides for the GPS jacket: // Flora GPS + LED Pixel Code // // This code shows how to listen to the GPS module in an interrupt // which allows the program to have more 'freedom' - just parse // when a new NMEA sentence is available! Then access data when // desired. // // Tested and works great with the Adafruit Flora GPS module //    ------> http://adafruit.com/products/1059 // Pick one up today at the Adafruit electronics shop  // and help support open source hardware & software! -ada #include <Adafruit_GPS.h> #include <SoftwareSerial.h> #include "Adafruit_NeoPixel.h" Adafruit_GPS GPS(&Serial1); // Set GPSECHO to 'false' to turn off echoing the ...

Day 2

Image
This above is my basic set up to test the GPS module on a battery itself. After taking this outside, it was clear that the GPS was actually working and writing to the EEPROM. From here, I will be working on attaching the actual pixels in order to have them lighting up. Right now, this is my current code with which i will have to add in bits and pieces for specific locations and for the pixels to light up specific colors at specific distances. #include <Adafruit_GPS.h> #include <EEPROM.h> int addr = 0; const int inPin = 6; // the number of the toggle pin to enable logging const int ledPin = 7; // the number of the LED pin (displays if logging is on) int buttonState = 0; // variable for reading the toggle status // what's the name of the hardware serial port? #define GPSSerial Serial1 // Connect to the GPS on the hardware port Adafruit_GPS GPS(&GPSSerial); // Set GPSECHO to 'false' to turn off echoing the GPS data to the Serial console // S...

Day 1

Image
So for the first day of actually working on the project, I am doing a lot of referencing back to the Adafruit website. Basically, I will be making a wearable GPS that lights up different colors based upon location. My current thought is to set this up as a game, where the color will change based on distance from the target location. So at 100 meters away the light will be blue, then closer is green, closer is yellow, orange, and then finally red when you have reached the target location. I'm not quite positive what the functionality of this will be in the real world other than a game, but it should be an interesting and fun project to make. The Adafruit website has a tutorial on it that will teach us how to create a Flora GPS Jacket that lights up with the GPS module, so I will be altering this a bit. I will also be referencing the code that we used in our group projects, as I was in the GPS group in which we basically got the GPS to save to the EEPROM. So I will be taking th...

Project Proposal

For my final project, I will be creating a GPS jacket that will have Flora Pixels attached to it that light up with specific colors when reaching specific destinations. This will employ a Flora Board, GPS Module, and several Pixels, all to be affixed discretely to a jacket or hoodie. For this project, I will basically be requiring the Flora GPS Starter Pack, which has a Flora Board, GPS, Pixels, Battery Holder, Wires, and Conductive Thread. https://learn.adafruit.com/flora-gps-jacket/overview