{"id":18,"date":"2019-09-28T18:46:17","date_gmt":"2019-09-28T18:46:17","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/?p=18"},"modified":"2019-09-29T02:42:17","modified_gmt":"2019-09-29T02:42:17","slug":"09-28-2019-team-update","status":"publish","type":"post","link":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/2019\/09\/28\/09-28-2019-team-update\/","title":{"rendered":"09\/28\/2019 Team Update"},"content":{"rendered":"<h1>Jake Zimmer Status Update<\/h1>\n<h3 class=\"textLayer--absolute\">What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).<\/h3>\n<div><\/div>\n<div>This week, I figured out how the galvanometers actually worked and traced the sample driver PCBs to get a better idea of how they are currently implemented. These changes are being reflected in the schematic design.<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><\/div>\n<div><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-54\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/IMG_20190925_114342-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/IMG_20190925_114342-225x300.jpg 225w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/IMG_20190925_114342-768x1024.jpg 768w\" sizes=\"(max-width: 225px) 100vw, 225px\" \/><\/div>\n<div><\/div>\n<div>This is a composite image that helped me trace connections in the Chinese driver boards. It is composed of processed photos of the top and bottom layers of the boards.<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><\/div>\n<div>Additionally, this is the progress that I have made so far on the schematic design :\u00a0<a href=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/laser.pdf\">laser<\/a><\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><\/div>\n<div>And here is an image of the board layout that I have done so far. This is a rough layout of components because the schematic design is still in flux and so making a pretty layout is lower priority.<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><\/div>\n<div><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-56\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/09282019Board-300x146.png\" alt=\"\" width=\"300\" height=\"146\" srcset=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/09282019Board-300x146.png 300w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/09282019Board-768x373.png 768w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/09282019Board-1024x497.png 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><\/div>\n<div>Note: not all 3D models are created. The blue shapes are large capacitors and the red shapes are potentiometers of various sizes.<\/div>\n<div><\/div>\n<h3><\/h3>\n<div id=\"page-2\" class=\"Page PageComponent\">\n<div class=\"Draw Draw--not-drawing Draw--selection\">\n<div class=\"TextLayer-container\">\n<div class=\"textLayer\">\n<div class=\"textLayer--absolute\">Is your progress on schedule or behind? If you are behind, what actions will be<\/div>\n<div class=\"textLayer--absolute\">taken to catch up to the project schedule?<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3><\/h3>\n<div>It is a little behind schedule because we had to wait until we had the galvanometers before making significant progress on the schematic. We expected to be able to find more information about the galvos online.<\/div>\n<h3><\/h3>\n<div class=\"Page-container\">\n<div id=\"page-2\" class=\"Page PageComponent\">\n<div class=\"Draw Draw--not-drawing Draw--selection\">\n<div class=\"TextLayer-container\">\n<div class=\"textLayer\">\n<h3 class=\"textLayer--absolute\">What deliverables do you hope to complete in the next week?<\/h3>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div>Next week I hope to make a DAC test board and order the parts for the PID subsystem so that I can begin experimenting with the PID portion of the project before manufacturing.<\/div>\n<h1>Enes Palaz Status Update<\/h1>\n<p><span style=\"font-weight: 400\">Focus of my work was ordering DAC that we selected as a team and read through its\u00a0<a href=\"http:\/\/www.ti.com\/lit\/ds\/symlink\/dac60508.pdf\">datasheet<\/a> in detail to make preparations for the interface that I am going to code for it in the upcoming week.<\/span><\/p>\n<p><span style=\"font-weight: 400\">I read through the specifications on how to communicate with the DAC using SPI protocol and listed steps needed to successfully configure it. In addition to this, I noted the timing constraints for the DAC trigger so I can take those into account during the development phase.<\/span><\/p>\n<p><span style=\"font-weight: 400\">I also worked on some research on SPI libraries that are available to use in multiple languages while we try to decide in choosing C or Python as our main language in the project based on performance constraints. As a result of the research, I decided to use WiringPi GPIO library because of its speed thanks to it being written in C. We want to utilize the performance advantage that comes with this.<\/span><\/p>\n<figure id=\"attachment_49\" aria-describedby=\"caption-attachment-49\" style=\"width: 525px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-49 size-large\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/Screen-Shot-2019-09-28-at-4.00.50-PM-1024x359.png\" alt=\"\" width=\"525\" height=\"184\" srcset=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/Screen-Shot-2019-09-28-at-4.00.50-PM-1024x359.png 1024w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/Screen-Shot-2019-09-28-at-4.00.50-PM-300x105.png 300w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/Screen-Shot-2019-09-28-at-4.00.50-PM-768x269.png 768w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/Screen-Shot-2019-09-28-at-4.00.50-PM-2000x702.png 2000w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/Screen-Shot-2019-09-28-at-4.00.50-PM.png 2002w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><figcaption id=\"caption-attachment-49\" class=\"wp-caption-text\">HED vs Canny Edge Detection Comparison<\/figcaption><\/figure>\n<p>Lastly, I made some research on other edge-detection algorithms that are based on deep-learning models that could improve our performance. I am mainly evaluating performance of HED(Hollistic Edge Detection) and Canny Edge Detection which is the method that we are currently using.<\/p>\n<p><span style=\"font-weight: 400\">My progress is still on track since I am on hold for our DACs and breakout boards for these DACs to arrive. Therefore, I didn\u2019t need to move anything in the schedule.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Hopefully, our parts are going to arrive on Monday (09\/30\/2019) so I can start reflowing those on breakout boards and start configuring. I am planning to be done with successfully outputting desired values on all 8 channels of the DAC trigger all of these in synch. The verification of this is going to be done by using a multi channel oscilloscope.<\/span><\/p>\n<h1>Eliana Cohen Status Update<\/h1>\n<ul>\n<li>What did you personally accomplish this week on the project?\n<ul>\n<li>Integrated earlier OpenCV livestream output with ILDA conversion on our test raspi, and tested the time to convert a frame to ILDA.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>This included making the initial test python code into modular libraries, and redefining the software stack structure for the project. An example of a frame converted in real time can be seen below:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/scontent.fagc2-1.fna.fbcdn.net\/v\/t1.15752-9\/71524233_497575914413798_3158092828593094656_n.png?_nc_cat=102&amp;_nc_oc=AQnzzNxuhAMbDNlsmhxMQtb1qOokiVgMWJdYgZCqh6xc70x4FNcy57fnQOegm6shj8E&amp;_nc_ht=scontent.fagc2-1.fna&amp;oh=3e40e7084686542df06fc8f659c2cfb3&amp;oe=5E33C3B9\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>Wrote pseudo-code for thread-safe double-buffer interface between video livestream and DAC interface.\n<ul>\n<li style=\"list-style-type: none\">Code is mostly finished, just requires a test-bench to benchmark its speed and thread safety. High-level structure of the double-buffer is below:<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/scontent.fagc2-1.fna.fbcdn.net\/v\/t1.15752-9\/70937651_479801989414358_2680090709742059520_n.png?_nc_cat=111&amp;_nc_oc=AQnZaolLBtwJcQlr0CfCh9pic8Ef1ewtlnK0cvxY3DGLcFFNAmwKw-mmoYLGvuR5J7s&amp;_nc_ht=scontent.fagc2-1.fna&amp;oh=a250ab5208327bd000f156cf0dbe20d1&amp;oe=5E2E201B\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>Assisted in some schematic review for PID design.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\u00a0Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?<\/li>\n<\/ul>\n<p>Mostly on schedule, after I integrated the video feed with the ILDA conversion python library, I found the python library was too slow (0.7 second frame conversion time) to keep up with our 10fps requirement. Hence, I will write up a C-version of this module by the end of this weekend, and so I will still finish this module-integration on time.<\/p>\n<ul>\n<li>What deliverables do you hope to complete in the next week?<\/li>\n<\/ul>\n<p>By next week, I should have completed:<\/p>\n<ol>\n<li>Ensuring live-generated ILDA frames work on our hardware system.<\/li>\n<li>C-Version of the ILDA conversion library fully tested and completed.<\/li>\n<li>Double-buffer library fully tested and completed.<\/li>\n<\/ol>\n<h1>Team Status Update<\/h1>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">What are the most significant risks that could jeopardize the success of the project? How are these risks being managed? What contingency plans are ready?\u00a0<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">The PID controller is a big point of uncertainty for this project for two reasons. The first is that the PID controller is done in analog circuitry which means it is a bit difficult to make conceptual changes on the fly. Some laser systems seem to implement a PIDD controller with different D terms for high frequency and low frequency changes. To mitigate this risk, we will protoboard the system before getting manufactured boards. The second risk is that the feedback system for the PID controller is somewhat unusually constructed. The galvanometers use an LED and two photocells with a blocking element to derive a positional component. To mitigate this risk, we will scope the outputs of this element thoroughly to derive a good method of receiving feedback from it.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">Computation time from video frame to DAC output is another concern. Preliminary testing revealed that trying to package the contour bytes from OpenCV to ILDA format in python were too slow (~0.7 seconds per frame), so we are switching to using C for this conversion for speed improvements. This should hopefully improve our speed limitations, but more testing is required.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">In order to increase our performance more in case that we didn\u2019t reach high enough frame rates in our C implementation, we added smoothing and filtering work in our schedule to develop a fast filtering step between contour detection and ILDA conversion to reduce the number of points converted. This method will mainly detect really small and unrelated contours that is not worth drawing so we can reduce the workload while not losing any visual context.<\/span><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Were any changes made to the existing design of the system (requirements, block diagram, system spec, etc)? Why was this change necessary, what costs does the change incur, and how will these costs be mitigated going forward?\u00a0<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">We changed our software stack structure after realizing Python was too slow\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0(for our 10\/fps requirement) to handle contour to ILDA conversion.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0The new software diagram is below:<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-22\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/70980767_970719886605119_7260109161201926144_n-300x108.png\" alt=\"\" width=\"300\" height=\"108\" srcset=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/70980767_970719886605119_7260109161201926144_n-300x108.png 300w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/70980767_970719886605119_7260109161201926144_n-768x277.png 768w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/70980767_970719886605119_7260109161201926144_n-1024x369.png 1024w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/70980767_970719886605119_7260109161201926144_n.png 1312w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">We refined some of the requirements:<\/span><\/p>\n<pre><span style=\"font-weight: 400\">The laser shall draw frames at 10 frames per second because it is proximal to the classic animation framerate of 12 frames per second (which is proven to look visually fluid) while also being an easy divider of 30 frames per second, the modern framerate.<\/span>\r\n\r\n<span style=\"font-weight: 400\">A frame shall consist of a number of points less than 12,000 (12kpps) divided by the framerate.<\/span>\r\n\r\n<span style=\"font-weight: 400\">The laser shall achieve 90% accuracy on the 12kpps ILDA test pattern by visually conforming to 9 out of 10 of the features highlighted in the pattern specifications.<\/span><\/pre>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Provide an updated schedule if changes have occurred.\u00a0<\/span><\/li>\n<\/ul>\n<p>These are the changes to the current schedule:\u00a0<a href=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-content\/uploads\/sites\/64\/2019\/09\/09282019_sched.pdf\">09282019_sched<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jake Zimmer Status Update What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours). This week, I figured out how the galvanometers actually worked and traced the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/2019\/09\/28\/09-28-2019-team-update\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;09\/28\/2019 Team Update&#8221;<\/span><\/a><\/p>\n","protected":false},"author":225,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-json\/wp\/v2\/posts\/18"}],"collection":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-json\/wp\/v2\/users\/225"}],"replies":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":7,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":63,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-json\/wp\/v2\/posts\/18\/revisions\/63"}],"wp:attachment":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f19-teama2\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}