{"id":6050,"date":"2011-02-09T22:28:00","date_gmt":"2011-02-10T03:28:00","guid":{"rendered":"http:\/\/scruss.com\/blog\/?p=6050"},"modified":"2011-02-10T07:31:56","modified_gmt":"2011-02-10T12:31:56","slug":"big-trouble-in-little-microsd","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2011\/02\/09\/big-trouble-in-little-microsd\/","title":{"rendered":"big trouble in little microSD"},"content":{"rendered":"<p>It was a bit of a fight to get the <a href=\"http:\/\/www.sparkfun.com\/products\/9802\">SparkFun <\/a><a href=\"http:\/\/www.sparkfun.com\/products\/9802\">microSD Shield<\/a> working. At first, I thought it was my choice of cards. Then, on reading the <a href=\"http:\/\/www.sparkfun.com\/tutorials\/172\">manual<\/a> (ahem), I discovered the section &#8220;<em><a href=\"http:\/\/www.sparkfun.com\/tutorials\/172#library\">I downloaded a FAT library for Arduino on my own from the Web but it&#8217;s not working! Why not?<\/a><\/em>&#8220;. It seems that the SparkFun shield uses non-standard pins for signalling, which they consider a feature, but <a href=\"https:\/\/code.google.com\/p\/sdfatlib\/issues\/detail?id=5\">some consider a bug<\/a>.<\/p>\n<p>After fixing the code in the awesome <a href=\"https:\/\/code.google.com\/p\/sdfatlib\/\">sdfatlib<\/a> library, I&#8217;ve now got it logging the temperature of a cooling container of hot water:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-6051\" title=\"arduino microSD logging temperature\" src=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2011\/02\/IMG_0500-768x1024.jpg\" alt=\"\" width=\"640\" height=\"853\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2011\/02\/IMG_0500-768x1024.jpg 768w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2011\/02\/IMG_0500-120x160.jpg 120w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2011\/02\/IMG_0500-240x320.jpg 240w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2011\/02\/IMG_0500.jpg 960w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/>You might just be able to make out the <a href=\"http:\/\/www.national.com\/mpf\/LM\/LM35.html#Overview\">LM35<\/a> pressed up against the measuring cup.<\/p>\n<p>I remember making a right mess of this experiment in my school final Physics practical exam. I also used to do this in my first job when <span style=\"text-decoration: line-through;\">bored<\/span> testing <a href=\"http:\/\/www.campbellsci.ca\/Catalogue\/CR10X.html\">Campbell CR10<\/a> dataloggers, making a nice 1-d cooling curve with a thermocouple and a cup of hot water.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6055\" title=\"graph!\" src=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-09-at-23.12.25-.png\" alt=\"\" width=\"618\" height=\"518\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-09-at-23.12.25-.png 618w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-09-at-23.12.25--160x134.png 160w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-09-at-23.12.25--320x268.png 320w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\" \/>I think the heating came on a couple of times, as there shouldn&#8217;t be bumps in the curve. Here&#8217;s the <a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2011\/02\/LOGGER00.ods\">data<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It was a bit of a fight to get the SparkFun microSD Shield working. At first, I thought it was my choice of cards. Then, on reading the manual (ahem), I discovered the section &#8220;I downloaded a FAT library for Arduino on my own from the Web but it&#8217;s not working! Why not?&#8220;. It seems [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[2207,2266,2265,2262,2260,1471,2264,2263,2261],"class_list":["post-6050","post","type-post","status-publish","format-standard","hentry","category-computers-suck","tag-arduino","tag-csv","tag-lm35","tag-logger","tag-microsd","tag-nerdy","tag-rtfm","tag-sdfatlib","tag-sparkfun"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-1zA","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/6050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=6050"}],"version-history":[{"count":6,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/6050\/revisions"}],"predecessor-version":[{"id":6059,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/6050\/revisions\/6059"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=6050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=6050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=6050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}