<?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>Keith&#039;s Electronics Blog &#187; LED Puck</title>
	<atom:link href="http://www.neufeld.newton.ks.us/electronics/?cat=14&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.neufeld.newton.ks.us/electronics</link>
	<description></description>
	<lastBuildDate>Fri, 18 Apr 2025 00:10:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>ABS Puck Case Prototype</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=473</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=473#comments</comments>
		<pubDate>Sat, 14 Mar 2009 21:11:04 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[LED Puck]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=473</guid>
		<description><![CDATA[Dimension Elite 3D Printer A while back, I had contacted Brian Brown, associate director of the CAD/CAM lab at the university&#8217;s National Institute for Aviation Research and a great colleague of mine, to ask whether they had any rapid-prototyping machines that could churn out a prototype LED puck case in a transparent or translucent material. [...]]]></description>
			<content:encoded><![CDATA[<h4>Dimension Elite 3D Printer</h4>
<p>A while back, I had contacted Brian Brown, associate director of the CAD/CAM lab at the university&#8217;s <a href="http://www.niar.wichita.edu/">National Institute for Aviation Research</a> and a great colleague of mine, to ask whether they had any rapid-prototyping machines that could churn out a prototype LED puck case in a transparent or translucent material.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/10/DSCN3015.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/10/DSCN3015_mid.jpg" alt="Dimension Elite 3D printer" /></a></p>
<p>They didn&#8217;t at the time, but Brian contacted me last week to say that they had a new <a href="http://www.dimensionprinting.com/3d-printers/3d-printing-elite.aspx">Dimension Elite</a> 3D printer and they&#8217;d be happy to print me a case while they were ramping up on learning to use it.  I emailed over an STL export of my <a href="?p=206">Blender model</a>, Brian put his student Jonas Fink to work, and the next day I went over to take pictures of the machine in operation.</p>
<p>As it turns out, the &#8220;natural&#8221; colored ABS plastic isn&#8217;t translucent enough to use as a functional test enclosure, but it makes a great physical prototype.  More on that in a bit.</p>
<h4>How It Builds</h4>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/10/DSCN3010.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/10/DSCN3010_mid.jpg" alt="Dimension Elite 3D printer building support structure" /></a></p>
<p>The machine extrudes a tiny &#8220;string&#8221; of ABS plastic onto a removable tray.  It first lays down a brown support structure to hold up any overhanging areas, and the support material is a soluble form of ABS that&#8217;s later removed in a detergent bath.  The extrusion head moves around one entire horizontal plane, &#8220;drawing&#8221; in all the material that appears there, then lowers the tray slightly and draws in the next layer.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/10/DSCN3022.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/10/DSCN3022_mid.jpg" alt="Dimension Elite 3D printer beginning to build puck case" /></a></p>
<p>Once the support structure is in place, the machine extrudes plastic for the actual model &#8212; still continuing to build support structure for higher overhangs.  My puck case was being built upside-down (as a bowl instead of a dome); so here you can see the puck material in the center as the machine works its way out from the low center of the bowl up the curved edges.</p>
<h4>Breaking It Loose</h4>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/11/DSCN3028.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/11/DSCN3028_mid.jpg" alt="Completed ABS puck case prototype, front view" /></a></p>
<p>The build ran past the end of the work day, so I went back the next morning to see the completed prototype, still attached to the tray.  If you look closely, you can see the layers of &#8220;threads&#8221; that were used to built up the model, with the support structure underneath.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/11/DSCN3051.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/11/DSCN3051_mid.jpg" alt="Completed ABS puck case prototype, support structure upper front" /></a></p>
<p>After breaking the model free of the tray, the sparse honeycomb-like nature of the support structure is even more evident.  The light ring in the middle is the bottom-most layer of model plastic surrounding the hole for the pushbutton switch.</p>
<p>Although the suggested means of removing the support structure were to put the whole piece into the cleaning tank for a few hours and let it dissolve, I was curious how sturdy the support was and found that I could actually pry and crack it loose of my model using my pocketknife.  I managed to get the whole thing cleaned off without using the tank or cutting off a finger.</p>
<h4>The Result</h4>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/14/DSCN3064.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/14/DSCN3064_mid.jpg" alt="ABS puck case prototype" /></a></p>
<p>The finished prototype is rougher on the top than I expected &#8212; this machine (at least as programmed for this run) doesn&#8217;t seem to build a smooth finishing surface on the support structure before beginning to build the model, so the first surface of the model has the jaggies.  You can easily see the contour become smoother around the knee of the curve, where it stopped building support because the slope of the overhang could be built directly.</p>
<p>I&#8217;m guessing if the machine did lay down a smooth layer of support before starting the actual model, I wouldn&#8217;t have been able to break off the support as easily, and I would have had to use the cleaning tank.  That still seems like a good tradeoff for a smoother model.</p>
<p>As to the utility of having an opaque prototype of a clear case &#8212; pretty darn high.  One of my puck design goals is that its size and shape make it comfortable to carry with me all the time, preferably in a back pocket.  I&#8217;ve been doing exactly that since Tuesday with this ABS case, and I gotta tell you, it&#8217;ll work <em>great</em>.  No complaints yet, sitting on it all day, driving, you name it.</p>
<h4>Fitting Batteries</h4>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/14/DSCN3073.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/14/DSCN3073_mid.jpg" alt="ABS puck case prototype with iPhone Li-Po battery" /></a></p>
<p>A little over a year ago, I had been really pleased with the service I got from eBay seller <a href="http://stores.ebay.com/Digital-Power-Pro">Digital Power Pro</a> on a <a href="?p=188">replacement battery for my Visor Prism</a>, and contacted them to ask whether they sold any Li-Ion or Li-Po batteries with the mAh rating I was looking for and of a size that would fit inside my puck case.  They were entertained by the question, and recommended an iPhone replacement battery and an HP Jornada battery.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/14/DSCN3078.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2009/03/14/DSCN3078_mid.jpg" alt="ABS puck case prototype with HP Jornado Li-ion battery" /></a></p>
<p>They both fit nicely into the recess, with the iPhone battery being a little slimmer in case I run out of room.</p>
<p>Next step: milled acrylic case.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=473</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Puck is Stale But Not Forgotten</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=258</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=258#comments</comments>
		<pubDate>Fri, 03 Oct 2008 14:39:16 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[LED Puck]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=258</guid>
		<description><![CDATA[Wednesday over lunch, my brother sent me to Lustercraft Plastics to pick up a window well cover to replace one that got broken at a customer&#8217;s house. And wow, their showroom is droolicious. Lots of sample tiles of different types, transclucencies, colors, and textures of plastic. Plastic dowels so dense they might as well have [...]]]></description>
			<content:encoded><![CDATA[<p>Wednesday over lunch, my brother sent me to <a href="http://www.lustercraft.com/">Lustercraft Plastics</a> to pick up a window well cover to replace one that got broken at a customer&#8217;s house.</p>
<p>And wow, their showroom is droolicious.  Lots of sample tiles of different types, transclucencies, colors, and textures of plastic.  Plastic dowels so dense they might as well have been cudgels.  Flipchart-style collections of crazy bright colors of what felt like UHMW plastics.  Really cool stuff.  I need to go back and take my camera (with their permission) to get pictures of all the goodies.</p>
<p>Near the counter, they had a few trinkets, including a truncated cube (hm, maybe actually a rhombicuboctahedron) made of a clear plastic that still had a few deep milling gouges but was otherwise very well polished.  I was impressed with how well it had shined up after cutting, so I asked what kind of plastic it was &#8212; and it turns out it was acrylic, aka plexiglas.</p>
<p>And they have cutoff scraps in the back, sold by the pound.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/10/02/DSCN1997.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/10/02/DSCN1997_mid.jpg" alt="18mm and 25mm acrylic scraps" /></a></p>
<p>These 18mm and 25mm scraps of clear acrylic (underneath the paper covers) look to be good for milling puck cases, don&#8217;tcha think?</p>
<p>The puck project got stalled because I&#8217;m fussing over power issues &#8212; doing proper USB negotiation for 500mA (everyone assumes you can just grab as much as you want, but it&#8217;s a violation to take more than 100mA without asking), doing proper Li-Ion charge management (don&#8217;t want to cause the battery to vent with flame), and doing full-fledged power management (mediating among an external power source, a battery that can source current when needed or sink current when charging, and an LED load that has the potential to sometimes be higher than the 500mA max USB current).</p>
<p>But I have samples of parts for all those things, and the project isn&#8217;t dead yet.  It&#8217;s just pining for the fjords.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=258</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parallax Motion Sensor from Radio Shack</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=208</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=208#comments</comments>
		<pubDate>Sat, 05 Jan 2008 23:27:13 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[LED Puck]]></category>
		<category><![CDATA[TechArt]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=208</guid>
		<description><![CDATA[The back cover of Servo Magazine is always an ad from Parallax, and the December issue featured several sensors that will now be distributed through Radio Shack, including a motion sensor for $10. John and I are getting ready for this spring&#8217;s Technology: Art and Sound by Design class; and although I think John will [...]]]></description>
			<content:encoded><![CDATA[<p>The back cover of Servo Magazine is always an ad from Parallax, and the December issue featured several sensors that will now be distributed through Radio Shack, including a motion sensor for $10.</p>
<p>John and I are getting ready for this spring&#8217;s <a href="http://cratel.wichita.edu/cratel/TASD2008">Technology: Art and Sound by Design</a> class; and although I think John will be doing most of the teaching this year, I&#8217;m always on the lookout for sensors that would be good for students&#8217; interactive sculptures.</p>
<p>Jason at work suggested that the LED puck could have a motion-sensing mode, to serve as a sort of intrusion alarm.</p>
<p>When two separate events occur simultaneously pertaining to the same object of inquiry, we must always pay strict attention.  Or, ah, three events.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/05/DSCN1006.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/05/DSCN1006_mid.jpg" alt="Two Parallax / Radio Shack motion sensor kits" /></a></p>
<p>I picked up a couple of the sensors last week to try out.  The clerk said when they got them, he had thought they&#8217;d never sell any.  Why am <em>I</em> always the guy buying the weird stuff?</p>
<h3>How Motion Sensors Work</h3>
<p>The heart of common motion detectors is a pyroelectric sensor, which is essentially a FET with a window in the case opening onto an infrared-sensitive gate.  Changes in the level of IR light with a wavelength corresponding to body heat cause changes in the drain-source resistance, which the circuit monitors.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/05/DSCN1007.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/05/DSCN1007_mid.jpg" alt="Parallax pyroelectric sensor" /></a></p>
<p>The real trick is that the sensor is then placed behind a multifaceted lens that (loosely speaking) &#8220;chops up&#8221; the view of the world into smaller cones of heightened visibility and intervening areas of lessened visibility.  Think of a stage polka-dotted with multiple spotlights, only actually <em>seeing</em> that way rather than merely <em>illuminating</em> that way.</p>
<p>A body moving from an area of reduced visibility into an area of increased visibility causes a rapid change in the amount of IR (body heat) shining on the sensor, hence a rapid change in its drain-source resistance.  The motion detector circuit watches for these rapid changes, and when detected, triggers the alarm. This is why Robert Redford has to move slowly while retrieving the MacGuffin from Cosmo&#8217;s office in <em><a href="http://www.imdb.com/title/tt0105435/">Sneakers</a></em>.</p>
<p>A brief note about the multifaceted lens:  It is usually a <a href="http://en.wikipedia.org/wiki/Fresnel_lens">Fresnel lens</a>, but being a Fresnel lens is a red herring.  That simply makes the lens thin and easy to mold out of plastic; it is really the multifaceted nature of the lens that&#8217;s important.  Closer examination of a motion sensor lens easily reveals that it comprises multiple adjacent Fresnel lenses.</p>
<p>The Fresnel dome of this sensor, by the way, is too large to fit into the LED puck (as, most likely, is the PCB).  However, it&#8217;s not out of the question to purchase a <a href="http://www.allelectronics.com/cgi-bin/item/IRD-10/280/INFRARED_DETECTOR_MODULE_.html">separate PIR element</a> and mill a multifaceted lens pattern into the puck enclosure above it.  It would be an interesting challenge, perhaps for a later version.</p>
<h3>The Parallax Sensor</h3>
<p>The sensor comes with an absolutely minimal connection diagram, and refers to the Parallax web site for <a href="http://www.parallax.com/Store/Microcontrollers/BASICStampModules/tabid/134/txtSearch/555-28027/List/1/ProductID/83/Default.aspx?SortField=ProductName%2cProductName">full documentation</a>.  The module has a three-pin connector (bottom) for ground/V+/output, and a two-position jumper (upper left) for retriggering mode.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/05/DSCN1010.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/05/DSCN1010_mid.jpg" alt="Parallax motion sensor, component side" /></a></p>
<p>The power/output header is annoyingly the same height as the other components on the back side of the board, so the sensor <em>cannot</em> be plugged directly into a breadboard for prototyping; it <em>requires</em> an extension.  Parallax recommends a servo extension cable; I soldered a three-pin header to a three-pin header socket to make a rigid extension for breadboarding.</p>
<p>The module&#8217;s output is active-high.  The Parallax documentation indicates that the jumper selects retriggering mode.  With the jumper in the L position, the module triggers the output upon detecting motion and then goes low again.  With the jumper in the H position, the module is supposed to keep the output high as long as motion continues, but mine does not.</p>
<p>The datasheet indicates that the module needs a &#8220;warmup&#8221; period of about a minute, during which time it&#8217;s adapting to ambient conditions and may trigger randomly.  My experience was similar, so anyone using this module needs to be prepared to accept random triggering for a while after startup.</p>
<p>The package and datasheet indicate a detection range of about 20&#8242;.  I didn&#8217;t have room to test this, but I&#8217;m willing to believe it until I learn otherwise.  Apart from the minor annoyances above, the sensor really is very easy to use, particularly for our class.  It seems quite responsive to motion, and certainly responsive enough to pick up gallery visitors not specifically trying to sneak up on it.  Output is a very clean 5V, so it&#8217;ll be easy for students to interface to the Arduino.</p>
<p>Sensitivity is fixed.  It&#8217;d be nice to have a trim pot to adjust sensitivity/range, particularly for use in interactive sculpture projects.  A Halloween prop-maker going by the name &#8220;Scary Terry&#8221; has written a <a href="http://www.scary-terry.com/itw/pirsensor/pirsensor.htm">nice review of the motion sensor</a>, and includes pictures of mounting it inside PVC pipe to control its angle of sensitivity.  I guess with care, the sensor could be angled toward the ground in such a way that it would be triggered only when feet entered a designated area.</p>
<h3>Hacking the Sensor</h3>
<p>I suspect that most students using this sensor either would trigger a long sequence of actions when motion is first detected, or would like to get a continuous (retriggered) signal the entire time motion is detected.  I&#8217;m somewhat interested, though, in a much finer-grained notion of &#8220;the entire time motion is detected&#8221; than that.</p>
<p>By my rough count, the sensor triggers for about two and a half seconds each time it detects motion.  It then locks out briefly (didn&#8217;t time it &#8212; say another couple of seconds?) during which time it&#8217;s <em>in</em>sensitive before it can detect motion again.</p>
<p>I&#8217;d like to be able to get a series of much shorter spikes and much shorter recovery time.  I don&#8217;t know exactly why; it just seems useful to me.</p>
<p>Let&#8217;s go back to that component view:</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/05/DSCN1010.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/05/DSCN1010_mid.jpg" alt="Parallax motion sensor, component side" /></a></p>
<p>The IC doing all the work is a BISS0001.  The only datasheet I can find for it is in Chinese, yay, don&#8217;t read that, sorry.  The chip has a bunch of comparators, some logic, a logic section labelled in Chinese, and two timers labelled in Chinese.  It looks like it&#8217;s probably made specifically for motion-sensing applications.</p>
<p>Fortunately the pinouts and component values are labelled in English, so I was able to make enough sense of the datasheet to understand how to set the timing constants.  From the sample application circuit, pin 2 is obviously the master output; and on the pinouts, pin 2 is labelled VO.</p>
<p>On the timing diagrams, VO goes high for a period labelled T<sub>X</sub> and low for a period labelled T<sub>i</sub>.  Just above that, we have the equation T<sub>X</sub> &asymp; 49152R<sub>1</sub>C<sub>1</sub> leaping out at me from a wad of impenetrable Chinese.  On the functional diagram, R<sub>1</sub> and C<sub>1</sub> stack from pin 3 to 4 to ground.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/05/DSCN1010-r1c1.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/05/DSCN1010-r1c1_mid.jpg" alt="Parallax motion sensor, pulse timing components" /></a></p>
<p>Okay!  On the PCB, pin 3 goes to a resistor that said &#8220;204.&#8221;  (Ignore the 473 in the picture.)  The resistor and the IC&#8217;s pin 4 go to a capacitor, which goes to ground.  We&#8217;re in business!</p>
<p>The resistor is labelled as a 200K&Omega;, and my meter confirms that.  The capacitor is unlabelled; in-circuit, my meter tests it at about 470pF.  Doing the math:</p>
<blockquote><p>49152 R<sub>1</sub> C<sub>1</sub> = 49152 * 200K&Omega; * 470pF &asymp; 4.6 seconds</p></blockquote>
<p>Hm, that&#8217;s a little off from the 2.6 seconds I was counting, but same order of magnitude.  For a capacitor value that small, I&#8217;m willing to believe that I&#8217;m getting extra capacitance from my meter probes and from measuring it in-circuit.  I think we&#8217;re in the ballpark.</p>
<p>The easiest way to shorten the on-period (T<sub>X</sub>) seems to me to be replacing the resistor.  To take the period down an order of magnitude, I should use about a 20K&Omega; resistor.  After looking at the SMT resistors on a dead PC motherboard, I found a 473 (47K&Omega;) and figured it was enough smaller to make my point.</p>
<p>I desoldered it by wrapping a piece of heavier wire around it and heating the wire, like <a href="http://www.neufeld.newton.ks.us/electronics/?p=204#comments">Josh suggested</a>, and it worked great.  Then out of laziness and because the new resistor was larger than the existing resistor and might not fit the pads well, I just soldered it on top of the resistor that was already there, in parallel.  Makes it a 38K&Omega; resistor instead of a 47K&Omega;, so we&#8217;re even going in the right direction.</p>
<p>I powered up the motion sensor again, waited a minute for it to settle down, and started timing its response.  On-time after sensing motion (T<sub>X</sub>) is now in the half-second range.  The absolute numbers still don&#8217;t match what the equation says I should get, but the relative values are right on &#8212; a resistor with 1/5 the value reduced T<sub>X</sub> to 1/5 of its former value.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/05/DSCN1010-r2c2.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/05/DSCN1010-r2c2_mid.jpg" alt="Parallax motion sensor, lockout timing components" /></a></p>
<p>Pretty slick!  Now I can pick whatever T<sub>X</sub> I want, be it short or long.  I haven&#8217;t tried it yet, but the lockout time between motion detection (T<sub>i</sub>) is set by R<sub>2</sub> and C<sub>2</sub> on pins 5 and 6, and they&#8217;re easily accessible as well, so I should be able to change that too.</p>
<h3>And About that Datasheet . . .</h3>
<p>Don&#8217;t get me wrong about the Chinese datasheet.  Sure I would have been disappointed if I couldn&#8217;t read it, but I was actually really pleased that sections of it were in English.  I&#8217;m aware that people throughout the rest of the world have to learn English in order to do a <em>lot</em> of technical things, and do so with ease and proficiency much greater than that of the few Americans who bother to learn languages other than English.</p>
<p><a href="http://www.bunniestudios.com/blog/?p=217">Bunnie Huang has an interesting blog post</a> that touches in passing on certain types of devices using chips of Chinese manufacture that can&#8217;t be found, or can scarcely be found, by searching Google in English:</p>
<blockquote><p>
Just try searching for USB mass storage controller ASICs, or digital picture frame SoCs on Google in English, and then go and open up one of these devices and compare your findings. I bet you’ll find that the chips most frequently used in these popular devices are best searched for in Chinese.
</p></blockquote>
<p>It&#8217;s a competitive world out there, and those of us in the west have had it awfully easy for an awfully long time.  I know as a mere hobbyist, the technology I use is far behind the leading edge, and I&#8217;m not yet impacted in nearly the way of engineers developing new products for market.  But the world <em>is</em> changing, no doubt about it, and I hope it&#8217;s a while yet before it impacts my ability to tinker.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=208</wfw:commentRss>
		<slash:comments>60</slash:comments>
		</item>
		<item>
		<title>Merry Christmas to Me!</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=207</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=207#comments</comments>
		<pubDate>Sat, 05 Jan 2008 04:01:50 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[LED Puck]]></category>
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=207</guid>
		<description><![CDATA[When I thought up the LED puck idea, I went shopping for some bright LEDs to put into it. I don&#8217;t like the blue+yellow color of &#8220;white&#8221; LEDs, and I thought it&#8217;d be fun to have green illumination, so I found some green LEDs from a Hong Kong [correction: Chinese] eBay seller and bought &#8216;em. [...]]]></description>
			<content:encoded><![CDATA[<p>When I thought up the LED puck idea, I went shopping for some bright LEDs to put into it.  I don&#8217;t like the blue+yellow color of &#8220;white&#8221; LEDs, and I thought it&#8217;d be fun to have green illumination, so I found some green LEDs from a <s>Hong Kong</s> <em>[correction: Chinese]</em> eBay seller and bought &#8216;em.  Since I&#8217;m pretty sure it costs about the same to ship a package from <s>Hong Kong</s> <em>China</em> if it has a few more items of negligible weight in it, I kind of went crazy and treated myself to an LED assortment.</p>
<p>I won&#8217;t mention the specific eBay seller, because I have mixed feelings about them.  On the one hand, their prices were very good and their LEDs seem okay.  On the other hand, I&#8217;m pretty sure it cost them next to nothing extra to ship my whole package than just my first LEDs; but even after requesting and receiving an <em>additional</em> additional shipping discount, I still paid $30 shipping for $35 of LEDs.  And on the gripping hand, I paid on December 9 and didn&#8217;t receive my package until December 24.  It made a nice Christmas present to me, but it made me feel like I was paying shipping by the day instead of by the pound.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/04/DSCN1003.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/04/DSCN1003_mid.jpg" alt="Square 5mm LED" /></a></p>
<p>Grumbling aside, the LEDs I was shopping for turned out to be not at all what I was expecting, and probably better in every way.  This is because I wasn&#8217;t paying enough attention to see that they have four legs (I thought they were two-legged LEDs with a square base), but four legs gives better heat dissipation and allows higher current; and I didn&#8217;t realize how squat they are, which makes them fit better into a puck; and I saw that they were 1500 mCd but didn&#8217;t realize they had a 120-140&deg; viewing angle, which means they output a whopping 4.7-6.2 lumen each.  In contrast, my 10,000 mCd 20&deg; blue LEDs only output .95 lumen.</p>
<p>The other stuff I got was a handful of 1W and 3W Luxeon knockoffs, because, y&#8217;know, why not; and a constant-current driver board, which I thought would come in handy while testing.</p>
<p>Here are eight of the 5mm LEDs on a breadboard with 100&Omega; resistors, for about 15mA at 5V or 85mA at 10V (~3V drop).  Remember, that&#8217;s maybe 5 lumen each or 40 lumen total.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/04/DSCN1001.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/04/DSCN1001_mid.jpg" alt="Square 5mm LEDs on breadboard" /></a></p>
<p>Let&#8217;s see how they fare against the 3W, 70 lumen beast of the apocalypse, wired to the 1W driver without thinking about how that means it&#8217;s not running at full power and brightness.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/04/DSCN0999.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/04/DSCN0999_mid.jpg" alt="LED driver and 3W green LED" /></a></p>
<p>Here&#8217;s my desk with about 200W of fluorescent light from the ceiling fixture and the swing-arm lamp.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/04/DSCN0993.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/04/DSCN0993_mid.jpg" alt="Desk lit with fluorescent lights" /></a></p>
<p>Same scene with the eight 5mm LEDs fed at 10V, and the camera locked to the same aperture and shutter speed:</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/04/DSCN0995.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/04/DSCN0995_mid.jpg" alt="Eight green LEDs" /></a></p>
<p>Same scene with THE BEAST:</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/04/DSCN0997.JPG"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2008/01/04/DSCN0997_mid.jpg" alt="3W green LED" /></a></p>
<p>Assessment:</p>
<p>The LEDs don&#8217;t provide nearly as much illumination as normal room lighting.  But then, nobody thought they were going to.</p>
<p>Each set of LEDs <em>does</em> provide enough light to read by, pretty comfortably, even with the light in the same plane as the paper&#8217;s surface (<em>i.e.</em> indirect lighting).</p>
<p>According to the camera, half the LEDs for the puck make less light than a single 3W faux-Luxeon driven at 1W.  Crap, I should just make a Luxeon throwie and call it a puck.  Nah, that&#8217;s not really the fun part of the puck idea.</p>
<p>According to my eyes, and my wife&#8217;s as well, there&#8217;s much less subjective difference in the brightness between the eight 5mm LEDs and the single 3W LED than what the camera appears to show.  The math seems to back this up as well (maybe 40 lumen versus some fraction of 70 lumen), so I can&#8217;t explain what&#8217;s going on in the pictures.</p>
<p>And, oh yeah, LEDs ARE COOL!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=207</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>LED Puck: Blender Modeling</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=206</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=206#comments</comments>
		<pubDate>Thu, 03 Jan 2008 23:45:38 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[LED Puck]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=206</guid>
		<description><![CDATA[Joel is setting up EMC2 so we can use his CNC machine for milling (DanCAM could mill, but we&#8217;d probably have to use DanCAD so we&#8217;ve just used the machine for drilling), and I&#8217;ve been working on modeling the puck enclosure in Blender. First, I&#8217;d like a better visualization than my crude line drawings; and [...]]]></description>
			<content:encoded><![CDATA[<p>Joel is setting up <a href="http://www.linuxcnc.org/">EMC2</a> so we can use his CNC machine for milling (DanCAM <em>could</em> mill, but we&#8217;d probably have to use DanCAD so we&#8217;ve just used the machine for drilling), and I&#8217;ve been working on modeling the puck enclosure in <a href="http://www.linuxcnc.org/">Blender</a>.</p>
<p>First, I&#8217;d like a better visualization than my crude line drawings; and second, Blender has a plugin to output STL (stereolithography) code, which <a href="http://www.mecsoft.com/Mec/Products/FreeMill.shtml">FreeMill</a> is supposed to be able to convert to g-code, which EMC2 (and everything else in the world) can mill.  So at the same time, I get a visual idea of what I&#8217;m designing <em>and</em> a CAM file to produce it.  Almost like using CAD software. <img src='http://www.neufeld.newton.ks.us/electronics/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I am completely new to Blender, which is obvious both by how long it took me to build a satisfactory model and by the amateur appearance of the result.  At the end of this post is a plea for education, if anyone wants to teach me how to do it better.</p>
<p>Here&#8217;s a view of the draft enclosure from slightly above, rendered translucent (plexi or lexan):</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/led-puck/concept-3d-above-trans.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/led-puck/concept-3d-above-trans.jpg" alt="LED puck case modeled in Blender, translucent, from above" /></a></p>
<p>The hole through the top will host a waterproofed plunger for the pushbutton switch, but the plunger is absent because I&#8217;m only drawing the case for now.</p>
<p>Same draft viewed from below:</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/led-puck/concept-3d-below-trans.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/led-puck/concept-3d-below-trans.jpg" alt="LED puck case modeled in Blender, translucent, from below" /></a></p>
<p>There&#8217;s a shallow recess for mounting a plate to seal the bottom, then a deeper recess for the PCB and battery.</p>
<p>Same case in Blender&#8217;s default material (scrith?):</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/led-puck/concept-3d-above.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/led-puck/concept-3d-above.jpg" alt="LED puck case modeled in Blender, default material, from above" /></a></p>
<p>And from below, which is way too dark but may show a little more detail of the nested recesses:</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/led-puck/concept-3d-below.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/led-puck/concept-3d-below.jpg" alt="LED puck case modeled in Blender, default material, from below" /></a></p>
<p>Below, detailed information on how I made this in Blender, for anyone interested, or willing to offer advice.</p>
<p><span id="more-206"></span></p>
<h3>Blender Process</h3>
<p>I had a dickens of a time getting the recesses, the pushbutton hole, and the subsurf-rounded edge all working at the same time.  Here&#8217;s how I did it.</p>
<p>If you&#8217;re a Blender pro and know easier ways to do this, I&#8217;d <em>love</em> to hear from you &#8212; please scroll to the bottom and post a comment.  All I ask is that you try your suggestion to see exactly what it really does before recommending it.</p>
<p>Please forgive how WordPress horribly mangles unordered lists nested within an ordered list.</p>
<ol>
<li>Create a hollow cylinder to manipulate, as a &#8220;starter&#8221; for everything that follows
<ul>
<li>Add a cylinder (.5 radius, .2 thick, no cap ends)</li>
</ul>
</li>
<li>Create the upper end of the pushbutton hole
<ul>
<li>Select top vertices, cursor to selection, extrude / hit escape, scale .5</li>
</ul>
</li>
<li>Create the lower end of the pushbutton hole
<ul>
<li>Select bottom vertices, cursor to selection, extrude / escape, scale .5</li>
</ul>
</li>
<li>Line the pushbutton hole
<ul>
<li>View from top, select inner vertices, edge / crease subsurf 1, face / skin faces/edge-loops</li>
</ul>
</li>
<li>Create extra edge loops on the starter cylinder with regular size and spacing
<ol>
<li>Grab/drag lower outer edge of cylinder to .4 high</li>
<li>Select a face, select linked flat faces</li>
<li>Beauty+subdivide, select a face, select linked flat faces</li>
<li>Beauty+subdivide again</li>
</ol>
</li>
<li>Size the top surface
<ul>
<li>Select top outer edge, select edge loop, cursor to selection, scale to 3.5</li>
</ul>
</li>
<li>Create outer lower edge
<ul>
<li>Select edge on cylinder&#8217;s 3rd edge loop, select edge loop, cursor to selection, scale to 3.5, grab/drag z -.8</li>
</ul>
</li>
<li>Split outer side faces to influence later subsurf radii
<ul>
<li>Select edge on cylinder&#8217;s 2nd edge loop (currently a very pinched waist), select edge loop, cursor to selection, scale to 3.5, grab/drag z -.8</li>
<li><em>Could also have selected outer faces, beauty+subdivide, select edge, select edge loop, grab/drag into place</em></li>
</ul>
</li>
<li>Create lower edge of bottom recess
<ol>
<li>Select lower edge of center cylinder, select edge loop, grab/drag to .2 high</li>
<li>Select face, select linked flat faces, beauty+subdivide</li>
<li>Select upper edge of cylinder, select edge loop, cursor to selection, scale to 3.2, grab/drag z -.7, crease subsurf 1</li>
</ol>
</li>
<li>Create upper edge of bottom recess
<ol>
<li>Select upper edge of cylinder, select edge loop, grab/drag z .1</li>
<li>Select face of cylinder, select linked flat faces, beauty+subdivide</li>
<li>Select upper edge and loop, cursor to selection, scale 3.2, grab/drag z -.6, crease subsurf 1</li>
</ol>
</li>
<li>Create lower edge of main recess
<ul>
<li>Select upper edge and loop of cylinder, cursor to selection, scale 2.8, grab/drag z -.5, crease subsurf 1</li>
</ul>
</li>
<li>Create upper edge of main recess
<ul>
<li>Select remaining edge and loop, cursor to selection, scale 2.8, grab/drag z .3, crease subsurf 1</li>
</ul>
</li>
<li>Round outer edges
<ul>
<li>Add mesh subsurf at favorite level of detail</li>
</ul>
</li>
</ol>
<p>Part of the shananigans &#8212; in particular, starting with a unit cylinder &#8212; is because I can&#8217;t figure out how to scale something to a <em>size</em> of <em>n</em>, only how to scale it by a <em>factor</em> of <em>n</em>.</p>
<p>Scaling by .914285714 to reduce from 3.5 to 3.2, and then by .875 to reduce from 3.2 to 2.8, doesn&#8217;t seem to me like a great way to maintain accuracy and have parts line up the way I want.  So I scaled up from 1 to everything instead.</p>
<h3>Blender Links</h3>
<p>I looked through a <em>lot</em> of Blender tutorials, including many that skip steps and/or tell you to take actions without telling you what key to press or how to get to the panel where the button appears.  The following tutorial sections were most useful to me in figuring out specific tasks.</p>
<ul>
<li>My introduction to Blender, by <a href="http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro/Modeling_a_Simple_Person">modeling a simple person</a></li>
<li>Somewhere that I didn&#8217;t bookmark, a description of skinning faces, to line the pushbutton hole.</li>
<li>From a couple of different places, the concept of subdividing a face, although with no details; I had to figure out Beauty myself using the tooltips.</li>
<li><a href="http://wiki.blender.org/index.php/Manual/The_Vital_Functions#Rendering">Rendering</a></li>
<li><a href="http://wiki.blender.org/index.php/Tutorials/Materials/Clear_Glass">Making glass</a></li>
<li><a href="http://cola.wikidot.com/using-blender-software">Boolean operations</a>, which I didn&#8217;t end up using; it sounds like they mess up the mesh and I was afraid of what that would do to the subsurf</li>
</ul>
<p>And by the way, I can&#8217;t get Blender to render on my Fedora 7 machine at home.  It pops up a new window to render into but never draws into it; in fact, the window retains a copy of whatever background was underneath it when it popped up.</p>
<p>I&#8217;ve checked my SELinux audit log and Blender isn&#8217;t throwing violations; I really don&#8217;t know what&#8217;s wrong.  I had to take my .blend file to work to render on my Mac there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=206</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LED Puck: Tilt Prototype</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=204</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=204#comments</comments>
		<pubDate>Thu, 27 Dec 2007 14:27:03 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[LED Puck]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=204</guid>
		<description><![CDATA[My wife isn&#8217;t interested in electronics. She doesn&#8217;t do electronics, she doesn&#8217;t understand electronics, and she really doesn&#8217;t want to hear me ramble on at length about electronics. (I say this all in a very good-natured way, of course. Identical interests were not a prerequisite for our marriage.) So when my wife asks my why [...]]]></description>
			<content:encoded><![CDATA[<p>My wife isn&#8217;t interested in electronics.  She doesn&#8217;t do electronics, she doesn&#8217;t understand electronics, and she really doesn&#8217;t want to hear me ramble on at length about electronics.  (I say this all in a very good-natured way, of course.  Identical interests were not a prerequisite for our marriage.)</p>
<p>So when my <em>wife</em> asks my why I keep soldering chips onto boards in the wrong direction, I <em>know</em> I have a problem.</p>
<p>Oh, and the ADXL202 is a hardy little sucker.</p>
<h3>Prototype Puck I/O Board</h3>
<p>Over the weekend, I laid out and built a prototype of the I/O for the puck &#8212; just the LEDs, their driver, an accelerometer chip, and a pushbutton.  I expect to use the <a href="http://www.freeduino.org/freeduino_open_designs.html">Freeduino</a> circuit for the microcontroller and will still need to add it to the board (as well as battery-charging circuit and all that other good stuff); but I wanted to get started programming the actual LEDs and tilt system.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2007/12/24/DSCN0968.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2007/12/24/DSCN0968_mid.jpg" alt="LED puck I/O prototype PCB, cleaned and cut" /></a></p>
<p>I laid out the board in EAGLE; and believe me, it&#8217;s a bit of a challenge routing nice curves <em>as traces</em>.  The V+ circle around the edge wasn&#8217;t too bad; but I wanted to route the LED drive traces as concentric arcs and just couldn&#8217;t find a way to do it.</p>
<p>I had a few SMT A6276 LED driver chips around, so I was able to make most of the board SMT already.  The A6276 will want to be on the underside of the board (shown here) so its pins are in the same order as the LEDs it drives.  I&#8217;m not sure where the other chips should be, but it was easy to make a single-sided board for this prototype.</p>
<p>I worried that I was packing the traces too closely together; but they came out well enough (iron-on toner transfer), I think I could have made them smaller.  And having to run to headers to go off-board to the Arduino complicated the routing; if the microcontroller were on the other side of the board, each of those signals could have gone through on a via wherever it was convenient rather than having to converge to the two headers at the top and center.</p>
<h3>Tinnit</h3>
<p>I tried plating the board with Tinnit, because I had such good results last time &#8212; that board was incredibly easy to solder.  Alas, <a href="http://www.neufeld.newton.ks.us/electronics/?p=164">five-month-old eighteen-year-old Tinnit</a> apparently doesn&#8217;t work very well.  After forty minutes at 110&deg;F with no plating appearing on my traces at all, I gave up, washed the board clean, and dumped the rest of the Tinnit.</p>
<p>I still think it&#8217;s great stuff and I intend to use it again.  I just need to be sure I&#8217;ll be making enough boards for it to be worthwhile.</p>
<p>I did learn something else, though.  After cleaning the board, it sat out for a few hours, and I noticed that it was already oxidizing &#8212; the copper was considerably less shiny than when it was fresh.  Before soldering, I polished it with wet 600-grit sandpaper, and it took solder beautifully &#8212; completely unlike untinned boards I&#8217;m used to soldering.</p>
<p><strong>Lesson:  If a copper board has been exposed to air for even a few hours, polish it with wet, fine sandpaper before soldering.</strong></p>
<h3>Assembly</h3>
<p>I soldered on all the SMT components first.  I was pleased that I was actually able to find all the resistors and capacitors I needed in my salvage bin.  I&#8217;ve desoldered a number of SMT boards (heat with heat gun, then bang on the bench vise and the components come flying off; or pluck them off with tweezers for a more orderly approach), and I think these came from a dead Cabletron hub.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2007/12/24/DSCN0973.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2007/12/24/DSCN0973_mid.jpg" alt="LED puck I/O prototype, SMT components soldered" /></a></p>
<p>The resistors were all labeled, so they were easy to search for the right values (if you call picking through a bag of grains of rice easy).  The capacitors were a bit more challenging &#8212; they were completely unlabelled, so I had to dump them out on the workbench and use the meter (tweezer-style) to find the values I needed.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2007/12/26/DSCN0981.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2007/12/26/DSCN0981_mid.jpg" alt="LED puck I/O prototype, copper side" /></a></p>
<p>I placed all the LEDs with their cathodes facing clockwise (as viewed from the top) for simplicity &#8212; so I wouldn&#8217;t have to think about which way each one goes.  Although parts of the puck are obviously asymmetric, I prefer to think of the puck as a whole having at least rotational symmetry, and I wanted the LED orientation to reflect that as well.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2007/12/26/DSCN0979.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2007/12/26/DSCN0979_mid.jpg" alt="LED puck I/O prototype, LED side" /></a></p>
<p>The jumper wires are a bit scabby, particularly the one running halfway across the board at an odd angle; but again, they&#8217;re at least partly due to routing challenges with not yet having the microcontroller on board, as I mentioned earlier.</p>
<p>I should stop to add that laying out an SMT board is really refreshing, in that you can fill both sides of the board with components and traces, and not worry about through-holes impacting the routing on the other side of the board.  As long as you don&#8217;t need to hop to the other side and back to cross one trace over another, each side can be <em>completely</em> independent of the other.</p>
<p>That&#8217;s not illustrated well by my single-sided SMT board; but I mention it because I&#8217;m really looking forward to laying out the microcontroller (probably on the top side) and cleaning up some of these traces and jumpers.</p>
<h3>Two Mistakes on the Accelerometer</h3>
<p>First: absent-mindedly running the resistor that sets the PWM output period to the self-test pin by mistake.  Second: soldering the accelerometer to the board 180&deg; from its proper orientation.</p>
<p>When I first powered up the board, I was most interested in testing the LED driver, since I had already tested the accelerometer on the breadboard.  The lights didn&#8217;t come up (I had forgotten to manipulate the output enable line in my program), but I also smelled hot electronics.  I fixed the program, the LEDs worked, the accelerometer didn&#8217;t, and I realized my mistake.</p>
<p>On the EAGLE PCB layout, I had a marking for the accelerometer orientation, of course.  But the marking was on the silkscreen layer, and I didn&#8217;t make a silkscreen layer when I etched the board at home.  Then because the components are on the bottom side, I got myself confused about which end of the accelerometer was which.</p>
<p><strong>Lesson: Copy IC orientation markings to the copper layer for homebrew boards.</strong></p>
<h3>Rework</h3>
<p>Last night I waved my soldering wand and cast a spell of <em>devious reparo</em> on the accelerometer chip; but apparently it backfired, because it ended up looking like <em>this</em>.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2007/12/26/DSCN0984.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2007/12/26/DSCN0984_mid.jpg" alt="Closeup of LCC and stacked SMT capacitors" /></a></p>
<p>I actually used solder wick to remove the errant PWM period resistor &#8212; it did a nice job of sucking up solder, heating both ends at the same time, and then scooting the resistor off its pads so it wouldn&#8217;t stick back down when the solder cooled.</p>
<p>I used solder wick to suck up all the solder I could from around the accelerometer; but I didn&#8217;t have a way to heat the whole thing at once, so I couldn&#8217;t scoot it away.  I need a hot-air pencil and looked at several DIY designs, but didn&#8217;t want to take the time out to build one.  There was little enough solder left, I was able to twist the chip off the board with a pair of pliers.</p>
<p>I lost a couple of pads in the process; but when I soldered it back down, one was NC and the other I was able to bridge with solder.  Then I needed to move one of the resistor traces from the left pin to the middle .&nbsp;.&nbsp;. and the easiest way to do it was to solder one end of the resistor directly to the chip.</p>
<p>Yes, I&#8217;ll fix it right in EAGLE for the next board.</p>
<p>BTW, notice the stacked SMT capacitors on the right.  I couldn&#8217;t find anything in the .1uF &#8211; .2uF range in my bag, so I paralleled a couple of 75nF.  Nasty!!! <img src='http://www.neufeld.newton.ks.us/electronics/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h3>Proto-Puck</h3>
<p>The upshot of all this, if I can finally get to the point, is that I have a working proto-puck.</p>
<p><a href="http://www2.neufeld.newton.ks.us/images/electronics/2007/12/26/DSCN0977.jpg"><img src="http://www2.neufeld.newton.ks.us/images/electronics/2007/12/26/DSCN0977_mid.jpg" alt="Arduino and puck" /></a></p>
<p>I have ribbon cables connecting it to the Arduino for power, LED output, and tilt input.  The LED driver works perfectly, and (miraculously) the accelerometer works now that I&#8217;ve reoriented it.  And that means I&#8217;ve been able to start writing code.</p>
<p>This isn&#8217;t much yet &#8212; it only detects whether the tilt is inner or outer, and which quadrant it&#8217;s in &#8212; but I think it gives a flavor of things to come.</p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/jhxqne9CrjY"></param><embed src="http://www.youtube.com/v/jhxqne9CrjY" type="application/x-shockwave-flash" width="425" height="350"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=204</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>LED Puck: Tilt Video</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=202</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=202#comments</comments>
		<pubDate>Fri, 21 Dec 2007 14:37:45 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[LED Puck]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=202</guid>
		<description><![CDATA[Many thanks to John Harrison for showing me how easy iMovie is to use. YouTube must by default pick the middle frame of the whole video for the thumbnail screen? I&#8217;ve updated it to use a different frame, but they say it can take six hours to take effect. Meanwhile, here&#8217;s a great video apparently [...]]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/WgChjPJBimM"></param> <embed src="http://www.youtube.com/v/WgChjPJBimM" type="application/x-shockwave-flash" width="425" height="350"></embed></object></p>
<p>Many thanks to <a href="http://cratel.wichita.edu/cratel/JohnHarrison">John Harrison</a> for showing me how easy iMovie is to use.</p>
<p>YouTube must by default pick the middle frame of the whole video for the thumbnail screen?  I&#8217;ve updated it to use a different frame, but they say it can take six hours to take effect.  Meanwhile, here&#8217;s a great video apparently about hysteresis!</p>
<p><em>YouTube has synced my change for which frame gets used for the video still, so the joke about the hysteresis video doesn&#8217;t work any more.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=202</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LED Puck: Need an Inexpensive Accelerometer</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=201</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=201#comments</comments>
		<pubDate>Wed, 19 Dec 2007 13:50:52 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[LED Puck]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=201</guid>
		<description><![CDATA[I thought I&#8217;d seen an accelerometer chip recently that retailed for $3-5, but the cheapest I can find on Digi-Key is $7-9. I&#8217;m really worried about the puck price climbing out of control. Anyone know of cheap accelerometers?]]></description>
			<content:encoded><![CDATA[<p>I thought I&#8217;d seen an accelerometer chip recently that retailed for $3-5, but the cheapest I can find on Digi-Key is $7-9.  I&#8217;m really worried about the puck price climbing out of control.  Anyone know of cheap accelerometers?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=201</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>LED Puck: Concept Drawing</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=200</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=200#comments</comments>
		<pubDate>Wed, 19 Dec 2007 02:14:21 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[LED Puck]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=200</guid>
		<description><![CDATA[Hm. (Click above for unsquished version. Well, unsquished graphic. The design is still too squished.)]]></description>
			<content:encoded><![CDATA[<p><a href="http://www2.neufeld.newton.ks.us/files/electronics/led-puck/concept-drawing.png"><img src="http://www2.neufeld.newton.ks.us/files/electronics/led-puck/concept-drawing.png" alt="LED puck concept drawing" /></a></p>
<p>Hm.</p>
<p>(Click above for unsquished version.  Well, unsquished graphic.  The design is still too squished.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=200</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LED Puck: Parts List Draft</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=199</link>
		<comments>http://www.neufeld.newton.ks.us/electronics/?p=199#comments</comments>
		<pubDate>Mon, 17 Dec 2007 13:50:46 +0000</pubDate>
		<dc:creator>Keith Neufeld</dc:creator>
				<category><![CDATA[LED Puck]]></category>

		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=199</guid>
		<description><![CDATA[If I don&#8217;t make a list of everything I need to get, I&#8217;ll end up waiting on a parts order before I can finish a prototype, or worse, leaving something off the design entirely. ICs: Atmel Atmega8 or Atmega168 for Arduino/Freeduino USB interface chip? maybe only if USB is going to be externally accessible; could [...]]]></description>
			<content:encoded><![CDATA[<p>If I don&#8217;t make a list of everything I need to get, I&#8217;ll end up waiting on a parts order before I can finish a prototype, or worse, leaving something off the design entirely.</p>
<p>ICs:</p>
<ul>
<li>Atmel Atmega8 or Atmega168 for Arduino/Freeduino</li>
<li>USB interface chip?<br />
<em>maybe only if USB is going to be externally accessible; could use <a href="http://www.adafruit.com/index.php?main_page=product_info&#038;cPath=19&#038;products_id=70">LadyAda&#8217;s FTDI USB cable</a> if willing to get inside to reprogram</em></li>
<li>voltage boost / regulator</li>
<li>battery charging controller<br />
<em>maybe <a href="http://www.national.com/mpf/LM/LM3622.html">LM3622</a> used in the <a href="http://www.ladyada.net/make/wavebubble/hardware.html">WaveBubble</a></em></li>
<li>Allegro <a href="http://www.allegromicro.com/en/Products/Part_Numbers/6276/">A6276</a> 16-bit LED driver</li>
<li>digital resistor for LED current reference and dimming?<br />
<em>or could PWM A6276&#8242;s enable line &#8212; I probably like the PWM idea better</em></li>
<li>accelerometer / tilt sensor<br />
<em>sample the cheapest one I can find and make sure it&#8217;ll work &#8212; probably a thermal</em></li>
<li>Dallas RTC</li>
<li>temperature-compensated crystal oscillator for RTC</li>
<li>*PROM for fonts for POV mode?</li>
<li>EEPROM for saving configs and POV text?</li>
<li><a href="http://www.allelectronics.com/cgi-bin/item/LM34DZ">LM34 Fahrenheit temperature sensor</a>?</li>
</ul>
<p>Other:</p>
<ul>
<li>ultrabright 5mm LEDs with > 30&deg; viewing angle (15&deg; half-angle) and prefer > 10,000 mcd</li>
<li>very slim high-energy-density battery<br />
<em>16 LEDs * 25mA/LED = 400mA, so well over 400mAh for an hour of runtime at full brightness</em></li>
<li>coin cell and holder for RTC chip and oscillator</li>
<li>watertight mini-USB connector for tethered charging and reprogramming???</li>
<li>photoresistor or LED for light detection (maybe several around the edge?)</li>
</ul>
<p>I&#8217;ve kind of dropped connectors for remote wired control, and wireless for a keyfob control.  How much do those matter?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=199</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
