{"id":5863,"date":"2010-10-08T08:06:41","date_gmt":"2010-10-08T12:06:41","guid":{"rendered":"http:\/\/scruss.com\/blog\/?p=5863"},"modified":"2020-07-01T09:50:14","modified_gmt":"2020-07-01T13:50:14","slug":"we-stand-in-line-for-thee","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2010\/10\/08\/we-stand-in-line-for-thee\/","title":{"rendered":"&#8230; we stand in line for thee"},"content":{"rendered":"<p>A little bit of silliness for Thanksgiving:<\/p>\n<p><iframe loading=\"lazy\" title=\"O Canada\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/2ewbZVwMr_I?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>This took almost no time to put together. The &#8220;speaker&#8221; is a <a href=\"http:\/\/www.timhortons.com\/\">Tim Hortons<\/a> cup with a cheap piezo glued to the base. What makes the <a href=\"http:\/\/arduino.cc\/\">Arduino<\/a> sing is the <a title=\"desc\" href=\"http:\/\/code.google.com\/p\/rogue-code\/wiki\/ToneLibraryDocumentation\">Tone Library<\/a> running its <a title=\"desc\" href=\"http:\/\/en.wikipedia.org\/wiki\/RTTTL\">RTTTL<\/a> demo sketch, with the anthem itself pasted in from a rather old <a title=\"My conversion of Nokia Ringtones for Nokring\" href=\"http:\/\/www.vex.net\/%7Elawrence\/ringtones.html\">Nokia Ringtones<\/a> library.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-5864\" title=\"Arduino, Tim Hortons cup and piezo\" src=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2010\/10\/Arduino-Tim-Hortons-cup-and-piezo-320x240.jpg\" alt=\"\" width=\"320\" height=\"240\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2010\/10\/Arduino-Tim-Hortons-cup-and-piezo-320x240.jpg 320w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2010\/10\/Arduino-Tim-Hortons-cup-and-piezo-160x120.jpg 160w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2010\/10\/Arduino-Tim-Hortons-cup-and-piezo.jpg 640w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/p>\n\n\n<p><strong>Update<\/strong>: Here&#8217;s the code, such as it is. It&#8217;s just the <a href=\"https:\/\/github.com\/bhagman\/Tone\/tree\/master\/examples\/RTTTL\">Tone\/examples\/RTTTL<\/a> code with the tune data pasted in. I&#8217;d been programming Arduino for about a year, so that was a semi-major achievement for me:<\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2020\/07\/OCanada-RTTTL-200701a.zip\">OCanada-RTTTL-200701a.zip<\/a><a href=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2020\/07\/OCanada-RTTTL-200701a.zip\" class=\"wp-block-file__button\" download>Download<\/a><\/div>\n\n\n\n<p>It&#8217;s nice to revisit old code and find it was written by a friend, Brett Hagman of <a href=\"https:\/\/roguerobotics.com\/\">Rogue Robotics<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A little bit of silliness for Thanksgiving: This took almost no time to put together. The &#8220;speaker&#8221; is a Tim Hortons cup with a cheap piezo glued to the base. What makes the Arduino sing is the Tone Library running its RTTTL demo sketch, with the anthem itself pasted in from a rather old Nokia [&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,10],"tags":[2217,2207,1200,2092,2218,2219,2221,2220,790],"class_list":["post-5863","post","type-post","status-publish","format-standard","hentry","category-computers-suck","category-o-canada","tag-anthem","tag-arduino","tag-canada","tag-chiptune","tag-o_canada","tag-rtttl","tag-timhortons","tag-tim_hortons","tag-youtube"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-1wz","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/5863","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=5863"}],"version-history":[{"count":4,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/5863\/revisions"}],"predecessor-version":[{"id":16412,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/5863\/revisions\/16412"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=5863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=5863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=5863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}