<div class="textcontainer"> <p class="margin"> </p> <h1 style = "text-align: center;">Week 6: Electronic Inputs</h1> <br> <p class = "margin"></p> For this week, our assignment was exploring capacitors and other input sensors. <p class = "margin"></p> <h2 style = "font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;">Capactive Sensor</h2> <image style = "width: 80%" src = "6.1.png" alt = "Design" class = center> </image> <p class = "margin"></p> Capacitors are found in a large range of consumer electronics for its ability to detect the distance and overlap between two sets of parallel plates. For this part of this assignment, I was inspired by BFF heart necklaces. I made a capacitor sensor that would detect the distance between the separation of the two halves. <br><br> <image style = "width: 80%" src = "6.4.png" alt = "Design" class = center> </image> <br> In my initial iteration of the heart halves, I treated the two sections as independent entities. However, I realized that calibrating the capacitor would be challenging whithout securing the halves in parallel alignment in some way. <br><br> <image style = "width: 90%" src = "6.5.png" alt = "Design" class = center> </image> <br> I CAD-ed a small hole for a nut to fit into on the back of the halves so that I could fix the heart onto a slider. <image style = "width: 90%" src = "6.3.png" alt = "Design" class = center> </image> <br> In this setup, I calibrated the heart-slider capacitor based on the distance between the two halves: <br><br> <table> <tr> <th>Distance (mm)</th> <th>Output Trial 1</th> <th>Output Trial 2</th> <th>Average Output</th> </tr> <tr> <td>0</td> <td>1,400</td> <td>1,150</td> <td>1,275</td> </tr> <tr> <td>5</td> <td>1,300</td> <td>900</td> <td>1,100</td> </tr> <tr> <td>10</td> <td>700</td> <td>700</td> <td>700</td> </tr> <tr> <td>20</td> <td>500</td> <td>500</td> <td>500</td> </tr> <tr> <td>30</td> <td>400</td> <td>350</td> <td>375</td> </tr> <tr> <td>40</td> <td>300</td> <td>300</td> <td>300</td> </tr> <tr> <td>50</td> <td>270</td> <td>250</td> <td>260</td> </tr> <tr> <td>60</td> <td>250</td> <td>225</td> <td>237.5</td> </tr> <tr> <td>70</td> <td>200</td> <td>200</td> <td>200</td> </tr> </table> <br><br> Capacitor Calibrated: <br><br> <p class = "margin"></p> <div style="display: flex; justify-content: center; align-items: center;"> <!-- First image --> <image style = "width: 45%; margin-right: 5%;" src = "6.2.png" alt = "Design" class = center> </image> <!-- Second image --> <video width="50%" controls autoplay muted class = center src="IMG_2251.mov" type="video/mp4" ></video> </div> <br><br> <br> <h2 style = "font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;">Calibrating 1S2 Mic</h2> <image style = "width: 40%" src = "6.6.png" alt = "Design" class = center> </image><br><br> <p class = "margin"></p> The second part of the assignment involved selecting an input sensor of our choice and calibrating it for use. Since I intend to use a microphone as the input sensor for my final project, I focused on calibrating an I2S microphone. This was my first experience working with microphones and the I2S interface, setting the tone for the rest of the semester. I hooked up the mic to an ESP32 and put a low pass filter on the sound to help filter out some of the white noise. <br><br> <iframe src="https://app.arduino.cc/sketches/2708f488-d0dd-4848-adea-095bbb7b279f?view-mode=embed" style="height:800px;width:100%;margin:10px 0" frameborder=0></iframe> Furthermore, the mic was calibrated in a quiet room to a <mark2><a href="https://youtube.com/shorts/IQTtK6h4Prg?si=XF22OSv5x7eSQjTD">sound</a></mark2> at a known sound intensity (avg = 77dB). This was compared to the absolute amplitude of the waves picked up in relation to distance away from the mic. <br><br> <p class = "margin"></p> <div style="display: flex; justify-content: center; align-items: center;"> <!-- First image --> <img src="6.7.png" alt="Design" style="width: 70%; margin-right: 5%;"> <!-- Second image --> <img src="6.8.png" alt="Design" style="width: 25%;"> </div> <br><br> <table> <tr> <th>Distance (cm)</th> <th>Output Trial 1</th> <th>Output Trial 2</th> <th>Average Output</th> </tr> <tr> <td>0</td> <td>250.30</td> <td>195.42</td> <td>222.86</td> </tr> <tr> <td>1</td> <td>305.01</td> <td>222.71</td> <td>263.86</td> </tr> <tr> <td>2</td> <td>332.43</td> <td>229.33</td> <td>280.88</td> </tr> <tr> <td>3</td> <td>264.85</td> <td>205.75</td> <td>235.30</td> </tr> <tr> <td>5</td> <td>181.54</td> <td>142.22</td> <td>161.88</td> </tr> <tr> <td>10</td> <td>87.75</td> <td>77.55</td> <td>82.65</td> </tr> <tr> <td>15</td> <td>84.63</td> <td>56.63</td> <td>70.63</td> </tr> <tr> <td>20</td> <td>68.59</td> <td>46.90</td> <td>57.75</td> </tr> <tr> <td>25</td> <td>57.14</td> <td>41.51</td> <td>49.33</td> </tr> <tr> <td>30</td> <td>52.89</td> <td>41.43</td> <td>47.16</td> </tr> <tr> <td>35</td> <td>43.92</td> <td>41.35</td> <td>42.64</td> </tr> <tr> <td>40</td> <td>34.24</td> <td>30.39</td> <td>32.32</td> </tr> </table> <br><br> <p class = "margin"></p> I2S mic Calibrated: <p class = "margin"></p> <image src="6.10.png" alt="Design" style="width: 50%;"class = center> </image> <br> <br> <image style = "width: 20%" src = "Input.png" alt = "End Pic" class = center> </image> <br><br> </div>