{"id":203,"date":"2010-09-05T13:36:41","date_gmt":"2010-09-05T12:36:41","guid":{"rendered":"http:\/\/stigern.net\/blog\/?p=203"},"modified":"2011-12-15T17:33:56","modified_gmt":"2011-12-15T16:33:56","slug":"how-to-make-a-security-alarm-using-ldr-and-laser","status":"publish","type":"post","link":"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/","title":{"rendered":"How to make a security alarm using LDR and Laser!"},"content":{"rendered":"<p>How about a easy and simple tutorial on how to make a sort of security sensor using laser and a light\u00a0dependent\u00a0resistor?<\/p>\n<p>It&#8217;s just as simple as this, the LDR reacts when it gets less light than the laser-dot in the center of it. Which is when something comes in the lasers way. So then you know when something passes the invisible line between the laser and the LDR.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/img838.imageshack.us\/img838\/659\/laseralarm.jpg\" alt=\"\" width=\"500\" height=\"259\" \/><\/p>\n<p><strong>Lets begin with what components you need:<\/strong><\/p>\n<p>1x Laser Emitter\/Pen<br \/>\n1x LDR<br \/>\n1x Resistor 10k (doesn&#8217;t have to be 10k ohms)<br \/>\n1x Piezo Buzzer (you can use a LED or anything else you want)<\/p>\n<p>And of course a Arduino board of your\u00a0choice, and some wires.<\/p>\n<p>Lets wire it all up like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/img683.imageshack.us\/img683\/2311\/schematicg.jpg\" alt=\"\" width=\"500\" height=\"397\" \/><\/p>\n<p>Things to notice, buzzer is grounded and the + wire is on the digital 10. Laser is just ground and +5v to make it light constantly. The LDR is in a voltage divider with a resistor, we take out the readings in the middle where the yellow wire is, and it&#8217;s attached to the analog 0.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/img824.imageshack.us\/img824\/2026\/overvieweasy.jpg\" alt=\"\" width=\"300\" height=\"249\" \/><\/p>\n<p>A picture of the LDR.\u00a8<\/p>\n<p><a href=\"http:\/\/pastebin.com\/k50uLsZX\" target=\"_blank\">When all this is wired up, just put this code and run it.<\/a><\/p>\n<p>[youtube=http:\/\/www.youtube.com\/watch?v=IzEDspdWjxU;ap=%2526fmt%3D18&#038;w=425&#038;h=344] <\/p>\n","protected":false},"excerpt":{"rendered":"<p>How about a easy and simple tutorial on how to make a sort of security sensor using laser and a light\u00a0dependent\u00a0resistor? It&#8217;s just as simple as this, the LDR reacts when it gets less light than the laser-dot in the center of it. Which is when something comes in the lasers way. So then you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[14,4],"tags":[94,16,26,95,112,111,110,109,61],"class_list":["post-203","post","type-post","status-publish","format-standard","hentry","category-arduino-electronics","category-electronics","tag-alarm","tag-arduino","tag-guide","tag-how","tag-laser","tag-ldr","tag-security","tag-to","tag-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to make a security alarm using LDR and Laser! - Stigern.Net<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to make a security alarm using LDR and Laser! - Stigern.Net\" \/>\n<meta property=\"og:description\" content=\"How about a easy and simple tutorial on how to make a sort of security sensor using laser and a light\u00a0dependent\u00a0resistor? It&#8217;s just as simple as this, the LDR reacts when it gets less light than the laser-dot in the center of it. Which is when something comes in the lasers way. So then you [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/\" \/>\n<meta property=\"og:site_name\" content=\"Stigern.Net\" \/>\n<meta property=\"article:published_time\" content=\"2010-09-05T12:36:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-12-15T16:33:56+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/img838.imageshack.us\/img838\/659\/laseralarm.jpg\" \/>\n<meta name=\"author\" content=\"Stigern\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stigern\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/\",\"url\":\"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/\",\"name\":\"How to make a security alarm using LDR and Laser! - Stigern.Net\",\"isPartOf\":{\"@id\":\"https:\/\/stigern.net\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/img838.imageshack.us\/img838\/659\/laseralarm.jpg\",\"datePublished\":\"2010-09-05T12:36:41+00:00\",\"dateModified\":\"2011-12-15T16:33:56+00:00\",\"author\":{\"@id\":\"https:\/\/stigern.net\/blog\/#\/schema\/person\/a2a77157fa1facae3c843032fbc1ad3c\"},\"breadcrumb\":{\"@id\":\"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/#primaryimage\",\"url\":\"http:\/\/img838.imageshack.us\/img838\/659\/laseralarm.jpg\",\"contentUrl\":\"http:\/\/img838.imageshack.us\/img838\/659\/laseralarm.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/stigern.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to make a security alarm using LDR and Laser!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/stigern.net\/blog\/#website\",\"url\":\"https:\/\/stigern.net\/blog\/\",\"name\":\"Stigern.Net\",\"description\":\"my little blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/stigern.net\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/stigern.net\/blog\/#\/schema\/person\/a2a77157fa1facae3c843032fbc1ad3c\",\"name\":\"Stigern\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/stigern.net\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/305d159d64fe4a9ee434aed8ee639410?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/305d159d64fe4a9ee434aed8ee639410?s=96&d=mm&r=g\",\"caption\":\"Stigern\"},\"sameAs\":[\"http:\/\/www.stigern.net\"],\"url\":\"https:\/\/stigern.net\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to make a security alarm using LDR and Laser! - Stigern.Net","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/","og_locale":"en_US","og_type":"article","og_title":"How to make a security alarm using LDR and Laser! - Stigern.Net","og_description":"How about a easy and simple tutorial on how to make a sort of security sensor using laser and a light\u00a0dependent\u00a0resistor? It&#8217;s just as simple as this, the LDR reacts when it gets less light than the laser-dot in the center of it. Which is when something comes in the lasers way. So then you [&hellip;]","og_url":"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/","og_site_name":"Stigern.Net","article_published_time":"2010-09-05T12:36:41+00:00","article_modified_time":"2011-12-15T16:33:56+00:00","og_image":[{"url":"http:\/\/img838.imageshack.us\/img838\/659\/laseralarm.jpg","type":"","width":"","height":""}],"author":"Stigern","twitter_misc":{"Written by":"Stigern","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/","url":"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/","name":"How to make a security alarm using LDR and Laser! - Stigern.Net","isPartOf":{"@id":"https:\/\/stigern.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/#primaryimage"},"image":{"@id":"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/#primaryimage"},"thumbnailUrl":"http:\/\/img838.imageshack.us\/img838\/659\/laseralarm.jpg","datePublished":"2010-09-05T12:36:41+00:00","dateModified":"2011-12-15T16:33:56+00:00","author":{"@id":"https:\/\/stigern.net\/blog\/#\/schema\/person\/a2a77157fa1facae3c843032fbc1ad3c"},"breadcrumb":{"@id":"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/#primaryimage","url":"http:\/\/img838.imageshack.us\/img838\/659\/laseralarm.jpg","contentUrl":"http:\/\/img838.imageshack.us\/img838\/659\/laseralarm.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/stigern.net\/blog\/how-to-make-a-security-alarm-using-ldr-and-laser\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/stigern.net\/blog\/"},{"@type":"ListItem","position":2,"name":"How to make a security alarm using LDR and Laser!"}]},{"@type":"WebSite","@id":"https:\/\/stigern.net\/blog\/#website","url":"https:\/\/stigern.net\/blog\/","name":"Stigern.Net","description":"my little blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/stigern.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/stigern.net\/blog\/#\/schema\/person\/a2a77157fa1facae3c843032fbc1ad3c","name":"Stigern","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/stigern.net\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/305d159d64fe4a9ee434aed8ee639410?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/305d159d64fe4a9ee434aed8ee639410?s=96&d=mm&r=g","caption":"Stigern"},"sameAs":["http:\/\/www.stigern.net"],"url":"https:\/\/stigern.net\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/posts\/203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/comments?post=203"}],"version-history":[{"count":1,"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/posts\/203\/revisions"}],"predecessor-version":[{"id":292,"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/posts\/203\/revisions\/292"}],"wp:attachment":[{"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/media?parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/categories?post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stigern.net\/blog\/wp-json\/wp\/v2\/tags?post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}