<?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/"
	>

<channel>
	<title>Negative Acknowledge &#187; AVR</title>
	<atom:link href="http://negativeacknowledge.com/category/electronics/avr/feed/" rel="self" type="application/rss+xml" />
	<link>http://negativeacknowledge.com</link>
	<description></description>
	<lastBuildDate>Wed, 06 Jul 2011 20:00:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>NIXIE Clock Case!</title>
		<link>http://negativeacknowledge.com/2010/01/nixie-clock-case/</link>
		<comments>http://negativeacknowledge.com/2010/01/nixie-clock-case/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 01:09:23 +0000</pubDate>
		<dc:creator>Random</dc:creator>
				<category><![CDATA[AVR]]></category>
		<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://negativeacknowledge.com/?p=79</guid>
		<description><![CDATA[Hurrah! The laser cut acrylic for my NIXIE tube clock case arrived this morning, and amazingly all the parts fit together nicely. The screw holes even matched up with the PCBs! I&#8217;m pretty happy with how this turned out, and I can finally say the nixie clock project is finished. I definitely learned a lot [...]]]></description>
			<content:encoded><![CDATA[<p>Hurrah! The laser cut acrylic for my <a href="http://negativeacknowledge.com/2009/09/nixie-clock/">NIXIE tube clock case </a>arrived this morning, and amazingly all the parts fit together nicely. The screw holes even matched up with the PCBs!</p>
<a href="" title="" rel="" class="flickr-image"><img src="http://farm.static.flickr.com//_.jpg" alt="" class="" title="" longdesc="" /></a>
<p>I&#8217;m pretty happy with how this turned out, and I can finally say the nixie clock project is finished. I definitely learned a lot for the next clock &#8211; like use the RTC with an onboard crystal! I&#8217;m thinking of perhaps making a wordclock.</p>
<p>You can check out the Inkscape files I sent to Ponoko for manufacture <a href="https://randomskk.net/projects/nixie_clock/nixie_case_design.zip">here</a> (they are released under CC BY-SA 3.0 if you are interested).</p>
<p>In unrelated news, design on revision four of my motor controller is nearing completion, so hopefully the thing will be flying soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://negativeacknowledge.com/2010/01/nixie-clock-case/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Nixie Clock</title>
		<link>http://negativeacknowledge.com/2009/09/nixie-clock/</link>
		<comments>http://negativeacknowledge.com/2009/09/nixie-clock/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 21:32:45 +0000</pubDate>
		<dc:creator>Random</dc:creator>
				<category><![CDATA[AVR]]></category>
		<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://negativeacknowledge.com/?p=63</guid>
		<description><![CDATA[While I don&#8217;t consider the clock entirely finished, I think it&#8217;s been around for long enough to write up. Everyone has to make a nixie clock at some time, and as I had 12 IN-14 type tubes lying around for quite a while after ordering them from Russia, I decided I should go ahead and [...]]]></description>
			<content:encoded><![CDATA[<p>While I don&#8217;t consider the clock entirely finished, I think it&#8217;s been around for long enough to write up.</p>
<a href="" title="" rel="" class="flickr-image"><img src="http://farm.static.flickr.com//_.jpg" alt="" class="" title="" longdesc="" /></a>
<p>Everyone has to make a nixie clock at some time, and as I had 12 IN-14 type tubes lying around for quite a while after ordering them from Russia, I decided I should go ahead and make one. PCBs were designed in due course and sent off to Gold Phoenix for manufacture, and eventually I got back a whole load of PCBs and fabbed up the clock.</p>
<p>There are three main parts: the power supply unit, the control board, and one driver board per two nixie tubes.</p>
<p><strong>Power Supply<br />
</strong>I borrowed heavily from http://desmith.net/NMdS/Electronics/NixiePSU.html in both the schematic and PCB layout, as I don&#8217;t have much experience in fast or high voltage layout and didn&#8217;t want to make any crucial mistakes. I did make a few modifications to suit what components I could get and in a few cases routings I thought could reduce via count or otherwise shorten traces.  The design works very well, and successfully drives the nixies at sufficient brightness.</p>
<a href="" title="" rel="" class="flickr-image"><img src="http://farm.static.flickr.com//_.jpg" alt="" class="" title="" longdesc="" /></a>
<p>The power supply takes around 12V DC input and converts it to around 220V DC output in a switch mode design. Essentially, the microchip opens the FET, current flows through the inductor and then through the FET to ground, then the FET closes. As the current in the inductor still has a kind of &#8216;momentum&#8217; (the magnetic field it created tries to keep the current moving) but nowhere to go the voltage rises and goes through the fast diode to charge the capacitor. Once the voltage reaches the desired level, the FET is switched back to ground again and the process repeats. The output is a relatively smooth DC. (NB: this description could be very wrong, it&#8217;s just how I believe it works &#8211; please leave a comment to correct me!)</p>
<p><strong>Control<br />
</strong>The control PCB contains an ATmega168, the DS1307 real time clock IC and a whole load of buttons used for setting the time. The RTC IC is set with a time once and then keeps it as accurately as it can, using the onboard battery backup to provide a tiny amount of power when the mains electricity is removed. The buttons make setting the time fairly easy; you just hold down the time item you want to change (hour/min/sec/day/month/year) and press the up or down button to adjust, holding it down to make large changes.</p>
<p><a href="" title="" rel="" class="flickr-image"><img src="http://farm.static.flickr.com//_.jpg" alt="" class="" title="" longdesc="" /></a> <a href="" title="" rel="" class="flickr-image"><img src="http://farm.static.flickr.com//_.jpg" alt="" class="" title="" longdesc="" /></a></p>
<p><strong>Driver<br />
</strong>The driver PCB contains two nixie tubes, two old 7414N logic chips (actually I used Russian equivalents) and an 8bit shift register. The control board shifts out BCD (binary coded decimal) to the shift registers, four bits per display digit. The shift registers then output this to the 7414Ns which decode it and pull one of their ten outputs to ground. That output is connected to one of the numerals in the nixie tube, causing it to light up.</p>
<p><a href="" title="" rel="" class="flickr-image"><img src="http://farm.static.flickr.com//_.jpg" alt="" class="" title="" longdesc="" /></a> <a href="" title="" rel="" class="flickr-image"><img src="http://farm.static.flickr.com//_.jpg" alt="" class="" title="" longdesc="" /></a></p>
<p><strong>Overall</strong>, I&#8217;ve found it to be a really neat clock. I plan to make a nice case for it at some point in the future, but making nice cases is not a strong point for me, so I&#8217;m not sure when exactly this will happen. For the moment, the clock sits on a shelf next to my desk where I can easily see it from anywhere in the room. The digits are bright enough to see clearly, but the clock turns off the display between 00:00 and 07:00 so I can get to sleep! Turning off the tubes also helps extend their lifetime. Just before turnoff, each tube cycles through all of its digits for a few minutes to prevent cathode poisoning, where little emissions from lit numbers coat the unlit numbers and make them dimmer. Finally, clock accuracy leaves a little to be desired &#8211; it is routinely out by a minute or two every couple of weeks. It is easy to adjust and a minute isn&#8217;t that big a deal, but I would have hoped the crystal would be more accurate.</p>
<p>At the end of the day though, it&#8217;s a fun clock and is my favourite for checking the time!</p>
<p>All the Eagle files as well as PNGs of the PCBs are available here: <a href="https://randomskk.net/projects/nixie_clock">https://randomskk.net/projects/nixie_clock</a> and more photos are available on Flickr <a href="http://www.flickr.com/photos/randomskk/sets/72157605942374005/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://negativeacknowledge.com/2009/09/nixie-clock/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>LED Fireflies in a Jar</title>
		<link>http://negativeacknowledge.com/2008/10/led-fireflies-in-a-jar/</link>
		<comments>http://negativeacknowledge.com/2008/10/led-fireflies-in-a-jar/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 23:01:00 +0000</pubDate>
		<dc:creator>Random</dc:creator>
				<category><![CDATA[AVR]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[HomeMadePCBs]]></category>

		<guid isPermaLink="false">http://negativeacknowledge.com/?p=32</guid>
		<description><![CDATA[I&#8217;ve been trying to make electronic fireflies for ages now, and most of my previous attempts involved RGB LEDs, and one of them per ATtiny13 with code to flash a random colour now and again. This was always going to be a pretty expensive method, but after seeing http://www.instructables.com/id/Jar-of-Fireflies/ I realised it would be a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a title="LED Fireflies in a Jar" href="http://www.flickr.com/photos/7320302@N07/2953037304/"><img class="alignnone" src="http://static.flickr.com/3034/2953037304_834f140e84_m.jpg" alt="LED Fireflies in a Jar" /></a></p>
<p>I&#8217;ve been trying to make electronic fireflies for ages now, and most of my previous attempts involved RGB LEDs, and one of them per ATtiny13 with code to flash a random colour now and again. This was always going to be a pretty expensive method, but after seeing http://www.instructables.com/id/Jar-of-Fireflies/ I realised it would be a much better idea to have one ATtiny13 control /many/ LEDs.</p>
<p>I wanted the first one to be in a jar, but in future I plan to have much longer wires so that I get one controller PCB and 12 fireflies extending off to cover a corner of a room, or part of a ceiling, etc. I could even add an LDR so it can detect dark, possibly by using pin 1 (so the chips couldn&#8217;t easily be reprogrammed).</p>
<p>The circuit schematic is kind of odd: I took a normal 2&#215;3 matrix, where PB0 and PB1 control the two columns (as they can do PWM, so all LEDs can be PWM controlled), and added another LED for each position but in reverse. Since all the ouputs can tri-state (where effectively they act as though they were not connected), I can light up any LED I want individually.</p>
<p>While I could easily extend this to a full charlieplexing scheme, that would mean losing the hardware PWM for every LED. I could easily add another two LEDs between PB0 and PB1, but it&#8217;s really not worth the added complexity &#8211; 12 is plenty!</p>
<p>Each LED is an 0603 green LED soldered to two very thin wires, which run to a home made PCB at the top of the jar. The battery holder is a standard kind of cell holder from Rapid, and on the other side of the PCB is the ATtiny13 (soldered to the solder-side directly) and two 180 ohm resistors. The entire thing is through-the-hole because I don&#8217;t have any surface mounted ATtiny13s lying around and did have loads of 180 ohm through the hole resistors.</p>
<p>The code is fairly simple: in an infinite loop it chooses one LED at random, lights it up following a rough sine wave (actually modeled on a real firefly flash!) and then might repeat it once or twice, then waits a random amount of time before doing the whole thing again.</p>
<p>Each time the thing is turned on, a value is read from 0&#215;00 in the internal EEPROM memory and used as the seed for the PRNG, then incremented and stored &#8211; giving 255 different patterns, more than enough that you can&#8217;t see any repetition!</p>
<p>By far the most difficult part of this was soldering all the tiny LEDs &#8211; if it wasn&#8217;t for that, this would be a particularly easy project to pull off. Using normal through-the-hole LEDs is an option, or even LED holders which would solder to the PCB and an LED just slots in. Surface mount ones are small enough to be less noticable and look better when lit up, though.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/0Yk0CZp2Ywc&amp;hl=en&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/0Yk0CZp2Ywc&amp;hl=en&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" allowfullscreen="true"></embed></object></p>
<p style="text-align: center;"><a title="LED Fireflies in a Jar" href="http://www.flickr.com/photos/7320302@N07/2953036200/"><img class="alignnone" src="http://static.flickr.com/3061/2953036200_d5c4a2dff8_m.jpg" alt="LED Fireflies in a Jar" /></a></p>
<p style="text-align: center;"><a title="LED Fireflies in a Jar" href="http://www.flickr.com/photos/7320302@N07/2953034618/"><img class="alignnone" src="http://static.flickr.com/3147/2953034618_ac10b192af_m.jpg" alt="LED Fireflies in a Jar" /></a></p>
<p style="text-align: left;">Eagle schematic and PCB file, C source code and compiled hex file available at: <a href="http://randomskk.net/projects/fireflies_in_jar">http://randomskk.net/projects/fireflies_in_jar</a> all files are released under CC BY-SA-NC license</p>
]]></content:encoded>
			<wfw:commentRss>http://negativeacknowledge.com/2008/10/led-fireflies-in-a-jar/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Final Lightbar Controller</title>
		<link>http://negativeacknowledge.com/2008/06/final-lightbar-controller/</link>
		<comments>http://negativeacknowledge.com/2008/06/final-lightbar-controller/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 16:52:28 +0000</pubDate>
		<dc:creator>Random</dc:creator>
				<category><![CDATA[AVR]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[HomeMadePCBs]]></category>
		<category><![CDATA[Robotics]]></category>

		<guid isPermaLink="false">http://negativeacknowledge.com/?p=24</guid>
		<description><![CDATA[I&#8217;ve finished the lightbar controller! This device analyses the music it picks up via the electret microphone, then flashes the LEDs in time to the music. It&#8217;s encased in the box SparkFun sent me the microphones in, since the box was just begging to be used as a case for something! I&#8217;m sure that was [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finished the lightbar controller!</p>
<p><a title="Lightbar Visualiser" href="http://www.flickr.com/photos/7320302@N07/2570139325/"><img src="http://static.flickr.com/3041/2570139325_288bd6e6ef_m.jpg" alt="Lightbar Visualiser" /></a></p>
<p>This device analyses the music it picks up via the electret microphone, then flashes the LEDs in time to the music. It&#8217;s encased in the box SparkFun sent me the microphones in, since the box was just begging to be used as a case for something! I&#8217;m sure that was intentionally designed.</p>
<p><a title="Lightbar Visualiser" href="http://www.flickr.com/photos/7320302@N07/2570965162/"><img src="http://static.flickr.com/3106/2570965162_1b8a6009d1_m.jpg" alt="Lightbar Visualiser" /></a></p>
<p>Getting a bit more technical:</p>
<p>The microphone picks up the noise and sends this to the LM386 amp, which amplifies it about 200x before it&#8217;s read by the ATtiny13&#8242;s ADC at 8-bit resolution. The ATtiny13 then keeps a running average of the noise level, and flashes the LEDs if the current volume exceeds the average by a scalar amount.</p>
<p><a title="Lightbar Visualiser" href="http://www.flickr.com/photos/7320302@N07/2570962450/"><img src="http://static.flickr.com/3262/2570962450_c3d00cc974_m.jpg" alt="Lightbar Visualiser" /></a></p>
<p>As a result, the LEDs flash on when the music hits a peak, and are off otherwise &#8211; no matter what volume.<br />
The brightness of the LEDs is also somewhat correlated to the loudness of the peak, since a louder peak will generally keep the LEDs on for longer.</p>
<p>Check out the video of it in action:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/6ihIaNN9UBY&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/6ihIaNN9UBY&amp;hl=en"></embed></object></p>
<p>Download the schematic, PCB layout, code:<br />
<a href="https://randomskk.net/projects/lightstrip/">https://randomskk.net/projects/lightstrip/</a> (all files released under Creative Commons BY-SA-NC 3.0).<a href="https://randomskk.net/projects/lightstrip/"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://negativeacknowledge.com/2008/06/final-lightbar-controller/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>20 LEDs, 5 pins: Charlieplexing!</title>
		<link>http://negativeacknowledge.com/2008/05/20-leds-5-pins-charlieplexing/</link>
		<comments>http://negativeacknowledge.com/2008/05/20-leds-5-pins-charlieplexing/#comments</comments>
		<pubDate>Thu, 08 May 2008 21:53:52 +0000</pubDate>
		<dc:creator>Random</dc:creator>
				<category><![CDATA[AVR]]></category>
		<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://negativeacknowledge.com/?p=16</guid>
		<description><![CDATA[I recently ordered 100 blue LEDs from eBay for a measly £1 (plus p&#38;p of something like £3). To my surprise, they are both bright and all functioning! However, I hadn&#8217;t really thought through what to do with them. This was when I found a link to the charlieplexing instructable again, and decided to whip [...]]]></description>
			<content:encoded><![CDATA[<p><a title="almost works!" href="http://www.flickr.com/photos/7320302@N07/2435299668/"><img src="http://static.flickr.com/2414/2435299668_3eb69d7bf5_m.jpg" alt="almost works!" /></a></p>
<p>I recently ordered 100 blue LEDs from eBay for a measly £1 (plus p&amp;p of something like £3). To my surprise, they are both bright and all functioning!</p>
<p>However, I hadn&#8217;t really thought through what to do with them.</p>
<p>This was when I found a link to the <a href="http://www.instructables.com/id/Charlieplexing-LEDs--The-theory/">charlieplexing instructable</a> again, and decided to whip it together on a piece of protoboard. This turned out to be an absolute nightmare of wiring things up, hidden shorts, melting wire, all that fun stuff. In the end, I got <em>most</em> of the LEDs working fine, and a few are a bit screwed up. They can each be individually controlled using just five pins on the little ATtiny13 in the middle there, and it even has five input buttons (one per pin)!</p>
<p>This is a pretty neat use of tiny amounts of IO pins.</p>
<p>Unfortunately the back of the thing looks like this:</p>
<p><a title="finished - there are two shorts somewhere. where? no idea" href="http://www.flickr.com/photos/7320302@N07/2432745328/"><img src="http://static.flickr.com/2114/2432745328_d7e6117b05_m.jpg" alt="finished - there are two shorts somewhere. where? no idea" /></a></p>
<p>and I never quite got the courage to get the last few working.</p>
<p>I plan to instead make a PCB for them! Of course, the wiring there will no doubt be equally nightmaric, but at least the manufacturing should be easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://negativeacknowledge.com/2008/05/20-leds-5-pins-charlieplexing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mother&#8217;s Day &#8217;08: A Light-Up Box</title>
		<link>http://negativeacknowledge.com/2008/03/mothers-day-08-a-light-up-box/</link>
		<comments>http://negativeacknowledge.com/2008/03/mothers-day-08-a-light-up-box/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 17:52:29 +0000</pubDate>
		<dc:creator>Random</dc:creator>
				<category><![CDATA[AVR]]></category>
		<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://negativeacknowledge.com/2008/03/02/mothers-day-08-a-light-up-box/</guid>
		<description><![CDATA[Mother&#8217;s Day was coming up and I&#8217;d just got the hang of making PCBs at home, along with a new Dremel that could cut and drill them. Making some kind of project seemed the obvious answer. I took inspiration from an Instructable on a similar subject here, but didn&#8217;t have any fluorescent acrylic so had [...]]]></description>
			<content:encoded><![CDATA[<p><a title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2304333959"><img class="flickr_image" style="border: 0pt none " src="http://farm3.static.flickr.com/2209/2304333959_021857e71d.jpg" alt="Making PCBs at home, Attempt 2: Done!" /></a></p>
<p>Mother&#8217;s Day was coming up and I&#8217;d just got the hang of making PCBs at home, along with a new Dremel that could cut and drill them.<br />
Making some kind of project seemed the obvious answer. I took inspiration from an Instructable on a similar subject <a href="http://www.instructables.com/id/UVIL-Backlit-Blacklight-Nightlight-or-SteamPunk-">here</a>, but didn&#8217;t have any fluorescent acrylic so had the LEDs illuminate the board directly.<br />
It&#8217;s also etched with normal ferric chloride, unfortunately.</p>
<p>I&#8217;d just picked up some new surface mount button-cell holders, and while I was tempted to use a 555 to make a quick pulse that drives the LEDs, a simpler circuit could be made with an ATtiny13, and I just so happened to have ten of them sitting around. A little breadboarding and I&#8217;d got the general idea working, although PWM still wasn&#8217;t working &#8211; the LEDs simply flashed on and then off 12 seconds later, with no fading.</p>
<p>I documented most of the manufacture with my camera, so I&#8217;ll go through it with pictures. Here goes&#8230;</p>
<p><span id="more-8"></span> <a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2299143684"><img class="flickr_image" style="border: 0pt none " src="http://farm4.static.flickr.com/3256/2299143684_490e63f3bb.jpg" alt="Making PCBs at home, Step 1: Design" /></a></p>
<p>First, the circuit had to be designed. I do this in Eagle, since it&#8217;s free and runs on Linux. The design has to be single sided (I&#8217;ve only got single sided boards, for one thing), and I figured the thicker tracks would make it more resistant to any problems with the toner transfer. It didn&#8217;t take too long to come up with an acceptable design that doesn&#8217;t have any jumper wires.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2298349919"><img class="flickr_image" style="border: 0pt none " src="http://farm4.static.flickr.com/3014/2298349919_b49f21266e.jpg" alt="Making PCBs at home, Step 2: Print" /></a></p>
<p>Next, I tried using photo paper to print and transfer the toner. This basically failed miserably &#8211; the paper got too hot before the toner was too hot, and the paper bubbled up underneath, ruining it. I tried all six circuits that I printed and none worked.<br />
However, the photos showing the manufacture are the same as for transparencies, so I&#8217;ll go through them anyway.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2298351685"><img class="flickr_image" style="border: 0pt none " src="http://farm4.static.flickr.com/3277/2298351685_1d0e9cfd7f.jpg" alt="Making PCBs at home, Step 3: Get the iron on" /></a></p>
<p>The iron&#8217;s heated up to  &#8220;Wool&#8221; for transparencies</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2298354343"><img class="flickr_image" style="border: 0pt none " src="http://farm4.static.flickr.com/3083/2298354343_6249112815.jpg" alt="Making PCBs at home, Step 4: Clean the PCB" /></a></p>
<p>Boards are scrubbed clean with a scrubber and also rinsed, I didn&#8217;t bother with soap later on and it worked fine. Faux-steel brushes would probably be even better, or perhaps sandpaper. The key thing is to get a clean copper surface that&#8217;s slightly scratched up to help the toner stick.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2298357307"><img class="flickr_image" style="border: 0pt none " src="http://farm4.static.flickr.com/3238/2298357307_46acd42ff1.jpg" alt="Making PCBs at home, Step 5: Cut out print" /></a></p>
<p>The chosen design is cut out.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2299155116"><img class="flickr_image" style="border: 0pt none " src="http://farm4.static.flickr.com/3287/2299155116_95965583a8.jpg" alt="Making PCBs at home, Step 6: Stick print to PCB" /></a></p>
<p>And stuck down to the board, toner side down.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2298361473"><img class="flickr_image" style="border: 0pt none " src="http://farm4.static.flickr.com/3101/2298361473_c7f7795a90.jpg" alt="Making PCBs at home, Step 7: Iron it for 3-5 min" /></a></p>
<p>You then put tissue paper over it to stop the iron sticking to the paper, and heat it for ~5min.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2299161968"><img class="flickr_image" style="border: 0pt none " src="http://farm4.static.flickr.com/3232/2299161968_f6ee093322.jpg" alt="Making PCBs at home, Step 9: Nor were the other 6." /></a></p>
<p>Sadly, every try with photo paper came out pretty badly.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2305058162"><img class="flickr_image" style="border: 0pt none " src="http://farm3.static.flickr.com/2017/2305058162_191fe63821.jpg" alt="Making PCBs at home, Attempt 2: Transparencies" /></a></p>
<p>I got some transparencies printed. These worked a lot better!</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2304263567"><img class="flickr_image" style="border: 0pt none " src="http://farm4.static.flickr.com/3191/2304263567_2df3d6c2c6.jpg" alt="Making PCBs at home, Attempt 2: Stick it down" /></a></p>
<p>Transparency is stuck toner-side down. You can tell which way this is because the circuit should look the right way around when the transfer is stuck down.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2304270631"><img class="flickr_image" style="border: 0pt none " src="http://farm3.static.flickr.com/2417/2304270631_c45364370a.jpg" alt="Making PCBs at home, Attempt 2: All ironed." /></a></p>
<p>It did take a second try to get the temperature right, but this is much better!<br />
There are still one or two small issues &#8211; nothing that stops the board working, but a few tracks lost a little toner. This is easily fixed with a standard permanent marker.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2304274529"><img class="flickr_image" style="border: 0pt none " src="http://farm4.static.flickr.com/3042/2304274529_3026224509.jpg" alt="Making PCBs at home, Attempt 2: Cut with a Dremel" /></a></p>
<p>I cut out the PCBs using a cutting disk on the Dremel (in this case the one-clic cutting disks which I believe are fibreglass-reinforced ones). This wasn&#8217;t too easy since the edge of the dremel somewhat restricts how deep the cut can be into the material, but I was just able to get them both cut out nicely.<br />
Then I sanded them down at the edges to make them nice and smooth.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2304278037"><img class="flickr_image" style="border: 0pt none " src="http://farm3.static.flickr.com/2358/2304278037_16a940c344.jpg" alt="Making PCBs at home, Attempt 2: Etched in Ferric Chloride" /></a></p>
<p>I then etched both boards in ferric chloride. This is a fairly poor, but easily available etchant that doesn&#8217;t give off nasty fumes. It does stain everything, so I&#8217;m wearing gloves here. I have a plastic tray of etchant placed in a larger plastic tray of hot water, which heats the etchant and catches any spills. I constantly swirl the board around in the etchant, which makes a big difference in etching time.<br />
In this photo, you can just see the copper starting to be etched away in the corners.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2304281841"><img class="flickr_image" style="border: 0pt none " src="http://farm3.static.flickr.com/2107/2304281841_80cb02ffe7.jpg" alt="Making PCBs at home, Attempt 2: Fully etched" /></a></p>
<p>The boards are now fully etched, the only copper left is hopefully under the toner!<br />
The toner is non conductive and can&#8217;t be soldered to, so we need to strip it off the copper tracks.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2304285407"><img class="flickr_image" style="border: 0pt none " src="http://farm3.static.flickr.com/2089/2304285407_dfea001636.jpg" alt="Making PCBs at home, Attempt 2: Acetone dissolves the toner" /></a></p>
<p>I usually let the boards soak in acetone for ten minutes and then scrub hard to remove the toner. I&#8217;m also removing the toner from the non-etched board so it can be reused.<br />
In retrospect, I noticed a few things:<br />
1) There really wasn&#8217;t any need to remove toner from the top PCB, since it won&#8217;t be soldered to and toner may have even made the sign stand out better. However, the copper does look fairly nice.<br />
2) Toner could also be used as something of a solder stop, so potentially I could have only removed it from pads that had to be soldered too. This may have been risky later on with the copper heating up, though.<br />
3) Paint stripper probably would have worked better.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2304288909"><img class="flickr_image" style="border: 0pt none " src="http://farm4.static.flickr.com/3092/2304288909_44234a1879.jpg" alt="Making PCBs at home, Attempt 2: Toner removed and holes drilled with Dremel" /></a></p>
<p>The PCBs are then drilled: a 3mm hole for the 4-40 thread screws, and 0.8mm holes for everything else. I&#8217;m using HSS drill bits in my Dremel at 33k RPM, the boards are FR2 so there&#8217;s not so much need for tungsten carbide drill bits.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2305091166"><img class="flickr_image" style="border: 0pt none " src="http://farm4.static.flickr.com/3269/2305091166_c1cb801cca.jpg" alt="Making PCBs at home, Attempt 2: All holes drilled" /></a></p>
<p>Both boards are now drilled.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2305097638"><img class="flickr_image" style="border: 0pt none " src="http://farm3.static.flickr.com/2402/2305097638_dda24bb51e.jpg" alt="Making PCBs at home, Attempt 2: Parts soldered" /></a></p>
<p>Components get soldered on. Soldering the LEDs was a real pain, but luckily you can&#8217;t see the solder when the thing is closed up. In the future, I&#8217;d probably use surface mounted LEDs. The battery holder doesn&#8217;t seem to fit the batteries very well, so I use two batteries instead &#8211; this is not only a much better contact, but also drives up the LED&#8217;s brightnesses.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2305122182"><img class="flickr_image" style="border: 0pt none " src="http://farm3.static.flickr.com/2057/2305122182_773446458f.jpg" alt="Making PCBs at home, Attempt 2: Stuck together (nb: used two standoffs in the end)" /></a></p>
<p>I ended up using two stand-offs taped together,  instead of just one, to give the LEDs more space to diffuse. This made a big difference. It also let me cover the outsides with tape, which makes the whole thing look a lot more solid.</p>
<p><a style="border: 0pt none " title="View this photo on Flickr" href="http://flickr.com/photos/randomskk/2304333959"><img class="flickr_image" style="border: 0pt none " src="http://farm3.static.flickr.com/2209/2304333959_021857e71d.jpg" alt="Making PCBs at home, Attempt 2: Done!" /></a></p>
<p>Finally, here it is in all its glory!</p>
<p>The ATtiny13 has a fairly simple program that just turns on the LEDs through a transistor for 12s when the button is pressed, and goes to sleep (power-down mode) otherwise. I wanted to have the LEDs fade in and out using PWM, but I wasn&#8217;t able to figure out how to do proper PWM with the IC&#8217;s counters in time, and software PWM took up too much space when the code was compiled, for some reason. Having some kind of on/off mode might have been a neat idea too, although this way the two batteries should last a lot longer.</p>
<p>I hope you enjoyed reading through the project! I&#8217;ve attached the Eagle files below if anyone wants to try printing one, although since Mother&#8217;s Day has passed I&#8217;d suggest changing the message :p</p>
<p><a title="Eagle Board" href="http://negativeacknowledge.com/wp-content/uploads/2008/03/rev02.brd">Eagle Board</a></p>
<p><a title="Eagle Schematic" href="http://negativeacknowledge.com/wp-content/uploads/2008/03/rev02.sch">Eagle Schematic</a></p>
<p><a title="Eagle Board" href="http://negativeacknowledge.com/wp-content/uploads/2008/03/rev02.brd"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://negativeacknowledge.com/2008/03/mothers-day-08-a-light-up-box/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

