{"id":1001,"date":"2019-10-07T04:58:05","date_gmt":"2019-10-07T04:58:05","guid":{"rendered":"http:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/?p=1001"},"modified":"2019-10-07T04:58:05","modified_gmt":"2019-10-07T04:58:05","slug":"polish-and-present-alex-boggess","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/aboggess\/polish-and-present-alex-boggess\/","title":{"rendered":"Polish and Present &#8211; Alex Boggess"},"content":{"rendered":"\n<p>The final week working on the Laser Etch-a-sketch project involved the most work and persistence. I continued to use the same mechanical components including the two Fast-speed servos, an Arduino Nano, a Mini-Maestro 18 for driving the servos, two potentiometers, and two pushbuttons. As I noted last week, the y-axis potentiometer is now fully working therefore it is capable of drawing on the x and y-axis. As the mechanical components stayed the same and the potentiometer was fixed, the code has greatly changed after hours of experimentation. <\/p>\n\n\n\n<p>The issues I found with the code last week was not being able to draw geometric shapes, not being able to record and recreate the users&#8217; input, and not drawing the laser fast enough to create a persistence of vision effect.<\/p>\n\n\n\n<p>I was able to fix the geometric shape issue by creating a function that delayed the servo angle output dynamically and using for loops. The dynamic delay function calculates the change in position and multiplies that change by a constant so that it outputs a delay in milliseconds. As per someones&#8217; suggestion last light art class, I added for loops in my code so that the code would execute faster, therefore creating a cleaner output.<\/p>\n\n\n\n<p>I was unable to fix the recording of the users&#8217; input due to issues that I believe to be limitations in the Arduino Nano&#8217;s hardware. My method to record the users&#8217; input was to create an array and append the current position after the position has changed above a certain threshold. I could not append the users&#8217; input to an array for some reason that is unknown to me at this time. As a compromise, I will be able to take a 30-second long exposure with my phone so that we are able to view what the user has drawn manually.<\/p>\n\n\n\n<p>I was also unable to fix the speed issue with the servos therefore not being able to create the persistence of vision effect. Again, I will utilize the long exposure setting with my phone as a compromise.<\/p>\n\n\n\n<p>Overall, I wouldn&#8217;t say this project was a failure and I also don&#8217;t think this project is a dead end with the current hardware. I believe with more time coding and more experience, I could create the project that I set out to make. Going into this project, I knew I would struggle with the coding side of the Laser Etch-a-sketch as I am studying mechanical engineering but I learned a lot and I had fun.<\/p>\n\n\n\n<p>Below are pictures of the final Laser Etch-a-sketch with the base put on and the wires hidden. <\/p>\n\n\n\n<ul class=\"wp-block-gallery columns-2 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"http:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005214-1024x768.jpg\" alt=\"\" data-id=\"1011\" data-link=\"http:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/?attachment_id=1011\" class=\"wp-image-1011\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005214-1024x768.jpg 1024w, https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005214-800x600.jpg 800w, https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005214-768x576.jpg 768w, https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005214-400x300.jpg 400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"http:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005128-1024x768.jpg\" alt=\"\" data-id=\"1013\" data-link=\"http:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/?attachment_id=1013\" class=\"wp-image-1013\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005128-1024x768.jpg 1024w, https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005128-800x600.jpg 800w, https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005128-768x576.jpg 768w, https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005128-400x300.jpg 400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"http:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005218-2-1024x768.jpg\" alt=\"\" data-id=\"1014\" data-link=\"http:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/?attachment_id=1014\" class=\"wp-image-1014\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005218-2-1024x768.jpg 1024w, https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005218-2-800x600.jpg 800w, https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005218-2-768x576.jpg 768w, https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005218-2-400x300.jpg 400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"http:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191006_202750-2-1024x768.jpg\" alt=\"\" class=\"wp-image-1016\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191006_202750-2-1024x768.jpg 1024w, https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191006_202750-2-800x600.jpg 800w, https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191006_202750-2-768x576.jpg 768w, https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191006_202750-2-400x300.jpg 400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>All components inserted into the base, without the cover<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The final week working on the Laser Etch-a-sketch project involved the most work and persistence. I continued to use the same mechanical components including the two Fast-speed servos, an Arduino Nano, a Mini-Maestro 18 for driving the servos, two potentiometers, and two pushbuttons. As I noted last week, the y-axis potentiometer is now fully working&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/aboggess\/polish-and-present-alex-boggess\/\">Read More<\/a><\/div>\n","protected":false},"author":133,"featured_media":1014,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1001","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"jetpack_featured_media_url":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-content\/uploads\/sites\/11\/2019\/10\/20191007_005218-2.jpg","_links":{"self":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-json\/wp\/v2\/posts\/1001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-json\/wp\/v2\/users\/133"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-json\/wp\/v2\/comments?post=1001"}],"version-history":[{"count":3,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-json\/wp\/v2\/posts\/1001\/revisions"}],"predecessor-version":[{"id":1018,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-json\/wp\/v2\/posts\/1001\/revisions\/1018"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-json\/wp\/v2\/media\/1014"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-json\/wp\/v2\/media?parent=1001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-json\/wp\/v2\/categories?post=1001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-a19\/wp-json\/wp\/v2\/tags?post=1001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}