{"id":6099,"date":"2014-12-17T16:27:39","date_gmt":"2014-12-17T21:27:39","guid":{"rendered":"http:\/\/spookyblue.com\/spookyblog\/?p=6099"},"modified":"2015-05-21T16:54:29","modified_gmt":"2015-05-21T21:54:29","slug":"light-your-haunt-with-hacked-led-christmas-lights","status":"publish","type":"post","link":"http:\/\/spookyblue.com\/spookyblog\/light-your-haunt-with-hacked-led-christmas-lights","title":{"rendered":"Light Your Haunt With Hacked LED Christmas Lights"},"content":{"rendered":"<p><a class=\"imgpop\" href=\"\/spookyblog\/spblogpix\/2014\/11\/phil.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft imgleft wp-image-6049\" src=\"\/spookyblog\/spblogpix\/2014\/11\/phil-350x347.jpg\" alt=\"Phil\" width=\"246\" height=\"244\" srcset=\"http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/11\/phil-350x347.jpg 350w, http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/11\/phil-700x695.jpg 700w, http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/11\/phil-144x144.jpg 144w, http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/11\/phil-900x894.jpg 900w, http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/11\/phil.jpg 906w\" sizes=\"(max-width: 246px) 100vw, 246px\" \/><\/a><\/p>\n<h3><em>Overview:<br \/>\n<span style=\"font-size: 0.9em;\">Shove a bunch of LEDs into a can, then watch Ohm&#8217;s Law and Murphy&#8217;s Law duke it out.<\/span><\/em><\/h3>\n<p>Safely lighting our outdoor haunt has always been a compromise game. Every spotlight comes with an extension cord, and those routes have to be planned because haunt visitors are like free range chickens, or BBs. They run all over. Keeping the electrified snakes from attacking our chickens is a key responsibility that we don&#8217;t take lightly.<\/p>\n<p>In an effort to reduce the snake population, we investigated other lighting options and came up with what seemed to be a viable alternative: Low voltage landscape lighting.<!-- more --><\/p>\n<p><a class=\"imgpop\" href=\"\/spookyblog\/spblogpix\/2014\/11\/haunt-light-plan.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-6138\" src=\"\/spookyblog\/spblogpix\/2014\/11\/haunt-light-plan-200x200.jpg\" alt=\"Haunt lighting plan\" width=\"200\" height=\"200\" srcset=\"http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/11\/haunt-light-plan-200x200.jpg 200w, http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/11\/haunt-light-plan-144x144.jpg 144w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/a>Specifically, we built an assortment of LED spots, powered by a 12V 350W transformer over 12AWG low voltage power cable. Because the cable carries 12V DC current, it can be safely &#8220;tucked&#8221; an inch or so beneath the soil with just a spade.<\/p>\n<p>Each lamp consists of a cluster of LED Christmas lights housed in a length of two-inch diameter PVC pipe, which is sealed and mounted to a post. The positive and negative leads are attached with wire nuts to a low voltage wire connector. The best part of this arrangement is that the connector can be attached to the power bus at any point along its length, allowing for greater flexibility in the layout of our lighting plan.<\/p>\n<p>With fewer extension cords lying about, there are fewer opportunities for &#8220;unplanned interactions&#8221; between them and our guests. All we had to do was keep our chickens from tripping over the lamps.<\/p>\n<h3>Theory<\/h3>\n<p>The basic idea is to pack as many LEDs as possible into the can without setting any fires. \u00a0The not setting any fires part requires that we understand\u00a0a few key concepts. \u00a0For example, why would I wire three or four LEDs in series, and then connect three or four of these series circuits together in parallel? If you know the answer, then you can go outside and play while the rest of the class catches up.<\/p>\n<p>It is usually at this point in a dissertation on LEDs that the author devotes several paragraphs to a review of Ohm&#8217;s Law. Instead of heading off into those weeds,\u00a0we&#8217;re going to wade through some other weeds. \u00a0We&#8217;ll tackle the math as we go.<\/p>\n<h3>How do LEDs work?<\/h3>\n<p>In the most general terms, a circuit is designed to operate at a particular voltage, and will draw as much current as it needs. An LED requires a certain minimal current to turn on. The &#8220;forward voltage&#8221; is the least amount of voltage required to allow current to flow through the LED. The amount of current changes (exponentially) based on the amount of voltage that is applied. A small increase in voltage results in a large increase in current. The more current, the brighter the light. \u00a0That is, until it overheats and dies.<\/p>\n<p>There are two species of LED Christmas lights. One type consists of red, orange, yellow, green, and blue LEDs. The other type utilizes only a white LED encased in a colored plastic sheath or bulb. It&#8217;s important to know the difference because the latter type provides a simpler solution for our application. All the LEDs have the same power requirement: About 2V(forward), and about 3V(optimal), drawing about 20mA. For simplicity&#8217;s sake we&#8217;ll be discussing this type of LED.<\/p>\n<p>Note: I had a zillion of the colored LEDs and no data sheet, which meant I had to employ my unpaid assistants, Trial and Error, to determine the power requirements for each color. I should mention that Trial was generally cautious during testing while Error ham-handedly blew through not a few LEDs.<\/p>\n<p><strong>Think of voltage as a sluice gate above a water wheel.<\/strong><\/p>\n<div style=\"margin-bottom: 20px;\">\n<div style=\"float: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6225\" title=\"Below forward voltage\" src=\"\/spookyblog\/spblogpix\/2014\/12\/voltage_and_current1.gif\" alt=\"\" width=\"210\" height=\"134\" \/><\/div>\n<div style=\"float: left; width: 240px; margin-left: 20px; vertical-align: top;\">\n<p>Say the gate is\u00a0marked with stops, 1-12,\u00a0that represent voltage.<\/p>\n<p>Open the gate to <span style=\"color: #ff9900;\"><em><strong>1<\/strong><\/em><\/span>\u00a0and a trickle of water flows over the wheel, but it&#8217;s not enough to make\u00a0it turn.<\/p>\n<\/div>\n<div style=\"clear: left; height: 0; line-height: 0;\"><\/div>\n<\/div>\n<div style=\"margin-bottom: 20px;\">\n<div style=\"float: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6226\" title=\"Reached forward voltage\" src=\"\/spookyblog\/spblogpix\/2014\/12\/voltage_and_current2.gif\" alt=\"\" width=\"210\" height=\"134\" \/><\/div>\n<div style=\"float: left; width: 240px; margin-left: 20px; vertical-align: top;\">Open the gate further to <span style=\"color: #ff9900;\"><em><strong>2<\/strong><\/em><\/span>\u00a0and the wheel begins to turn. We&#8217;re at forward voltage, meaning the LED is on, but just barely. We need to apply more voltage (to get more current to flow) for it to glow more brightly.<\/div>\n<div style=\"clear: left; height: 0; line-height: 0;\"><\/div>\n<\/div>\n<div style=\"margin-bottom: 20px;\">\n<div style=\"float: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6227\" title=\"Reached optimal voltage\" src=\"\/spookyblog\/spblogpix\/2014\/12\/voltage_and_current3.gif\" alt=\"\" width=\"210\" height=\"134\" \/><\/div>\n<div style=\"float: left; width: 240px; margin-left: 20px; vertical-align: top;\">\n<p>Open the gate to <span style=\"color: #ff9900;\"><em><strong>3<\/strong><\/em><\/span>\u00a0and now there&#8217;s enough power to grind some corn.<\/p>\n<p>We&#8217;re at optimal voltage and the LED glows\u00a0at the brightness for which it was designed.<\/p>\n<\/div>\n<div style=\"clear: left; height: 0; line-height: 0;\"><\/div>\n<\/div>\n<div style=\"margin-bottom: 20px;\">\n<div style=\"float: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6228\" title=\"Zzrt! Over-energized\" src=\"\/spookyblog\/spblogpix\/2014\/12\/voltage_and_current12.gif\" alt=\"\" width=\"210\" height=\"134\" \/><\/div>\n<div style=\"float: left; width: 240px; margin-left: 20px; vertical-align: top;\">If you go\u00a0all the way to <span style=\"color: #ff0000;\"><em><strong>12<\/strong><\/em><\/span>, then you, or the passive-aggressive engineer who built the gate, must have a grudge against the miller. Like the wheel about to fly off its axle, when you over-energize an LED, it may glow very brightly for a short period of time, but it&#8217;s toast.<\/div>\n<div style=\"clear: left; height: 0; line-height: 0;\"><\/div>\n<\/div>\n<h4 style=\"padding-left: 0;\">Wiring LEDs in series<\/h4>\n<p><a class=\"imgpop\" href=\"\/spookyblog\/spblogpix\/2014\/12\/series.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-6290\" style=\"border: none;\" title=\"Series circuit\" src=\"\/spookyblog\/spblogpix\/2014\/12\/series-350x236.png\" alt=\"Series circuit\" width=\"200\" height=\"135\" srcset=\"http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/12\/series-350x236.png 350w, http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/12\/series.png 439w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/a>An LED is polarized, meaning it has a positive lead(anode) and a negative lead(cathode). \u00a0To wire two LEDs in series, connect the positive side of one to the negative side of the other. \u00a0Note: Always connect the anode to the positive side of the\u00a0voltage source, and the cathode to the negative side of the voltage source.<\/p>\n<p>How many LEDs can safely be connected in series? Simply add up the voltage requirement for each LED until you reach source voltage (12V in this case). Assuming 3V(20mA) for each LED, the answer is four (3V+3V+3V+3V=12V). This series circuit can handle 12V, and would draw 20mA.<\/p>\n<div style=\"clear: both; padding: 8px; margin-bottom: 15px; border: solid 1px #D17105; border-radius: 7px; font-size: 12px; line-height: .1.2em;\">\n<h5 style=\"padding-left: 0; color: #d78600; font-size: 14px;\">I can&#8217;t get my LEDs to add up to exactly 12V<\/h5>\n<p>Three goes into 12 four times, which is nice. But suppose your LEDs can&#8217;t handle 3V, and instead prefer 2.5V. In that case, how do you get to an even number of LEDs?<\/p>\n<ul style=\"margin-left: 0;\">\n<li style=\"margin: 8px 0;\"><strong>Option I &#8211; Intentionally overload the circuit<\/strong><br \/>\nYou can place 5 LEDs in series. Each LED would get 2.4V (12V \/ 5 = 2.4V), instead of 2.5V, which\u00a0means they&#8217;ll be a little dimmer. But it might not be enough of a difference for you to notice. Then again, they might be a <em><strong>lot<\/strong><\/em> dimmer, in which case you&#8217;re on to your second option.<\/li>\n<li style=\"margin: 8px 0;\"><strong>Option II &#8211; Use a resistor to drop excess voltage<\/strong><br \/>\n<a class=\"imgpop\" href=\"\/spookyblog\/spblogpix\/2014\/12\/parallel.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-6297\" style=\"border: none;\" title=\"Two series circuits wired in parallel\" src=\"\/spookyblog\/spblogpix\/2014\/12\/parallel-350x225.png\" alt=\"\" width=\"280\" height=\"181\" srcset=\"http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/12\/parallel-350x225.png 350w, http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/12\/parallel.png 667w\" sizes=\"(max-width: 280px) 100vw, 280px\" \/><\/a>Place four LEDs in series. Since these four LEDs would only require 10V (2.5V * 4 = 10V), you need to drop the extra two volts with a resistor. The resistor value can be calculated with Ohm&#8217;s Law as R = V \/ I. If each LED requires 20mA (.02A), then the resistor value would be 100&#8486;. (2V \/ .02A = 100&#8486;) So, you would add a 100&#8486; resistor at one end of your series circuit to deal with that extra two volts.<\/li>\n<li style=\"margin: 8px 0;\"><strong>Option III &#8211; Overdrive the circuit<\/strong><br \/>\nDon&#8217;t. You saw what happened to the miller.<\/li>\n<\/ul>\n<\/div>\n<h4 style=\"padding-left: 0;\">Wiring LEDs in parallel<\/h4>\n<p>Four LED Christmas lights don&#8217;t emit much light, and we&#8217;ve determined that we can&#8217;t add more LEDs to our series circuit, so how do we pack more light into our lamp? Simple. Build four series circuits, then wire those together in parallel.<\/p>\n<p><a class=\"imgpop\" href=\"\/spookyblog\/spblogpix\/2014\/12\/four-series-wired-in-parallel.png\"><img loading=\"lazy\" decoding=\"async\" class=\"noBorder alignleft wp-image-6300 size-medium\" title=\"Four series circuits wired in parallel\" src=\"\/spookyblog\/spblogpix\/2014\/12\/four-series-wired-in-parallel-273x350.png\" alt=\"Four series circuits wired in parallel\" width=\"273\" height=\"350\" srcset=\"http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/12\/four-series-wired-in-parallel-273x350.png 273w, http:\/\/spookyblue.com\/spookyblog\/spblogpix\/2014\/12\/four-series-wired-in-parallel.png 447w\" sizes=\"(max-width: 273px) 100vw, 273px\" \/><\/a>At the end of each series circuit is a lead. One is positive, the other is negative. Connect the positive leads, connect the negative leads, and you now have a cluster. Each series circuit draws 20mA, so the cluster would draw a total of 80mA.<\/p>\n<p>How many series circuits can be wired together in parallel to form a cluster? That depends on how much current your power supply can provide, and how good you are at packing everything together inside its container. Our 12V transformer is rated at 350W. To figure the total amount of current I can draw from the transformer, [I(Amps) = P(Watts) \/ V(Volts)] Therefore, 350W\/12V = 29A, or 29,000mA.<\/p>\n<p>Our transformer could, theoretically, provide current for roughly 362 clusters (80mA * 362 = 28,960mA). \u00a0That&#8217;s assuming, of course, that our power bus is a superconductor, or a spherical chicken in a vacuum. \u00a0It&#8217;s neither, so voltage losses in the power cable would probably be a limiting factor. \u00a0Still, you could pile on a lot of lamps without worrying about the transformer bursting into flames.<\/p>\n<p><strong>Coming up&#8230;<\/strong><\/p>\n<p>How to build a 12V LED lamp.<\/p>\n<p>I know what you&#8217;re thinking. \u00a0We&#8217;re two articles into this project (if you count the <a href=\"http:\/\/spookyblue.com\/spookyblog\/introduction-to-a-hack\" title=\"Introduction to a Hack\" target=\"\">introduction<\/a>), and we haven&#8217;t yet glued anything to the workbench (silicone sealant is surprisingly adhesive) or accidentally hurled\u00a0a hunk of PVC across the room (off the table saw, and I&#8217;m extremely lucky to still have two ears).<\/p>\n<p>I\u00a0figured it was a good idea to cover the more arcane aspects of the project first. \u00a0With these out of the way, <a href=\"http:\/\/spookyblue.com\/spookyblog\/12v-haunt-lighting-with-hacked-led-christmas-lights\" title=\"12V Haunt Lighting with Hacked LED Christmas Lights\" target=\"\">the rest of the construction<\/a> is a snap.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview: Shove a bunch of LEDs into a can, then watch Ohm&#8217;s Law and Murphy&#8217;s Law duke it out. Safely lighting our outdoor haunt has always been a compromise game. Every spotlight comes with an extension cord, and those routes have to be planned because haunt visitors are like free range chickens, or BBs. They [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[337,4,3],"tags":[335,336,133],"_links":{"self":[{"href":"http:\/\/spookyblue.com\/spookyblog\/wp-json\/wp\/v2\/posts\/6099"}],"collection":[{"href":"http:\/\/spookyblue.com\/spookyblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/spookyblue.com\/spookyblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/spookyblue.com\/spookyblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/spookyblue.com\/spookyblog\/wp-json\/wp\/v2\/comments?post=6099"}],"version-history":[{"count":0,"href":"http:\/\/spookyblue.com\/spookyblog\/wp-json\/wp\/v2\/posts\/6099\/revisions"}],"wp:attachment":[{"href":"http:\/\/spookyblue.com\/spookyblog\/wp-json\/wp\/v2\/media?parent=6099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/spookyblue.com\/spookyblog\/wp-json\/wp\/v2\/categories?post=6099"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/spookyblue.com\/spookyblog\/wp-json\/wp\/v2\/tags?post=6099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}