{"id":1472,"date":"2015-12-19T22:14:13","date_gmt":"2015-12-19T22:14:13","guid":{"rendered":"http:\/\/www.blog.exrockets.com\/blog\/?p=1472"},"modified":"2019-03-14T18:19:09","modified_gmt":"2019-03-14T18:19:09","slug":"mini-pic-gps-data-logger-with-sd-card","status":"publish","type":"post","link":"http:\/\/www.blog.exrockets.com\/blog\/mini-pic-gps-data-logger-with-sd-card\/","title":{"rendered":"MINI PIC GPS DATA LOGGER WITH MICRO-SD CARD"},"content":{"rendered":"<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/TOP1.jpg\" rel=\"attachment wp-att-1474\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1474\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/TOP1.jpg\" alt=\"TOP1\" width=\"1800\" height=\"1513\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/TOP1.jpg 1800w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/TOP1-300x252.jpg 300w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/TOP1-768x646.jpg 768w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/TOP1-1024x861.jpg 1024w\" sizes=\"auto, (max-width: 1800px) 100vw, 1800px\" \/><\/a><\/p>\n<h2>Note: The 10 Hz version is described <a href=\"http:\/\/www.blog.exrockets.com\/blog\/high-speed-10-hz-mini-gps-data-logger-with-micro-sd-for-rc-models-and-model-rockets\/\">here<\/a>.<\/h2>\n<p><em>Update Note<\/em>: As mentioned the SD card should be 2GB or less and formatted as FAT16. Due to addressing restrictions the SD card should contain only one partition, created as <strong>PRIMARY PARTITION <\/strong>with no unallocated space before the partition. Please note that some SD cards come with partitions, created as logical partitions and need to have their partitions recreated as mentioned previously.<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/SDCC2.jpg\" rel=\"attachment wp-att-1475\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-1475\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/SDCC2.jpg\" alt=\"SDCC2\" width=\"176\" height=\"133\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/SDCC2.jpg 1738w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/SDCC2-300x226.jpg 300w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/SDCC2-768x578.jpg 768w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/SDCC2-1024x771.jpg 1024w\" sizes=\"auto, (max-width: 176px) 100vw, 176px\" \/><\/a>Based on my first <a href=\"http:\/\/www.blog.exrockets.com\/blog\/small-and-simple-diy-pic-gps-data-logger-with-sd-card\/\">GPS data logger<\/a>\u00a0 I made a new version which is even smaller than the initial design and should be able to fit in any rocket, RC model etc. The new GPS data logger uses micro-SD card and 3.7v LIPO battery as power source. The board was also optimized and the new size is 20mm x 27mm \u2013 less than a standard SD card as you can see on the picture to the right.<\/p>\n<p>&nbsp;<\/p>\n<p>The design is based on my first GPS data logger \u2013 microSD card, GPS module, LDO power supply and PIC18F25J11 micro controller \u2013 all parts are easily obtainable from on-line sources like Ebay or Aliexpress. However some of the pins were changed and the switch transistor for the SD card power supply was removed.<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/SCH.png\" rel=\"attachment wp-att-1477\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1477\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/SCH.png\" alt=\"SCH\" width=\"5194\" height=\"4350\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/SCH.png 5194w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/SCH-300x251.png 300w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/SCH-768x643.png 768w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/SCH-1024x858.png 1024w\" sizes=\"auto, (max-width: 5194px) 100vw, 5194px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/TOP.jpg\" rel=\"attachment wp-att-1482\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1482\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/TOP.jpg\" alt=\"TOP\" width=\"294\" height=\"205\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/TOP.jpg 1749w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/TOP-300x209.jpg 300w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/TOP-768x534.jpg 768w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/TOP-1024x713.jpg 1024w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/a><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/BOT.jpg\" rel=\"attachment wp-att-1483\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1483\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/BOT.jpg\" alt=\"BOT\" width=\"294\" height=\"205\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/BOT.jpg 1749w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/BOT-300x209.jpg 300w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/BOT-768x534.jpg 768w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/BOT-1024x713.jpg 1024w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/a><\/p>\n<p>Using the GPS data logger is also quite simple:<\/p>\n<p>\u2013 Connect to at least 3.3v power supply, the maximum is 5.5 volts.<br \/>\n\u2013 Place the SD card with SETTINGS.TXT file on it in the socket<br \/>\n\u2013 Switch the GPS logger on<br \/>\n\u2013 Wait until the SD card is initialized and all data files are created \u2013 thus wait until the SD card LED stops blinking<br \/>\n\u2013 If the SD LED remains solid on, then there\u2019s something wrong with settings file or the SD card \u2013 for the exact reason please check the LOG_x.TXT file on the card (the file structure is explained further down)<br \/>\n\u2013 Wait until the GPS LED start blinking, indicating that the GPS signal is found and correctly decoded<br \/>\n\u2013 Press and hold for 1 second the SMD button to start the GPS data logging<br \/>\n\u2013 The NMEA GPS data stream will be decoded and recorded in the corresponding text data files (the file structure is explained further down)<br \/>\n\u2013 Stop the GPS data logging press and hold the button again and wait until all files are closed, hence until the SD LED remains solid off<\/p>\n<p>* To safely remove the SD card you need first to stop the data logging and make sure that the SD LED is off when you remove the card<br \/>\n** The power consumption is the sum of the SD card power consumption, the GPS module and the data logger power consumption. If the sampling time is 10sec or less, then the data logger and the GPS module power supply will be always on. The SD cards can draw between 2mA and 100mA depending on the manufacturer and the model. The data logger\u2019s own consumption is 8mA and the GPS uses about 30mA when fully powered. If the sampling time is more than 10sec, then depending on the sampling rate, different power schemes will be used and some parts will be switched off to conserve energy between each data point record.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>FILE SYSTEM:<\/strong><\/span><\/p>\n<p><strong>SETTINGS<\/strong><br \/>\nWrite the sampling time in the first line. The sampling time is expressed in seconds. The minimum sampling time is 2s and the maximum is 99999999s. Make sure that there is a semicolon after the sampling time. After the sampling time, write the number of points to be taken. 0 means no point limit. The minimum point number is 1 and the maximum is 99999999. Make sure that there is a semicolon at the end.<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/08\/SETTINGS.txt\">SETTINGS.TXT<\/a> \u2013 this file contains the sampling rate and the number of data points to be recorded. This file has to be present on the SD card for the proper function of the GPS Logger<\/p>\n<p><strong>LOG FILES<\/strong><br \/>\nIn total 7 files are created for each new GPS data logging. The name of each file indicates what information it will contain and \u201cx\u201d for the serial number of the record (not an absolute serial number but relative to the current number of files on the card)<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/08\/LOG_2.txt\">LOG_x.TXT<\/a> \u2013 contains the data logger system and status information<br \/>\n<a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/08\/GGA_2.txt\">GGA_x.TXT<\/a> \u2013 contains the $GPGGA message (Fix information)<br \/>\n<a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/08\/GSA_2.txt\">GSA_x.TXT<\/a> \u2013 contains the $GPGSA message (Overall Satellite data)<br \/>\n<a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/08\/GSV_2.txt\">GSV_x.TXT<\/a> \u2013 contains the $GPGSV message (Detailed Satellite data)<br \/>\n<a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/08\/RMC_2.txt\">RMC_x.TXT<\/a> \u2013contains the $GPRMC message (Recommended minimum data for GPS)<br \/>\n<a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/08\/VTG_2.txt\">VTG_x.TXT<\/a> \u2013 contains the $GPVTG message (Vector track an Speed over the Ground)<br \/>\n<a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/08\/GPS_2.kml\">GPS_x.KML<\/a> \u2013 this file has all data points converted from DDDMM.MMM to DDD.DDDDDDDD and it is in the format used by Google Earth and Google Maps to display a path in 3D over the ground. To use this file, simply load it in Google Earth.<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/GE.jpg\" rel=\"attachment wp-att-1478\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1478\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/GE.jpg\" alt=\"GE\" width=\"1049\" height=\"720\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/GE.jpg 1049w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/GE-300x206.jpg 300w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/GE-768x527.jpg 768w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/GE-1024x703.jpg 1024w\" sizes=\"auto, (max-width: 1049px) 100vw, 1049px\" \/><\/a><\/p>\n<p>The PCB manufacturing files and the MCU firmware can be downloaded from here:<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/GPS_MICRO_SD_DATA_LOGGER-CADCAM.zip\">GPS_DATA_LOGGER \u2013 CADCAM.ZIP<\/a><br \/>\n<a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/GPS_DATA_LOGGER-\u2013-FIRMWARE-1.3.zip\">GPS_DATA_LOGGER \u2013 FIRMWARE 1.3.ZIP<\/a><\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2015\/12\/BOM.pdf\">BOM<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note: The 10 Hz version is described here. Update Note: As mentioned the SD card should be 2GB or less and formatted as FAT16. Due to addressing restrictions the SD card should contain only one partition, created as PRIMARY PARTITION with no unallocated space before the partition. Please note that some SD cards come with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"gallery","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-1472","post","type-post","status-publish","format-gallery","hentry","category-electronics","post_format-post-format-gallery"],"_links":{"self":[{"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/posts\/1472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/comments?post=1472"}],"version-history":[{"count":15,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/posts\/1472\/revisions"}],"predecessor-version":[{"id":2328,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/posts\/1472\/revisions\/2328"}],"wp:attachment":[{"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/media?parent=1472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/categories?post=1472"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/tags?post=1472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}