{"id":862,"date":"2018-01-03T18:15:53","date_gmt":"2018-01-03T18:15:53","guid":{"rendered":"https:\/\/zhutarduino.wordpress.com\/?page_id=862"},"modified":"2019-03-28T20:32:21","modified_gmt":"2019-03-28T20:32:21","slug":"learning-arduino-for-beginners-ep25-laser-trip-wire-alarm","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=862","title":{"rendered":"Learning Arduino for beginners EP#25 laser trip wire alarm"},"content":{"rendered":"<h2><strong>In this episode we will take a look at how you can use a laser with a LDR to make a simple laser trip wire burglar alarm&#8230;<\/strong><\/h2>\n<p><iframe loading=\"lazy\" title=\"Learning Arduino for beginners EP#25 laser trip wire alarm\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/aJYrkb6qlkw?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h1><strong><a href=\"https:\/\/www.facebook.com\/zarduino\/\">Check us out on Facebook!<\/a><\/strong><\/h1>\n<h2><strong>SCHEMATIC:<\/strong><\/h2>\n<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2018\/01\/laser.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-863\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2018\/01\/laser.jpg?w=300\" alt=\"\" width=\"640\" height=\"469\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2018\/01\/laser.jpg 1092w, https:\/\/thezhut.com\/wp-content\/uploads\/2018\/01\/laser-300x220.jpg 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2018\/01\/laser-768x563.jpg 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2018\/01\/laser-1024x751.jpg 1024w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<h2><strong>Parts List:<\/strong><\/h2>\n<p>ARDUINO<\/p>\n<p>Laser<\/p>\n<p>LDR<\/p>\n<p>MOSFET<\/p>\n<p>resistor<\/p>\n<h2><strong>ARDUINO Code:<\/strong><\/h2>\n<p>void setup() {<br \/>\nSerial.begin(9600); \/\/start serial<\/p>\n<p>}<\/p>\n<p>void loop() {<br \/>\nint light=(analogRead(A3)); \/\/read photo eye<br \/>\nSerial.println(light); \/\/print light value 4 testing<br \/>\ndelay(10); \/\/delay for stability<br \/>\nif (light&lt;600) \/\/check if beam broken<br \/>\n{<br \/>\nfor (int x = 0; x &lt; 25; x++) \/\/set alarm duration<br \/>\n{<br \/>\ntone(3,400,100); \/\/set tone to be played<br \/>\ndelay(200);<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this episode we will take a look at how you can use a laser with a LDR to make a simple laser trip wire burglar alarm&#8230; Check us out on Facebook! SCHEMATIC: Parts List: ARDUINO Laser LDR MOSFET resistor &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=862\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":809,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-862","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=862"}],"version-history":[{"count":1,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/862\/revisions"}],"predecessor-version":[{"id":1279,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/862\/revisions\/1279"}],"up":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/809"}],"wp:attachment":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}