<topbar style="display:none;"> <item><a href="../index.html">Home</a></item> <item><a href="../about_me/about.html">About</a></item> <item><a href="../week_x/index.html">Final Project</a></item> </topbar> <!-- This is a comment, it is ignored by the compiler/interpreter --> <style> h0 { font-family:; font-size: 30px; color: #414040; margin-top: 50px; margin-bottom: 6px; word-spacing: 5px; } a { color: #e479f1; } </style> ###Week9: Input Devices /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ ### Sensor fabrication Being very ambitious starting off the week, I was hoping to try both pressure and stretchable sensors. However, reality brought me back to just focus on getting one thing done. Thus, I continued the work from <a href="http://fab.cba.mit.edu/classes/MAS.863/Harvard/people/rosalielin/week_8/index.html">molding and casting week</a>, the pressure sensor. The difference between this week and last week is that I used the right casting material <a href="https://www.smooth-on.com/products/ecoflex-00-30/">ExoFlex 00-30</a> and added another mold to embed copper plate in between two silicone layers, thus not fall off easily. The result is...alright, but not perfect. When de-molding, the copper plate still stuck to the bottom mold, and fell off. Anyway, at least one side of it is secured, and ready to be a capacitance sensor! <img src="molding/v1.JPG" alt="strandbeest" width="500"/> <img src="molding/v2.jpg" alt="strandbeest" width="500"/> <img src="molding/mm1.jpg" alt="strandbeest" width="500"/> <img src="molding/mm2.jpg" alt="strandbeest" width="500"/> <img src="molding/m5.jpg" alt="strandbeest" width="500"/> <img src="molding/m6.jpg" alt="strandbeest" width="500"/> <img src="molding/m7.jpg" alt="strandbeest" width="1000"/> <img src="molding/m9.jpg" alt="strandbeest" width="1000"/> <img src="molding/m10.jpg" alt="strandbeest" width="1000"/> ### Resistance sensing Debating between whether to use capacitance or resistance sensing, I was hoping to do both (seems too ambitious). There happened to be <a href="https://www.adafruit.com/product/1361">velostat</a>, a pressure-sensitive conductive sheet, in our lab, and I've been interested in trying piezo-resistive material. After consulting with Rob and Chris, they thought resistance sensing might be more reliable in terms of reading in cleaner signal, thus I started from here. However, I had some difficulties just using the multimeter to sense the resistance of velostat. I couldn't detect the resistance changes when giving it more pressure nor could I tell the resistance difference when varying the distance between the detected pin. As it was close to the end of Monday..., I then decided to pivot to capacitance sensing. <img src="sensing/resistive/rr1.jpg" alt="strandbeest" width="500"/> <img src="sensing/resistive/rr2.jpg" alt="strandbeest" width="500"/> <img src="sensing/resistive/r3.jpg" alt="strandbeest" width="330"/> <img src="sensing/resistive/r4.jpg" alt="strandbeest" width="330"/> <img src="sensing/resistive/r5.jpg" alt="strandbeest" width="330"/> <img src="sensing/resistive/r2.jpg" alt="strandbeest" width="500"/> <img src="sensing/resistive/r1.jpg" alt="strandbeest" width="500"/> ### Capacitance sensing This is actually the idea continuing from molding and casting week, where Nathan suggested using two copper plates with soft, non-conductive materials in between to form the soft pressure sensor. To understand the logic of capacitance sensing , I need to know a bit more about the relationship between the electric field(E), the voltage(V),and the distance between two conductors(d). I relied on Rob's documentation of <a href="https://roberthart56.github.io/SCFAB/SC_lab/Sensors/tx_rx_sensors/index.html">tx-rx sensing</a> to program the board and understand the logic, such as T(time) = R(resistance) x C(capacitance). When R is a constant value, the capacitance is proportional to time, thus we can read time in the serial monitor in arduino. To be honest, I'm still not fully understanding the programming part, so I will keep looking for more materials. There's some glitches of my old board, like the port is not appeared in arduino despite it's been powered. After debugging it for a while, I decided to leave the hardware problem away and focusing on sensing. Thankfully, Chris let me use his board to do the sensing part! Since I'm using ATSMD11C, I cannot use the built-in capacitance sensing library in arduino. Fortunately, Rob has a version written from scratch, and doesn't need a library! I modified the code a bit to be able to print the 'press!' when I press it by defining the threshold using the if statement. In my case, 15000 is the threshold. For more <a href="https://roberthart56.github.io/SCFAB/SC_lab/Sensors/Sensors.html">sensors</a>, Rob has a thorough documentation for it. <img src="sensing/capacity/c1.jpg" alt="strandbeest" width="1000"/> <img src="sensing/capacity/c2.jpg" alt="strandbeest" width="1000"/> <img src="sensing/capacity/c3.jpg" alt="strandbeest" width="1000"/> <img src="sensing/capacity/c4.JPG" alt="strandbeest" width="500"/> <img src="sensing/capacity/c5.JPG" alt="strandbeest" width="500"/> It's very soothing to see the result! <img src="sensing/capacity/s1.jpg" alt="strandbeest" width="1000"/> <img src="sensing/capacity/s2.jpg" alt="strandbeest" width="1000"/> <iframe width="1000" height="600" src="https://www.youtube.com/embed/CKfumAupUU0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>