<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Atmel | Bits &amp; Pieces]]></provider_name><provider_url><![CDATA[https://atmelcorporation.wordpress.com]]></provider_url><author_name><![CDATA[The Atmel Team]]></author_name><author_url><![CDATA[https://atmelcorporation.wordpress.com/author/atmelstaff/]]></author_url><title><![CDATA[Making a mason jar mood lamp with&nbsp;ATtiny85]]></title><type><![CDATA[link]]></type><html><![CDATA[<p><em>Instructables </em>user <a href="http://www.instructables.com/member/deba168/">Deba16</a> &#8212; who you may recall from his <a href="http://blog.atmel.com/2014/08/18/build-your-own-wireless-home-security-system-with-arduino/">DIY wireless home security system</a> &#8212; has discovered an innovative way to transform ordinary mason jars into color-changing mood lamps using <a href="http://www.atmel.com/devices/attiny85.aspx">ATtiny85 microcontrollers</a> (MCUs).</p>
<p><a href="https://atmelcorporation.files.wordpress.com/2014/12/fqwzyr4i45hl5uw-medium.jpg"><img loading="lazy" data-attachment-id="22916" data-permalink="https://atmelcorporation.wordpress.com/2014/12/29/making-a-mason-jar-mood-lamp-with-attiny85/fqwzyr4i45hl5uw-medium/" data-orig-file="https://atmelcorporation.files.wordpress.com/2014/12/fqwzyr4i45hl5uw-medium.jpg" data-orig-size="620,620" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="FQWZYR4I45HL5UW.MEDIUM" data-image-description="" data-medium-file="https://atmelcorporation.files.wordpress.com/2014/12/fqwzyr4i45hl5uw-medium.jpg?w=300" data-large-file="https://atmelcorporation.files.wordpress.com/2014/12/fqwzyr4i45hl5uw-medium.jpg?w=620" class="alignnone size-full wp-image-22916" src="https://atmelcorporation.files.wordpress.com/2014/12/fqwzyr4i45hl5uw-medium.jpg?w=610&#038;h=610" alt="FQWZYR4I45HL5UW.MEDIUM" width="610" height="610" srcset="https://atmelcorporation.files.wordpress.com/2014/12/fqwzyr4i45hl5uw-medium.jpg?w=610&amp;h=610 610w, https://atmelcorporation.files.wordpress.com/2014/12/fqwzyr4i45hl5uw-medium.jpg?w=150&amp;h=150 150w, https://atmelcorporation.files.wordpress.com/2014/12/fqwzyr4i45hl5uw-medium.jpg?w=300&amp;h=300 300w, https://atmelcorporation.files.wordpress.com/2014/12/fqwzyr4i45hl5uw-medium.jpg 620w" sizes="(max-width: 610px) 100vw, 610px" /></a></p>
<p>Aside from the <a href="http://www.atmel.com/devices/attiny85.aspx">tinyAVR MCUs</a>, Deba168’s project utilizes RGB LED lights, an 8-pin DIP socket, a coin cell battery, some resistors, a slide switch, and a few other components to piece it all together.</p>
<p><a href="https://atmelcorporation.files.wordpress.com/2014/12/ffvbjuwi48h6bym-medium.jpg"><img loading="lazy" data-attachment-id="22917" data-permalink="https://atmelcorporation.wordpress.com/2014/12/29/making-a-mason-jar-mood-lamp-with-attiny85/ffvbjuwi48h6bym-medium/" data-orig-file="https://atmelcorporation.files.wordpress.com/2014/12/ffvbjuwi48h6bym-medium.jpg" data-orig-size="620,512" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="FFVBJUWI48H6BYM.MEDIUM" data-image-description="" data-medium-file="https://atmelcorporation.files.wordpress.com/2014/12/ffvbjuwi48h6bym-medium.jpg?w=300" data-large-file="https://atmelcorporation.files.wordpress.com/2014/12/ffvbjuwi48h6bym-medium.jpg?w=620" class="alignnone size-full wp-image-22917" src="https://atmelcorporation.files.wordpress.com/2014/12/ffvbjuwi48h6bym-medium.jpg?w=610&#038;h=504" alt="FFVBJUWI48H6BYM.MEDIUM" width="610" height="504" srcset="https://atmelcorporation.files.wordpress.com/2014/12/ffvbjuwi48h6bym-medium.jpg?w=610&amp;h=504 610w, https://atmelcorporation.files.wordpress.com/2014/12/ffvbjuwi48h6bym-medium.jpg?w=150&amp;h=124 150w, https://atmelcorporation.files.wordpress.com/2014/12/ffvbjuwi48h6bym-medium.jpg?w=300&amp;h=248 300w, https://atmelcorporation.files.wordpress.com/2014/12/ffvbjuwi48h6bym-medium.jpg 620w" sizes="(max-width: 610px) 100vw, 610px" /></a></p>
<p>The DIY lamp works by sensing the lighting condition of a room. Once off, complete darkness will trigger the RGB LEDs to begin slowly fading through a series of colors.</p>
<p><a href="https://atmelcorporation.files.wordpress.com/2014/12/f5eply2i48h6d2z-large.jpg"><img loading="lazy" data-attachment-id="22918" data-permalink="https://atmelcorporation.wordpress.com/2014/12/29/making-a-mason-jar-mood-lamp-with-attiny85/f5eply2i48h6d2z-large/" data-orig-file="https://atmelcorporation.files.wordpress.com/2014/12/f5eply2i48h6d2z-large.jpg" data-orig-size="1024,758" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="F5EPLY2I48H6D2Z.LARGE" data-image-description="" data-medium-file="https://atmelcorporation.files.wordpress.com/2014/12/f5eply2i48h6d2z-large.jpg?w=300" data-large-file="https://atmelcorporation.files.wordpress.com/2014/12/f5eply2i48h6d2z-large.jpg?w=1024" class="alignnone size-full wp-image-22918" src="https://atmelcorporation.files.wordpress.com/2014/12/f5eply2i48h6d2z-large.jpg?w=610&#038;h=452" alt="F5EPLY2I48H6D2Z.LARGE" width="610" height="452" srcset="https://atmelcorporation.files.wordpress.com/2014/12/f5eply2i48h6d2z-large.jpg?w=610&amp;h=452 610w, https://atmelcorporation.files.wordpress.com/2014/12/f5eply2i48h6d2z-large.jpg?w=150&amp;h=111 150w, https://atmelcorporation.files.wordpress.com/2014/12/f5eply2i48h6d2z-large.jpg?w=300&amp;h=222 300w, https://atmelcorporation.files.wordpress.com/2014/12/f5eply2i48h6d2z-large.jpg?w=768&amp;h=569 768w, https://atmelcorporation.files.wordpress.com/2014/12/f5eply2i48h6d2z-large.jpg 1024w" sizes="(max-width: 610px) 100vw, 610px" /></a></p>
<p>&#8220;The ATtiny85 only had 2 PWM pins. But to change the color of a RGB LED, we needed 3 PWM pins. This limitation was overcome by using software PWM. This means that you can fade in and out of all 3 colors using any of the pins on the ATtiny. The software PWM works by setting the pin HIGH and then LOW at different rates so that the LED looks like it&#8217;s dimming. This is called Persistence of Vision, or POV. The LED blinks so rapidly that the human eye can&#8217;t detect that it is flashing at all, and it sees instead that the LED appears to be dimming.”</p>
<p><span class="embed-youtube" style="text-align:center; display: block;"><iframe class='youtube-player' width='640' height='360' src='https://www.youtube.com/embed/OMAAXIumEak?version=3&#038;rel=1&#038;fs=1&#038;autohide=2&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' allowfullscreen='true' style='border:0;'></iframe></span></p>
<p>Want to create a mason jar lamp of your own? <a href="http://www.instructables.com/id/MASON-JAR-MOOD-LAMP/?ALLSTEPS">Find a step-by-step breakdown of the build here</a>.</p>
]]></html><thumbnail_url><![CDATA[https://atmelcorporation.files.wordpress.com/2014/12/f5eply2i48h6d2z-large.jpg?fit=440%2C330]]></thumbnail_url><thumbnail_width><![CDATA[440]]></thumbnail_width><thumbnail_height><![CDATA[326]]></thumbnail_height></oembed>