<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Hack a Day &#187; pwm</title>
	<atom:link href="http://hackaday.com/tag/pwm/feed/" rel="self" type="application/rss+xml" />
	<link>http://hackaday.com</link>
	<description>Fresh hacks every day</description>
	<lastBuildDate>Fri, 10 Feb 2012 06:18:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hackaday.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/5560f98f805877b0e332f191cb9e0af3?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Hack a Day &#187; pwm</title>
		<link>http://hackaday.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hackaday.com/osd.xml" title="Hack a Day" />
	<atom:link rel='hub' href='http://hackaday.com/?pushpress=hub'/>
		<item>
		<title>Building a LED strip the minimal way</title>
		<link>http://hackaday.com/2012/01/13/building-a-led-strip-the-minimal-way/</link>
		<comments>http://hackaday.com/2012/01/13/building-a-led-strip-the-minimal-way/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 15:19:45 +0000</pubDate>
		<dc:creator>Brian Benchoff</dc:creator>
				<category><![CDATA[led hacks]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[msp430]]></category>
		<category><![CDATA[pwm]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=65431</guid>
		<description><![CDATA[For his first big build with an MSP430, [Javon] decided to an RGB LED fader. Having worked with Arduinos in the past, he figured that his MSP430 would have a few PWM channels. After being proved wrong by the data sheet, [Javon] needed to figure out a way to switch a bunch of RGB LEDs with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=65431&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-65432" title="LED" src="http://hackadaycom.files.wordpress.com/2012/01/led.jpg" alt="" width="470" height="182" /></p>
<p>For his first big build with an MSP430, [Javon] decided to <a href="http://sufficientlyadvancedtech.blogspot.com/2012/01/light-box.html">an RGB LED fader</a>. Having worked with Arduinos in the past, he figured that <a href="http://www.ti.com/product/msp430g2231">his MSP430</a> would have a few PWM channels. After being proved wrong by the data sheet, [Javon] needed to figure out a way to switch a bunch of RGB LEDs with only one PWM channel on his microcontroller.</p>
<p>Because there was only one PWM pin on [Javon]&#8216;s micro, he needed a way to multiplex his output. He ended up using a 74HC4052 mux/demux chip to drive 20 LEDs. The LEDs were mounted onto hard board and the main part of the circuit built on a bit of perfboard. While there&#8217;s no total cost for his build, we&#8217;re guessing [Javon] didn&#8217;t spend much on his project; certainty much less than this <a href="http://hackaday.com/2011/12/26/stripinvaders-puts-colored-lights-everywhere/">explosion of LEDs</a>.</p>
<p>[Javon] put all the build pictures up as a <a href="https://plus.google.com/photos/102585380752229216114/albums/5589223294216977345">Google+ album</a> and a few video demos up. Check those out after the break (009 Sound System warning, you might want to hit mute).</p>
<p><span id="more-65431"></span></p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2012/01/13/building-a-led-strip-the-minimal-way/"><img src="http://img.youtube.com/vi/ekaUpoXU6PE/2.jpg" alt="" /></a></span>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2012/01/13/building-a-led-strip-the-minimal-way/"><img src="http://img.youtube.com/vi/mGdunfZSGEA/2.jpg" alt="" /></a></span>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2012/01/13/building-a-led-strip-the-minimal-way/"><img src="http://img.youtube.com/vi/iW8AYSsaDHA/2.jpg" alt="" /></a></span>
<br />Filed under: <a href='http://hackaday.com/category/led-hacks/'>led hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/65431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/65431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/65431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/65431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/65431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/65431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/65431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/65431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/65431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/65431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/65431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/65431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/65431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/65431/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=65431&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2012/01/13/building-a-led-strip-the-minimal-way/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianbenchoff</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2012/01/led.jpg" medium="image">
			<media:title type="html">LED</media:title>
		</media:content>
	</item>
		<item>
		<title>Dimming AC lights the hard way</title>
		<link>http://hackaday.com/2011/12/12/dimming-ac-lights-the-hard-way/</link>
		<comments>http://hackaday.com/2011/12/12/dimming-ac-lights-the-hard-way/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 13:01:55 +0000</pubDate>
		<dc:creator>Brian Benchoff</dc:creator>
				<category><![CDATA[Holiday Hacks]]></category>
		<category><![CDATA[ac]]></category>
		<category><![CDATA[christmas lights]]></category>
		<category><![CDATA[pwm]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=63159</guid>
		<description><![CDATA[It&#8217;s that time of year again where the thermometer drops, the sun sets earlier, and we try to warm our hearts with the solstice festival that is common in our own respective cultures. Of course we all need a few strings of lights, but wouldn&#8217;t it be great if we had PWM controlled dimmable lights? When [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=63159&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-63160" title="AC" src="http://hackadaycom.files.wordpress.com/2011/12/ac.jpg" alt="" width="470" height="170" /></p>
<p>It&#8217;s that time of year again where the thermometer drops, the sun sets earlier, and we try to warm our hearts with the solstice festival that is common in our own respective cultures. Of course we all need a few strings of lights, but wouldn&#8217;t it be great if we had <a href="http://familab.org/blog/2011/12/dimmable-ac-light-box/">PWM controlled dimmable lights</a>?</p>
<p>When he started out on his PWM-controlled, AC-powered light box, [Waterbury] immediately realized that relays were <em>not</em> going to be an optimal solution. The best way out of the mess he dug himself into would be via <a href="http://familab.org/blog/2011/12/dimmable-ac-light-box/5/">zero crossing</a>. After getting a transformer wired up to a transistor for the detection circuit, a short bit of code was written in the wee hours of the morning and a <a href="http://www.youtube.com/watch?feature=player_embedded&amp;v=foCL79vxxK4#!">proof of concept</a> was had.</p>
<p>With the control box complete, [Waterbury] hacked up a quick <a href="http://familab.org/blog/2011/12/dimmable-ac-light-box/8/">VB app</a> and piped the output of a WinAmp visualizer into the lights via serial. The <a href="http://www.youtube.com/watch?feature=player_embedded&amp;v=Gc-V1yyfYSk"><em>Inception</em> demo</a> was great, but finer-grain control was needed. After seeing a Hack a Day post on a nice <a href="http://hackaday.com/2011/10/10/character-lcd-spectrum-analyzer-made-simple-with-a-dedicated-ic/">equalizer chip</a>, the seven band output on IC were converted to UART.</p>
<p>[Waterbury] took his seven-band AC-controlled light box to a Halloween party with his synth and the results looked awesome. You can check that out after the break, but we&#8217;re really waiting to see his Christmas decorations this year.</p>
<p><span id="more-63159"></span></p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2011/12/12/dimming-ac-lights-the-hard-way/"><img src="http://img.youtube.com/vi/tVzEp0hbRbg/2.jpg" alt="" /></a></span>
<br />Filed under: <a href='http://hackaday.com/category/holiday-hacks/'>Holiday Hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/63159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/63159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/63159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/63159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/63159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/63159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/63159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/63159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/63159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/63159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/63159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/63159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/63159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/63159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=63159&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/12/12/dimming-ac-lights-the-hard-way/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianbenchoff</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/12/ac.jpg" medium="image">
			<media:title type="html">AC</media:title>
		</media:content>
	</item>
		<item>
		<title>Follow up: Star Wars tree gets an upgrade</title>
		<link>http://hackaday.com/2011/12/09/follow-up-star-wars-tree-gets-an-upgrade/</link>
		<comments>http://hackaday.com/2011/12/09/follow-up-star-wars-tree-gets-an-upgrade/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 15:01:44 +0000</pubDate>
		<dc:creator>Mike Nathan</dc:creator>
				<category><![CDATA[Holiday Hacks]]></category>
		<category><![CDATA[led hacks]]></category>
		<category><![CDATA[musical hacks]]></category>
		<category><![CDATA[christmas tree]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[msp430]]></category>
		<category><![CDATA[piezo]]></category>
		<category><![CDATA[pwm]]></category>
		<category><![CDATA[star wars]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=62986</guid>
		<description><![CDATA[We asked, and [Zach] listened. Earlier this week, we featured a circuit he built which allowed his tiny Star Wars Christmas tree to visually replicate the series’ theme song. Several of you, along with myself, thought it would be far cooler if the tree also played the music to accompany the light show, so [Zach] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=62986&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-62988" title="star-wars-tree-sound" src="http://hackadaycom.files.wordpress.com/2011/12/star-wars-tree-sound.jpg" alt="star-wars-tree-sound" width="470" height="353" /></p>
<p><a href="http://zjembedded.blogspot.com/2011/12/star-wars-christmas-treenow-with-sound.html" target="_blank">We asked, and [Zach] listened.</a></p>
<p>Earlier this week, <a href="http://hackaday.com/2011/12/05/the-force-is-strong-with-this-christmas-tree-light-show/" target="_blank">we featured a circuit he built</a> which allowed his tiny Star Wars Christmas tree to visually replicate the series’ theme song. Several of you, along with myself, thought it would be far cooler if the tree also played the music to accompany the light show, so [Zach] set off to add that functionality.</p>
<p>Worried that the music would get annoying if it played along with the lights constantly, he tweaked his circuit design to incorporate a piezo buzzer that could be easily switched on and off. After wiring it to the MSP430 driving the light show, he tweaked the program to output signals to both the light string and buzzer simultaneously.</p>
<p>While the light show accurately represented the song, he initially ignored flat and sharp notes as they would be indistinguishable to the eye. In audio form however, the missing notes would be glaringly obvious, so he re-transcribed the sheet music resulting in the video you see below.</p>
<p>If you happened to follow [Zach’s] lead and put one of these together in your own house, be sure to swing by his site and grab the latest code, complete with audio track.</p>
<p><span id="more-62986"></span></p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2011/12/09/follow-up-star-wars-tree-gets-an-upgrade/"><img src="http://img.youtube.com/vi/Gd51ZOPS7jg/2.jpg" alt="" /></a></span>
<br />Filed under: <a href='http://hackaday.com/category/holiday-hacks/'>Holiday Hacks</a>, <a href='http://hackaday.com/category/led-hacks/'>led hacks</a>, <a href='http://hackaday.com/category/musical-hacks/'>musical hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/62986/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/62986/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/62986/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/62986/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/62986/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/62986/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/62986/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/62986/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/62986/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/62986/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/62986/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/62986/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/62986/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/62986/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=62986&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/12/09/follow-up-star-wars-tree-gets-an-upgrade/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">mikenathanathackaday</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/12/star-wars-tree-sound.jpg" medium="image">
			<media:title type="html">star-wars-tree-sound</media:title>
		</media:content>
	</item>
		<item>
		<title>The force is strong with this Christmas tree light show</title>
		<link>http://hackaday.com/2011/12/05/the-force-is-strong-with-this-christmas-tree-light-show/</link>
		<comments>http://hackaday.com/2011/12/05/the-force-is-strong-with-this-christmas-tree-light-show/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 14:01:56 +0000</pubDate>
		<dc:creator>Mike Nathan</dc:creator>
				<category><![CDATA[Holiday Hacks]]></category>
		<category><![CDATA[led hacks]]></category>
		<category><![CDATA[musical hacks]]></category>
		<category><![CDATA[christmas tree]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[msp430]]></category>
		<category><![CDATA[pwm]]></category>
		<category><![CDATA[star wars]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=62643</guid>
		<description><![CDATA[[Zach] is a huge Star Wars fan, and in addition to the array holiday decorations that adorn his house, he says that his wife is nice enough to let him put up a Christmas tree full of Star Wars ornaments. For the past few years, the tree sat in the corner of the room unlit, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=62643&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-62646" title="star-wars-christmas-tree" src="http://hackadaycom.files.wordpress.com/2011/12/star-wars-christmas-tree.jpg" alt="star-wars-christmas-tree" width="470" height="308" /></p>
<p>[Zach] is a huge Star Wars fan, and in addition to the array holiday decorations that adorn his house, he says that his wife is nice enough to let him put up <a href="http://zjembedded.blogspot.com/2011/12/star-wars-christmas-tree.html" target="_blank">a Christmas tree full of Star Wars ornaments.</a> For the past few years, the tree sat in the corner of the room unlit, but his wife thought that it should have some lights this year.</p>
<p>His wife came home with a small string of battery-operated lights, but [Zach] wanted something with a bit more geek cred. He decided to program the lights to play the Star Wars theme song, translating the tune’s pitch to light intensity.</p>
<p>He dug through his bin of electronics and found an MSP430 along with a small target board that would do the job nicely. He sat down with some sheet music, translating the notes to PWM values, resulting in the light show you see below.</p>
<p>While his wife provided a lovely violin accompaniment to the tree, we think that a small audio module would make a great addition to the tree next year.</p>
<p><span id="more-62643"></span></p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2011/12/05/the-force-is-strong-with-this-christmas-tree-light-show/"><img src="http://img.youtube.com/vi/cDE_yXY7pxo/2.jpg" alt="" /></a></span>
<br />Filed under: <a href='http://hackaday.com/category/holiday-hacks/'>Holiday Hacks</a>, <a href='http://hackaday.com/category/led-hacks/'>led hacks</a>, <a href='http://hackaday.com/category/musical-hacks/'>musical hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/62643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/62643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/62643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/62643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/62643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/62643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/62643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/62643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/62643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/62643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/62643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/62643/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/62643/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/62643/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=62643&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/12/05/the-force-is-strong-with-this-christmas-tree-light-show/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">mikenathanathackaday</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/12/star-wars-christmas-tree.jpg" medium="image">
			<media:title type="html">star-wars-christmas-tree</media:title>
		</media:content>
	</item>
		<item>
		<title>Motor drivers: half h-bridge with brake and more</title>
		<link>http://hackaday.com/2011/10/28/motor-drivers-half-h-bridge-with-brake-and-more/</link>
		<comments>http://hackaday.com/2011/10/28/motor-drivers-half-h-bridge-with-brake-and-more/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 19:01:30 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[robots hacks]]></category>
		<category><![CDATA[brake]]></category>
		<category><![CDATA[h-bridge]]></category>
		<category><![CDATA[half-bridge]]></category>
		<category><![CDATA[motor controller]]></category>
		<category><![CDATA[pwm]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=59810</guid>
		<description><![CDATA[Here&#8217;s a nice little circuit that will drive a motor and allow you to stop its rotation, giving your robot a set of brakes. It&#8217;s part of [JM's] post about the in&#8217;s and out&#8217;s of building microcontroller friendly motor controllers (translated). This particular setup is a half H-bridge. It allows you to drive the motor in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=59810&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-59811" title="half-h-bridge-with-brake" src="http://hackadaycom.files.wordpress.com/2011/10/half-h-bridge-with-brake.jpg" alt="" width="470" height="202" /></p>
<p>Here&#8217;s a nice little circuit that will drive a motor and allow you to stop its rotation, giving your robot a set of brakes. It&#8217;s part of [JM's] post about <a href="http://webdelcire.com/wordpress/archives/1269">the in&#8217;s and out&#8217;s of building microcontroller friendly motor controllers</a> (<a href="http://translate.google.com/translate?sl=auto&amp;tl=en&amp;js=n&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=2&amp;eotf=1&amp;u=http%3A%2F%2Fwebdelcire.com%2Fwordpress%2Farchives%2F1269">translated</a>).</p>
<p>This particular setup is a half H-bridge. It allows you to drive the motor in one direction only. The MOSFET used on the ground-side of the motor doesn&#8217;t actually need to be there. This is the brake which let you electronically stop the motor from spinning. Without it, the motor will keep turning under its own momentum when the half-bridge is shut off. Depending on the application this can be a big problem. There&#8217;s a great demonstration of the circuit braking a fast spinning motor in the video clip below the fold.</p>
<p>It is possible to use this driver with PWM, but [JM] has some warnings about inbuilt functions like FastPWM. Make sure you read his admonition, and if you need a refresher <a href="http://hackaday.com/2011/10/27/video-pwm-on-the-atmega328p/">don&#8217;t miss this Hackaday video segment</a>.</p>
<p><span id="more-59810"></span><span style="text-align:center; display: block;"><a href="http://hackaday.com/2011/10/28/motor-drivers-half-h-bridge-with-brake-and-more/"><img src="http://img.youtube.com/vi/_lqyuR_iWuY/2.jpg" alt="" /></a></span></p>
<p>[Thanks Javi]</p>
<br />Filed under: <a href='http://hackaday.com/category/robots-hacks/'>robots hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/59810/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/59810/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/59810/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/59810/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/59810/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/59810/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/59810/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/59810/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/59810/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/59810/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/59810/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/59810/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/59810/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/59810/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=59810&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/10/28/motor-drivers-half-h-bridge-with-brake-and-more/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/10/half-h-bridge-with-brake.jpg" medium="image">
			<media:title type="html">half-h-bridge-with-brake</media:title>
		</media:content>
	</item>
		<item>
		<title>Detailed tutorial shows how to unleash your inner [Michael Knight]</title>
		<link>http://hackaday.com/2011/10/28/detailed-tutorial-shows-how-to-unleash-your-inner-michael-knight/</link>
		<comments>http://hackaday.com/2011/10/28/detailed-tutorial-shows-how-to-unleash-your-inner-michael-knight/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 17:01:32 +0000</pubDate>
		<dc:creator>Mike Nathan</dc:creator>
				<category><![CDATA[led hacks]]></category>
		<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[larson scanner]]></category>
		<category><![CDATA[leds]]></category>
		<category><![CDATA[pwm]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=59816</guid>
		<description><![CDATA[Our own [Mike Szczys] recently sat down and put together a great tutorial on building a Larson Scanner. The ubiquitous circuit is usually one of the first few projects on a budding hackers list of things to build, since they are just so darn fun. Simple versions of the scanner sweep back and forth lighting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=59816&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-59817" title="developing_a_larson_scanner" src="http://hackadaycom.files.wordpress.com/2011/10/developing_a_larson_scanner.jpg" alt="developing_a_larson_scanner" width="470" height="220" /></p>
<p>Our own [Mike Szczys] recently sat down and put together <a href="http://jumptuck.com/2011/10/27/developing-a-larson-scanner/" target="_blank">a great tutorial on building a Larson Scanner.</a> The ubiquitous circuit is usually one of the first few projects on a budding hackers list of things to build, since <a href="http://hackaday.com/tag/larson-scanner/" target="_blank">they are just so darn fun.</a></p>
<p>Simple versions of the scanner sweep back and forth lighting the LEDs without any sort of transition between them. The configuration most familiar to us all as featured in Knight Rider and Battlestar Galactica are a bit more complex, and have a fading trail of light that follows behind the leading edge of the sweep. [Mike] notes that this fading is traditionally accomplished through the use of capacitors, which cause the light to gradually fade as the animation sweeps across the LED array. He decided to take a different route with his circuit, relying on PWM control of the LEDs instead.</p>
<p>Mike put together a simple circuit using an ATmega168, a handful of resistors, and of course, an array of LEDs. Utilizing interrupts and PWM, he was able to accurately recreate the iconic light sweep without the use of any capacitors. One big benefit to his design aside from the lower component count is the fact that he can easily adjust the speed of the sweep as well as the fading properties with a few small code tweaks.</p>
<p>Be sure to check out his blog at some point, where he shares his code, some circuit diagrams, and plenty more details on how his scanner was built. In the meantime, take a look at the video below to see the result of [Mike’s] work.</p>
<p><span id="more-59816"></span><span style="text-align:center; display: block;"><a href="http://hackaday.com/2011/10/28/detailed-tutorial-shows-how-to-unleash-your-inner-michael-knight/"><img src="http://img.youtube.com/vi/E2wsR8hgIjI/2.jpg" alt="" /></a></span></p>
<br />Filed under: <a href='http://hackaday.com/category/led-hacks/'>led hacks</a>, <a href='http://hackaday.com/category/microcontrollers/'>Microcontrollers</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/59816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/59816/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/59816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/59816/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/59816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/59816/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/59816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/59816/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/59816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/59816/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/59816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/59816/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/59816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/59816/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=59816&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/10/28/detailed-tutorial-shows-how-to-unleash-your-inner-michael-knight/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">mikenathanathackaday</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/10/developing_a_larson_scanner.jpg" medium="image">
			<media:title type="html">developing_a_larson_scanner</media:title>
		</media:content>
	</item>
		<item>
		<title>Converting PWM to DC signaling for more precise fan control</title>
		<link>http://hackaday.com/2011/08/15/converting-pwm-to-dc-signaling-for-more-precise-fan-control/</link>
		<comments>http://hackaday.com/2011/08/15/converting-pwm-to-dc-signaling-for-more-precise-fan-control/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 18:06:11 +0000</pubDate>
		<dc:creator>Mike Nathan</dc:creator>
				<category><![CDATA[pcs hacks]]></category>
		<category><![CDATA[fan]]></category>
		<category><![CDATA[gpu]]></category>
		<category><![CDATA[pwm]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=52596</guid>
		<description><![CDATA[[hedgehoginventions] wrote in to share a little modification he made to his video card in order to keep it from overheating during strenuous 3D tasks. Having swapped out the stock cooler on his Nvidia 9600GT graphics card, he found that it did not need to utilize the fan while doing mundane things like checking email, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=52596&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-52597" title="pwm_to_dc_fan_control" src="http://hackadaycom.files.wordpress.com/2011/08/pwm_to_dc_fan_control.jpg" alt="pwm_to_dc_fan_control" width="470" height="353" /></p>
<p>[hedgehoginventions] wrote in to share a little modification he made to his video card in order <a href="http://hedgehoginventions.wordpress.com/2011/08/14/converting-a-pwm-signal-to-a-dc-signal-for-powering-the-fan-on-your-aftermarket-gpu-cooler/" target="_blank">to keep it from overheating</a> during strenuous 3D tasks. Having swapped out the stock cooler on his Nvidia 9600GT graphics card, he found that it did not need to utilize the fan while doing mundane things like checking email, but that it still required extra air flow while playing games.</p>
<p>He figured he get the fan to shut off by tweaking the PWM signal, but he found that he could not get the duty cycle under 20% using software, which still caused the fan to run at all times. The circuit he built takes the PWM signal output by the card, cleaning it up before converting it to a corresponding DC voltage. The fan then runs at the same speed it would if driven directly by the PWM signal, though it can now turn off completely when not required.</p>
<p>It’s a nice way to do automatic fan control when you can’t otherwise get your GPU fan to shut off. Nice work!</p>
<br />Filed under: <a href='http://hackaday.com/category/pcs-hacks/'>pcs hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/52596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/52596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/52596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/52596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/52596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/52596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/52596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/52596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/52596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/52596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/52596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/52596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/52596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/52596/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=52596&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/08/15/converting-pwm-to-dc-signaling-for-more-precise-fan-control/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">mikenathanathackaday</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/08/pwm_to_dc_fan_control.jpg" medium="image">
			<media:title type="html">pwm_to_dc_fan_control</media:title>
		</media:content>
	</item>
		<item>
		<title>An introduction to DC boost converters</title>
		<link>http://hackaday.com/2011/08/10/an-introduction-to-dc-boost-converters/</link>
		<comments>http://hackaday.com/2011/08/10/an-introduction-to-dc-boost-converters/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 13:06:04 +0000</pubDate>
		<dc:creator>Mike Nathan</dc:creator>
				<category><![CDATA[arduino hacks]]></category>
		<category><![CDATA[tool hacks]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[boost converter]]></category>
		<category><![CDATA[pwm]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=51985</guid>
		<description><![CDATA[If you are planning on creating some sort of Nixie tube display, you will undoubtedly need to find yourself a high voltage DC power supply. If you don’t want to add a transformer to your project, you can always opt to build a boost converter instead. [Andrew Moser] shows us just how easy it is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=51985&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-51986" title="simple_boost_converter" src="http://hackadaycom.files.wordpress.com/2011/08/simple_boost_converter.jpg" alt="simple_boost_converter" width="470" height="301" /></p>
<p>If you are planning on creating some sort of Nixie tube display, you will undoubtedly need to find yourself a high voltage DC power supply. If you don’t want to add a transformer to your project, you can always opt <a href="http://reibot.org/2011/08/07/intro-to-boost-converter/" target="_blank">to build a boost converter instead</a>. [Andrew Moser] shows us just how easy it is to build one, discussing the theory behind simple boost converters along the way.</p>
<p>Boost converters are often driven by dedicated ICs, but in this case the PWM signal from an Arduino does the job just fine. [Andrew] covers the process of choosing the proper components for the circuit, discussing duty cycles and components to avoid lest your boost converter die an untimely death.</p>
<p>He shows us how to implement a feedback system to get a more precise output voltage, but as <a href="http://www.ladyada.net/library/diyboostcalc.html" target="_blank">Lady Ada has shown us</a>, an open loop works pretty well too.</p>
<p>For the beginners that want to just get things up and running, his instructions and code should be sufficient, but [Andrew] provides plenty of reference links for those looking to delve deeper into the subject.</p>
<br />Filed under: <a href='http://hackaday.com/category/arduino-hacks/'>arduino hacks</a>, <a href='http://hackaday.com/category/tool-hacks/'>tool hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/51985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/51985/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/51985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/51985/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/51985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/51985/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/51985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/51985/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/51985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/51985/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/51985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/51985/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/51985/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/51985/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=51985&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/08/10/an-introduction-to-dc-boost-converters/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">mikenathanathackaday</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/08/simple_boost_converter.jpg" medium="image">
			<media:title type="html">simple_boost_converter</media:title>
		</media:content>
	</item>
		<item>
		<title>Update: Arduino Shift Register PWM gets speed boost</title>
		<link>http://hackaday.com/2011/07/26/update-arduino-shift-register-pwm-gets-speed-boost/</link>
		<comments>http://hackaday.com/2011/07/26/update-arduino-shift-register-pwm-gets-speed-boost/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 13:01:47 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[arduino hacks]]></category>
		<category><![CDATA[led hacks]]></category>
		<category><![CDATA[pwm]]></category>
		<category><![CDATA[shift register]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=50225</guid>
		<description><![CDATA[Community collaboration is a great thing. Take the Arduino PWM library for shift registers. Some folks at the Arduino forum pitched in and helped [Elco] trim off a bunch of clock cycles by using the Rotate Over Carry instruction. Now he&#8217;s reduced the overhead per shift-register from 108 down to just 43. So far this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=50225&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-50226" title="768-pwm-from-arduino-now faster" src="http://hackadaycom.files.wordpress.com/2011/07/768-pwm-from-arduino-now-faster.jpg" alt="" width="470" height="353" /></p>
<p>Community collaboration is a great thing. Take the Arduino PWM library for shift registers. Some folks at the Arduino forum pitched in and helped [Elco] trim off a bunch of clock cycles by using the Rotate Over Carry instruction. Now he&#8217;s reduced the overhead per shift-register from 108 down to just 43. So far this doesn&#8217;t mean more possible outputs &#8211; 768 is still quite a lot &#8211; but does it means better precision when max outputs are used. This effectively doubles the brightness levels for 768 LEDs from 16 up to 32.</p>
<p>We&#8217;re at a loss for what to link to here. [Elco] has <a href="http://www.elcojacobs.com/shiftpwm/">a new page for the library</a>. There&#8217;s the original <a href="http://arduino.cc/forum/index.php/topic,66988.30.html">forums thread</a> but we didn&#8217;t see much of interest there. We found some stuff in <a href="http://www.reddit.com/r/electronics/comments/iycpf/thanks_for_your_input_shiftpwm_is_now_more_than/">the comments of this Reddit post</a>. And of course, if you have no idea what we&#8217;re talking about go back and read <a href="http://hackaday.com/2011/07/20/output-up-to-768-pwm-signals-from-one-arduino/">the original feature</a>.</p>
<br />Filed under: <a href='http://hackaday.com/category/arduino-hacks/'>arduino hacks</a>, <a href='http://hackaday.com/category/led-hacks/'>led hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/50225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/50225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/50225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/50225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/50225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/50225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/50225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/50225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/50225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/50225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/50225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/50225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/50225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/50225/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=50225&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/07/26/update-arduino-shift-register-pwm-gets-speed-boost/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/07/768-pwm-from-arduino-now-faster.jpg" medium="image">
			<media:title type="html">768-pwm-from-arduino-now faster</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Binary Code Modulation to control LED brightness</title>
		<link>http://hackaday.com/2011/07/22/using-binary-code-modulation-to-control-led-brightness/</link>
		<comments>http://hackaday.com/2011/07/22/using-binary-code-modulation-to-control-led-brightness/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 20:30:53 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[bcm]]></category>
		<category><![CDATA[binary code modulation]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[pwm]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=49907</guid>
		<description><![CDATA[Pulse Width Modulation is definitely the preferred method of dimming an LED with a microcontroller, but we were interested in hearing about a different method called Binary Code Modulation. BCM does the same thing as PWM, it turns the LED on and off very rapidly so that your eye cannot detect a flicker. The brightness [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=49907&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-49908" title="bcm_diagram" src="http://hackadaycom.files.wordpress.com/2011/07/bcm_diagram-e1311363132803.png" alt="" width="468" height="149" /></p>
<p>Pulse Width Modulation is definitely the preferred method of dimming an LED with a microcontroller, but we were interested in hearing about a different method called <a href="http://www.batsocks.co.uk/readme/art_bcm_1.htm">Binary Code Modulation</a>. BCM does the same thing as PWM, it turns the LED on and off very rapidly so that your eye cannot detect a flicker. The brightness level is a result of the average amount of time the LED is on versus when it is off. This is called duty cycle and although it can be the same percentage for both PWM and BCD, there is a fundamental difference.</p>
<p>While PWM usually uses a cyclical on/off cycle (30% on, 70% off, repeat) BCD uses a cumulative cycle. As you can see above, each successive bit of binary code carries double significance compared to the previous bit. Now just assign a duty cycle based on your precision, and have an interrupt fire for each bit of the counter. The graph above shows some highs and some lows combining to reach the target duty cycle. An interrupt is used for each bit, and pin changes are made in the service routine.</p>
<p>The benefit of this system is that it is scaleable without adding overhead. You&#8217;re already running the interrupts so servicing 8 or 128 LEDs doesn&#8217;t have vastly different needs as it would with PWM. The big downside is that the more bits of precision you use, the faster your processor must run so that the eye doesn&#8217;t detect the lengthy on or off cycles of the higher bits as visible flickering.</p>
<p>Thank you [Yetihehe] for tipping us off about a link that [Tomas Martinsen] left when commenting about <a href="http://hackaday.com/2011/07/20/output-up-to-768-pwm-signals-from-one-arduino">an Arduino library for up to 768 PWM outputs</a>.</p>
<br />Filed under: <a href='http://hackaday.com/category/microcontrollers/'>Microcontrollers</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/49907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/49907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/49907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/49907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/49907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/49907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/49907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/49907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/49907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/49907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/49907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/49907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/49907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/49907/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=49907&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/07/22/using-binary-code-modulation-to-control-led-brightness/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/07/bcm_diagram-e1311363132803.png" medium="image">
			<media:title type="html">bcm_diagram</media:title>
		</media:content>
	</item>
		<item>
		<title>Output up to 768 PWM signals from one Arduino</title>
		<link>http://hackaday.com/2011/07/20/output-up-to-768-pwm-signals-from-one-arduino/</link>
		<comments>http://hackaday.com/2011/07/20/output-up-to-768-pwm-signals-from-one-arduino/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 15:01:28 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[arduino hacks]]></category>
		<category><![CDATA[led hacks]]></category>
		<category><![CDATA[595]]></category>
		<category><![CDATA[pwm]]></category>
		<category><![CDATA[shift register]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=49563</guid>
		<description><![CDATA[Here&#8217;s an Arduino library that will let you drive a very large number of LEDs. [Elco Jacobs], an electrical engineering student, is the author of the library. He has a work-study job that has him helping out others with their electrical projects and he was constantly being solicited for methods to control droves of light [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=49563&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-49564" title="768-pwm-from-arduino" src="http://hackadaycom.files.wordpress.com/2011/07/768-pwm-from-arduino-e1311168252786.jpg" alt="" width="470" height="353" /></p>
<p>Here&#8217;s <a href="http://arduino.cc/forum/index.php/topic,66988.0.html">an Arduino library that will let you drive a very large number of LEDs</a>. [Elco Jacobs], an electrical engineering student, is the author of the library. He has a work-study job that has him helping out others with their electrical projects and he was constantly being solicited for methods to control droves of light emitting diodes. This was the motivation that led him to produce the dazzling 16 RGB LED example seen in the video after the break.</p>
<p>His setup doesn&#8217;t use expensive LED drivers, but instead utilizes <a href="http://hackaday.com/2011/03/14/beginner-concepts-595-shift-register-simulator/">595 shift registers</a> which are both common and cheap. He calculates that it is possible to control up to 96 of these shift registers, each driving 8 LEDs, with reasonably satisfying results. This is thanks to his well-optimized code that manages to drive the clock pin of the registers at 1.33 MHz. This optimization is done by writing each command in assembly, which allows him to precisely count the cycles. Each individual pin takes 12-13 cycles to address, totally 9984 cycles at worst when addressing the maximum number of outputs.</p>
<p>[Elco] thinks this is as fast as he can make the routine run, but he is asking for help with testing. If you think you know how to squeeze out a few more cycles, make sure you join in on his forum thread.</p>
<p><span id="more-49563"></span><span style="text-align:center; display: block;"><a href="http://hackaday.com/2011/07/20/output-up-to-768-pwm-signals-from-one-arduino/"><img src="http://img.youtube.com/vi/MDmOvbga0uA/2.jpg" alt="" /></a></span></p>
<br />Filed under: <a href='http://hackaday.com/category/arduino-hacks/'>arduino hacks</a>, <a href='http://hackaday.com/category/led-hacks/'>led hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/49563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/49563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/49563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/49563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/49563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/49563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/49563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/49563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/49563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/49563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/49563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/49563/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/49563/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/49563/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=49563&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/07/20/output-up-to-768-pwm-signals-from-one-arduino/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/07/768-pwm-from-arduino-e1311168252786.jpg" medium="image">
			<media:title type="html">768-pwm-from-arduino</media:title>
		</media:content>
	</item>
		<item>
		<title>Pulse Width Modulation with microcontrollers</title>
		<link>http://hackaday.com/2011/06/26/pulse-width-modulation-with-microcontrollers/</link>
		<comments>http://hackaday.com/2011/06/26/pulse-width-modulation-with-microcontrollers/#comments</comments>
		<pubDate>Sun, 26 Jun 2011 20:09:57 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[ATmega168]]></category>
		<category><![CDATA[pulse-width modulation]]></category>
		<category><![CDATA[pwm]]></category>
		<category><![CDATA[timers]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=47095</guid>
		<description><![CDATA[Those following the ProtoStack tutorials will be happy to hear that there is a new installment which explains Pulse Width Modulation. If you&#8217;ve never heard of PWM before, it&#8217;s a method of generating a signal that is logic 1 for a portion of the time and logic 0 for the remainder of the time. It [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=47095&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-47096" title="pwm-tutorial-protostack" src="http://hackadaycom.files.wordpress.com/2011/06/pwm-tutorial-protostack-e1309030289939.jpg" alt="" width="470" height="233" /></p>
<p>Those following the ProtoStack tutorials will be happy to hear that there is <a href="http://www.protostack.com/blog/2011/06/atmega168a-pulse-width-modulation-pwm/">a new installment which explains Pulse Width Modulation</a>. If you&#8217;ve never heard of PWM before, it&#8217;s a method of generating a signal that is logic 1 for a portion of the time and logic 0 for the remainder of the time. It is the most commonly used method for dimming an LED, and that&#8217;s [Daniel's] example in this tutorial. But you&#8217;ll also find it used in many other applications such as servo motor control and piezo speaker control.</p>
<p>[Daniel] starts off with a brief explanation of duty cycle, then moves on to some examples of hardware and software PWM. Many of the AVR microcontrollers have a hardware PWM feature that allows you to configure a pin that toggles based on a target timer value. This is demonstrated using an ATmega168, but a method of using interrupts and your own code is also covered in case you don&#8217;t have a hardware PWM pin available.</p>
<br />Filed under: <a href='http://hackaday.com/category/microcontrollers/'>Microcontrollers</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/47095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/47095/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/47095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/47095/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/47095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/47095/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/47095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/47095/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/47095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/47095/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/47095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/47095/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/47095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/47095/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=47095&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/06/26/pulse-width-modulation-with-microcontrollers/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/06/pwm-tutorial-protostack-e1309030289939.jpg" medium="image">
			<media:title type="html">pwm-tutorial-protostack</media:title>
		</media:content>
	</item>
		<item>
		<title>Awesome custom disco basement</title>
		<link>http://hackaday.com/2011/05/17/awesome-custom-disco-basement/</link>
		<comments>http://hackaday.com/2011/05/17/awesome-custom-disco-basement/#comments</comments>
		<pubDate>Tue, 17 May 2011 22:01:14 +0000</pubDate>
		<dc:creator>Mike Nathan</dc:creator>
				<category><![CDATA[led hacks]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[leds]]></category>
		<category><![CDATA[pic]]></category>
		<category><![CDATA[pwm]]></category>
		<category><![CDATA[rgb]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=43071</guid>
		<description><![CDATA[[Evan] is one of those neighbors you only wish you had. His neighbors were renovating their basement for use as home theater, and he stopped by to check out how things were coming along. While there, he suggested they add some LED lighting to their shelving unit to make them pop. His neighbors were game, so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=43071&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-43072" title="led_shelves" src="http://hackadaycom.files.wordpress.com/2011/05/led_shelves.jpg" alt="led_shelves" width="470" height="461" /></p>
<p>[Evan] is <a href="http://battlesnake.blogspot.com/2011/01/collaboration.html" target="_blank">one of those neighbors you only wish you had</a>.</p>
<p>His neighbors were renovating their basement for use as home theater, and he stopped by to check out how things were coming along. While there, he suggested they add some LED lighting to their shelving unit to make them pop. His neighbors were game, so he sourced some cheap RGB LEDs online and began working on the circuits and firmware needed to control the lights. His neighbors wrote some custom software that interfaces with iTunes to create a neat visualization in the shelving unit whenever music is played.</p>
<p>Once everything was complete, his neighbors informed him that they wanted an additional 20 overhead can lights and a set of 4 wall sconces wired up as well. Needless to say he was pretty excited, so he got busy wiring up the remainder of the basement.</p>
<p>He pushed the installation’s PIC microcontroller about as far as he possibly could, resulting in the awesome show seen in the video below.</p>
<p>Needless to say, it’s pretty impressive, though we wish we could have a peek at the code used to run everything. Wink, wink, nudge, nudge.</p>
<p><span id="more-43071"></span><span style="text-align:center; display: block;"><a href="http://hackaday.com/2011/05/17/awesome-custom-disco-basement/"><img src="http://img.youtube.com/vi/cH9fy-JflXo/2.jpg" alt="" /></a></span></p>
<br />Filed under: <a href='http://hackaday.com/category/led-hacks/'>led hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/43071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/43071/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/43071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/43071/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/43071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/43071/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/43071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/43071/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/43071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/43071/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/43071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/43071/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/43071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/43071/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=43071&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/05/17/awesome-custom-disco-basement/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">mikenathanathackaday</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/05/led_shelves.jpg" medium="image">
			<media:title type="html">led_shelves</media:title>
		</media:content>
	</item>
		<item>
		<title>Dimming control for an Ikea solar desk lamp</title>
		<link>http://hackaday.com/2011/05/16/dimming-control-for-an-ikea-solar-desk-lamp/</link>
		<comments>http://hackaday.com/2011/05/16/dimming-control-for-an-ikea-solar-desk-lamp/#comments</comments>
		<pubDate>Mon, 16 May 2011 21:32:31 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[home hacks]]></category>
		<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[attiny13]]></category>
		<category><![CDATA[ikea]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[pwm]]></category>
		<category><![CDATA[solar]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=42989</guid>
		<description><![CDATA[[Frank] decided to augment his desk lamp&#8217;s features by adding dimming controls (translated). Since the light source is a triad of LEDs the best method of dimming their intensity is to use Pulse Width Modulation. That&#8217;s the method that he went with, and luckily the SUNNAN lamp from Ikea which he&#8217;s using as the donor for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=42989&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-42990" title="dimming-control-for-Ikea-soloar-lamp" src="http://hackadaycom.files.wordpress.com/2011/05/dimming-control-for-ikea-soloar-lamp.jpg" alt="" width="470" height="372" /></p>
<p>[Frank] decided to augment his desk lamp&#8217;s features by <a href="http://wiki.villaro-dixon.eu/doku.php?id=electronique:lampe_ikea:accueil">adding dimming controls</a> (<a href="http://translate.google.com/translate?js=n&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=2&amp;eotf=1&amp;sl=auto&amp;tl=en&amp;u=http%3A%2F%2Fwiki.villaro-dixon.eu%2Fdoku.php%3Fid%3Delectronique%3Alampe_ikea%3Aaccueil">translated</a>). Since the light source is a triad of LEDs the best method of dimming their intensity is to use Pulse Width Modulation. That&#8217;s the method that he went with, and luckily the <a href="http://www.ikea.com/us/en/catalog/products/90154371">SUNNAN lamp from Ikea</a> which he&#8217;s using as the donor for the project has just enough room to squeeze in the parts necessary for this hack.</p>
<p>You need two main bits to use PWM with a lamp like this; a microcontroller (or possibly a timer chip like the 555) and a transistor to protect that chip from the current necessary to run the LEDs at full brightness. [Frank] went with an ATtiny13 and a 2N2222 transistor, both quite common and very inexpensive (you can even <a href="http://hackaday.com/2010/12/09/part-2-help-me-reverse-engineer-an-led-light-bulb/">pull the microcontroller from a light bulb</a> if you know where to look). Two buttons were added to the top of the lamp base which allow for up and down controls. There&#8217;s even an SOS function which is triggered by pressing both buttons at the same time. [Frank's] happy to show off the completed project in the clip after the break.</p>
<p><span id="more-42989"></span><span style="text-align:center; display: block;"><a href="http://hackaday.com/2011/05/16/dimming-control-for-an-ikea-solar-desk-lamp/"><img src="http://img.youtube.com/vi/lyg1QQ1XCvo/2.jpg" alt="" /></a></span></p>
<br />Filed under: <a href='http://hackaday.com/category/home-hacks/'>home hacks</a>, <a href='http://hackaday.com/category/microcontrollers/'>Microcontrollers</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/42989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/42989/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/42989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/42989/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/42989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/42989/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/42989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/42989/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/42989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/42989/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/42989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/42989/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/42989/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/42989/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=42989&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/05/16/dimming-control-for-an-ikea-solar-desk-lamp/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/05/dimming-control-for-ikea-soloar-lamp.jpg" medium="image">
			<media:title type="html">dimming-control-for-Ikea-soloar-lamp</media:title>
		</media:content>
	</item>
		<item>
		<title>Optimizing code for PWM efficiency</title>
		<link>http://hackaday.com/2011/05/14/optimizing-code-for-pwm-efficiency/</link>
		<comments>http://hackaday.com/2011/05/14/optimizing-code-for-pwm-efficiency/#comments</comments>
		<pubDate>Sat, 14 May 2011 19:52:50 +0000</pubDate>
		<dc:creator>Brian Benchoff</dc:creator>
				<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[microcontroller]]></category>
		<category><![CDATA[pwm]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=42872</guid>
		<description><![CDATA[For some projects, it&#8217;s okay to have a microcontroller twiddling it&#8217;s thumbs most of the time. When a project requires the cpu to do just one thing over and over, there&#8217;s no loss with inefficient code &#8211; it either works or it doesn&#8217;t. However, if a project requires a microcontroller to do several things at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=42872&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-large wp-image-42873" title="Code" src="http://hackadaycom.files.wordpress.com/2011/05/code.png?w=450&#038;h=169" alt="" width="450" height="169" /></p>
<p>For some projects, it&#8217;s okay to have a microcontroller twiddling it&#8217;s thumbs most of the time. When a project requires the cpu to do just one thing over and over, there&#8217;s no loss with inefficient code &#8211; it either works or it doesn&#8217;t. However, if a project requires a microcontroller to do several things at once, like reading sensors, dimming LEDs, and writing serial data out, cpu utilization can become an issue. [Robert] wasn&#8217;t happy with the code he used to control a string of LEDs, so he <a href="http://blog.spitzenpfeil.org/wordpress/2011/02/20/pwm-again/">rewrote his code</a>. With the old implementation, [Robert]&#8216;s code used 60% of the cpu time. With the new and improved code, the cpu was only busy 8% of the time.</p>
<p>The code works by using a hardware timer to trigger an interrupt. After calculating the next time it should run again, and changing the state of the data line, the code just sits quietly until it&#8217;s needed again.</p>
<p>It&#8217;s not a pretty hack, or even one you can hold in your hands, but [Robert]&#8216;s determination in getting a μC to do what he wants is admirable.</p>
<br />Filed under: <a href='http://hackaday.com/category/microcontrollers/'>Microcontrollers</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/42872/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/42872/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/42872/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/42872/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/42872/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/42872/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/42872/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/42872/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/42872/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/42872/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/42872/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/42872/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/42872/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/42872/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=42872&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/05/14/optimizing-code-for-pwm-efficiency/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianbenchoff</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/05/code.png?w=450" medium="image">
			<media:title type="html">Code</media:title>
		</media:content>
	</item>
	</channel>
</rss>
