{"id":4842,"date":"2021-03-30T10:15:27","date_gmt":"2021-03-30T14:15:27","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/?p=4842"},"modified":"2021-03-30T10:15:28","modified_gmt":"2021-03-30T14:15:28","slug":"assignment-15-anishwar-and-yael","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/4842\/assignment-15-anishwar-and-yael\/","title":{"rendered":"Assignment 15: Anishwar and Yael"},"content":{"rendered":"\n<p>Ideas for Asymmetrical Secondary Creature:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"480\" height=\"640\" src=\"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/03\/IMG_6490.jpg\" alt=\"\" class=\"wp-image-4844\" srcset=\"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/03\/IMG_6490.jpg 480w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/03\/IMG_6490-225x300.jpg 225w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/03\/IMG_6489.jpg\" alt=\"\" class=\"wp-image-4845\" width=\"476\" height=\"865\" srcset=\"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/03\/IMG_6489.jpg 352w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/03\/IMG_6489-165x300.jpg 165w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/figure>\n\n\n\n<ol><li>Furry ball that triggers reaction in main creature when stroked. This creature will vibrate in response to the noise data received from the creature in the CUC.<\/li><li>This creature lights up in response to the noise data received from the creature in the CUC. This creature will send sound data to the creature in the CUC to trigger its reaction. <\/li><li>This creature opens to reveal a cool pattern when it receives sound data from the creature in the CUC. It has a motion sensor that detects when Yael is near it to trigger the reaction of the CUC creature.<\/li><\/ol>\n\n\n\n<p>We also did some more experimenting with different ways to reinforce the pleats as well as different sized pleats. This proved much better than the previous iteration as the pleats easily opened and closed and held their shape.<\/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=\"Pleats pt2\" width=\"620\" height=\"349\" src=\"https:\/\/www.youtube.com\/embed\/RipqCNvjq-o?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Additionally, we began experimenting with the code to make it behave differently with different volumes of sound.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/03\/IMG_6493.mp4\"><\/video><\/figure>\n\n\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# Write your code here :-)\n    # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries\n    # SPDX-License-Identifier: MIT\n\n   # &quot;&quot;&quot;\n    #This example prints out sound levels using the sound sensor on a Circuit Playground Bluefruit.\n    #Try making sounds towards the board to see the values change.\n\n    #NOTE: This example does NOT support Circuit Playground Express.\n    # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries\n    # SPDX-License-Identifier: MIT\n\n    #&quot;&quot;&quot;\n    #This example lights up the NeoPixels on a Circuit Playground Bluefruit in response to a loud sound.\n    #Try snapping or clapping near the board to trigger the LEDs.\n\n    #NOTE: This example does NOT support Circuit Playground Express.\n\nimport time\nfrom adafruit_circuitplayground import cp\n    # Import the low-level hardware libraries.\nimport board\nimport pwmio\nimport digitalio\nimport analogio\nimport pulseio\n    # Import the Adafruit helper library.\nfrom adafruit_motor import servo\n\n    # Initialize hardware.\n\n    # Create a PWMOut object on pad SDA A5 to generate control signals.\npwm = pulseio.PWMOut(board.A5, frequency=50)\n\n    # Create a Servo object which controls a hobby servo using the PWMOut.\nactuator = servo.Servo(pwm, min_pulse=1000, max_pulse=2000)\n\n     # When there is a loud sound put the servo motor in a position where it sucks air out of the pneumatic.\nactuator.angle = 10\nwhile True:\n        if cp.loud_sound(sound_threshold = 300):\n            print(&quot;something&quot;)\n            actuator.angle = 180\n            time.sleep(3)\n        elif cp.loud_sound(sound_threshold = 150):\n            print(&quot;no way it worked!&quot;)\n            actuator.angle = 60\n            time.sleep(3)\n        else:\n            actuator.angle = 10\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>Ideas for Asymmetrical Secondary Creature: Furry ball that triggers reaction in main creature when stroked. This creature will vibrate in response to the noise data received from the&#8230;<\/p>\n","protected":false},"author":82,"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\/4842"}],"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\/82"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/comments?post=4842"}],"version-history":[{"count":5,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/posts\/4842\/revisions"}],"predecessor-version":[{"id":4870,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/posts\/4842\/revisions\/4870"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/media?parent=4842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/categories?post=4842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/tags?post=4842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}