{"id":56,"date":"2012-10-03T16:32:56","date_gmt":"2012-10-03T16:32:56","guid":{"rendered":"https:\/\/brettjpeterson.com\/blog\/?p=56"},"modified":"2013-01-19T18:32:01","modified_gmt":"2013-01-19T18:32:01","slug":"lets-get-ready-to-ruuummmble","status":"publish","type":"post","link":"https:\/\/brettjpeterson.com\/blog\/2012\/10\/03\/lets-get-ready-to-ruuummmble\/","title":{"rendered":"Let&#8217;s get ready to RUUUMMMBLE!"},"content":{"rendered":"<figure id=\"attachment_66\" aria-describedby=\"caption-attachment-66\" style=\"width: 300px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7663.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-66\" title=\"No more mister nice thumb\" alt=\"\" src=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7663-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7663-300x225.jpg 300w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7663-1024x768.jpg 1024w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7663-400x300.jpg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-66\" class=\"wp-caption-text\">No more mister nice thumb<\/figcaption><\/figure>\n<p>A few assignments ago in physical computing, I had the idea to make a thumb wrestler with a homemade force detector. I&#8217;ll talk about that more below.<\/p>\n<p>Ever since that lab, I&#8217;ve used what I&#8217;ve learned to build onto that project adding LEDs, a servo, and a piezo buzzer. Here&#8217;s a short video demonstrating the final prototype:<\/p>\n<p><!--more--><\/p>\n<p><iframe loading=\"lazy\" src=\"http:\/\/player.vimeo.com\/video\/50693651\" height=\"375\" width=\"500\" frameborder=\"0\"><\/iframe><\/p>\n<p><a href=\"http:\/\/vimeo.com\/50693651\">Thumb Wrestler &#8211; final prototype<\/a> from <a href=\"http:\/\/vimeo.com\/ptterb\">brett peterson<\/a> on <a href=\"http:\/\/vimeo.com\">Vimeo<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<h2>Force Detector<\/h2>\n<p><a href=\"http:\/\/antoni.us\/\">Antonius<\/a>, one of the residents at ITP taught us how to make a force sensor using variable resistive foam and conductive thread.<\/p>\n<figure id=\"attachment_57\" aria-describedby=\"caption-attachment-57\" style=\"width: 300px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7619.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-57\" title=\"foam and foil\" alt=\"\" src=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7619-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7619-300x225.jpg 300w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7619-1024x768.jpg 1024w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7619-400x300.jpg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-57\" class=\"wp-caption-text\">cut resistive foam to the shape that you want. fold 2 pieces of foil (one for each side) to match the shape of the foam<\/figcaption><\/figure>\n<p>I didn&#8217;t have any conductive thread yet, so I used foil instead. The basic concept is that you have 2 pieces of metal (the foil in this case) with a piece of this foam sandwiched in between.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_58\" aria-describedby=\"caption-attachment-58\" style=\"width: 300px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7620.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-58\" title=\"squish the sensor\" alt=\"\" src=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7620-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7620-300x225.jpg 300w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7620-1024x768.jpg 1024w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7620-400x300.jpg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-58\" class=\"wp-caption-text\">apply force!<\/figcaption><\/figure>\n<p>When force is applied to both sides of the sensor, the resistance changes. When we read those changes, we have a variable resistor, much like a potentiometer.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_62\" aria-describedby=\"caption-attachment-62\" style=\"width: 300px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7625.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-62\" title=\"taped\" alt=\"\" src=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7625-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7625-300x225.jpg 300w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7625-1024x768.jpg 1024w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7625-400x300.jpg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-62\" class=\"wp-caption-text\">Tape it up<\/figcaption><\/figure>\n<p>I placed wires onto the contacts and then taped the whole thing up with electrical tape.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_59\" aria-describedby=\"caption-attachment-59\" style=\"width: 300px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7621.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-59\" title=\"version 1\" alt=\"\" src=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7621-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7621-300x225.jpg 300w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7621-1024x768.jpg 1024w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7621-400x300.jpg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-59\" class=\"wp-caption-text\">um&#8230;first try.<\/figcaption><\/figure>\n<p>Then I worked on the &#8220;glove&#8221; for the thumb. I took a piece of fabric and folded it in thirds before sewing it down.<\/p>\n<p>This was my first real sewing project, so the first try didn&#8217;t really turn out. After messing with the tension, it went much better.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_60\" aria-describedby=\"caption-attachment-60\" style=\"width: 300px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7622.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-60\" title=\"IMG_7622\" alt=\"\" src=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7622-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7622-300x225.jpg 300w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7622-1024x768.jpg 1024w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7622-400x300.jpg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-60\" class=\"wp-caption-text\">Much better<\/figcaption><\/figure>\n<p>Then you just slide the sensor into one side and your thumb into the other.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Electronics<\/h2>\n<figure id=\"attachment_68\" aria-describedby=\"caption-attachment-68\" style=\"width: 300px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7667.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-68\" title=\"IMG_7667\" alt=\"\" src=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7667-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7667-300x225.jpg 300w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7667-1024x768.jpg 1024w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7667-400x300.jpg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-68\" class=\"wp-caption-text\">roughly corresponds to &#8220;Average&#8221;<\/figcaption><\/figure>\n<p>The first output I added was the LEDs. They turn on one-by-one when the force reaches a certain threshold. I had to play around with these a bit to find a range that seemed acceptable.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_67\" aria-describedby=\"caption-attachment-67\" style=\"width: 300px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7666.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-67\" title=\"IMG_7666\" alt=\"\" src=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7666-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7666-300x225.jpg 300w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7666-1024x768.jpg 1024w, https:\/\/brettjpeterson.com\/blog\/wp-content\/uploads\/2012\/10\/IMG_7666-400x300.jpg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-67\" class=\"wp-caption-text\">Baby &#8211; Weakling &#8211; Average &#8211; Piano Mover &#8211; Champion<\/figcaption><\/figure>\n<p>Next was the servo and the gauge. The different values were inspired by an turn-of-the-century arm wrestling machine I found online. The servo code and circuitry was pretty straightforward. The servo takes power, ground, and a PWM pin from the Arduino. the output pin sends data using the analogWrite command, with the sensor value mapped to a range that the servo could use.<\/p>\n<p>&nbsp;<\/p>\n<p>Lastly, I added the piezo buzzer used for the victory song. I found an old tune on Youtube that fit my carnival theme and played it out in GarageBand so I could get the notes. Then it was just a matter of adding them to the notes array and playing them when the player reaches a high enough score.<\/p>\n<p>I had a lot of fun working on this project and applying the labs I&#8217;d gone through. <a href=\"https:\/\/github.com\/ptterb\/thumb_force\">I&#8217;ve put my code on github<\/a>\u00a0including a fritzing diagram &#8211; be warned, the diagram is probably awful. It&#8217;s the first I&#8217;ve done.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few assignments ago in physical computing, I had the idea to make a thumb wrestler with a homemade force detector. I&#8217;ll talk about that more below. Ever since that lab, I&#8217;ve used what I&#8217;ve learned to build onto that project adding LEDs, a servo, and a piezo buzzer. Here&#8217;s a short video demonstrating the [&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,4],"tags":[9,13,12,11],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-itp","category-physcomp","tag-arduino","tag-leds","tag-servo","tag-thumb-wrestler"],"_links":{"self":[{"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":10,"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":199,"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/posts\/56\/revisions\/199"}],"wp:attachment":[{"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brettjpeterson.com\/blog\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}