{"id":975,"date":"2014-03-14T15:36:25","date_gmt":"2014-03-14T14:36:25","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=975"},"modified":"2014-03-14T18:41:28","modified_gmt":"2014-03-14T17:41:28","slug":"arduino-a-laser-tag-and-a-photo-resistor","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=975","title":{"rendered":"Arduino : a laser tag and a photo resistor"},"content":{"rendered":"<p>I recentely got myself a <a href=\"http:\/\/dx.com\/p\/137473\" target=\"_blank\">cheap laser tag<\/a> at dx.com.<\/p>\n<p>I decided to test the following : a laser detector, i.e detect thru a photo resistor (also called light dependent resistor) when my laser beam is interrupted.<\/p>\n<p><strong>First lets have a look at the wiring<\/strong><\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/03\/LDR_bb.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/03\/LDR_bb-185x300.png\" alt=\"LDR_bb\" width=\"185\" height=\"300\" class=\"alignnone size-medium wp-image-976\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/03\/LDR_bb-185x300.png 185w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/03\/LDR_bb-632x1024.png 632w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/03\/LDR_bb.png 795w\" sizes=\"auto, (max-width: 185px) 100vw, 185px\" \/><\/a><\/p>\n<p><strong>Then lets have a look at the code<\/strong> (change the extension to ino or pde) : <a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/03\/laser_detector.txt\">laser_detector<\/a><\/p>\n<p><strong>And last, lets see it run<\/strong> : see the led going off each time our laser beam gets away from the photo resistor.<\/p>\n<div style=\"width: 640px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-975-1\" width=\"640\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/03\/laser.mp4?_=1\" \/><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/03\/laser.mp4\">https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/03\/laser.mp4<\/a><\/video><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I recentely got myself a cheap laser tag at dx.com. I decided to test the following : a laser detector, i.e detect thru a photo resistor (also called light dependent resistor) when my laser beam is interrupted. First lets have a look at the wiring Then lets have a look at the code (change the <a href='https:\/\/labalec.fr\/erwan\/?p=975' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-975","post","type-post","status-publish","format-standard","hentry","category-arduino","category-18-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=975"}],"version-history":[{"count":2,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/975\/revisions"}],"predecessor-version":[{"id":998,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/975\/revisions\/998"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}