{"id":733,"date":"2017-04-12T16:53:14","date_gmt":"2017-04-12T16:53:14","guid":{"rendered":"https:\/\/zhutarduino.wordpress.com\/?page_id=733"},"modified":"2020-10-12T16:18:51","modified_gmt":"2020-10-12T16:18:51","slug":"arduino-motion-detecting-pir-sensor-camera-trigger","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=733","title":{"rendered":"ARDUINO Motion Detecting (PIR Sensor) Camera Trigger"},"content":{"rendered":"<h1>This tutorial will show you How to use a PIR sensor with a ARDUINO board to make a motion detecting camera trigger (Trail Cam).<\/h1>\n<h2>Click on video below for full tutorial&#8230;<\/h2>\n<p><iframe loading=\"lazy\" title=\"ARDUINO Motion Detecting (PIR Sensor) Camera Trigger\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/psOH-60Je2c?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<h2>Parts List:<\/h2>\n<p>#affiliate links#<\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=PIR sensor&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=03d6293d126c549211ddb96d13146bc9\" target=\"_blank\" rel=\"noopener noreferrer\">PIR sensor<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino board&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=279e5256e6ba031c193b78e496b8ae3e\" target=\"_blank\" rel=\"noopener noreferrer\">ARDUINO<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=pc817&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=ac7bb7eda7d50b3ee5b451edb3fa68cb\" target=\"_blank\" rel=\"noopener noreferrer\">PC817 Opto-isolator<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=resistor&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=bdfe00f0e79c3d6aa5f789b661f90f7a\" target=\"_blank\" rel=\"noopener noreferrer\">330\u03a9 resistor<\/a><\/p>\n<h2>SCHEMATIC:<\/h2>\n<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/04\/pir_cam_schem.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-735\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/04\/pir_cam_schem.jpg?w=300\" alt=\"\" width=\"637\" height=\"505\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/04\/pir_cam_schem.jpg 963w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/04\/pir_cam_schem-300x238.jpg 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/04\/pir_cam_schem-768x610.jpg 768w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><\/p>\n<h2>ARDUINO Code:<\/h2>\n<p>#define pir 8<br \/>\n#define cam 2<br \/>\nint val;<br \/>\nvoid setup() {<br \/>\npinMode(cam,OUTPUT);<br \/>\npinMode(pir,INPUT);<\/p>\n<p>}<\/p>\n<p>void loop() {<br \/>\nval = digitalRead(pir);<br \/>\nif (val == HIGH)<br \/>\n{<br \/>\ndigitalWrite(cam,HIGH);<br \/>\ndelay(50);<br \/>\ndigitalWrite(cam,LOW);<br \/>\ndelay(10000);<br \/>\n}<br \/>\ndelay(50);<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you How to use a PIR sensor with a ARDUINO board to make a motion detecting camera trigger (Trail Cam). Click on video below for full tutorial&#8230; Parts List: #affiliate links# PIR sensor ARDUINO PC817 Opto-isolator &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=733\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":10,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-733","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/733","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=733"}],"version-history":[{"count":2,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/733\/revisions"}],"predecessor-version":[{"id":1583,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/733\/revisions\/1583"}],"up":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/10"}],"wp:attachment":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}