{"id":192,"date":"2025-03-30T00:30:36","date_gmt":"2025-03-30T00:30:36","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/?p=192"},"modified":"2025-03-30T02:24:44","modified_gmt":"2025-03-30T02:24:44","slug":"lillys-status-report-for-3-29-2025","status":"publish","type":"post","link":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/2025\/03\/30\/lillys-status-report-for-3-29-2025\/","title":{"rendered":"Lilly&#8217;s Status Report for 3\/29\/2025"},"content":{"rendered":"<p><strong>Items done this week:<\/strong><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Fully fixed the BLE communication from ESP32-&gt;RPi (ability to send the full float at once instead of separate bytes, which was a problem for some reason last week). Pi-&gt;server communication for sending over the angle data as received from the ESP32 is set up as well.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Tested sensor fusion algorithms to improve the angle calculations using the acceleration, gyro, and magnetic field data). These readings are still a bit buggy so I still need to implement some filtering on the sensors readings + calculated outputs so the values being sent to the extension do not jump up and down so much. However, they\u2019re still a lot better than last week and get a lot closer to the correct angle, especially when moving the sensor slowly.<\/span><\/li>\n<\/ol>\n<p><strong>Progress?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">I had hoped to have much cleaner angle data by now so I would say I\u2019m still behind on that front. I also did not have time to fix the Pi-&gt;ESP32 sending issues as I focused on the angle calculation algorithms more this week. However, this is not that much of a problem as the main thing that the Pi\/server needs to communicate with the ESP32 is when to start calibration, but this can just be synced with the timing of the Pi&#8217;s connection to the ESP32 via Bluetooth (instead of sending some value to indicate the calibration start). Still, I find this messy and I would like to implement the Pi-&gt;ESP32 control in the coming weeks so the &#8220;user&#8221; (and us developers&#8230;) can recalibrate\/restart sampling via a command in the browser extension. I also decided to not start assembling the hat since our real visor order hasn\u2019t come in yet, and I didn\u2019t want to waste time making something that wouldn\u2019t be in our final product, even though the interim demo is on Monday.<\/span><\/p>\n<p>For the interim demo, I would like to have a cleaner (and more accurate) stream of angle data available to send to the Pi\/extension, and implement some way of zeroing out the angle\/recalibrating mid-run (ideally controlled from the extension).<\/p>\n<p><strong>Deliverables for next week:<\/strong><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Further improve angle processing code (probably need more low-pass filtering on output and input data)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Start assembling the components on the hat when the visor comes in.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Figure out the BLE (Pi-&gt;ESP32) issues so calibration can be more streamlined.<\/span><\/li>\n<\/ol>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1wddo5KdtA5FNAKvYoB1es1snJE4sNH3T\/view?usp=sharing\">https:\/\/drive.google.com\/file\/d\/1wddo5KdtA5FNAKvYoB1es1snJE4sNH3T\/view?usp=sharing\u00a0<\/a><\/p>\n<p>Video of the calculated angles when rotating the board from 0 -&gt; 90 degrees in one direction (board offscreen). You can see that it&#8217;s still a bit off (only reaches -80 to -85 degrees at the &#8220;90 degree&#8221; point) and oscillates quite a bit before stabilizing when I stop moving. One good thing is that I&#8217;ve calibrated the gyroscopes more extensively so there&#8217;s a lot less drift (changing angle when the sensor isn&#8217;t even moving).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Items done this week: Fully fixed the BLE communication from ESP32-&gt;RPi (ability to send the full float at once instead of separate bytes, which was a problem for some reason last week). Pi-&gt;server communication for sending over the angle data as received from the ESP32 is set up as well. Tested sensor fusion algorithms to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/2025\/03\/30\/lillys-status-report-for-3-29-2025\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Lilly&#8217;s Status Report for 3\/29\/2025&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1075,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[8],"_links":{"self":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/wp-json\/wp\/v2\/posts\/192"}],"collection":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/wp-json\/wp\/v2\/users\/1075"}],"replies":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/wp-json\/wp\/v2\/comments?post=192"}],"version-history":[{"count":5,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/wp-json\/wp\/v2\/posts\/192\/revisions"}],"predecessor-version":[{"id":204,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/wp-json\/wp\/v2\/posts\/192\/revisions\/204"}],"wp:attachment":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/wp-json\/wp\/v2\/media?parent=192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/wp-json\/wp\/v2\/categories?post=192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s25-teamb7\/wp-json\/wp\/v2\/tags?post=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}