{"id":207,"date":"2015-09-30T03:03:43","date_gmt":"2015-09-30T03:03:43","guid":{"rendered":"http:\/\/www.zoebachman.net\/itp\/?p=207"},"modified":"2015-09-30T22:25:48","modified_gmt":"2015-09-30T22:25:48","slug":"pcomp-wk-4-simple-application-drawing-machine","status":"publish","type":"post","link":"http:\/\/www.zoebachman.net\/itp\/?p=207","title":{"rendered":"PComp, Wk 4: Simple Application &#8211; Drawing Machine"},"content":{"rendered":"<p><strong>INTRO<\/strong><\/p>\n<p>As I mentioned in my\u00a0 <a href=\"http:\/\/www.zoebachman.net\/itp\/?p=221\">lab blog post<\/a>,\u00a0I was really intrigued by the possibilities of controlling an object\u2019s motion. When I saw the arms of the servo motor rotate,\u00a0I started thinking about\u00a0using it to create a kind of\u00a0drawing machine.<\/p>\n<p>Maybe it\u2019s because a pencil is my favorite tool, but I thought it would be interesting\u00a0to look at how analog input can translate into a digital context, then be re-written as a different kind of analog output. I like playing with the idea of creating some complicated digital process to do something we could easily do as analog (this has come up a lot in my ICM sketches).<\/p>\n<p>There\u2019s part of me that theoretically\/conceptually enjoys the idea of unnecessary over-complications re: digital applications. But I was also\u00a0thinking\u00a0about how this particular machine\u00a0creates a product that you couldn\u2019t replicate by hand- not exactly, at least. (Thought: I wonder if I standardized this enough if I could replicate results, with human interaction being the one variable?)<\/p>\n<p>I used to teach photography to elementary and middle school kids and one of the first things we always did was break down what the work photography means \u2013 photo LIGHT and graph DRAW \u2013 in Greek. So I thought it would be funny to do a different kind of \u201clight drawing\u201d \u2013 using information from the light sensor to power a servo motor that has attached drawing implements.<\/p>\n<p><strong>PROCESS<\/strong><\/p>\n<p>While I was already familiar with using a photosensor to control a servo motor from the lab this week, at first I encountered some issues that I hadn\u2019t come across before. My servo made a definite hissing sound when I first hooked it up. I tried it out with the second one I just bought and the same thing happened. So, I snooped around the internet and found <a href=\"http:\/\/electronics.stackexchange.com\/questions\/93746\/problem-with-arduino-uno-and-rc-servo\"> this page<\/a>. Looks like it has something to do with the upload. I re-uploaded the sketch and didn\u2019t have anymore weird hissing issues!<\/p>\n<p>Once that was solved, I went about trying to figure out how to attach a drawing tool to the servo motor and what kind of drawing tool to use.<\/p>\n<p>I first tried out a pencil, but I couldn\u2019t get enough pressure to make a mark. Then I thought, what if I found an easy flowing ink pen\/marker\u2026maybe one I could take the ink cartridge out of, so it would be thin enough to tape to the arms?<\/p>\n<p><a href=\"http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2015\/09\/IMG_4463.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-226 size-medium\" src=\"http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2015\/09\/IMG_4463-e1443651826857-225x300.jpg\" alt=\"IMG_4463\" width=\"225\" height=\"300\" srcset=\"http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2015\/09\/IMG_4463-e1443651826857-225x300.jpg 225w, http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2015\/09\/IMG_4463-e1443651826857-768x1024.jpg 768w, http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2015\/09\/IMG_4463-e1443651826857-1200x1600.jpg 1200w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n<p>Well\u2026I remembered I had a butt-load of gel pens (because I\u2019m still a 10 year old girl).<\/p>\n<p>I rigged one up, tried out a few different positions and orientations in relation to the motor and settled on the following:<\/p>\n<p><a href=\"http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2015\/09\/IMG_4465.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-227 size-medium\" src=\"http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2015\/09\/IMG_4465-e1443651898122-225x300.jpg\" alt=\"IMG_4465\" width=\"225\" height=\"300\" srcset=\"http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2015\/09\/IMG_4465-e1443651898122-225x300.jpg 225w, http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2015\/09\/IMG_4465-e1443651898122-768x1024.jpg 768w, http:\/\/www.zoebachman.net\/itp\/wp-content\/uploads\/2015\/09\/IMG_4465-e1443651898122-1200x1600.jpg 1200w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n<p>Once I got that to work, I thought I\u2019d try adding a second color and see what I got. Picked orange, bc complimentary colors, yo.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/player.vimeo.com\/video\/140982538\" width=\"500\" height=\"889\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><a href=\"https:\/\/vimeo.com\/140982538\">IMG_4467<\/a> from <a href=\"https:\/\/vimeo.com\/user23159700\">Zoe Bachman<\/a> on <a href=\"https:\/\/vimeo.com\">Vimeo<\/a>.<\/p>\n<p>So then I thought\u2026what about TWO SERVO MOTORS! AND FOUR COLORS!<\/p>\n<p>I hooked up both servos to the same analog PMW output pin\u2026<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/player.vimeo.com\/video\/140982428\" width=\"500\" height=\"889\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><a href=\"https:\/\/vimeo.com\/140982428\">IMG_4473<\/a> from <a href=\"https:\/\/vimeo.com\/user23159700\">Zoe Bachman<\/a> on <a href=\"https:\/\/vimeo.com\">Vimeo<\/a>.<\/p>\n<p>SUCCESS! tricky to do it with two, only because you have to hold one in each hand and have someone wave their hand over the photocell to change the direction. I put my roommate on hand-waving and video duty (hence why it\u2019s filmed vertically\u2026)<\/p>\n<p><strong>THINGS TO THINK ABOUT:<\/strong><\/p>\n<p>After I got my drawing machine to work, a few modifications came to mind. Currently, it doesn\u2019t function in exactly the state that I want it to. That the pens don\u2019t always produce a mark is the biggest problem. The blue and the orange worked relatively well, but I think I\u2019d try it again with a different drawing utensil.<\/p>\n<p>I\u2019d also be curious at mapping different levels of brightness. Currently, the sensor is sort of working in a switch-ish state that if you cover it up completely or take your hand off forces the motor to turn 180 degrees. Rapidly waving your hand makes a few smaller motions, but I\u2019d like to play around with this relationship more intentionally.<\/p>\n<p>Similar to that, I\u2019d like to see what would happen if each servo motor had it\u2019s own light sensor controlling it\u2019s function so that they didn\u2019t move simultaneously.<\/p>\n<p>Another thing I was thinking of playing around with was using a DC motor and playing with speed rather than position.<\/p>\n<p>Lastly, if I was to develop this into more of a complete prototype\u2026what kind of container\/interface would I design for it? I like being able to hold two pens in one hand, and it would need to expand the surface area so it would be easier for the hand to grip while still allowing the motors and pens to rotate. Anyways, just some thoughts\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>INTRO As I mentioned in my\u00a0 lab blog post,\u00a0I was really intrigued by the possibilities of controlling an object\u2019s motion. When I saw the arms of the servo motor rotate,\u00a0I started thinking about\u00a0using it to create a kind of\u00a0drawing machine. &hellip; <a href=\"http:\/\/www.zoebachman.net\/itp\/?p=207\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[61,15,56],"class_list":["post-207","post","type-post","status-publish","format-standard","hentry","category-pcomp","tag-application","tag-pcomp","tag-servo-motors"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=\/wp\/v2\/posts\/207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=207"}],"version-history":[{"count":5,"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions"}],"predecessor-version":[{"id":229,"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions\/229"}],"wp:attachment":[{"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zoebachman.net\/itp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}