{"id":17919,"date":"2023-03-15T09:38:13","date_gmt":"2023-03-15T13:38:13","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/?p=17919"},"modified":"2023-03-15T09:38:13","modified_gmt":"2023-03-15T13:38:13","slug":"good-morning-phone-jail","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/good-morning-phone-jail\/","title":{"rendered":"Good Morning Phone Jail"},"content":{"rendered":"<p>An assistive device that prevents you from going on your phone in the morning by creating a loud buzzing noise when your phone is removed from its surface in the hour after your alarm goes off.<\/p>\n<h3>Moving Image<\/h3>\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-17919-1\" width=\"620\" height=\"364\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3739-1.mp4?_=1\" \/><a href=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3739-1.mp4\">https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3739-1.mp4<\/a><\/video><\/div>\n<p>While the timer is on, removing the device will cause a buzzing noise to occur, and putting it back on makes the buzzing stop. At the end of the timer&#8217;s duration, the display shows &#8220;Timer complete!&#8221; and 3 beeps sound.<\/p>\n<h3>Overall Photo<\/h3>\n<div id=\"attachment_18025\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-18025\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-18025 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3707-scaled.jpg\" alt=\"An angled view of a box. There is a lower platform in the box, approximately the size of an iphone 11.\" width=\"2560\" height=\"2368\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3707-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3707-300x278.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3707-1024x947.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3707-768x711.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3707-1536x1421.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3707-2048x1895.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3707-973x900.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3707-508x470.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-18025\" class=\"wp-caption-text\">Overview of the device, with power off.<\/p><\/div>\n<h3>Detail Photos<\/h3>\n<div id=\"attachment_18029\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-18029\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-18029\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3737-scaled.jpg\" alt=\"A raised platform on a wooden box, with a hole cut out for a proximity sensor at the base, and a microphone at the end.\" width=\"2560\" height=\"1920\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3737-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3737-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3737-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3737-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3737-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3737-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3737-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3737-508x381.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-18029\" class=\"wp-caption-text\">The top of my device: there&#8217;s a rectangle cutout at the top where my proximity sensor is placed. At the edge, I have another hole cut out to place the microphone directly facing the speaker of my phone, to pick up as much sound as possible. On this same side, there&#8217;s also a cutout for my charger to go into, so that I can charge my phone at night.<\/p><\/div>\n<div id=\"attachment_18030\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-18030\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-18030\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3738-scaled.jpg\" alt=\"The back-facing view of a wooden box. There are two holes cutout, with a DC jack sticking out &amp; connected to some wires.\" width=\"2560\" height=\"1920\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3738-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3738-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3738-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3738-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3738-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3738-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3738-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3738-508x381.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-18030\" class=\"wp-caption-text\">The back-view of my device, where the power source can be plugged in. There&#8217;s a hole for a port to be connected to my laptop, so that I can upload any new Arduino code to adjust some parameters, as well as a DC jack.<\/p><\/div>\n<h3>Using the Device<\/h3>\n<div id=\"attachment_18024\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-18024\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-18024 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3711-scaled.jpg\" alt=\"A beige box with an indent at the top, and an LCD display at the front-facing view that reads &quot;Time left: 0:0:6&quot;\" width=\"2560\" height=\"2172\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3711-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3711-300x255.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3711-1024x869.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3711-768x652.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3711-1536x1303.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3711-2048x1738.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3711-973x826.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3711-508x431.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-18024\" class=\"wp-caption-text\">The device in use, with the timer in session and no phone.<\/p><\/div>\n<div id=\"attachment_18027\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-18027\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-18027\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3715-2-scaled.jpg\" alt=\"A wooden box, with an LCD display at the front that reads &quot;Time left: 0:0:12&quot;\" width=\"2560\" height=\"2195\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3715-2-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3715-2-300x257.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3715-2-1024x878.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3715-2-768x659.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3715-2-1536x1317.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3715-2-2048x1756.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3715-2-973x834.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3715-2-508x436.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-18027\" class=\"wp-caption-text\">The device in use, with the phone (phone case used as substitute for sake of taking photo) present.<\/p><\/div>\n<h2>Process<\/h2>\n<p>Throughout the design and development of my project, there were a few key design decisions that had to be made. The first was the mechanism for detecting my phone&#8217;s presence. I originally was going to use a photo-resistor to detect the presence of my phone, but during my prototype presentation, some of my classmates pointed out that the photo-resistor may get incorrectly triggered by room darkness. This was especially a concern for me because my room is often quite dark in the mornings when I wake up before sunrise. A classmate recommended I use an Optical Proximity Sensor instead, so I decided to switch to that method instead.<\/p>\n<div id=\"attachment_17938\" style=\"width: 1930px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17938\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-17938\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3179-scaled.jpg\" alt=\"A tangled bundle of wires hooked to an LCD monitor and photo-resistor\" width=\"1920\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3179-scaled.jpg 1920w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3179-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3179-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3179-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3179-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3179-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3179-508x677.jpg 508w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><p id=\"caption-attachment-17938\" class=\"wp-caption-text\">The first prototype of my device, with all of the wiring set up. This iteration features the photo-resistor as mechanism for detecting my phone&#8217;s presence, before switching it to an optical proximity sensor.<\/p><\/div>\n<div id=\"attachment_17939\" style=\"width: 1930px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17939\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-17939\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3275-scaled.jpg\" alt=\"A series of soldered boards connected to an Arduino.\" width=\"1920\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3275-scaled.jpg 1920w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3275-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3275-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3275-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3275-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3275-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3275-508x677.jpg 508w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><p id=\"caption-attachment-17939\" class=\"wp-caption-text\">The second prototype of my device, with the photo-resistor switched out for a proximity sensor.<\/p><\/div>\n<p>Another decision I made was to have the device be triggered by a microphone that can detect when my alarm goes off, rather than having an RPC module and setting a time for when the phone detection activates every morning. This made sense for my daily habits, as integrating it with when my alarm goes off most accurately ties in with my wake-up schedule, and also goes along with my regular routine of setting my alarm on my phone. If I wanted to set the timer on the device directly, I would probably have had to implement a full alarm system to make sure that the lock activates when I wake up. This would have been a lot of additional work for not much additional value, as it would&#8217;ve been more inconvenient to set the alarm on a separate device anyways. I also was unsure if any of the output devices on-hand could generate a sound as loud as my phone.<\/p>\n<h3>Process Images<\/h3>\n<div id=\"attachment_17990\" style=\"width: 1417px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17990\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-17990 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_0431.jpg\" alt=\"\" width=\"1407\" height=\"1201\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_0431.jpg 1407w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_0431-300x256.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_0431-1024x874.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_0431-768x656.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_0431-973x831.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_0431-508x434.jpg 508w\" sizes=\"(max-width: 1407px) 100vw, 1407px\" \/><p id=\"caption-attachment-17990\" class=\"wp-caption-text\">Initial sketch of my device before modeling it on Autodesk Fusion, during the ideation process.<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_17942\" style=\"width: 1926px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17942\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-17942\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-14-at-9.12.45-PM.jpg\" alt=\"\" width=\"1916\" height=\"1182\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-14-at-9.12.45-PM.jpg 1916w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-14-at-9.12.45-PM-300x185.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-14-at-9.12.45-PM-1024x632.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-14-at-9.12.45-PM-768x474.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-14-at-9.12.45-PM-1536x948.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-14-at-9.12.45-PM-973x600.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-14-at-9.12.45-PM-508x313.jpg 508w\" sizes=\"(max-width: 1916px) 100vw, 1916px\" \/><p id=\"caption-attachment-17942\" class=\"wp-caption-text\">Autodesk fusion model of the box to be laser-cut. This was my first time ever doing any modeling or using Autodesk Fusion, so it was quite a challenge to design everything and model it. In the end, I was really happy with how it came out!<\/p><\/div>\n<div id=\"attachment_17992\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17992\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-17992\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3277-scaled.jpg\" alt=\"A bundle of wires in the beginning frames of a box.\" width=\"2560\" height=\"1920\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3277-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3277-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3277-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3277-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3277-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3277-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3277-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/IMG_3277-508x381.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-17992\" class=\"wp-caption-text\">Beginning to put the electronics components in the 3D printed box. This was a lot trickier than expected, because I had to do a lot of rearranging to account for where each component should poke out from in the box.<\/p><\/div>\n<h1>Discussion<\/h1>\n<p>Overall the process of creating this project was super fun, but challenging! It was really cool to think about the ergonomic aspect of this project and to create a device I may actually use, especially coming from Project 1, which was mostly focused on the electronics aspect. I am super happy with the results, although there are a few things I would change, some of which were also pointed out during critique.<\/p>\n<blockquote><p><span style=\"font-weight: 400\">&#8220;You could potentially try to make it sensitive to the phone so that the object is not tricked by anything else&#8221;<\/span><\/p><\/blockquote>\n<p>This is definitely the biggest thing I would change if I were to create another iteration of my project. Currently, a big limitation in my device is that it&#8217;s very easy to &#8220;trick&#8221; it into thinking my phone is there, by placing any arbitrary object on the device. Since the IR sensor only detects some sort of presence, I could easily pick up my phone and block the sensor with something else. In a future iteration, I would either supplement this method of detection with another one, or to replace the IR sensor entirely. One possible method is to lay out a few IR sensors in the shape of the perimeter of my phone, such that they are placed right under where the edges of my phone would be, as well as a few on the outside of the perimeter. Then, the device would only recognize my phone there if the sensors on the perimeter detect a presence, and the ones outside of the perimeter don&#8217;t. This would ensure that the object placed has to be exactly the shape of my phone for it to stop the buzzing. One limitation of this idea is that I could still dupe the phone by cutting an object to be the same shape, or strategically placing things on top of the inside perimeter sensors. However, this would be a lot more work to &#8220;trick&#8221; than placing any arbitrary object on top, which would probably be enough to prevent me from wanting to override it. Another method would be to switch out the proximity sensor for a pressure sensor, but again, I could also dupe this if I found a similarly weighted object to my phone. Plus, if I really wanted to stop the device I could just unplug it anyways.<\/p>\n<blockquote><p>&#8220;<span style=\"font-weight: 400\">Potentially have a potentiometer or some other method to adjust the waiting period&#8221;<\/span><\/p><\/blockquote>\n<p>This was definitely something I thought of doing during ideation, but I ultimately decided to hard-code the timer, as I didn&#8217;t want to give myself an easy way to lessen the waiting period and instead force myself to go the full 60 minutes. In retrospect, though, I definitely agree that this might be helpful and could still keep me accountable if I set, say, 45 or 60 minutes as a &#8220;lower limit&#8221; to the timer, and only allowed myself to adjust the timer up. This is definitely something I would consider doing in a future iteration.<\/p>\n<p>Besides the changes described above, something else I would want to do is to refine the form of my device. Right now, it&#8217;s a bit clunky, and the bottom portion is a bit large since I wasn&#8217;t very space-efficient in my wire management. Since it was my first time fabricating, the appearance was also a bit clunky, with some accidental cutouts I didn&#8217;t mean to include, as well as lots of glue everywhere. I also would want to add an &#8220;emergency override&#8221; button. One idea that I had been thinking about in my ideation to avoid making this &#8220;emergency override&#8221; make me less accountable was to add time, say 5 minutes, to the timer for the next lock session every time I pressed it. I also would want to refine the microphone threshold a bit more, as it was still slightly too sensitive, and would get triggered if there was a super loud noise that wasn&#8217;t my phone.<\/p>\n<p>Overall, though, I&#8217;m super happy with how my project came out! My main goal of this project was to build a useful device for myself and to fabricate something I could be proud of, which I think I definitely satisfied. While there were a few things I would like to refine, especially regarding the form, I am still pretty happy with it, especially given that it was my first time using a laser-cutter or doing any sort of modeling or physical prototyping. In general, I learned a lot about both the technical side of fabrication (i.e. using the software), as well as the design-thinking it takes to plan out the form factor and ergonomics of a physical device. I also definitely learned that fabrication can take multiple iterations to get right, and to not underestimate how long this might take in the future. Next time, I would also plan out the electronics part more in tandem with the physical form. This time, I did all of the wiring first without thinking much into how I would put everything together into the final physical device at the end, and then did all the modeling and laser-cutting after this. This caused me to have to spend a lot of time reconfiguring my wiring to fit into the device and trying to cram it in, which could&#8217;ve been avoided if I had thought about the physical form more and knew things like approximately how long to make the wires, which parts should be wired closer together, etc.<\/p>\n<h2>Technical Information<\/h2>\n<h3>Block Diagram<\/h3>\n<p><a href=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/block_diagram.svg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-18013\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/block_diagram.svg\" alt=\"block diagram with optical proximity sensor and microphone as inputs into an arduino uno, and active buzzer &amp; lcd module as outputs\" width=\"797\" height=\"271\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Schematic<\/h3>\n<p><a href=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/schematic.svg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-18021\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/03\/schematic.svg\" alt=\"\" width=\"911\" height=\"1082\" \/><\/a><\/p>\n<h3>Code<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">\/*\r\n* Good Morning Phone Jail\r\n* Michelle Liu\r\n* \r\n* An assistive device that prevents you from going on your phone in the morning by\r\n* creating a loud buzzing noise when your phone is removed from its surface in the\r\n* hour after your alarm goes off.\r\n* \r\n* Pin Map:\r\n  variable name | mode | pin | description\r\n  -----------------------------------------------\r\n  SOUND_GATE_PIN | input | 2 | detect sound from mic\r\n  SOUND_ENVELOPE_PIN | input | A3 | read sound from mic\r\n  PHOTO_PIN | input | A0 | reads IR sensor data\r\n  BUZZER_PIN | output | 9 | makes buzzing noise\r\n* \r\n* Credits:\r\n* \r\n* LCD display code referenced from the course website: \r\n* https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/tutorials\/I2C-lcd\r\n* \r\n* Piezo buzzer code:\r\n* https:\/\/www.instructables.com\/How-to-use-a-Buzzer-Arduino-Tutorial\/\r\n*\/\r\n\r\n\r\n#include &lt;Wire.h&gt;\r\n#include &lt;LiquidCrystal_I2C.h&gt;\r\n\r\nLiquidCrystal_I2C screen(0x27, 16, 2);\r\n\r\nconst int SOUND_GATE_PIN = 2;\r\nconst int SOUND_ENVELOPE_PIN = A3;\r\nconst int PHOTO_PIN = A0;\r\nconst int BUZZER_PIN = 9;\r\n\r\nconst int SOUND_THRESHOLD = 300;\r\nconst int LIGHT_THRESHOLD = 320;\r\n\r\n\/\/ actual mode (60 min)\r\nconst unsigned long WAIT = 60 * 60 * 1000;\r\n\r\n\/\/ demo mode (30 sec)\r\n\/\/const unsigned long WAIT = 30000;\r\n\r\nboolean timerActive = false;\r\nunsigned long timer = 0;\r\nint dispDelay = 0;\r\n\r\nvoid setup() {\r\n  Serial.begin(9600);\r\n  pinMode(SOUND_GATE_PIN, INPUT);\r\n  pinMode(PHOTO_PIN, INPUT);\r\n  pinMode(BUZZER_PIN, OUTPUT);\r\n\r\n  screen.init();\r\n\r\n  \/\/ set cursor to home position, i.e. the upper left corner\r\n  screen.home();\r\n\r\n  timerActive = false;\r\n}\r\n\r\n\/\/ convert milliseconds to a string for display on the LCD\r\nString millisToString(unsigned long currentMillis) {\r\n  unsigned long seconds = currentMillis \/ 1000;\r\n  unsigned long minutes = seconds \/ 60;\r\n  unsigned long hours = minutes \/ 60;\r\n  unsigned long days = hours \/ 24;\r\n  currentMillis %= 1000;\r\n  seconds %= 60;\r\n  minutes %= 60;\r\n  hours %= 24;\r\n  return (String(hours) + \":\" + String(minutes) + \":\" + String(seconds));\r\n}\r\n\r\n\/\/ print the current amount of time left on the timer\r\nvoid printTime() {\r\n  screen.clear();\r\n  screen.setCursor(0, 0);\r\n  if (!timerActive) {\r\n    screen.noDisplay();\r\n    screen.noBacklight();\r\n  } else {\r\n    screen.backlight();\r\n    screen.display();\r\n    screen.print(\"Time left: \");\r\n    screen.setCursor(0, 1);\r\n    unsigned long timeLeft = WAIT - (millis() - timer);\r\n    screen.print(millisToString(timeLeft));\r\n  }\r\n}\r\n\r\n\r\nvoid loop() {\r\n  int sound = analogRead(SOUND_ENVELOPE_PIN);\r\n  \r\n  printTime();\r\n\r\n  \/\/ case 1: timer is currently active\r\n  if (timerActive &amp;&amp; millis() - timer &lt; WAIT) {\r\n    int photo = analogRead(PHOTO_PIN);\r\n\r\n    \/\/ play a sound if no device is detected\r\n    if (photo &gt;= LIGHT_THRESHOLD) {\r\n      tone(BUZZER_PIN, 500);\r\n    } else {\r\n      noTone(BUZZER_PIN);\r\n    }\r\n  } else if (!timerActive &amp;&amp; sound &gt;= SOUND_THRESHOLD) {\r\n    \/\/ case 2: alarm detected -&gt; activate the timer\r\n    \r\n    \/\/ start timer\r\n    timerActive = true;\r\n    timer = millis();\r\n    Serial.print(\"Timer activated: \");\r\n    Serial.println(sound);\r\n    noTone(BUZZER_PIN);\r\n  } else if (timerActive &amp;&amp; millis() - timer &gt;= WAIT) {\r\n    \/\/ case 3: time is up -&gt; deactivate timer &amp; turn off buzzer\r\n    timerActive = false;\r\n    timer = millis();\r\n\r\n    noTone(BUZZER_PIN);\r\n    screen.clear();\r\n    screen.setCursor(0, 0);\r\n    screen.print(\"Timer complete!\");\r\n\r\n    \/\/ beeping sound to indicate timer is complete\r\n    for (int i = 0; i &lt; 5; i++) {\r\n      tone(BUZZER_PIN, 1000);\r\n      delay(200);        \/\/ on for 1 sec\r\n      noTone(BUZZER_PIN);     \/\/ Stop sound\r\n      delay(200);\r\n    }\r\n    delay(3000);\r\n  } else {\r\n    timer = millis();\r\n    noTone(BUZZER_PIN);\r\n  }\r\n  delay(300);\r\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An assistive device that prevents you from going on your phone in the morning by creating a loud buzzing noise when your phone is removed from its surface&#8230;<\/p>\n","protected":false},"author":50,"featured_media":18033,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"video","meta":[],"categories":[89],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/posts\/17919"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/comments?post=17919"}],"version-history":[{"count":19,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/posts\/17919\/revisions"}],"predecessor-version":[{"id":18040,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/posts\/17919\/revisions\/18040"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/media\/18033"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/media?parent=17919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/categories?post=17919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/tags?post=17919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}