{"id":5033,"date":"2021-04-08T10:30:08","date_gmt":"2021-04-08T14:30:08","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/?p=5033"},"modified":"2021-04-08T11:02:07","modified_gmt":"2021-04-08T15:02:07","slug":"project-1-flower-power","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/5033\/project-1-flower-power\/","title":{"rendered":"Project 1: Flower Power"},"content":{"rendered":"\n<p><strong><em>Concept<\/em><\/strong><\/p>\n\n\n\n<p>For our project, our intention was to create an ambient flower that slowly moved when it was in its peaceful state. We decided to keep the background and the back of the petals the same so that the focus was on the reveal of the flower. We included tulle in the center to add to that surprise and painted the metal to blend in the non-organic parts. When disturbed, the flower &#8216;closes up&#8217; and plays a high-pitched noise to relate to the partner that the peace has been disturbed.<\/p>\n\n\n\n<p><strong><em>The Outcome<\/em><\/strong><\/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\/04\/IMG_4998-1024x1024.jpg\" alt=\"\" class=\"wp-image-5034\" srcset=\"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4998-1024x1024.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4998-300x300.jpg 300w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4998-150x150.jpg 150w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4998-768x768.jpg 768w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4998-1536x1536.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4998-2048x2048.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4998-88x88.jpg 88w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4998-973x973.jpg 973w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4998-508x508.jpg 508w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Elise&#8217;s Flower Proxy Body (close-up)<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"768\" height=\"1024\" src=\"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4999-768x1024.jpg\" alt=\"\" class=\"wp-image-5035\" srcset=\"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4999-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4999-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4999-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4999-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4999-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4999-508x677.jpg 508w, https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-content\/uploads\/2021\/04\/IMG_4999-scaled.jpg 1920w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><figcaption>Full Enclosed View of Elise&#8217;s Flower Proxy Body with Suspension Vine and Bluefruit<\/figcaption><\/figure>\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=\"Kinetic Fabrics Project 1 - FlowerPower\" width=\"620\" height=\"349\" src=\"https:\/\/www.youtube.com\/embed\/qu41aOMhp5k?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><figcaption>Kanvi&#8217;s Flower Proxy Body Responding to Elise&#8217;s Loud Noise<\/figcaption><\/figure>\n\n\n\n<p>In the video, we can see the red light light behind Kanvi&#8217;s flower when Elise makes a loud noise and hear the tones play in reaction.<\/p>\n\n\n\n<p>As it can be seen, our flowers emerged differently as we worked independently to build them. Elise&#8217;s flower lived inside an enclosure, with a vine leading up and out, and lights reflecting on the green fabric. Kanvi&#8217;s grew out of the enclosure, with a suspended servo and flower, with the lights shining through the green fabric.<\/p>\n\n\n\n<p><strong><em><span class=\"has-inline-color has-accent-color\">The Code<\/span><\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-black-color\">import time\nimport sys\nimport math\nimport board\nimport pwmio\nfrom adafruit_circuitplayground import cp\nfrom adafruit_motor import servo\n\nimport supervisor\n\npwm = pwmio.PWMOut(board.A5, duty_cycle=0, frequency=50)\nactuator = servo.Servo(pwm, min_pulse=1000, max_pulse=2000)\n\ncp.pixels.brightness = 0.3\n\nnoiseDetectedPhrase = \"bang!\"\n\ndef check_noise():\n    if cp.sound_level &gt;= 300:\n            print(noiseDetectedPhrase)\n\ndef react():\n    cp.pixels.fill((255, 0, 0))\n    cp.play_tone(2000,.5)\n    cp.play_tone(1950, .1)\n    cp.play_tone(1875, .07)\n    cp.play_tone(1900, .3)\n    time.sleep(10)\n\nwhile True:\n\n    for angle in range(90, 135, 1):\n        cp.pixels.fill((0, 255, 0))\n        actuator.angle = angle\n        time.sleep(0.02)\n\n        check_noise()\n\n        if supervisor.runtime.serial_bytes_available:\n            line = sys.stdin.readline()\n            if line.contains(noiseDetectedPhrase):\n                react()\n\n    for angle in range(135, 90, -1):\n        cp.pixels.fill((0, 255, 0))\n        actuator.angle = angle\n        time.sleep(0.02)\n\n        check_noise()\n\n        if supervisor.runtime.serial_bytes_available:\n            line = sys.stdin.readline()\n            if line.contains(noiseDetectedPhrase):\n                react()<\/span><\/code><\/pre>\n\n\n\n<p><strong><em>Issues<\/em><\/strong><\/p>\n\n\n\n<p>Some issues we encountered included the bridge not sending messages from Kanvi&#8217;s to Elise&#8217;s flower as well as having the metals tendons staying in place, which really only worked well with one for Elise&#8217;s side. There was also the change from an opening and closing flower to just a subtly moving and shifting flower, almost as if it was moving in the wind.<\/p>\n\n\n\n<p><strong><em>Conclusion<\/em><\/strong><\/p>\n\n\n\n<p>For the fact that it mostly worked, the flowers looked beautiful and the movement was peaceful. The dynamic of having a &#8220;bang!&#8221; translate across the bridge was also fun. When we heard it work, we both were very excited. We also really enjoyed the beauty of having different flowers and enclosures, because this brought character to each of our proxy bodies. Ways to improve would be to have fully functional flowers, with an improved open-close mechanism, and be able to have the response go both ways. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Concept For our project, our intention was to create an ambient flower that slowly moved when it was in its peaceful state. We decided to keep the background&#8230;<\/p>\n","protected":false},"author":84,"featured_media":5034,"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\/5033"}],"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\/84"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/comments?post=5033"}],"version-history":[{"count":9,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/posts\/5033\/revisions"}],"predecessor-version":[{"id":5052,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/posts\/5033\/revisions\/5052"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/media\/5034"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/media?parent=5033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/categories?post=5033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/16-376\/s2021\/wp-json\/wp\/v2\/tags?post=5033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}