{"id":5292,"date":"2021-05-04T01:51:15","date_gmt":"2021-05-04T05:51:15","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/?p=5292"},"modified":"2021-05-04T01:51:17","modified_gmt":"2021-05-04T05:51:17","slug":"assignment-23-kanvi-and-yael","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/5292\/assignment-23-kanvi-and-yael\/","title":{"rendered":"Assignment 23: Kanvi and Yael"},"content":{"rendered":"\n<p>The two of us continued to develop our ideas into something that could physically work.<\/p>\n\n\n\n<p><strong>Yael<\/strong><\/p>\n\n\n\n<p>I created the hats(!!!) for the little desk friends. These hats have a small fsr inside them that will be used to detect touch. I attached the fsr to the top of the bottle cap and then covered the constructed hat and fsr with fabric. I carefully navigated the tail of the fsr down along the side of the hat, giving it the appearance of an elegant detail when worn by the desk friends.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"1024\" src=\"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153725-1024x1024.jpg\" alt=\"\" class=\"wp-image-5293\" srcset=\"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153725-1024x1024.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153725-300x300.jpg 300w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153725-150x150.jpg 150w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153725-768x768.jpg 768w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153725-1536x1536.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153725-2048x2048.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153725-88x88.jpg 88w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153725-973x973.jpg 973w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153725-508x508.jpg 508w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"1024\" src=\"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153325-1024x1024.jpg\" alt=\"\" class=\"wp-image-5294\" srcset=\"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153325-1024x1024.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153325-300x300.jpg 300w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153325-150x150.jpg 150w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153325-768x768.jpg 768w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153325-1536x1536.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153325-2048x2048.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153325-88x88.jpg 88w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153325-973x973.jpg 973w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/05\/20210501_153325-508x508.jpg 508w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Kanvi<\/strong><\/p>\n\n\n\n<p>Yael dropped off the hats and friends with me, so I got to wire up the sensors and test them out!<\/p>\n\n\n\n<p>With the following code, I have the sensor outputting an analog value dependent on how much force is placed on the friend&#8217;s head.<\/p>\n\n\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# Circuit Playground AnalogIn\n# Reads the analog voltage level from FSR connected to GND, 3.3V, and pin A2\n# and prints the results to the serial console.\n\nimport time\nimport board\nimport analogio\n\nanalogin = analogio.AnalogIn(board.A2)\n\n\ndef getVoltage(pin):  # helper\n    return (pin.value * 3.3) \/ 1023\n\n\nwhile True:\n    print(&quot;Analog Voltage: %f&quot; % getVoltage(analogin))\n    time.sleep(0.2)\n<\/pre>\n\n\n<p>During class today, we plan to set up our servos permanently and then make them react to different values, using the functions I wrote last class. <\/p>\n\n\n\n<p>Here&#8217;s a video of me patting one of the hats and the analog reads coming in on my computer in the background:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Petting Desk Friend&#039;s Hat\" width=\"620\" height=\"349\" src=\"https:\/\/www.youtube.com\/embed\/_0JQYhxBgNk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The two of us continued to develop our ideas into something that could physically work. Yael I created the hats(!!!) for the little desk friends. These hats have&#8230;<\/p>\n","protected":false},"author":81,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/posts\/5292"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/comments?post=5292"}],"version-history":[{"count":2,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/posts\/5292\/revisions"}],"predecessor-version":[{"id":5314,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/posts\/5292\/revisions\/5314"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/media?parent=5292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/categories?post=5292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/tags?post=5292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}