<?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; buck converter</title>
	<atom:link href="http://hackaday.com/tag/buck-converter/feed/" rel="self" type="application/rss+xml" />
	<link>http://hackaday.com</link>
	<description>Fresh hacks every day</description>
	<lastBuildDate>Sun, 12 Feb 2012 08:27:59 +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; buck converter</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>Help me reverse engineer an LED light bulb</title>
		<link>http://hackaday.com/2010/11/12/help-me-reverse-engineer-an-led-light-bulb/</link>
		<comments>http://hackaday.com/2010/11/12/help-me-reverse-engineer-an-led-light-bulb/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 21:14:11 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[HackIt]]></category>
		<category><![CDATA[attiny13]]></category>
		<category><![CDATA[buck converter]]></category>
		<category><![CDATA[color change]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[light bulb]]></category>
		<category><![CDATA[reverse engineer]]></category>
		<category><![CDATA[sylvania]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=30654</guid>
		<description><![CDATA[I went to the last monthly meeting of Sector 67, a hackerspace in Madison, WI. One of the things shown off was a color changing LED light bulb that Menards was clearing out for $1.99. Inside there&#8217;s two RGB LEDs controlled by an ATtiny13 and powered by an AC/DC buck converter. An ATtiny13 will run [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=30654&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-30656" title="hacking-sylvania-lightbulb" src="http://hackadaycom.files.wordpress.com/2010/11/hacking-sylvania-lightbulb.jpg" alt="hack LED bulb" width="470" height="353" /></p>
<p>I went to the last monthly meeting of <a href="http://www.sector67.org/">Sector 67</a>, a hackerspace in Madison, WI. One of the things shown off was a color changing LED light bulb that Menards was clearing out for $1.99. Inside there&#8217;s two RGB LEDs controlled by an ATtiny13 and powered by an AC/DC buck converter. An ATtiny13 will run you around $1.25 by itself so this price is quite amazing. I grabbed a couple of these bulbs and set to work on them. Join me after the break to see what I&#8217;ve got so far.</p>
<p><span id="more-30654"></span></p>
<p>These bulbs use a candelabra base so I grabbed an adapter and tried it out in a lamp. Here&#8217;s the result, you can see it stepping through color levels a few times a second:</p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2010/11/12/help-me-reverse-engineer-an-led-light-bulb/"><img src="http://img.youtube.com/vi/yRrYp3qRBXc/2.jpg" alt="" /></a></span>
<p>We&#8217;ve seen this in a lot of <a href="http://hackaday.com/2009/11/17/diy-mood-lamp-looks-store-bought/">mood light hacks</a>, I want to get at the hardware and make it do my bidding. First thing&#8217;s first, time to crack it open. For some reason I thought that carefully drilling some holes around the base would help me figure out where best to use the Dremel cutting wheel. Unfortunately I immediately drilled through one of the inductor coils. Drat.</p>
<p><img class="alignnone size-full wp-image-30657" title="drilled-inductor" src="http://hackadaycom.files.wordpress.com/2010/11/drilled-inductor.jpg" alt="hack sylvania light bulb" width="470" height="353" /></p>
<p>Well, no stopping now. I&#8217;m not too worried as I also bought a solid red version of this bulb. I want to see what&#8217;s inside, whether it&#8217;s the same design with unpopulated components, or the full shebang with different hardware. I assume there&#8217;s no microcontroller inside so I&#8217;ll steal the inductor from that one later.</p>
<p>I cut off the diffuser and got to the circuit board. Here&#8217;s some images (click for hi-res) as well as a cursory list of hardware.</p>
<p><a href="http://hackadaycom.files.wordpress.com/2010/11/top-side-of-board.jpg"><img class="size-thumbnail wp-image-30658" title="top-side-of-board" src="http://hackadaycom.files.wordpress.com/2010/11/top-side-of-board.jpg?w=128&#038;h=96" alt="" width="128" height="96" /></a><a href="http://hackadaycom.files.wordpress.com/2010/11/underside-of-board.jpg"><img class="alignnone size-thumbnail wp-image-30659" title="underside-of-board" src="http://hackadaycom.files.wordpress.com/2010/11/underside-of-board.jpg?w=128&#038;h=96" alt="" width="128" height="96" /></a></p>
<p>Top:</p>
<ul>
<li>R2 &#8211; 1004</li>
<li>R3 &#8211; 1004</li>
<li>R4 &#8211; 3001</li>
<li>R5 &#8211; 1302</li>
<li>R10 &#8211; 1003</li>
<li>D4 &#8211; Looks like a zener&#8230; perhaps to set down votage for the tiny13</li>
<li>D5 &#8211; RGB LED</li>
<li>D6 &#8211; RGB LED</li>
<li>D7 &#8211; JF S1J</li>
<li>IC5 &#8211; ATtiny13</li>
<li>C1 &#8211; smd without label</li>
<li>C7- smd without label</li>
</ul>
<p>Bottom:</p>
<ul>
<li>R1 &#8211; inline with center conductor of light socket</li>
<li>P1 &amp; P2 &#8211; Labels for incoming AC power?</li>
<li>L1 &#8211; 102J CEC</li>
<li>L2 &#8211; 102J CEC</li>
<li>C2 &#8211; 50V 22 uF electrolytic</li>
<li>C3 &#8211; 400V 4.7 uF electrolytic</li>
<li>C4 &#8211; 400V 4.7 uF electrolytic</li>
<li>C5 &#8211; 25V 100 uF electrolytic</li>
<li>C6 &#8211; smd without label</li>
<li>D3 &#8211; R106 TF</li>
<li>R6 &#8211; 1201</li>
<li>R7 &#8211; 1Bx</li>
<li>R8 &#8211; 270</li>
<li>R9 &#8211; 270</li>
<li>IC1 &#8211; NGS (transistor for driving LEDs?)</li>
<li>IC2 &#8211; NGS (transistor for driving LEDs?)</li>
<li>IC3 &#8211; NGS (transistor for driving LEDs?)</li>
<li>IC4 &#8211; LNK304GN AC/DC switching converter</li>
</ul>
<p>I wanted to see if I could talk to the ATtiny13 so I soldered wires onto the pins and hooked it up to my AVR Dragon programmer. ISP was a no go so I soldered more wire to the remaining connection and gave high voltage programming a shot. That was also a failure. But since I already hosed that inductor I have no issue popping the microprocessor off of the board. Here it is soldered onto some perfboard and inserted in a breadboard:</p>
<p><img class="alignnone size-full wp-image-30661" title="hvsp-using-avr-dragon" src="http://hackadaycom.files.wordpress.com/2010/11/hvsp-using-avr-dragon-e1289594608462.jpg" alt="hack LED" width="470" height="353" /></p>
<p>I tried ISP again and that was a no-go. But this time around High Voltage Serial Programming worked. I talked to the chip with AVRdude using this command:</p>
<pre>avrdude -P usb -p t13 -c dragon_hvsp -v</pre>
<p>That polls the chip and reads back the fuse settings. Currently the lfuse is 0x6A which is the factory default but the hfuse is 0xFA. After checking the datasheet I see that they&#8217;ve disabled the reset function (that&#8217;s why ISP doesn&#8217;t work) and enabled brownout detection. I dumped the firmware and the eeprom and that&#8217;s where I&#8217;m at. Now I need your help.</p>
<p>I haven&#8217;t done much reverse engineering before this so I&#8217;m not sure what to do next. I disassembled the firmware using &#8216;ndisasm&#8217; but I have no idea what I can learn from it, or even how to read it. I&#8217;d love some help answering two questions:</p>
<p style="padding-left:30px;">1) Why couldn&#8217;t I talk to the chip when it was on the circuit board?</p>
<p style="padding-left:30px;">2) <del>What can I learn from <a href="http://pastebin.com/FVrKYQCZ">the disassembled code</a></del>. <strong>Update: </strong>after running the code through an AVR disassembler it looks like this is just an ascending list of numbers. [Tiago] pointed out in the comments that this is the behavior when the lock bits have been set. It should be possible to reuse the chip by erasing it but I won&#8217;t be able to dump the firmware first. Now I&#8217;ll focus on figuring out how the board is routed.</p>
<p>Let me know in the comments.</p>
<br />Filed under: <a href='http://hackaday.com/category/hackit/'>HackIt</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/30654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/30654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/30654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/30654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/30654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/30654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/30654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/30654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/30654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/30654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/30654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/30654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/30654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/30654/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=30654&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/11/12/help-me-reverse-engineer-an-led-light-bulb/feed/</wfw:commentRss>
		<slash:comments>101</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/2010/11/hacking-sylvania-lightbulb.jpg" medium="image">
			<media:title type="html">hacking-sylvania-lightbulb</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/11/drilled-inductor.jpg" medium="image">
			<media:title type="html">drilled-inductor</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/11/top-side-of-board.jpg?w=128" medium="image">
			<media:title type="html">top-side-of-board</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/11/underside-of-board.jpg?w=128" medium="image">
			<media:title type="html">underside-of-board</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/11/hvsp-using-avr-dragon-e1289594608462.jpg" medium="image">
			<media:title type="html">hvsp-using-avr-dragon</media:title>
		</media:content>
	</item>
		<item>
		<title>SickSack: ATMega servo snake robot</title>
		<link>http://hackaday.com/2007/04/20/sicksack-atmega-servo-snake-robot/</link>
		<comments>http://hackaday.com/2007/04/20/sicksack-atmega-servo-snake-robot/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 18:39:00 +0000</pubDate>
		<dc:creator>Will O'Brien</dc:creator>
				<category><![CDATA[robots hacks]]></category>
		<category><![CDATA[atmega]]></category>
		<category><![CDATA[buck converter]]></category>
		<category><![CDATA[BuckConverter]]></category>
		<category><![CDATA[sicksack]]></category>
		<category><![CDATA[slither]]></category>
		<category><![CDATA[snake robot]]></category>
		<category><![CDATA[SnakeRobot]]></category>

		<guid isPermaLink="false">http://hackaday.iheartcashews.com:8181/2007/04/20/sicksack-atmega-servo-snake-robot/</guid>
		<description><![CDATA[[Lars] sent in this sweet snake robot that he and [Aske] built for the DTU Robocup. I&#8217;ve seen snake bots before, but I like the concept and the clean electronic design. They used a single AtMega32 controller to generate PWM signals for each of the eight servos, and used a very interesting DC-DC buck converter [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=1295&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img width="400" vspace="4" hspace="4" height="325" border="0" alt="" src="http://hackadaycom.files.wordpress.com/2007/04/sicksack-had.jpg?w=400&#038;h=325" /><br />[Lars] sent in this sweet <a href="http://pontoppidan.info/lars/index.php?proj=sicksack">snake robot</a> that he and [Aske] built for the <a href="http://www.dtu.dk/subsites/robocup.aspx">DTU Robocup</a>. I&#8217;ve seen snake bots before, but I like the concept and the clean electronic design. They used a single AtMega32 controller to generate PWM signals for each of the eight servos, and used a very interesting <a href="http://focus.ti.com/docs/prod/folders/print/pth08t220w.html">DC-DC buck converter</a> that&#8217;s capable of delivering 16 amps.</p>
<p>For the curious, the bot won the best design and effects award at the competition.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hackadaycom.wordpress.com/1295/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hackadaycom.wordpress.com/1295/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/1295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/1295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/1295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/1295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/1295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/1295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/1295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/1295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/1295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/1295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/1295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/1295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/1295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/1295/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=1295&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2007/04/20/sicksack-atmega-servo-snake-robot/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Will O&#039;Brien</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2007/04/sicksack-had.jpg" medium="image" />
	</item>
	</channel>
</rss>
