Now you know the context. Let´s face this, this is not a tough task. Nevertheless, the gadget is not a classical device, for an instance, it is supposed to be able to resist hard impacts and also humid conditions (rain likely), it must have a very smart and efficient energy use (The player cannot recharge the battery during the game), it also must have a fair memory in order to store all the data given by the GPS (Yes, we are using a GPS to know the exact location of the player) and YES! It must be portable... So, Yes again! We must use as many SMD components as possible.
There are many trackers (or dataloggers) in the market, DIY kind and also professionals but none of them are small enough for the use of this project, for this reason we are using the smallest (and also cheapest) trackers we could get so we can have some data to work with in the first place. I decided to use the first version of the GPS datalogger that Adafruit used to sell (see the picture). Fortunately I had one of those in my bench so spending any extra dollar in my first mock-up was not needed.
The Datalogger sold by Adafruit had the advantage of storing all of your data in a .txt file inside your SD memory card. This was so cool since my computer has a SD port where I could insert the SD card and check the coordinates stored by my dog. Anyway, after a brief walking the .txt file was like this:
Evidently unless your are a sailor or a pilot this numbers are nothing to us so Let's see this by part (Divide and conquer)...
GPRMC is a GPS data Protocol
- the first 9 numbers are just the local time, so 004326 means 12 hours 43 minutes and 26 seconds,
- then an "A" which is a warning character, A is used when your GPS is receiving coordinates correctly, "V" when it's NOT.
- The latitude (3320 S)
- The longitude (7032 W)
- Speed (Knots) (1.80)
- Course made good (Honestly, I don´t know what this is useful for so probably I'm not using this)
- Date (dd/mm/yy)
- Checksum (To verify if you received the amount of bits you are saying you received)
Now we know what the data means but we are not ready yet! We have the coordinates and speed (in knots) but wouldn´t it be very cool if we could visualize this coordinates. Well, not worries! there is a website called gpsvisualizer.com where we can insert our coordinates and it draws for us the trajectory. Even better, we don´t have to manipulate the .txt file, we only have to import the .txt file itself and the website decodes the GPRMC by itself (The Reason? GPRMC is an official protocol).
In the upper picture we can see Emma's trajectory in the park. According to what she did it's pretty accurate but there are some inconsistencies, for example, some times Emma looks like if she were running through the houses. Later I´m going to show you how to detect this inconsistiencies and eliminate them in order to make the measuring the cleaner we can.
So, to know the rest of the story read the second part here!