{"id":11116,"date":"2021-10-08T22:36:44","date_gmt":"2021-10-09T02:36:44","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/?p=11116"},"modified":"2021-10-08T22:36:44","modified_gmt":"2021-10-09T02:36:44","slug":"cov-aid-belt-tushhar-saha","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/cov-aid-belt-tushhar-saha\/","title":{"rendered":"Cov-Aid Belt: Tushhar Saha"},"content":{"rendered":"<h2>Description<\/h2>\n<p>The Cov-Aid belt is a belt that helps you stay safe and battle coronavirus. It has 3 switches that help you select your statuses and 1 ultrasonic distance sensor that detects people within 6 feet in front of you. For this belt, the range is smaller than 6 feet due to limitations of the sensor. The 3 statuses are if you are masked or not, vaccinated or not, and if you are indoors or outdoors. Based on the combination of these switches and the sensor, the belt tells you if you are safe or unsafe. There are 4 outputs in total. One LED tells you if you are safe. One LED tells you if you are unsafe. The other two outputs are the buzzer and the pancake vibration motor. They work together to alert the person wearing the belt if they are inside and someone is less than 6 feet close to them. The safe LED is only on when the other outputs are off.<\/p>\n<p>The belt is made up of laser-cut wood. It is cut in such a way that it can be bent and stretched. It is wide enough to hold all the components, and it is long enough to fit almost any person. The belt can be fastened by tying the connected rope.<\/p>\n<h2>In-Progress Media<\/h2>\n<div id=\"attachment_11024\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-11024\" loading=\"lazy\" class=\"size-full wp-image-11024\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/09\/20210921_225256-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1920\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/09\/20210921_225256-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/09\/20210921_225256-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/09\/20210921_225256-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/09\/20210921_225256-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/09\/20210921_225256-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/09\/20210921_225256-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/09\/20210921_225256-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/09\/20210921_225256-508x381.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-11024\" class=\"wp-caption-text\">Initial model of how I wanted my belt to look like<\/p><\/div>\n<div id=\"attachment_11404\" style=\"width: 1522px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11404\" loading=\"lazy\" class=\"wp-image-11404 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM.jpeg\" alt=\"\" width=\"1512\" height=\"2016\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM.jpeg 1512w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM-225x300.jpeg 225w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM-768x1024.jpeg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM-1152x1536.jpeg 1152w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM-973x1297.jpeg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM-508x677.jpeg 508w\" sizes=\"(max-width: 1512px) 100vw, 1512px\" \/><p id=\"caption-attachment-11404\" class=\"wp-caption-text\">Soldering all the components so they can be used out of the breadboard<\/p><\/div>\n<div id=\"attachment_11407\" style=\"width: 1522px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11407\" loading=\"lazy\" class=\"wp-image-11407 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM-1.jpeg\" alt=\"\" width=\"1512\" height=\"2016\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM-1.jpeg 1512w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM-1-225x300.jpeg 225w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM-1-768x1024.jpeg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM-1-1152x1536.jpeg 1152w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM-1-973x1297.jpeg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.39-PM-1-508x677.jpeg 508w\" sizes=\"(max-width: 1512px) 100vw, 1512px\" \/><p id=\"caption-attachment-11407\" class=\"wp-caption-text\">Testing the circuit with soldered components to make sure the logic is working<\/p><\/div>\n<div style=\"width: 620px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-11116-1\" width=\"620\" height=\"341\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Video-2021-10-08-at-8.39.40-PM.mp4?_=1\" \/><a href=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Video-2021-10-08-at-8.39.40-PM.mp4\">https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Video-2021-10-08-at-8.39.40-PM.mp4<\/a><\/video><\/div>\n<p style=\"text-align: center\">Testing components with batteries after initial mounting<\/p>\n<div id=\"attachment_11405\" style=\"width: 2026px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11405\" loading=\"lazy\" class=\"wp-image-11405 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.40-PM.jpeg\" alt=\"\" width=\"2016\" height=\"1512\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.40-PM.jpeg 2016w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.40-PM-300x225.jpeg 300w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.40-PM-1024x768.jpeg 1024w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.40-PM-768x576.jpeg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.40-PM-1536x1152.jpeg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.40-PM-973x730.jpeg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.39.40-PM-508x381.jpeg 508w\" sizes=\"(max-width: 2016px) 100vw, 2016px\" \/><p id=\"caption-attachment-11405\" class=\"wp-caption-text\">Mounting everything on the belt with double sided tape and glue gun<\/p><\/div>\n<h2>Process Reflection<\/h2>\n<h4>What worked well?<\/h4>\n<p>The flexibility of the belt seemed to have helped a lot in fastening it, as it would not only bend really well but also stretch enough to tighten around the waist. The belt was also hard at the same time allowing easy mounting of components. On top of that, bendable wood has always been a fascinating thing to me so I was glad I got to use it.<\/p>\n<p>When I first tried it on, I was afraid that the components wouldn&#8217;t stay vertical. However, it seemed to be staying on pretty strong. It was even more apparent when I was trying to dismount some of the things on the belt. The reason I wasn&#8217;t too confident about it staying on was in fact not the mounting mechanism but the belt. I shall talk more about this in the next section.<\/p>\n<p>Thanks to the suggestion in the in-progress critique, I made sure the switches and LEDs were facing upwards by mounting them on the board on top of the belt. This allowed the user to interact with the switches and read the LEDs properly simply by looking down.<\/p>\n<h4>What could have been better?<\/h4>\n<p>I definitely believe that the belt could have looked better. While it did give off a &#8216;cyborg&#8217; vibe, the inner workings and the electronics were something I was hoping I could hide. It was an issue I ran into after mounting the components. I realized that the belt was too heavy. While the user would have been able to bear more weight, I cannot say the same about the belt. The laser-cut design that caused the belt to bend also made it weak in the vertical direction. If I added more material to hide the circuits, the middle part with the components would put too much weight resulting in either a break in the belt or a very uncomfortable and unstable belt.<\/p>\n<p>The next thing I would have hoped to improve was the mounting of the components on the wooden board and how it looked. This had to be done by drilling holes instead of using the laser cutters as the laser cutters were closed on Sunday. In hindsight, I should have planned this step better to have what I needed laser cut beforehand.<\/p>\n<p>Furthermore, I would have also preferred to use a different sensor with not only a larger range but also a way to detect if the object detected is a person and not a wall. This was an issue that arose at one of the earlier discussions. While it wasn&#8217;t on top of my priority list to solve this issue, I would have still preferred if I could come up with something that allowed me to differentiate an object and human being with ease.<\/p>\n<p>Finally, I did gain a lot of insight into improvements I could have made in the critiques we had. Two major points were the material I could have used and another form of the kit I could have used. The first critique made me understand that I can deal with some of the weight problems I was having by using a fanny pack instead of a belt. It did seem like a good way to make it look visually better as well. The fastening mechanism would also be more secure this way. The second critique was that instead of using it like a belt, I could use it like a sash. This would definitely make it easier to deal with in terms of weight. Not only would it not feel as heavy, the weight would also be distributed horizontally.<\/p>\n<h4>Learning<\/h4>\n<p>I definitely enjoyed utilizing the maker cards with a lot of different output, input, power and control components. They helped me widen my outputs for this project, and I know that I will be using them again in the future. I am glad I was also able to implement transistors for driving components that couldn&#8217;t be driven by logic circuits. This was my first time using transistors in an IDEATE project, and I am glad I have this in my arsenal for the next upcoming projects. Lastly, the logic gates were something I was excited playing with. While I knew how they worked, I still felt like a kid trying out new toys when working with actual gate components. Learning with them made me realize how many things there are in this world that can be split into simple binary.<\/p>\n<h2>Pictures and Video of Cov-Aid in action<\/h2>\n<div id=\"attachment_11415\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-11415\" loading=\"lazy\" class=\"size-full wp-image-11415\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0056-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1711\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0056-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0056-300x201.jpg 300w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0056-1024x684.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0056-768x513.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0056-1536x1027.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0056-2048x1369.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0056-973x650.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0056-508x340.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-11415\" class=\"wp-caption-text\">Presentation with the belt<\/p><\/div>\n<div id=\"attachment_11414\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-11414\" loading=\"lazy\" class=\"wp-image-11414 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0058-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1711\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0058-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0058-300x201.jpg 300w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0058-1024x684.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0058-768x513.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0058-1536x1027.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0058-2048x1369.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0058-973x650.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0058-508x340.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-11414\" class=\"wp-caption-text\">People interacting with the logic of the belt<\/p><\/div>\n<div id=\"attachment_11413\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-11413\" loading=\"lazy\" class=\"size-full wp-image-11413\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0061-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1711\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0061-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0061-300x201.jpg 300w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0061-1024x684.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0061-768x513.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0061-1536x1027.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0061-2048x1369.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0061-973x650.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0061-508x340.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-11413\" class=\"wp-caption-text\">Fastening the belt on a volunteer<\/p><\/div>\n<div id=\"attachment_11412\" style=\"width: 1721px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-11412\" loading=\"lazy\" class=\"wp-image-11412 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0063-scaled.jpg\" alt=\"\" width=\"1711\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0063-scaled.jpg 1711w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0063-201x300.jpg 201w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0063-684x1024.jpg 684w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0063-768x1149.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0063-1027x1536.jpg 1027w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0063-1369x2048.jpg 1369w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0063-973x1456.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/DSC_0063-508x760.jpg 508w\" sizes=\"(max-width: 1711px) 100vw, 1711px\" \/><p id=\"caption-attachment-11412\" class=\"wp-caption-text\">People testing the distance sensor and the different statuses<\/p><\/div>\n<div id=\"attachment_11411\" style=\"width: 1522px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-11411\" loading=\"lazy\" class=\"size-full wp-image-11411\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.43.44-PM.jpeg\" alt=\"\" width=\"1512\" height=\"2016\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.43.44-PM.jpeg 1512w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.43.44-PM-225x300.jpeg 225w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.43.44-PM-768x1024.jpeg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.43.44-PM-1152x1536.jpeg 1152w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.43.44-PM-973x1297.jpeg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Image-2021-10-08-at-8.43.44-PM-508x677.jpeg 508w\" sizes=\"(max-width: 1512px) 100vw, 1512px\" \/><p id=\"caption-attachment-11411\" class=\"wp-caption-text\">Belt on a different person to show it works on multiple waist sizes<\/p><\/div>\n<div style=\"width: 620px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-11116-2\" width=\"620\" height=\"341\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Video-2021-10-08-at-8.43.45-PM.mp4?_=2\" \/><a href=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Video-2021-10-08-at-8.43.45-PM.mp4\">https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/10\/WhatsApp-Video-2021-10-08-at-8.43.45-PM.mp4<\/a><\/video><\/div>\n<p style=\"text-align: center\">Belt in action<\/p>\n<h2>Code for Ultrasonic Sensor<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">\/*\r\n*Cov-Aid Belt\r\n*This code is for the ultrasonic sensor. It measures the distance of any object from the sensor \r\n*and compares it to a threshold. If it's less than the threshold, it outputs a HIGH to SEN_PIN \r\n*and LOW otherwise.\r\n*\/\r\n#include &lt;NewPing.h&gt;\r\n\r\n\/* Part of the code taken from https:\/\/nsfsmartmakerspaces.github.io\/physcomp\/parts\/0572\/ *\/\r\n\r\nconst int TRIGGER_PIN = 11; \/\/ Digital output pin for chirp trigger\r\nconst int ECHO_PIN = 12;    \/\/ Digital input pin for echo reply\r\nconst int SEN_PIN = 13;\r\n\/\/ Maximum distance we want to ping for (in centimeters).\r\n\/\/ Typical maximum sensor distance is rated to 100cm.\r\nconst int MAX_DIST = 100;\r\n\r\n\/\/ Variable to keep track of the current proximity\r\nint currentDist;\r\nint outSen;\r\n\r\n\/\/ Setup the ultrasonic ranger with the correct pins and\r\n\/\/ maximum distance\r\nNewPing mySonar(TRIGGER_PIN, ECHO_PIN, MAX_DIST);\r\n\r\nvoid setup() {\r\n  pinMode(SEN_PIN, OUTPUT);\r\n  \/\/ Setup serial port to send the current proximity back to the computer\r\n  Serial.begin(9600);\r\n}\r\n\r\nvoid loop() {\r\n  \/\/ Get the ultrasonic ranger distance\r\n  currentDist = mySonar.ping_cm();\r\n  \/\/ Send HIGH when object less than 10cm, LOW otherwise\r\n  \/\/ currentDist == 0 implies that no object is detected\r\n  if (currentDist&lt;10 &amp;&amp; currentDist!=0) {\r\n    digitalWrite(SEN_PIN, HIGH);\r\n    outSen = 1;\r\n  } else {\r\n    digitalWrite(SEN_PIN, LOW);\r\n    outSen = 0;\r\n  }\r\n  \/\/ Send the data over serial\r\n  Serial.print(\"Ping (cm): \");\r\n  Serial.println(currentDist); \/\/ Send ping, get distance in cm and print result (0 = outside set distance range)\r\n  Serial.println(outSen);\r\n  \/\/ Delay to not send messages too fast.\r\n  delay(100);\r\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description The Cov-Aid belt is a belt that helps you stay safe and battle coronavirus. It has 3 switches that help you select your statuses and 1 ultrasonic&#8230;<\/p>\n","protected":false},"author":137,"featured_media":11401,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[185,86],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/posts\/11116"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/users\/137"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/comments?post=11116"}],"version-history":[{"count":9,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/posts\/11116\/revisions"}],"predecessor-version":[{"id":11419,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/posts\/11116\/revisions\/11419"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/media\/11401"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/media?parent=11116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/categories?post=11116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/tags?post=11116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}