<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mihir Trivedi on Medium]]></title>
        <description><![CDATA[Stories by Mihir Trivedi on Medium]]></description>
        <link>https://medium.com/@mihirtrivedi?source=rss-97c0efc481e0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*ShrHRxAuM4rp3o9hIvhC1w.jpeg</url>
            <title>Stories by Mihir Trivedi on Medium</title>
            <link>https://medium.com/@mihirtrivedi?source=rss-97c0efc481e0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 10:10:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mihirtrivedi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[PPAT Team Annette — Siren Detector]]></title>
            <link>https://medium.com/@mihirtrivedi/ppat-team-annette-siren-detector-457c0a1b920c?source=rss-97c0efc481e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/457c0a1b920c</guid>
            <category><![CDATA[universal-design]]></category>
            <category><![CDATA[mit]]></category>
            <category><![CDATA[assistive-device]]></category>
            <category><![CDATA[siren-detection]]></category>
            <category><![CDATA[ppat]]></category>
            <dc:creator><![CDATA[Mihir Trivedi]]></dc:creator>
            <pubDate>Wed, 11 Dec 2019 07:50:22 GMT</pubDate>
            <atom:updated>2019-12-14T23:35:29.429Z</atom:updated>
            <content:encoded><![CDATA[<h3>PPAT Team Annette — Siren Detector</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1kTFZGeloSl3demN" /><figcaption>The Siren Detector installed in Annette’s car</figcaption></figure><p>For people with hearing loss, it is difficult to know when to pull over while driving because they cannot hear the sirens of emergency vehicles. This siren detector uses machine learning to identify when there is a siren nearby and then sends a visual notification via a spinning triangle and blinking red lights. It is placed near the driver’s seat and powered by the car through a USB cable.</p><p>This device was designed for Principles and Practices of Assistive Technology (PPAT), MIT’s class on assistive technology. Our client Annette, who lost her hearing at a young age, helped us iterate to our final design. Primarily, she wanted the device to be small and able to be moved around in her car. Aesthetics were also a secondary design consideration.</p><p>See a video working here!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FIDQrAfNdsSk%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DIDQrAfNdsSk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FIDQrAfNdsSk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/71cc844ce162f99209cf3f8bd99b98f3/href">https://medium.com/media/71cc844ce162f99209cf3f8bd99b98f3/href</a></iframe><p><strong>Materials Needed</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5tJ4ZgsGPdssane6" /></figure><ul><li>Raspberry Pi 4</li><li>Raspberry Pi Case</li><li>Perfboard</li><li>Wires</li><li>Neopixel LED strip</li><li>Servo Motor</li><li>Semi-opaque White Acrylic, ⅛ inch</li><li>Opaque Blue Acrylic, ⅛ inch</li><li>Magnetic Car Attachment</li><li>Circular Metal Plate with Adhesive Back</li><li>USB A to C Cable</li><li>Fan</li><li>Heat Sink</li><li>Microphone</li><li>Cable Sleeve</li><li>Cable Clip</li><li>M2 Screws, 6mm long</li><li>M2 Heat-Set Inserts for Plastic</li><li>Heat Shrink</li></ul><p>The list of materials with prices and links for purchase can be found <a href="https://docs.google.com/spreadsheets/d/14wtFgp3QVMx5lMi8Kl0zj1aIl0lr42RNRuO7t4SJkVU/edit?usp=sharing">here</a>.</p><p><strong>Tools and Machines</strong></p><ul><li>Laser Cutter</li><li>Box Cutter</li><li>3D Printer</li><li>Soldering Iron</li><li>Hot Glue Gun</li><li>Drill</li><li>Hot Air Gun</li></ul><h4><strong>All Files</strong></h4><p>All files can be found <a href="https://www.dropbox.com/sh/27fljl60kddm4wq/AABDyMpUwui11Lqz0d87JZjWa?dl=0">here</a>.</p><p><strong>3D-Printed Housing</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NakiV45tHT0MU64sRKbi9w.png" /><figcaption><em>Right: the bottom part of the housing. Left: the top part of the housing. We printed both parts in black, with the orientation shown here.</em></figcaption></figure><p>Use a 3D printer to print the top and bottom parts of the housing. The STL files linked below are in inches, and the overall diameter should appear as 2.5 in. We used a Markforged printer with Carbon filament, but any 3D printer should do!</p><p>STL file for Top: siren_top.stl</p><p>STL file for Bottom: siren_bottom.stl</p><p>If you would like to modify the housing, simply download the files in your CAD program. These were made in Fusion 360, which you can download here: <a href="https://www.autodesk.com/products/fusion-360/students-teachers-educators">https://www.autodesk.com/products/fusion-360/students-teachers-educators</a></p><p>Fusion 360 file: siren_detector.f3d</p><p>STEP file for any CAD program: siren_detector.step</p><p><strong>Laser-cut Parts</strong></p><p>Use a laser cutter and ⅛ inch acrylic to make 1) the triangle for the motor and 2) the panel that the LEDs will be behind. We used opaque blue acrylic for the triangle and semi-opaque white acrylic for the panel.</p><p>DXF file for Triangle: triangle.dxf</p><p>DXF file for Rectangular Panel: panel.dxf</p><p><strong>Electronics</strong></p><p>Before soldering anything, cut the perfboard down to size. The breadboard should be 1 ± 0.3 inches long. Here is a helpful guide to cutting perfboard: <a href="https://www.instructables.com/id/How-to-Cut-PERFBOARD/">https://www.instructables.com/id/How-to-Cut-PERFBOARD/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5DTTUu3B6nQeEJVrgxKzIA.jpeg" /><figcaption><em>The perfboard needs to be cut down to 1 inch long, so that it can fit in the housing.</em></figcaption></figure><p><strong>Circuit Diagrams</strong></p><p><strong>Power</strong> — any 5v pin</p><p><strong>Ground</strong> — any Ground pin</p><p><strong>LED strip control</strong> — GPIO pin 18</p><p><strong>Motor control</strong> — GPIO pin 17</p><p>The entire device is powered through the car via the USB cable. The wires should be long enough to run from wherever the detector is installed to where the power source is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-9k4Ojn5j2baHoWN" /><figcaption>Circuit Diagram of pin connections for the Raspberry Pi</figcaption></figure><p><strong>Python Code</strong></p><p>Frameworks used:</p><ul><li>Tensorflow</li><li>Keras</li><li>Librosa (for reading audio files)</li><li>PyAudio (for recording audio)</li><li>More dependencies found in requirements.txt</li></ul><p><strong>Code</strong></p><p>All the code can be found in our Github repo, linked <a href="https://github.com/mihirt/ppat-team-annette">here</a>. Simply clone the repo in your Raspberry Pi, and install the required libraries with:</p><p>pip install -r requirements.txt</p><p>When you have finished this step, do a quick test! Make sure the microphone is plugged in and that the device is being powered via USB. The device takes ~45 seconds to start up. To test, play some siren sounds from YouTube: <a href="https://www.youtube.com/watch?v=9Elem7z8yVw">https://www.youtube.com/watch?v=9Elem7z8yVw</a>. After a two-second processing time, the motor should spin back and forth and the lights should pulsate red. If this does not happen, jump down to Troubleshooting.</p><p>In order to put the device together, you now have to unplug the wires from the Raspberry Pi. Take a picture so that you can replace them easily later.</p><p><strong>Putting it All Together</strong></p><p>Once you have 3D-printed the housing, laser-cut the triangle and panel, and gotten the electronics to work, there are a few more steps to do before you can put everything together.</p><ul><li>Put the cable sleeve over the entire length of the wires and then cut it to length. Leave two inches of exposed wire on each end. Apply heat shrink on each end. Instructions for these two steps should come with the sleeve.</li><li>Install M2 heat-set threaded inserts into the five holes labeled below. These metal inserts are simple to install and last longer than plastic threads made directly in 3D-printed parts. If you haven’t used threaded inserts before, just follow steps 6–8 in the following guide: <a href="https://markforged.com/blog/heat-set-inserts/">https://markforged.com/blog/heat-set-inserts/</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IDHOkXbLwkkh0JdU" /><figcaption><em>Put the heat-set inserts in the holes labeled by the red circles. In this photo, some of the inserts have already been put in.</em></figcaption></figure><ul><li>Place the laser-cut panel into the rectangular pocket in the top housing. Use hot glue around the edges to secure it.</li><li>Screw the motor into place with two M2 screws. The top of the motor should go through the hole in the top part of the housing.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3IF6VT_6hekCuaMr" /><figcaption><em>The motor should be placed so that it goes through the hole in the top.</em></figcaption></figure><ul><li>Tape the LED strip to the panel. It will need to be folded up in the middle so that the two LEDs both fit behind the panel.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*w3tKFoBnBFdDLsDkWH2ifg.jpeg" /><figcaption><em>Tape the LED strip down and fold it in the middle so that it fits behind the panel. This photo was taken for an earlier, larger prototype: your container will be more crowded and you should have the cable sleeve coming up to the housing.</em></figcaption></figure><ul><li>Push the cable out through the large hole. Apply hot glue around the hole where the cable exits to prevent the wires from being yanked out.</li><li>Move the breadboard over on top of the LED strip so that everything fits inside the housing.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/0*3IGQhppqPHHK175t" /><figcaption><em>Fitting everything in and wire with cable sleeve</em></figcaption></figure><ul><li>The magnetic car mount should have come with a circular metal plate. Stick the metal plate in the circular pocket on the bottom part of the housing. It is also okay to put the metal plate on the other side, if you don’t mind it being visible when the housing is closed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*TN20DYQqGjJRRC7CXDdlhA.png" /><figcaption><em>Stick the metal plate in the circular pocket in the bottom part of the housing.</em></figcaption></figure><ul><li>Screw the top and bottom parts of the housing together using three M2 screws. You might have to rotate the bottom part because the three holes are not evenly spaced (in order to accommodate the internal components). The circular pocket in the bottom part should face inside the device.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*i9XkJomBRWjmQ06iV6eO1Q.png" /><figcaption><em>Screw the top and bottom parts together. Make sure to line up the bottom part correctly!</em></figcaption></figure><ul><li>Then, screw the triangle onto the motor. Do this with the longest screw that comes with the motor, to make sure that there is enough thread engagement.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1E1bw6Kid8grpRhjld74Xg.jpeg" /><figcaption><em>Screw the triangle onto the motor.</em></figcaption></figure><ul><li>Take the wires on the other side of the cable and plug them back into the Raspberry Pi.</li></ul><p>Now you’re ready to put the device in your car!</p><ul><li>Attach the magnetic car mount near the driver’s seat and stick the device onto it.</li><li>Make sure the microphone is plugged into the Raspberry Pi. Clip it onto the cable, near where it comes out of the housing (or in another quiet, out of the way area of the car).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AkyuTm1TbdurE-VK" /><figcaption><em>The siren detector in its natural environment.</em></figcaption></figure><ul><li>Plug the USB cord into your car to power the device.</li><li>Play some siren sounds to make sure it works!</li></ul><h4><strong>User Testing</strong></h4><p>We ran a series of tests with Annette in order to determine how to effectively notify her while she is driving. From talking with her, we discovered that she does not notice vibrations from her Apple Watch while driving. Therefore, we wanted to validate another notification method and tested different visual cues placed in different areas of her car. During testing, Annette drove with us in the car. We activated our prototypes at random times and asked her to say when she noticed that it was on. We timed how many seconds it took for Annette to notice each signal once activated, with three trials for each set of conditions.</p><p>Our first test was of a pulsing light (Prototype 2), placed on Annette’s dashboard. Right away, we learned that sunlight in the car can easily wash out other lights. We ended up putting a brochure over Prototype 2 to block sunlight and make the pulsing light clearer. We tested three different colors (Blue, Yellow, Red) and two different pulse rates. We concluded that red was the most effective color, since Annette took an average 2.3 seconds to notice when the red light was pulsing. Pulse rate had no statistically significant effect on reaction time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LnkMWcTYmyS9__5bTBJLIw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DveL-3V2CuhQn1nBIpvzOw.jpeg" /><figcaption><em>Sunlight inside the car made it difficult to see the lights in Prototype 2.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HCEFoCT11UpYBscX" /><figcaption><em>Our testing setup for Prototype 2 included a shield for blocking sunlight.</em></figcaption></figure><p>The next set of tests were done at night. We tested notification via motor (Prototype 3.1) and again via pulsing red lights (Prototype 3.2). The tests were conducted around dusk so we were able to see the performance of the motor under dimly lit conditions and of the light at night. It was difficult to see the motor at night, and Annette took an average 4.6 seconds to notice when the motor was moving. The red light pulsing worked well at night, with an average 2.5 second response time. (These averaged times do not include when Annette was talking or turning, since we do not consider these to be part of our use case. If Annette is speaking with a hearing friend, they will be able to tell her when they hear a siren. If she is turning, she will be looking around the street carefully and will be able to see siren lights.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zygRX8T9SmS7e-TB-j2cOA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8GAMu8-UgDCMU4C3Fmtryw.jpeg" /><figcaption><em>Prototype 3.1 (left) — The red triangle swings back and forth when activated. Prototype 3.2 (right) — Red LED lights blink inside the white panel when activated.</em></figcaption></figure><p>We were not able to quantitatively test the motor during the day, but since Annette was able to notice it even when it was dark, we thought it should work well. From the results of our tests, we decided that our final prototype should include both a motor and lights so that Annette can be notified effectively in any lighting condition. We also increased the brightness of the lights, which Annette liked.</p><p>In addition to timing Annette’s reaction times to different visual cues, we qualitatively tested different device placements and mounting strategies within her car. Our prototypes had suction cups on their backs, and we tried putting them in different locations on the windshield as well as on the dashboard. Annette said she liked the device the most on the dashboard to her immediate right, though she also wants to be able to move the device as needed. Since our suction cups did not stick well to Annette’s car, we then bought a few different removable car mounts, and we showed them to Annette. She liked the mount which attaches to her air vent, since it is easy to move and a small size. Conveniently, the air vent placement is close to her car’s power source: we are powering the device with her car via a USB cable so that Annette will never have to charge the device.</p><p>As we showed Annette different prototypes, we also asked her for aesthetic feedback. She preferred circular shapes and asked for the device to be as small as possible. Our final prototype is a cylinder with a 2.5 inch diameter.</p><h4><strong>Modification and Troubleshooting</strong></h4><p>If there are issues encountered with either notification system not responding/activating, you can open up the devices from the back. The first thing to check for would be if any of the wiring is loose or broken and resolder/reconnect as needed. If you run into issues with the electrical components, first verify that your connections are properly made (not loose), and follow the diagram shown above in the Electronics section. Occasionally the Adafruit GPIO library may brick, but a simple restart should fix the issue.</p><p>For software troubleshooting, first ensure that the libraries have been properly installed. Installing Tensorflow on the Raspberry Pi can be a bit tricky if you do not have enough RAM available. If you run into this issue, add the no-cache-dirsflag to your pip install to refuse caching of the file (which can overflow your RAM). This should be ok on the 4GB RAM Raspberry Pi 4, however.</p><p>The CAD files can be modified in free CAD and mesh modelling softwares such as Fusion360, Onshape, or Blender and reprinted as needed if any part breaks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=457c0a1b920c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PPAT Team Annette — Doorbell Project]]></title>
            <link>https://medium.com/@mihirtrivedi/ppat-team-annette-doorbell-project-34ab4139b1c9?source=rss-97c0efc481e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/34ab4139b1c9</guid>
            <category><![CDATA[mit]]></category>
            <category><![CDATA[doorbell]]></category>
            <category><![CDATA[universal-design]]></category>
            <category><![CDATA[accessible-technology]]></category>
            <category><![CDATA[ppat]]></category>
            <dc:creator><![CDATA[Mihir Trivedi]]></dc:creator>
            <pubDate>Wed, 11 Dec 2019 07:32:19 GMT</pubDate>
            <atom:updated>2019-12-11T07:32:19.559Z</atom:updated>
            <content:encoded><![CDATA[<h3>PPAT Team Annette — Ring Doorbell Validation</h3><h3><strong>Ring Doorbell Validation</strong></h3><p>For those with hearing loss, it is hard to know when someone rings the doorbell. The Ring smart doorbell can integrate with and send notifications to Apple Watches whenever someone rings it. The following documentation is for setting up a prototype to send text notifications to an Apple Watch, in order to determine if Apple Watch notifications are effective for an individual, and it also explains setting up the Ring doorbell (pulled mostly from the Ring website).</p><p>This was designed for Principles and Practices of Assistive Technology (PPAT), MIT’s class on assistive technology. Our client Annette, who lost her hearing, already owned an Apple Watch. So, we used the prototype to determine if Apple Watch doorbell notifications would work for her and then helped her install the Ring doorbell.</p><p><strong>Bill of Materials</strong></p><ul><li>Ring Video Doorbell</li><li>Phone Compatible with Ring Doorbell App</li><li>Smartwatch Capable of Receiving Phone Notifications (we used an Apple watch)</li></ul><h3><strong>Twilio Notification Prototype</strong></h3><p>In order to determine the effectiveness of notifications to the phone + smartwatch system, we devised an online prototype that could send user-defined text notifications to a phone number. The resultant code and documentation for this prototype can be found on our GitHub repository: <a href="https://github.mit.edu/mihirt/ppat-team-annette">https://github.mit.edu/mihirt/ppat-team-annette</a>.</p><h3><strong>Ring Doorbell Documentation</strong></h3><p>This Documentation is provided courtesy of Ring. We have extracted the necessary documentation specifically for the <em>Ring Video Doorbell</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mMQzW621wAkKzVpR" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v2v1WrS5KXFl4_-1" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BWOMTl5pb1hW7o_f" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/0*vqUbGfDKnbghMDq0" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*06j2jUvgryGxS9ta" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34ab4139b1c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>