{"id":53,"date":"2011-03-30T00:21:24","date_gmt":"2011-03-30T00:21:24","guid":{"rendered":"http:\/\/dial-a-grue.com\/gory\/?p=53"},"modified":"2011-03-30T03:08:17","modified_gmt":"2011-03-30T03:08:17","slug":"problems-loading-sketches-into-new-arduino-mega","status":"publish","type":"post","link":"https:\/\/dial-a-grue.com\/gory\/?p=53","title":{"rendered":"Problems loading sketches into new Arduino Mega"},"content":{"rendered":"<p>As I said in a <a title=\"Smaller, but still not working\u00e2\u20ac\u00a6\" href=\"http:\/\/dial-a-grue.com\/gory\/?p=42\">previous post<\/a>, It looks like a standard Arduino just doesn&#8217;t have enough memory, so I found an Arduino Mega, which is based on the ATMega 1280 rather than the 328.<\/p>\n<p>However, when I got the <a href=\"http:\/\/store.makerbot.com\/arduino-mega.html\">Mega<\/a> from <a href=\"http:\/\/www.makerbot.com\/\">MakerBot Industries<\/a>, it refused to accept any new program uploads. \u00c2\u00a0Every time I tried I got:<\/p>\n<blockquote><p>avrdude: stk500_2_ReceiveMessage(): timeout<\/p><\/blockquote>\n<p>Read how I fixed it after the break.<\/p>\n<p><!--more-->It turns out that MakerBot ships their Mega&#8217;s with the auto-reset feature disabled. \u00c2\u00a0You can fix this one of two ways:<\/p>\n<ol>\n<li>Manually hit reset just before (&lt; 1 second) you begin to upload your sketch.<\/li>\n<li>Put a little blob of solder across the two pads labeled &#8220;<strong>RESET-EN<\/strong>&#8220;.<\/li>\n<\/ol>\n<p>I chose #2 , and <em>voil\u00c3\u00a0<\/em>, new sketches load fine.<\/p>\n<p>The very first messages from the GruePhone Brains:<\/p>\n<blockquote><p>Welcome to GruePhone.<br \/>\nSD Card initialized<br \/>\nFailed to open story file zork1.dat<br \/>\nYou have been eaten by the GruePhone!<\/p><\/blockquote>\n<p>D&#8217;oh! I got the test for whether the file exists backwards! \u00c2\u00a0Now that is fixed&#8230;. but memory problems persist., but more about that in future posts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I said in a previous post, It looks like a standard Arduino just doesn&#8217;t have enough memory, so I found an Arduino Mega, which is based on the ATMega 1280 rather than the 328. However, when I got the Mega from MakerBot Industries, it refused to accept any new program uploads. \u00c2\u00a0Every time I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,9],"tags":[],"class_list":["post-53","post","type-post","status-publish","format-standard","hentry","category-brains","category-coding"],"_links":{"self":[{"href":"https:\/\/dial-a-grue.com\/gory\/index.php?rest_route=\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dial-a-grue.com\/gory\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dial-a-grue.com\/gory\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dial-a-grue.com\/gory\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dial-a-grue.com\/gory\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=53"}],"version-history":[{"count":0,"href":"https:\/\/dial-a-grue.com\/gory\/index.php?rest_route=\/wp\/v2\/posts\/53\/revisions"}],"wp:attachment":[{"href":"https:\/\/dial-a-grue.com\/gory\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dial-a-grue.com\/gory\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dial-a-grue.com\/gory\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}