{"id":43,"date":"2011-03-06T09:42:47","date_gmt":"2011-03-06T09:42:47","guid":{"rendered":"http:\/\/www.daveakerman.com\/?p=43"},"modified":"2011-03-08T13:51:33","modified_gmt":"2011-03-08T13:51:33","slug":"big-log","status":"publish","type":"post","link":"http:\/\/www.daveakerman.com\/?p=43","title":{"rendered":"Big Log"},"content":{"rendered":"<p>As well as providing a radio downlink of GPS data so we can track and hopefully retrieve the balloon payload, I want that data logged in detail so I can tell afterwards how high it went and where. \u00a0GPS data can be imported into Google Earth for example, to show the route visually.<\/p>\n<p>To do this the flight computer needs storage, and the Arduino has almost none. \u00a0I already had a &#8220;DosOnChip&#8221; device which has a MicroSD card socket and is allegedly easy to use. \u00a0Well, it isn&#8217;t. \u00a0The device provides a high-level interface to the memory card, but in doing so the makers just made things more complex not less. \u00a0They also forgot to document the thing properly. \u00a0The result was several wasted hours before I consigned the damn thing to the bin.<\/p>\n<p>Since I bought that device, the Arduino software has been extended and one of the new things is support for SD cards. \u00a0All you need is a suitable board with SD card socket and then it is very easy to use. \u00a0Well, I don&#8217;t have such a board but being impatient I decided to just solder up the small number of components directly to an old SD card. \u00a0128MB is tiny by today&#8217;s standards but its much more than I need for the balloon&#8217;s 3 hours flight. \u00a0I calculated about 1MB needed for 3 hours, and even if that goes up if I log some more things, it&#8217;s never going to get anywhere near the card&#8217;s capacity.<\/p>\n<p>So this morning I soldered up some wires between Arduino and SD card, including the resistors needed to drop the Arduino&#8217;s 5V logic levels to 3.3V on the SD card.<\/p>\n<p style=\"text-align: center;\">\n<p>Then I loaded up the sample SD Arduino program and &#8230;.. it failed. \u00a0A quick check of the sample program showed that they;d changed the pin connections slightly from the default (which I had wired), so I changed that back and &#8230;.. it worked \ud83d\ude42<\/p>\n<p><a rel=\"attachment wp-att-62\" href=\"http:\/\/www.daveakerman.com\/?attachment_id=62\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-medium wp-image-62\" title=\"card\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2011\/03\/card-300x256.jpg\" alt=\"\" width=\"300\" height=\"256\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2011\/03\/card-300x256.jpg 300w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2011\/03\/card-1024x874.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As well as providing a radio downlink of GPS data so we can track and hopefully retrieve the balloon payload, I want that data logged in detail so I can tell afterwards how high it went and where. \u00a0GPS data can be imported into Google Earth for example, to show [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/posts\/43"}],"collection":[{"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":14,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":54,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions\/54"}],"wp:attachment":[{"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}