{"id":1007,"date":"2013-10-17T05:32:38","date_gmt":"2013-10-17T05:32:38","guid":{"rendered":"http:\/\/aaron-sherwood.com\/blog\/?p=1007"},"modified":"2013-10-17T05:49:02","modified_gmt":"2013-10-17T05:49:02","slug":"arduino-magnetic-wire-wrapping-assitant","status":"publish","type":"post","link":"https:\/\/aaron-sherwood.com\/blog\/?p=1007","title":{"rendered":"Arduino magnet wire wrapping assitant"},"content":{"rendered":"<p>I&#8217;m wrapping my own magnetic coils for a project I&#8217;m working on and I need to wrap each coil 600 times. To help keep track of the count I made an assistant out of an Arduino and a photo resistor. In this test I wrap black tape around the chuck on a drill and then put a strip of white tape over it. Shining a light from underneath reflects off the white strip as it rotates and shines more brightly into the photocell. The Arduino uses this change in brightness to count how many rotations the drill makes and when it gets to the right amount an LED turns on. In the video example the light turns on after 10 rotations. Code is included below.<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/player.vimeo.com\/video\/77109145?byline=0&amp;portrait=0\" width=\"800\" height=\"450\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe><\/p>\n<p><a href=\"http:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2432.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2432.jpg\" alt=\"IMG_2432\" width=\"1936\" height=\"2592\" class=\"alignnone size-full wp-image-1008\" srcset=\"https:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2432.jpg 1936w, https:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2432-224x300.jpg 224w, https:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2432-764x1024.jpg 764w\" sizes=\"auto, (max-width: 1936px) 100vw, 1936px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2436.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2436.jpg\" alt=\"IMG_2436\" width=\"2592\" height=\"1936\" class=\"alignnone size-full wp-image-1009\" srcset=\"https:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2436.jpg 2592w, https:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2436-300x224.jpg 300w, https:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2436-1024x764.jpg 1024w, https:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2436-401x300.jpg 401w\" sizes=\"auto, (max-width: 2592px) 100vw, 2592px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2437.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2437.jpg\" alt=\"IMG_2437\" width=\"2592\" height=\"1936\" class=\"alignnone size-full wp-image-1010\" srcset=\"https:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2437.jpg 2592w, https:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2437-300x224.jpg 300w, https:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2437-1024x764.jpg 1024w, https:\/\/aaron-sherwood.com\/blog\/wp-content\/uploads\/2013\/10\/IMG_2437-401x300.jpg 401w\" sizes=\"auto, (max-width: 2592px) 100vw, 2592px\" \/><\/a><\/p>\n<p><script src=\"https:\/\/gist.github.com\/aaronsherwood\/7019570.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m wrapping my own magnetic coils for a project I&#8217;m working on and I need to wrap each coil 600 times. To help keep track of the count I made an assistant out of an Arduino and a photo resistor. &hellip; <a href=\"https:\/\/aaron-sherwood.com\/blog\/?p=1007\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,78],"tags":[114,87,88],"class_list":["post-1007","post","type-post","status-publish","format-standard","hentry","category-arduino","category-project-development-studio","tag-arduino","tag-macgyver","tag-magnet-coil-winding"],"_links":{"self":[{"href":"https:\/\/aaron-sherwood.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aaron-sherwood.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aaron-sherwood.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aaron-sherwood.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aaron-sherwood.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1007"}],"version-history":[{"count":4,"href":"https:\/\/aaron-sherwood.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1007\/revisions"}],"predecessor-version":[{"id":1014,"href":"https:\/\/aaron-sherwood.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1007\/revisions\/1014"}],"wp:attachment":[{"href":"https:\/\/aaron-sherwood.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aaron-sherwood.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aaron-sherwood.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}