{"id":1923,"date":"2020-12-08T05:05:52","date_gmt":"2020-12-08T10:05:52","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/?p=1923"},"modified":"2020-12-10T08:16:06","modified_gmt":"2020-12-10T13:16:06","slug":"final-project-dry-run","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/?p=1923","title":{"rendered":"Final Project: Chill buddy"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_1924\" aria-describedby=\"caption-attachment-1924\" style=\"width: 840px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/demo.png\"><img loading=\"lazy\" class=\"wp-image-1924 size-large\" src=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/demo-1024x683.png\" alt=\"\" width=\"840\" height=\"560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/demo-1024x683.png 1024w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/demo-300x200.png 300w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/demo-768x512.png 768w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/demo.png 1080w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-1924\" class=\"wp-caption-text\">How to wear it: red pad on right wrist, green on left, yellow on your foot, and an accelerometer attached to your shirt.<\/figcaption><\/figure>\n<p>When it comes to exercises like pilates and yoga that requires constant attention to breathing and posture, which can be hard for people to follow while exercising.<\/p>\n<p>The other key part of these types of exercises is that the user should have a good balance of the reflection of their state and maintaining the focus on their body. To assist them, they should be able to know how they are breathing and how they are holding up the posture, yet also they should not be interfered from being <em>zen.<\/em><\/p>\n<p>Therefore, I came up with a device that assists people with both breathing and posture.<\/p>\n<p>The main problem with designing a device for this was that it has to be light and intimate to the body. If it is too heavy, it is uneasy for the user to focus on inner peace. If the user has to carry\/hold on to the device, that would hinder the user from holding up a posture.<\/p>\n<p>Component diagram:<\/p>\n<p><a href=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-10-at-9.55.53-PM.png\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-1959\" src=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-10-at-9.55.53-PM-1024x655.png\" alt=\"\" width=\"840\" height=\"537\" srcset=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-10-at-9.55.53-PM-1024x655.png 1024w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-10-at-9.55.53-PM-300x192.png 300w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-10-at-9.55.53-PM-768x491.png 768w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-10-at-9.55.53-PM-1200x768.png 1200w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-10-at-9.55.53-PM.png 1238w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<p>The device consists of three parts: an ECG sensor, a LED neopixel, and an accelerometer. The neopixel lights up in an ideal breathing tempo, and the ECG sensor monitors your heartbeat and your breathing.<\/p>\n<p>The ECG sensor solved the problem of the lightness and closeness to the body. The ECG sensor comes with three attachable pads. They are light and thin, which made it easier for me as a user to focus on myself.<\/p>\n<p>Explanation video: <a href=\"https:\/\/drive.google.com\/file\/d\/1ynT0niDqBbBioUs-JuklcV1FvNpeHiIn\/view?usp=sharing\">https:\/\/drive.google.com\/file\/d\/1ynT0niDqBbBioUs-JuklcV1FvNpeHiIn\/view?usp=sharing<\/a><\/p>\n<p>Demo video: <a href=\"https:\/\/drive.google.com\/file\/d\/18wtBSU3APmGJdT1yotgQdTB6aySNxs1L\/view?usp=sharing\">https:\/\/drive.google.com\/file\/d\/18wtBSU3APmGJdT1yotgQdTB6aySNxs1L\/view?usp=sharing<\/a><\/p>\n<figure id=\"attachment_1927\" aria-describedby=\"caption-attachment-1927\" style=\"width: 840px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/inhale.png\"><img loading=\"lazy\" class=\"wp-image-1927 size-large\" src=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/inhale-1024x771.png\" alt=\"\" width=\"840\" height=\"632\" srcset=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/inhale-1024x771.png 1024w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/inhale-300x226.png 300w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/inhale-768x578.png 768w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/inhale-1200x903.png 1200w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/inhale.png 1430w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-1927\" class=\"wp-caption-text\">default state; inhale according to the tempo of LED neopixel<\/figcaption><\/figure>\n<figure id=\"attachment_1926\" aria-describedby=\"caption-attachment-1926\" style=\"width: 840px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/exhale.png\"><img loading=\"lazy\" class=\"wp-image-1926 size-large\" src=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/exhale-1024x759.png\" alt=\"\" width=\"840\" height=\"623\" srcset=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/exhale-1024x759.png 1024w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/exhale-300x223.png 300w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/exhale-768x570.png 768w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/exhale-1536x1139.png 1536w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/exhale-1200x890.png 1200w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/exhale.png 1626w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-1926\" class=\"wp-caption-text\">default state; exhale according to the tempo of LED neopixel<\/figcaption><\/figure>\n<figure id=\"attachment_1928\" aria-describedby=\"caption-attachment-1928\" style=\"width: 840px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/calm-down.png\"><img loading=\"lazy\" class=\"size-large wp-image-1928\" src=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/calm-down-1024x579.png\" alt=\"\" width=\"840\" height=\"475\" srcset=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/calm-down-1024x579.png 1024w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/calm-down-300x170.png 300w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/calm-down-768x434.png 768w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/calm-down-1536x868.png 1536w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/calm-down-1200x678.png 1200w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/calm-down.png 1886w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-1928\" class=\"wp-caption-text\">when the heartbeat rises, the light changes to pink and tells you to calm down.<\/figcaption><\/figure>\n<figure id=\"attachment_1925\" aria-describedby=\"caption-attachment-1925\" style=\"width: 840px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/straight-yo-back.png\"><img loading=\"lazy\" class=\"size-large wp-image-1925\" src=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/straight-yo-back-1024x746.png\" alt=\"\" width=\"840\" height=\"612\" srcset=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/straight-yo-back-1024x746.png 1024w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/straight-yo-back-300x218.png 300w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/straight-yo-back-768x559.png 768w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/straight-yo-back-1200x874.png 1200w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/straight-yo-back.png 1472w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-1925\" class=\"wp-caption-text\">when the back is not straight, the LCD tells you to straighten your back.<\/figcaption><\/figure>\n<p>Schematics:<\/p>\n<p><a href=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Schematic.png\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-1929\" src=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Schematic-1024x642.png\" alt=\"\" width=\"840\" height=\"527\" srcset=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Schematic-1024x642.png 1024w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Schematic-300x188.png 300w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Schematic-768x482.png 768w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Schematic-1536x963.png 1536w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Schematic-1200x753.png 1200w, https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/wp-content\/uploads\/2020\/12\/Schematic.png 1722w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<p>Code:<\/p>\n<pre>#include &lt;Wire.h&gt;\r\n#include &lt;LiquidCrystal.h&gt;\r\n\r\n\r\nLiquidCrystal lcd(13, 12, 5, 4, 3, 2);\r\n\r\n#include &lt;Adafruit_NeoPixel.h&gt;\r\n#ifdef __AVR__\r\n#include &lt;avr\/power.h&gt;\r\n#endif\r\n\r\n#define PIN 8\r\n#define NUMPIXELS 8\r\n\r\nAdafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);\r\n\r\nint delayval = 500; \/\/ delay for half a second\r\nint zpin = A1;\r\n\r\nvoid setup() {\r\n\/\/ initialize the serial communication:\r\nSerial.begin(9600);\r\nlcd.begin(16,2);\r\npixels.begin();pixels.begin();\r\n\r\npinMode(10, INPUT); \/\/ Setup for leads off detection LO +\r\npinMode(11, INPUT); \/\/ Setup for leads off detection LO -\r\npinMode(zpin, INPUT);\r\n}\r\n\r\nvoid loop() {\r\n\r\nfor(int i=0;i&lt;NUMPIXELS;i++){\r\n\r\n\/\/ pixels.Color takes RGB values, from 0,0,0 up to 255,255,255\r\npixels.setPixelColor(i, pixels.Color(0,150,0)); \/\/green\r\n\r\npixels.show(); \/\/ This sends the updated pixel color to the hardware.\r\n\r\ndelay(delayval); \/\/ Delay for a period of time (in milliseconds).\r\n\r\nlcd.setCursor(0,0);\r\nlcd.print(\"INHALE \");\r\nlcd.setCursor(0,2);\r\n\/\/ lcd.print(\" \");\r\n\r\n}\r\n\r\nfor(int k=NUMPIXELS;k&gt;0;k--){\r\n\r\n\r\npixels.setPixelColor(k, pixels.Color(0,0,0));\r\n\r\npixels.show();\r\n\r\ndelay(delayval);\r\n\r\nlcd.setCursor(0,0);\r\nlcd.print(\"EXHALE \");\r\n}\r\n\r\nif (analogRead(A0)&gt;700){\r\nfor(int i=0;i&lt;NUMPIXELS;i++){\r\n\r\n\r\npixels.setPixelColor(i, pixels.Color(235,64,52));\r\n\r\npixels.show();\r\n\r\ndelay(delayval);\r\n\r\n\r\nlcd.setCursor(0,2);\r\nlcd.print(\"CALM DOWN \");\r\n\r\n}\r\n\r\nfor(int k=NUMPIXELS;k&gt;0;k--){\r\n\r\n\r\npixels.setPixelColor(k, pixels.Color(235,64,52));\r\n\r\npixels.show();\r\n\r\ndelay(delayval);\r\n\r\n\r\nlcd.setCursor(0,2);\r\nlcd.print(\"CALM DOWN \");\r\n\r\n}\r\n}\r\n\r\nif(analogRead(zpin)&gt;300){\r\nlcd.setCursor(0,2);\r\nlcd.print(\"BACK STRAIGHT\");\r\n}\r\n\r\nif((digitalRead(10) == 1)||(digitalRead(11) == 1)){\r\nSerial.println('!');\r\n}\r\nelse{\r\n\/\/ send the value of analog input 0:\r\nSerial.println(analogRead(A0));\r\n}\r\n\/\/Wait for a bit to keep serial data from saturating\r\ndelay(10);\r\n\r\n}\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; When it comes to exercises like pilates and yoga that requires constant attention to breathing and posture, which can be hard for people to follow while exercising. The other key part of these types of exercises is that the user should have a good balance of the reflection of their state and maintaining &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/?p=1923\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Final Project: Chill buddy&#8221;<\/span><\/a><\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/index.php?rest_route=\/wp\/v2\/posts\/1923"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/index.php?rest_route=\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1923"}],"version-history":[{"count":5,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/index.php?rest_route=\/wp\/v2\/posts\/1923\/revisions"}],"predecessor-version":[{"id":1962,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/index.php?rest_route=\/wp\/v2\/posts\/1923\/revisions\/1962"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/f2020\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}