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

<channel>
	<title>ABieneman&#039;s Blog</title>
	<atom:link href="http://abieneman.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://abieneman.wordpress.com</link>
	<description>yet another personal blog</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:05:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='abieneman.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>ABieneman&#039;s Blog</title>
		<link>http://abieneman.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://abieneman.wordpress.com/osd.xml" title="ABieneman&#039;s Blog" />
	<atom:link rel='hub' href='http://abieneman.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Dead HVAC fan repair</title>
		<link>http://abieneman.wordpress.com/2011/09/02/dead-hvac-fan-repair/</link>
		<comments>http://abieneman.wordpress.com/2011/09/02/dead-hvac-fan-repair/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 05:15:20 +0000</pubDate>
		<dc:creator>abieneman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[Furnace]]></category>
		<category><![CDATA[GE Motor]]></category>
		<category><![CDATA[Inrush Current Limiter]]></category>
		<category><![CDATA[Power Supply]]></category>
		<category><![CDATA[Repair]]></category>
		<category><![CDATA[SG348]]></category>

		<guid isPermaLink="false">http://abieneman.wordpress.com/?p=317</guid>
		<description><![CDATA[Couple of weeks ago, upon returning home from a short trip we found our house much too warm and after quick inspection found that central AC was not working. First suspecting blown fuse i went downstairs hoping for a quick resolution. Alas that was not the case. Furnace (serving as the blower) had power and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=317&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Couple of weeks ago, upon returning home from a short trip we found our house much too warm and after quick inspection found that central AC was not working. First suspecting blown fuse i went downstairs hoping for a quick resolution. Alas that was not the case. Furnace (serving as the blower) had power and AC was working as i could hear fan outside as well as the coolant running through the pipes.</p>
<p>After opening up the furnace i found a board with blinking lights repeating pattern 3 green 1 orange and infrequently changing to 3 green 3 orange. These codes translated to blower motor not running at the right speed or not running at all. Starting a search for the solution on the net I&#8217;ve stumbled on <a href="http://www.doityourself.com/forum/air-conditioning-cooling-systems/270140-ge-ecm-programmable-motor.html">this long thread</a> which suggested that this might be due to a failed thermistor and that repair could be as simple as replacing it. Taking the power supply off the motor i was happy to find a charred and broken apart thermistor.</p>
<p>The part number was SG348 and after further research i found that this was a <a href="http://en.wikipedia.org/wiki/Inrush_current_limiter">Inrush Current Limiter</a> &#8211; a thermistor with negative temperature coefficient (NTC) which means that it&#8217;s resistance decreases as it gets hotter.  The primary purpose of it is to limit starting current in motors and transformers. This particular ICL thermistor has a resistance of 1 Ohm when it&#8217;s cold and can sustain 20 Watt of power. It was made by RTI Electronics under the brand name of <a href="http://www.rti-corp.com/Electronics/surggard.htm">SURGE-GARD </a>and was often used in GE motors. The SG348 is not longer in production, but <a href="http://www.rti-corp.com/Electronics/sgspec.htm">SG100/SG301 </a>can be used instead. In fact any NTC thermistor with room temperature resistance of 1Ohm and 20A maximum current (or 1Ohm*20A=20Watt maximum power). In fact  DigiKey had 3 parts satisfying that requirement with <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&amp;name=570-1041-ND">570-1041-ND</a> being the cheapest at $1.77</p>
<p>Finding the replacement part was easy &#8211; finding it locally proved impossible. So after calling all of the local electronics stores I had no choice but to order from DigiKey and wait for the part to arrive. In the mean while i started looking for a work-around. Some people on the forum suggested short-circuiting contacts where thermistor was but i found it too risky. I decided to place a fixed resistor in place, however finding one that would not melt down at 20A was also not easy. Luckily, a local Radio Shack still had some memories of it&#8217;s former glory and carried <a href="http://www.radioshack.com/product/index.jsp?productId=2062290">1 Ohm 10W resistors</a>. Putting them in parallel to distribute the load i had a temporary work around:</p>
<p>&nbsp;</p>
<div id="attachment_318" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/09/img_0536.jpg"><img class="size-full wp-image-318" title="Workaround using Radio Shack's 1Ohm 10W power resistor" src="http://abieneman.files.wordpress.com/2011/09/img_0536.jpg?w=450&#038;h=359" alt="" width="450" height="359" /></a><p class="wp-caption-text">Workaround using Radio Shack&#039;s 1Ohm 10W power resistor</p></div>
<p>&nbsp;</p>
<p>This solution was a better alternative to the short-circuit however it reduced the efficiency of the fan essentially by wasting energy in the resistor all the time rather than only during startup as in case of a ICL thermistor. The picture above is after fan has been working for a week or so and you can see those resistors heated up quite considerably and even melted down part of a rectifier nearby. There was also a discoloration on the end of one of the resistors.  so i can certainly can&#8217;t call it a perfect solution but it worked for me.</p>
<p>Here&#8217;s how the power supply looked like with the replacement parts in place:</p>
<div id="attachment_319" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/09/img_0541.jpg"><img class="size-full wp-image-319" title="Replacement Inrush Current Limiting Thermistor in place" src="http://abieneman.files.wordpress.com/2011/09/img_0541.jpg?w=450&#038;h=360" alt="" width="450" height="360" /></a><p class="wp-caption-text">Replacement Inrush Current Limiting Thermistor in place</p></div>
<p>&nbsp;</p>
<p>At the end, the most impressive part for me was the power internet allowing free peer to peer sharing of knowledge. I was pleasantly surprised how easy it was to find this knowledge on the net and how valuable it was &#8211; was I call a HVAC technician it would cost me several hundred dollars in replacement power supply or even entire motor.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abieneman.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abieneman.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abieneman.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abieneman.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abieneman.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abieneman.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abieneman.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abieneman.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abieneman.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abieneman.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abieneman.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abieneman.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abieneman.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abieneman.wordpress.com/317/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=317&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abieneman.wordpress.com/2011/09/02/dead-hvac-fan-repair/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2997c30d7a2252476993eb76f1d75ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abieneman</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/09/img_0536.jpg" medium="image">
			<media:title type="html">Workaround using Radio Shack&#039;s 1Ohm 10W power resistor</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/09/img_0541.jpg" medium="image">
			<media:title type="html">Replacement Inrush Current Limiting Thermistor in place</media:title>
		</media:content>
	</item>
		<item>
		<title>My try at knife making</title>
		<link>http://abieneman.wordpress.com/2011/08/13/my-try-at-knife-making/</link>
		<comments>http://abieneman.wordpress.com/2011/08/13/my-try-at-knife-making/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 18:14:33 +0000</pubDate>
		<dc:creator>abieneman</dc:creator>
				<category><![CDATA[Knife making]]></category>
		<category><![CDATA[jatoba]]></category>
		<category><![CDATA[knife making]]></category>
		<category><![CDATA[o1]]></category>
		<category><![CDATA[pairing knife]]></category>
		<category><![CDATA[patina]]></category>
		<category><![CDATA[rust]]></category>

		<guid isPermaLink="false">http://abieneman.wordpress.com/?p=291</guid>
		<description><![CDATA[One winter evening, I had a discussion with my dad dealing with hunting and woodworking knives and the steels that make them. As a result of that discussion, I realized that my knowledge of metallurgy doesn&#8217;t go beyond &#8220;smelt iron with carbon and you get steel&#8221;. I decided to look into understanding different steels and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=291&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One winter evening, I had a discussion with my dad dealing with hunting and woodworking knives and the steels that make them. As a result of that discussion, I realized that my knowledge of metallurgy doesn&#8217;t go beyond &#8220;smelt iron with carbon and you get steel&#8221;. I decided to look into understanding different steels and what makes one better than other, which lead to steel composition, which led to heat treatment process, which led to a variety of topics, such as; blacksmithing, knife grinding, heat furnaces, oxidation protection, Japanese blades, sanding/grinding machines, edge geometry, sharpening, etching, and so on. While this was a fascinating intellectual trip, it also made me want to get my hands dirty and actually make something.</p>
<p>I decided to start small and make a couple of pairing knives using stock removal method:</p>
<div id="attachment_292" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0260.jpg"><img class="size-full wp-image-292" title="#1 Front" src="http://abieneman.files.wordpress.com/2011/08/img_0260.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">#1 Front</p></div>
<div id="attachment_295" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0280.jpg"><img class="size-full wp-image-295" title="#1 Back" src="http://abieneman.files.wordpress.com/2011/08/img_0280.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">#1 Back</p></div>
<p><span id="more-291"></span></p>
<p>I designed the shape of the blade using Photoshop&#8217;s vector graphics with an aesthetic goal in mind and hoping that it would be somewhat functional as well. The shape is all curves with no straight lines. Although I am pleased with the how knives look, it would benefit from a narrower blade for everyday practical use.</p>
<div id="attachment_299" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0296.jpg"><img class="size-full wp-image-299" title="#2 Front" src="http://abieneman.files.wordpress.com/2011/08/img_0296.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">#2 Front</p></div>
<p>For the steel I used O1 1/16&#8243; thick stock which I then heat treated to 60 HRC using electric kiln for austenitizing and kitchen oven for tempering. I don&#8217;t have hardness testing equipment so I can vouch for 60 HRC (at least that&#8217;s what I should have theoretically). Blades have been mirror polished using black and white rouge. As you can see below I still have to master my sanding techniques &#8211; there are a lot of deep scratches that polishing does not hide. I&#8217;ve etched both blades using electrolysis using nail polish lacquer for ground. Again, a lot of mistakes made and a lot learned from those mistakes. Nail polish lays down thick but chips when scratched producing jagged edges. Electrolysis is fast in removing metal but does not produce an even etch.</p>
<div id="attachment_293" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0262.jpg"><img class="size-full wp-image-293" title="#1 Blade" src="http://abieneman.files.wordpress.com/2011/08/img_0262.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">#1 Blade</p></div>
<div id="attachment_296" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0283.jpg"><img class="size-full wp-image-296" title="#1 Blade" src="http://abieneman.files.wordpress.com/2011/08/img_0283.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">#1 Blade</p></div>
<div id="attachment_298" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0289.jpg"><img class="size-full wp-image-298" title="#2 Blade" src="http://abieneman.files.wordpress.com/2011/08/img_0289.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">#2 Blade</p></div>
<div id="attachment_301" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0307.jpg"><img class="size-full wp-image-301" title="#2 Blade" src="http://abieneman.files.wordpress.com/2011/08/img_0307.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">#2 Blade</p></div>
<p>Guard is made out of brass and again i avoided straight lines which made the job of fitting it with the handle so much harder.</p>
<p>Handle is made out of Jatoba or Brazilian Cherry which i sawed out of left over parquet planks. Jatoba is one of the hardest woods in the world and makes for a heavy handle. I sealed it with Tung oil and wax. Another lesson learned &#8211; tape the wood completely before polishing to prevent black polish and metal particles from getting into the wood pores.</p>
<div id="attachment_294" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0269.jpg"><img class="size-full wp-image-294" title="#1 Handle" src="http://abieneman.files.wordpress.com/2011/08/img_0269.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">#1 Handle</p></div>
<div id="attachment_297" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0285.jpg"><img class="size-full wp-image-297" title="#1 Handle" src="http://abieneman.files.wordpress.com/2011/08/img_0285.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">#1 Handle</p></div>
<div id="attachment_300" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0303.jpg"><img class="size-full wp-image-300" title="#2 Handle" src="http://abieneman.files.wordpress.com/2011/08/img_0303.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">#2 Handle</p></div>
<p>My choice of O1 was dictated mostly by availability and price and although i was aware that it easily rusts i was planning on taking a good care of it and not letting it be rust. Well, after couple of months of use here are results:</p>
<div id="attachment_302" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0509.jpg"><img class="size-full wp-image-302" title="After months of use" src="http://abieneman.files.wordpress.com/2011/08/img_0509.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">After months of use</p></div>
<div id="attachment_303" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0513.jpg"><img class="size-full wp-image-303" title="Rusted Closeup" src="http://abieneman.files.wordpress.com/2011/08/img_0513.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">Rusted Closeup</p></div>
<div id="attachment_304" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0518.jpg"><img class="size-full wp-image-304" title="Rusted Closeup" src="http://abieneman.files.wordpress.com/2011/08/img_0518.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">Rusted Closeup</p></div>
<p>The blue-gray-yellow background is patina expected from regular use and even valued by some knife-enthusiasts. This patina appeared almost immediately. The rusted blotches however are the result of leaving the blade with some water on it for couple of hours. The patina and rust does not reduce cutting qualities of the knife as long as rust is not on the cutting edge. However pits caused by rust will invite more rust and a place for bacteria to hide. Hindsight, the non-stainless steel is not a good choice for the pairing knife since it is used frequently and for short-duration jobs, so wiping it off after every use can quickly become tiring. However after 10 minutes on the polishing wheel, the knife can be restored back to it&#8217;s former glory (almost):</p>
<div id="attachment_305" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0524.jpg"><img class="size-full wp-image-305" title="After Polishing" src="http://abieneman.files.wordpress.com/2011/08/img_0524.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">After Polishing</p></div>
<div id="attachment_306" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/08/img_0528.jpg"><img class="size-full wp-image-306" title="After Polishing" src="http://abieneman.files.wordpress.com/2011/08/img_0528.jpg?w=450&#038;h=300" alt="" width="450" height="300" /></a><p class="wp-caption-text">After Polishing</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abieneman.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abieneman.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abieneman.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abieneman.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abieneman.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abieneman.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abieneman.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abieneman.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abieneman.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abieneman.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abieneman.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abieneman.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abieneman.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abieneman.wordpress.com/291/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=291&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abieneman.wordpress.com/2011/08/13/my-try-at-knife-making/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2997c30d7a2252476993eb76f1d75ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abieneman</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0260.jpg" medium="image">
			<media:title type="html">#1 Front</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0280.jpg" medium="image">
			<media:title type="html">#1 Back</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0296.jpg" medium="image">
			<media:title type="html">#2 Front</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0262.jpg" medium="image">
			<media:title type="html">#1 Blade</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0283.jpg" medium="image">
			<media:title type="html">#1 Blade</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0289.jpg" medium="image">
			<media:title type="html">#2 Blade</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0307.jpg" medium="image">
			<media:title type="html">#2 Blade</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0269.jpg" medium="image">
			<media:title type="html">#1 Handle</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0285.jpg" medium="image">
			<media:title type="html">#1 Handle</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0303.jpg" medium="image">
			<media:title type="html">#2 Handle</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0509.jpg" medium="image">
			<media:title type="html">After months of use</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0513.jpg" medium="image">
			<media:title type="html">Rusted Closeup</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0518.jpg" medium="image">
			<media:title type="html">Rusted Closeup</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0524.jpg" medium="image">
			<media:title type="html">After Polishing</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/08/img_0528.jpg" medium="image">
			<media:title type="html">After Polishing</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple Wheel Balancing Jig</title>
		<link>http://abieneman.wordpress.com/2011/06/13/simple-wheel-balancing-jig/</link>
		<comments>http://abieneman.wordpress.com/2011/06/13/simple-wheel-balancing-jig/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 17:46:00 +0000</pubDate>
		<dc:creator>abieneman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[band saw]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[jig]]></category>
		<category><![CDATA[wheel balancing]]></category>

		<guid isPermaLink="false">http://abieneman.wordpress.com/?p=281</guid>
		<description><![CDATA[I was recently changing tires on my band saw and needed to balance the wheels. I have heard of the method where you spin the wheel and whichever side ends up down the most time is the heaviest, but i wanted a little more precision. After several failed attempts to use a spinning-top kind of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=281&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was recently changing tires on my band saw and needed to balance the wheels. I have heard of the method where you spin the wheel and whichever side ends up down the most time is the heaviest, but i wanted a little more precision. After several failed attempts to use a spinning-top kind of a device i came up with (and i don&#8217;t claim originality) with following simple device:<br />
<div id="attachment_282" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/06/img_0404.jpg"><img src="http://abieneman.files.wordpress.com/2011/06/img_0404.jpg?w=450&#038;h=675" alt="" title="Wheel Balancing Jig" width="450" height="675" class="size-full wp-image-282" /></a><p class="wp-caption-text">Wheel Balancing Jig</p></div><br />
<span id="more-281"></span><br />
The idea is let the wheel balance around the point that is on center axis few inches of the plane of the wheel. if the wheel is balanced, it will hang level, if it is not it will lean to the side that is the heaviest. The greater the angle, the more off-center it is. The sensitivity of the device depends on how high off the plane the fixed point. The farther it is the less sensitive it is. </p>
<p>Here&#8217;s the jig itself:</p>
<div id="attachment_285" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/06/img_0412.jpg"><img src="http://abieneman.files.wordpress.com/2011/06/img_0412.jpg?w=450&#038;h=300" alt="" title="Balancing Jig" width="450" height="300" class="size-full wp-image-285" /></a><p class="wp-caption-text">Balancing Jig</p></div>
<div id="attachment_284" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/06/img_0411.jpg"><img src="http://abieneman.files.wordpress.com/2011/06/img_0411.jpg?w=450&#038;h=300" alt="" title="Balancing Jig" width="450" height="300" class="size-full wp-image-284" /></a><p class="wp-caption-text">Balancing Jig</p></div>
<p>And here is how it fits the wheel:</p>
<p><a href="http://abieneman.files.wordpress.com/2011/06/img_0407.jpg"><img src="http://abieneman.files.wordpress.com/2011/06/img_0407.jpg?w=450&#038;h=300" alt="" title="img_0407" width="450" height="300" class="alignnone size-full wp-image-283" /></a></p>
<p>To manufacture it, first drill a piece of wood and then turn it on a lathe to the inner diameter of the wheel. Drilling it first ensures that the hole that thread emerges from is exactly in the center of the wheel.  Here are before and after photos. I managed to balance one wheel (not shown) to be pretty much horizontal, however with the second wheel (shown) the jig did not extrude far enough out of the wheel which made it overly sensitive, so i could not make it exactly horizontal.</p>
<div id="attachment_286" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/06/img_0413.jpg"><img src="http://abieneman.files.wordpress.com/2011/06/img_0413.jpg?w=450&#038;h=300" alt="" title="Before Balancing" width="450" height="300" class="size-full wp-image-286" /></a><p class="wp-caption-text">Before Balancing</p></div>
<div id="attachment_288" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2011/06/img_0417.jpg"><img src="http://abieneman.files.wordpress.com/2011/06/img_0417.jpg?w=450&#038;h=300" alt="" title="After Balancing" width="450" height="300" class="size-full wp-image-288" /></a><p class="wp-caption-text">After Balancing</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abieneman.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abieneman.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abieneman.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abieneman.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abieneman.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abieneman.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abieneman.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abieneman.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abieneman.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abieneman.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abieneman.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abieneman.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abieneman.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abieneman.wordpress.com/281/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=281&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abieneman.wordpress.com/2011/06/13/simple-wheel-balancing-jig/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2997c30d7a2252476993eb76f1d75ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abieneman</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/06/img_0404.jpg" medium="image">
			<media:title type="html">Wheel Balancing Jig</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/06/img_0412.jpg" medium="image">
			<media:title type="html">Balancing Jig</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/06/img_0411.jpg" medium="image">
			<media:title type="html">Balancing Jig</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/06/img_0407.jpg" medium="image">
			<media:title type="html">img_0407</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/06/img_0413.jpg" medium="image">
			<media:title type="html">Before Balancing</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/06/img_0417.jpg" medium="image">
			<media:title type="html">After Balancing</media:title>
		</media:content>
	</item>
		<item>
		<title>Re: My take on your Mak Board</title>
		<link>http://abieneman.wordpress.com/2011/03/09/re-my-take-on-your-mak-board/</link>
		<comments>http://abieneman.wordpress.com/2011/03/09/re-my-take-on-your-mak-board/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 14:24:43 +0000</pubDate>
		<dc:creator>abieneman</dc:creator>
				<category><![CDATA[makiwara]]></category>

		<guid isPermaLink="false">http://abieneman.wordpress.com/?p=264</guid>
		<description><![CDATA[From: Brian Dubberley, brian@inventive-solutions.ca Hey Aleksey, See attached photos. I recently built &#38; installed your makiwara assembly in our aikido dojo to help us learn to punch more authentically. Since I had to anchor it to a cement block wall, I decided that using screws to anchor the boards might not be strong enough. Instead [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=264&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>From:</strong> Brian Dubberley, <a href="mailto:brian@inventive-solutions.ca">brian@inventive-solutions.ca</a></p>
<p>Hey Aleksey,</p>
<p>See attached photos. </p>
<p>I recently built &amp; installed your makiwara assembly in our aikido dojo to help us learn to punch more authentically. Since I had to anchor it to a cement block wall, I decided that using screws to anchor the boards might not be strong enough. Instead I used stove bolts which you can see in the photo where I removed the cover plate. Basically, the wall board is screwed into the masonry anchors (#12 x 2.5&#8243; screws) after first inserting the stove bolts so they face outwards. BTW, drilling masonry requires patience and knowledge that if you hit something stronger than the bit, just drill another hole. Then each spacer board and the striking board assembly are jiggled onto the bolts which are then tightened with the nuts and thereby secure all boards as one unit. The cover plate just protects the users legs from the ends of the bolts and it looks nicer. </p>
<p>I also DS taped an old Microsoft mouse pad and then stapled some scrap leather to the top of the striking board instead of the traditional sisal. So far, sensei skinned his knuckles on the leather already, and I loaned him my daddy&#8217;s old bag gloves, but my hands are tougher than his and the leather seems just right as long as I strike properly. </p>
<p>I built your project because our sensei commented that it would be cool to have, but also because I want to build your accelerometer to get me back into electronics. Thanks for taking the time to document this project. Yes, you may post the pix and these comments.</p>
<p>Cheers,</p>
<p>Brian Dubberley  </p>
<p><a href="http://abieneman.files.wordpress.com/2011/03/dsc00988-e1299679449921.jpg"><img src="http://abieneman.files.wordpress.com/2011/03/dsc00988-e1299679449921.jpg?w=450&#038;h=600" alt="" title="Brian Dubberley, photo 2" width="450" height="600" class="alignnone size-full wp-image-266" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2011/03/dsc00987-e1299679461152.jpg"><img src="http://abieneman.files.wordpress.com/2011/03/dsc00987-e1299679461152.jpg?w=450&#038;h=600" alt="" title="Brian Dubberley, photo 1" width="450" height="600" class="alignnone size-full wp-image-265" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abieneman.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abieneman.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abieneman.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abieneman.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abieneman.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abieneman.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abieneman.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abieneman.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abieneman.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abieneman.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abieneman.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abieneman.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abieneman.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abieneman.wordpress.com/264/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=264&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abieneman.wordpress.com/2011/03/09/re-my-take-on-your-mak-board/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2997c30d7a2252476993eb76f1d75ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abieneman</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/03/dsc00988-e1299679449921.jpg" medium="image">
			<media:title type="html">Brian Dubberley, photo 2</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2011/03/dsc00987-e1299679461152.jpg" medium="image">
			<media:title type="html">Brian Dubberley, photo 1</media:title>
		</media:content>
	</item>
		<item>
		<title>MSP430 USB Stick Development Tool (EZ430-F2013) &#8211; JTag breakout cable</title>
		<link>http://abieneman.wordpress.com/2010/09/26/msp430-usb-stick-development-tool-ez430-f2013-jtag-breakout-cable/</link>
		<comments>http://abieneman.wordpress.com/2010/09/26/msp430-usb-stick-development-tool-ez430-f2013-jtag-breakout-cable/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 16:23:39 +0000</pubDate>
		<dc:creator>abieneman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[breakout]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[EZ430-F2013]]></category>
		<category><![CDATA[JTag]]></category>
		<category><![CDATA[MSP430]]></category>
		<category><![CDATA[SpyByWire]]></category>

		<guid isPermaLink="false">http://abieneman.wordpress.com/?p=251</guid>
		<description><![CDATA[An extension cable that connects to the EZ430-F2013 USB dongle on one end and has a breakout pins on the other end. The breakout pins can be connected to the JTag/SpyByWire supporting microcontroller.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=251&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For my next project i decided to try TI low power microcontrollers and for that purpose acquired a $20 development tool: EZ430-F2013 (<a href="http://focus.ti.com/lit/ug/slau176d/slau176d.pdf">doc</a>, <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&amp;name=296-20630-ND">digikey</a>):</p>
<div id="attachment_252" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/09/ez430-f2013.jpg"><img src="http://abieneman.files.wordpress.com/2010/09/ez430-f2013.jpg?w=450&#038;h=256" alt="" title="eZ430-F2013" width="450" height="256" class="size-full wp-image-252" /></a><p class="wp-caption-text">eZ430-F2013 development tool</p></div>
<p><span id="more-251"></span></p>
<p>It consists of a USB dongle and a replaceable breakout board with MSP430F2013 processor on it. The dongle allows programming and debugging (which is super cool coming from arduino world). The are interfacing through the 4 wire JTag/SpyByWire. The purpose of this setup is to familiarize developer with the processor family and development environment and perhaps move them to more expensive programmers and tools. What you can also do is to solder a board header on the processor part of it and connect to other peripherals:</p>
<div id="attachment_253" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/09/img_9889_small.jpg"><img src="http://abieneman.files.wordpress.com/2010/09/img_9889_small.jpg?w=450&#038;h=442" alt="" title="IMG_9889_small" width="450" height="442" class="size-full wp-image-253" /></a><p class="wp-caption-text">Target board for EZ430-F2013 with header soldered</p></div>
<p>This all is fine and dandy, however i soon hit it&#8217;s physical limitations: my prototype breadboard needed to be very close to dongle and i could not use it to program a stand alone processor. Although the first problem could be solved by USB extension cord, the second one needed a more involved solution:</p>
<div id="attachment_254" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/09/img_9889.jpg"><img src="http://abieneman.files.wordpress.com/2010/09/img_9889.jpg?w=450&#038;h=333" alt="" title="EZ430-F2013 JTag breakout cable" width="450" height="333" class="size-full wp-image-254" /></a><p class="wp-caption-text">EZ430-F2013 JTag breakout cable</p></div>
<div id="attachment_255" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/09/img_9890_.jpg"><img src="http://abieneman.files.wordpress.com/2010/09/img_9890_.jpg?w=450&#038;h=347" alt="" title="EZ430-F2013 JTag breakout cable - dongle" width="450" height="347" class="size-full wp-image-255" /></a><p class="wp-caption-text">EZ430-F2013 JTag breakout cable - dongle</p></div>
<p>This is essentially an extension cable that connects to the dongle on one end and has a breakout pins on the other end. The breakout pins can be connected to the microcontroller on the breadboard which can be some distance away from the dongle. Hopefully with this i can program any 4 wire JTag/SpyByWire based microprocessor and don&#8217;t have to shell out $99 for the <a href="http://focus.ti.com/docs/toolsw/folders/print/msp-fet430uif.html">MSP430 USB Debugging Interface</a>.</p>
<p><strong>Here&#8217;s the parts list:</strong></p>
<ul>
<li>Development tool: <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&amp;name=296-20630-ND">EZ430-F2013</a></li>
<li>0.05&#8243; Female 4 position connection header: <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?WT.z_header=search_go&amp;lang=en&amp;site=us&amp;keywords=S9008E-04-ND&amp;x=0&amp;y=0">LPPB041NFFN-RC</a></li>
<li>3/64&#8243; Heatshrink sleeve: <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?WT.z_header=search_go&amp;lang=en&amp;site=us&amp;keywords=A364B-4-ND&amp;x=0&amp;y=0">F221B3/64 BK100</a></li>
<li>4 conductor cable</li>
<li>Ferrite bead (optional for short cable, took mine mini-usb to usb cable)</li>
<li>Connection pin 22-26AWG: <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&amp;name=A34240-ND">5-104505-3</a></li>
<li>1/8&#8243; Heatshrink sleeve: <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?WT.z_header=search_go&amp;lang=en&amp;site=us&amp;keywords=Q2F3X018B-ND&amp;x=0&amp;y=0">Q2-F3X-1/8-01-QB48IN-25</a></li>
</ul>
<p><strong>Couple of warnings:</strong><br />
The 4 wire JTag/SpyByWire interface does not have any error correction in it and is not designed for distances of more than 1 foot, so keep your cable as short as possible. There are several tricks to make it work over longer distances, but to be sure just make it long enough to allow for breakout and then use USB extension cord for distance. I have managed to push it to about 3 feet but in retrospect it was probably not worth it. Anyway, to make it longer you can try (courtesy of <a href="http://ricreations.com/AppNote003.html">Ricreations, Inc</a>):</p>
<ul>
<li>Use twisted pair cable and twist TCK/Test wire with GND wire</li>
<li>If you can&#8217;t twist the whole cable at least twist them at the end (like i did)</li>
<li>Use a ferrite bead (like i did0</li>
<li>Put 220 Ohm resistors in serial with TCK and TDO lines</li>
</ul>
<p>Enjoy,</p>
<p>Aleksey</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abieneman.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abieneman.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abieneman.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abieneman.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abieneman.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abieneman.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abieneman.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abieneman.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abieneman.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abieneman.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abieneman.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abieneman.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abieneman.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abieneman.wordpress.com/251/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=251&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abieneman.wordpress.com/2010/09/26/msp430-usb-stick-development-tool-ez430-f2013-jtag-breakout-cable/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2997c30d7a2252476993eb76f1d75ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abieneman</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/09/ez430-f2013.jpg" medium="image">
			<media:title type="html">eZ430-F2013</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/09/img_9889_small.jpg" medium="image">
			<media:title type="html">IMG_9889_small</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/09/img_9889.jpg" medium="image">
			<media:title type="html">EZ430-F2013 JTag breakout cable</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/09/img_9890_.jpg" medium="image">
			<media:title type="html">EZ430-F2013 JTag breakout cable - dongle</media:title>
		</media:content>
	</item>
		<item>
		<title>HMC5843 (3-Axis Digital Compass) Breakout</title>
		<link>http://abieneman.wordpress.com/2010/09/26/hmc5843-3-axis-digital-compass-breakout/</link>
		<comments>http://abieneman.wordpress.com/2010/09/26/hmc5843-3-axis-digital-compass-breakout/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 15:23:14 +0000</pubDate>
		<dc:creator>abieneman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[compass]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[etching]]></category>
		<category><![CDATA[HMC5843]]></category>
		<category><![CDATA[soldering]]></category>

		<guid isPermaLink="false">http://abieneman.wordpress.com/?p=244</guid>
		<description><![CDATA[In my recent project i have been playing with the HMC5843 digital compass ic and not wanting to spend <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=9371">$50</a> for a <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&#38;name=342-1071-1-ND">$20 part</a> and also to challenge myself i've decided to build my own breakout board. Here's the end result and the <a href="http://www.divshare.com/download/12658869-bfc">PDF file you can download</a> if you want to do it yourself:

<a href="http://abieneman.files.wordpress.com/2010/09/img_9894.jpg"><img src="http://abieneman.files.wordpress.com/2010/09/img_9894.jpg" alt="" title="IMG_9894" width="450" height="343" class="alignnone size-full wp-image-245" /></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=244&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my recent project i have been playing with the HMC5843 digital compass ic and not wanting to spend <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=9371">$50</a> for a <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&amp;name=342-1071-1-ND">$20 part</a> and also to challenge myself i&#8217;ve decided to build my own breakout board. Here&#8217;s the end result and the <a href='http://abieneman.files.wordpress.com/2010/09/hmc5843-breakout.pdf'>HMC5843 Breakout etch positive</a> if you want to do it yourself:</p>
<p><a href="http://abieneman.files.wordpress.com/2010/09/img_9894.jpg"><img src="http://abieneman.files.wordpress.com/2010/09/img_9894.jpg?w=450&#038;h=343" alt="" title="IMG_9894" width="450" height="343" class="alignnone size-full wp-image-245" /></a></p>
<div id="attachment_247" class="wp-caption alignnone" style="width: 336px"><a href="http://abieneman.files.wordpress.com/2010/09/hmc5843-breakout.gif"><img src="http://abieneman.files.wordpress.com/2010/09/hmc5843-breakout.gif?w=450" alt="" title="HMC5843 Breakout"   class="size-full wp-image-247" /></a><p class="wp-caption-text">This image is saved at 300 dpi</p></div>
<p><span id="more-244"></span></p>
<p>Be forewarned, however, soldering this tiny thing is not easy as it comes in 20-PIN LPCC package only which has all of it&#8217;s contacts under the chip, however, pre-soldering board and using lots of liquid flux and letting the solder float under the chip should do the trick.</p>
<p><a href="http://abieneman.files.wordpress.com/2010/09/hmc5843-bottom.jpg"><img src="http://abieneman.files.wordpress.com/2010/09/hmc5843-bottom.jpg?w=450&#038;h=433" alt="" title="HMC5843 bottom" width="450" height="433" class="alignnone size-full wp-image-246" /></a></p>
<p>This project took some time, but the savings and most importantly DYI pride are well worth the effort.</p>
<p>Enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abieneman.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abieneman.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abieneman.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abieneman.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abieneman.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abieneman.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abieneman.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abieneman.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abieneman.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abieneman.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abieneman.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abieneman.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abieneman.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abieneman.wordpress.com/244/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=244&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abieneman.wordpress.com/2010/09/26/hmc5843-3-axis-digital-compass-breakout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2997c30d7a2252476993eb76f1d75ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abieneman</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/09/img_9894.jpg" medium="image">
			<media:title type="html">IMG_9894</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/09/hmc5843-breakout.gif" medium="image">
			<media:title type="html">HMC5843 Breakout</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/09/hmc5843-bottom.jpg" medium="image">
			<media:title type="html">HMC5843 bottom</media:title>
		</media:content>
	</item>
		<item>
		<title>Punch Acceleration Sensor &#8211; Follow Up</title>
		<link>http://abieneman.wordpress.com/2010/04/26/punch-acceleration-sensor-followup/</link>
		<comments>http://abieneman.wordpress.com/2010/04/26/punch-acceleration-sensor-followup/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 21:02:16 +0000</pubDate>
		<dc:creator>abieneman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AD7680]]></category>
		<category><![CDATA[ADXL193]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[martial arts]]></category>

		<guid isPermaLink="false">http://abieneman.wordpress.com/?p=211</guid>
		<description><![CDATA[Couple of questions came up as a result of my post and so after some additional measurements and thoughts, here&#8217;s the follow up: Noise I have measured the output of ADXL193 accelerometer with the Digital Storage Oscilloscope so here&#8217;s how it looks through time as read at the sensor location: As you can see there&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=211&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Couple of questions came up as a result of my post and so after some additional measurements and thoughts, here&#8217;s the follow up:</p>
<p><strong>Noise</strong></p>
<p>I have measured the output of ADXL193 accelerometer with the Digital Storage Oscilloscope  so here&#8217;s how it looks through time as read at the sensor location:</p>
<div id="attachment_212" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/adxl193-out-during-ad-conversion.gif"><img src="http://abieneman.files.wordpress.com/2010/04/adxl193-out-during-ad-conversion.gif?w=450&#038;h=330" alt="" title="ADXL193 output during AD conversion" width="450" height="330" class="size-full wp-image-212" /></a><p class="wp-caption-text">ADXL193 output during AD conversion</p></div>
<div id="attachment_213" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/ad-conversions-2.gif"><img src="http://abieneman.files.wordpress.com/2010/04/ad-conversions-2.gif?w=450&#038;h=330" alt="" title="AD conversion frequency" width="450" height="330" class="size-full wp-image-213" /></a><p class="wp-caption-text">AD conversion frequency</p></div>
<p><span id="more-211"></span></p>
<p>As you can see there&#8217;s a definite noise caused by the AD conversion which happens 44kSa/s, however this noise should have no effect on the readings as it happens after the AD7680 AD converter latches the input voltage level. Here it is again with Chip Select on the other channel and another wave showing SPI clock. As you can see interference starts way after CS goes down and is actually due to the SPI clock. You can also clearly see 3 transmissions 1 byte each in length:</p>
<div id="attachment_215" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/newfile5.gif"><img src="http://abieneman.files.wordpress.com/2010/04/newfile5.gif?w=450&#038;h=330" alt="" title="ADXL193 out and CS" width="450" height="330" class="size-full wp-image-215" /></a><p class="wp-caption-text">ADXL193 out and CS</p></div>
<div id="attachment_217" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/adxl193-out-and-spi-clock-2.gif"><img src="http://abieneman.files.wordpress.com/2010/04/adxl193-out-and-spi-clock-2.gif?w=450&#038;h=330" alt="" title="ADXL193 out and SPI clock" width="450" height="330" class="size-full wp-image-217" /></a><p class="wp-caption-text">ADXL193 out and SPI clock</p></div>
<p>I am not sure why scope captured CS going down twice, but the second one is the true reading. The spikes at times when CS goes down and up are not there when CS is not measured, so i believe it&#8217;s the scope&#8217;s impact. There&#8217;s definite additional noise at the start of 3rd transmission &#8211; it&#8217;s source, however, escapes me.</p>
<p>Below is the signal at the AD7680 AD converter input which is worse then at the sensor due to the long cord picking up more interference:</p>
<div id="attachment_222" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/newfile12-no-filter.gif"><img src="http://abieneman.files.wordpress.com/2010/04/newfile12-no-filter.gif?w=450&#038;h=330" alt="" title="AD converter input - no filtering" width="450" height="330" class="size-full wp-image-222" /></a><p class="wp-caption-text">AD converter input - no filtering</p></div>
<p>Collected data from results of AD conversion shows a range of 15-25 mV which matches the noise level of 14 mV peak to peak between spikes. If the SPI transmission spikes were getting into AD converter I would expect 40+ mV of noise which isn&#8217;t so.</p>
<p>So, after rejecting visible spikes as the source of the noise i started to look at the signal between spikes:</p>
<div id="attachment_223" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/newfile8-between-spikes-fft.gif"><img src="http://abieneman.files.wordpress.com/2010/04/newfile8-between-spikes-fft.gif?w=450&#038;h=330" alt="" title="Noise between spikes with FFT" width="450" height="330" class="size-full wp-image-223" /></a><p class="wp-caption-text">Noise between spikes with FFT</p></div>
<p>The frequency analysis with FFT (Fast Fourier Transform) shows predominate noise at 3 Mhz and also at 2 Mhz and 1 Mhz. After trying to find the source of this noise i discovered that it is inherent in any circuit including simple probe ground to probe tip loop. With help from the folks at <a href="http://www.eevblog.com/forum/index.php?topic=433.0">EEVBlog&#8217;s Forum</a> i figured out that this is due to the FM radio and that the solution is to use low pass filter to weed these frequencies out. Since i am sampling at 40 kSa/s, i can&#8217;t see anything above 40 Mhz, so there&#8217;s no harm in putting a 10-40kHz low pas filter. Here is result with such low-pass filter enabled in the scope:</p>
<div id="attachment_225" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/newfile9-filtered-2.gif"><img src="http://abieneman.files.wordpress.com/2010/04/newfile9-filtered-2.gif?w=450&#038;h=330" alt="" title="AD input with low-pass filter" width="450" height="330" class="size-full wp-image-225" /></a><p class="wp-caption-text">AD input with low-pass filter</p></div>
<p>The noise level is reduced to about 2.5 mV which is only 0.3 g. So the lessons learned here are a) beware of radio noise when measuring small signals and b) to avoid that noise do AD conversion very close to input source and put a low-pass filter. The AD193XL breakout that i got from SparkFund did have a 10nF decoupling capacitor but it is connected between VCC and GND filtering power supply rather than output.</p>
<p><strong>Acceleration vs Momentum</strong></p>
<p>After i asked if acceleration is the right measure to use a lot of people responded and suggested that although the Momentum (mass*velocity) is a better measure of energy transfer the peak acceleration is the good indicator of that.  Although i agree with that, i figure that the answer depends on the purpose of the punch.</p>
<p>If the goal of the punch is to <u>move</u> opponent then the greater momentum or energy your punch can transfer the faster opponent will move. Momentum is mass of the board * velocity of the board or in terms of acceleration mass * integral of acceleration. Energy is mass * velocity^2 / 2 so it&#8217;s also dependent on acceleration integral.</p>
<p>However, if the purpose of the punch is damage (or pain), then compression of soft tissues is your goal. Consider following model for human head:</p>
<div id="attachment_229" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/twomassspring.gif"><img src="http://abieneman.files.wordpress.com/2010/04/twomassspring.gif?w=450&#038;h=212" alt="" title="Two Mass &amp; Spring model of human head" width="450" height="212" class="size-full wp-image-229" /></a><p class="wp-caption-text">Two Mass &amp; Spring model of human head</p></div>
<p>If a punch force is small but nevertheless applies for very long time the whole head (both masses M and m) will end up moving very fast, however the spring will be compressed very small (F/K where K is spring coefficient) and once the punch force is removed there will be little vibration. Most of the punch energy will go into the kinetic energy of the total system movement rather than oscillation.</p>
<p>if however, the punch force is really large but acts during a very short period of time, the spring will compress significantly and once the force is removed most of the energy will be in the oscillation of tow masses rather then them moving in the same direction away from the punch. If the interaction time is instant then in fact all of the punch energy will be transferred into the movement of mass M which then will cause spring to compress the largest.</p>
<p>So it&#8217;s the maximum force we&#8217;re looking for which is proportional to board acceleration. It is interesting to note that the two hands having the same energy or momentum but different weights will produce different forces and therefore damage. I would expect the heavier hand moving slower will have greater interaction time and therefore smaller force compared to the smaller faster and more &#8220;force full&#8221; hand &#8211; Bruce Lee&#8217;s fans rejoice. This however is provided that both hands have the same energy or momentum, which is usually not the case when comparing lightweight and heavyweight fighters. Again, energy is proportional to force * distance the object moves under the force. Since distance is the same and heavyweight fighters have more muscle mass and therefore can produce greater force will end up with more kinetic energy to transfer to target. Which effect will win: slower speed vs larger energy is beyond me.</p>
<p>Will Robertson from University of Adelaide, Australia sent me an interesting research article comparing full reverse punch against short (3 inch) power punch: <a href="http://www.oregonpdf.org/pdf/PE%204867.pdf">A comparison of the reverse and power punches in oriental martial arts</a>. There&#8217;s a good discussion of force vs momentum starting on page 16.</p>
<p><strong>Long Capture</strong></p>
<p>I have also had a chance to capture a longer time sequence of readings using the scope, so here&#8217;s the chart covering most of the action:</p>
<div id="attachment_233" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/punch-very-long.gif"><img src="http://abieneman.files.wordpress.com/2010/04/punch-very-long.gif?w=450&#038;h=306" alt="" title="Acceleration, Speed and Position of Punch Target" width="450" height="306" class="size-full wp-image-233" /></a><p class="wp-caption-text">Acceleration, Speed and Position of Punch Target</p></div>
<p>Note: lines have different units and are not plotted to scale.</p>
<p>The plot shows the board acceleration, velocity and position until it reaches maximum deflection. I was surprise that the acceleration has such complex shape rather than simple hill. In my correspondence with Will Robertson, he also explained that after the initial contact with the hand the board can start moving faster than the hand and interrupt the contact. There&#8217;s the inverse relationship between the force of the strike and the interaction time &#8211; the harder you hit something, the faster it escapes your reach. I think this graph shows that effect in the first dip of the acceleration &#8211; board got away from the hand and started to slow down due to tension until the hand reached again and accelerated it even farther.  You can also see consecutive vibration where acceleration goes between a positive and negative values and speed fluctuates accordingly until the board comes to rest. I believe this is a different effect from the first two hills and is the vibration of board + completely extended hand as the hand is trying to keep they board flexed. On one of the even longer captures that i have made i could see the actual board release and another set of damping oscillations as the board comes to rest in it&#8217;s original position.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abieneman.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abieneman.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abieneman.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abieneman.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abieneman.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abieneman.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abieneman.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abieneman.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abieneman.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abieneman.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abieneman.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abieneman.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abieneman.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abieneman.wordpress.com/211/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=211&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abieneman.wordpress.com/2010/04/26/punch-acceleration-sensor-followup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2997c30d7a2252476993eb76f1d75ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abieneman</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/adxl193-out-during-ad-conversion.gif" medium="image">
			<media:title type="html">ADXL193 output during AD conversion</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/ad-conversions-2.gif" medium="image">
			<media:title type="html">AD conversion frequency</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/newfile5.gif" medium="image">
			<media:title type="html">ADXL193 out and CS</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/adxl193-out-and-spi-clock-2.gif" medium="image">
			<media:title type="html">ADXL193 out and SPI clock</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/newfile12-no-filter.gif" medium="image">
			<media:title type="html">AD converter input - no filtering</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/newfile8-between-spikes-fft.gif" medium="image">
			<media:title type="html">Noise between spikes with FFT</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/newfile9-filtered-2.gif" medium="image">
			<media:title type="html">AD input with low-pass filter</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/twomassspring.gif" medium="image">
			<media:title type="html">Two Mass &#38; Spring model of human head</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/punch-very-long.gif" medium="image">
			<media:title type="html">Acceleration, Speed and Position of Punch Target</media:title>
		</media:content>
	</item>
		<item>
		<title>Teardown: Swann Night Hawk Wireless Security Camera</title>
		<link>http://abieneman.wordpress.com/2010/04/20/swann_teardown/</link>
		<comments>http://abieneman.wordpress.com/2010/04/20/swann_teardown/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 05:14:38 +0000</pubDate>
		<dc:creator>abieneman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[security camera]]></category>
		<category><![CDATA[Swann]]></category>
		<category><![CDATA[Teardown]]></category>

		<guid isPermaLink="false">http://abieneman.wordpress.com/?p=177</guid>
		<description><![CDATA[I have recently acquired several broken Swann Night Hawk SW231-WOC wireless security cameras and figured i would document the tear down process and anything interesting i might find. My goal in this project was to satisfy my curiosity, try my hands at fixing them and perhaps even learn something in the process. Here&#8217;s how it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=177&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have recently acquired several broken <a href="http://www.swannsecurity.com/s/products/view/?product=353">Swann Night Hawk SW231-WOC wireless security cameras</a> and figured i would document the tear down process and anything interesting i might find. My goal in this project was to satisfy my curiosity, try my hands at fixing them and perhaps even learn something in the process. </p>
<p>Here&#8217;s how it starts:</p>
<div id="attachment_178" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/img_9755.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9755.jpg?w=450&#038;h=300" alt="" title="Swann Night Hawk Camera" width="450" height="300" class="size-full wp-image-178" /></a><p class="wp-caption-text">Swann Night Hawk Camera</p></div>
<p>And here is how it ends: </p>
<div id="attachment_195" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/img_9803.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9803.jpg?w=450&#038;h=300" alt="" title="Swann Night Hawk Camera - Teardown" width="450" height="300" class="size-full wp-image-195" /></a><p class="wp-caption-text">Swann Night Hawk Camera - Teardown</p></div>
<div id="attachment_193" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/img_9798.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9798.jpg?w=450&#038;h=300" alt="" title="Swann Night Hawk Camera - Teardown" width="450" height="300" class="size-full wp-image-193" /></a><p class="wp-caption-text">Swann Night Hawk Camera - Teardown</p></div>
<p><span id="more-177"></span></p>
<p><strong>Dissasembly</strong> is very easy &#8211; front of the camera unscrews by hand and the rest is all regular phillips screws:</p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9761.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9761.jpg?w=450&#038;h=300" alt="" title="IMG_9761" width="450" height="300" class="alignnone size-full wp-image-180" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9760.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9760.jpg?w=450&#038;h=300" alt="" title="IMG_9760" width="450" height="300" class="alignnone size-full wp-image-179" /></a></p>
<p><strong>The first board</strong> that you see when you unscrew the front of the camera is the LED board. There&#8217;s an o-ring (not visible on the photo) between the front and the back of the camera which provides protection against elements and it more or less does it job &#8211; inside of the camera case look clean and water free. Main elements on the LED board are the 12 infrared LEDs connected in series of 3; light sensitive resistor which turns LEDs on in low light conditions; and 2 position DIP switch marked &#8220;ON KHS22&#8243; which selects the transmission channel (1 through 4) .  The back side has a 3 pin device marked Y2, a 5 pin chip marked 3272 &#8211; probably an op-am, and a variable resistor to adjust sensitivity. Board is marked with AEE, V812IC10:</p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9765.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9765.jpg?w=450&#038;h=300" alt="" title="IMG_9765" width="450" height="300" class="alignnone size-full wp-image-182" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9766.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9766.jpg?w=450&#038;h=300" alt="" title="IMG_9766" width="450" height="300" class="alignnone size-full wp-image-183" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9767.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9767.jpg?w=450&#038;h=300" alt="" title="IMG_9767" width="450" height="300" class="alignnone size-full wp-image-184" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9769.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9769.jpg?w=450&#038;h=300" alt="" title="IMG_9769" width="450" height="300" class="alignnone size-full wp-image-185" /></a></p>
<p><strong>The second board</strong> is the image sensor and 8v to 5v conversion board. It is marked with V801CV28. Notable components include image sensor &#8211; no markings on top but based from Swann&#8217;s specifications is a 1/3&#8243; Color CMOS, 510 x 492, 380 lines sensor in a 48-CLCC package rated for 5 volts. Sensor is covered by the focusing cover which allows adjusting sensor to lens distance via rotation of the lens holder. On the back of the board there&#8217;s a 14.318 MHz (NTSC sampling frequency) crystal. Voltage conversion is done via 75L05 5v voltage regulator and a 10 uF, 5v capacitor. In the entire camera only LEDs are using supplied 8v from the power supply, rest of the components use 5v supply:</p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9776.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9776.jpg?w=450&#038;h=300" alt="" title="IMG_9776" width="450" height="300" class="alignnone size-full wp-image-186" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9777.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9777.jpg?w=450&#038;h=300" alt="" title="IMG_9777" width="450" height="300" class="alignnone size-full wp-image-187" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9778.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9778.jpg?w=450&#038;h=300" alt="" title="IMG_9778" width="450" height="300" class="alignnone size-full wp-image-188" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9779.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9779.jpg?w=450&#038;h=300" alt="" title="IMG_9779" width="450" height="300" class="alignnone size-full wp-image-189" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9805.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9805.jpg?w=450&#038;h=300" alt="" title="IMG_9805" width="450" height="300" class="alignnone size-full wp-image-196" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9808.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9808.jpg?w=450&#038;h=300" alt="" title="IMG_9808" width="450" height="300" class="alignnone size-full wp-image-197" /></a></p>
<p><strong>The third board</strong> is the RF board and is marked VT24A0X4 040315. This board is connected to video sensor board via yellow data wire, red (torn out on the photo) and black power supply wires. It is also connected to the channel selection switch on the LED board via white and yellow wire and to the Microphone board via the white data wire. Board contains following chips: &#8220;bj8p153snj ar03-a 0812&#8243; which is a 2.4Ghz transmitter (channel selection switches are soldered directly onto 2 pins on the chip); 17.734475 Mhz crystal which i could only identify as PAL related frequency. On the back there&#8217;s &#8220;E07SL E1C744 M52&#8243; which i found is described as &#8220;Single Serial Input PLL Frequency Synthesizer On-Chip 2.5 GHz Prescaler&#8221;. My RF knowledge is very limited so i did not pursue this board any further:</p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9781.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9781.jpg?w=450&#038;h=300" alt="" title="IMG_9781" width="450" height="300" class="alignnone size-full wp-image-190" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9800.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9800.jpg?w=450&#038;h=300" alt="" title="IMG_9800" width="450" height="300" class="alignnone size-full wp-image-194" /></a></p>
<p><strong>Fourth board</strong> is the microphone and power jack board. Unlike the main camera case this one is not protected via o-ring and shows quite a bit of water damage. I consider this a major flaw in design as at least one camera in my possession failed because connections on the circuit board rusted out. The board contains a microphone, a side switch perhaps for enabling/disabling audio and something with 3 pins and 4th large ground marked &#8220;8A 804&#8243;:</p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9792.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9792.jpg?w=450&#038;h=300" alt="" title="IMG_9792" width="450" height="300" class="alignnone size-full wp-image-192" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9791.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9791.jpg?w=450&#038;h=300" alt="" title="IMG_9791" width="450" height="300" class="alignnone size-full wp-image-191" /></a></p>
<p>I have also acquired a cheap <strong>Swann Receiver</strong>:</p>
<div id="attachment_198" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/img_9810.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9810.jpg?w=450&#038;h=300" alt="" title="Swann Wireless Receiver" width="450" height="300" class="size-full wp-image-198" /></a><p class="wp-caption-text">Swann Wireless Receiver</p></div>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9811.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9811.jpg?w=450&#038;h=300" alt="" title="IMG_9811" width="450" height="300" class="alignnone size-full wp-image-199" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9813.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9813.jpg?w=450&#038;h=300" alt="" title="IMG_9813" width="450" height="300" class="alignnone size-full wp-image-200" /></a></p>
<p><a href="http://abieneman.files.wordpress.com/2010/04/img_9815.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9815.jpg?w=450&#038;h=300" alt="" title="IMG_9815" width="450" height="300" class="alignnone size-full wp-image-201" /></a></p>
<p><strong>Conclusion:</strong><br />
Out of 4 cameras that were broken i have managed to fix two. First one had rusted out power supply connection and what looks like a bad case of electronics-rage: all camera innards were twisted and ripped but then stuffed back and closed (why?). After re-soldering all wires and patching rusted out connections on the microphone board, camera came alive once again. Another camera had a bad transmitter. I figured that one out by connecting two cameras to the same power supply and rewiring the sensor of one camera to use transmitter of the other. After installing good transmitter board from another camera this one started to work as well. The other 2 cameras seem to have bad sensor board/chip.  One of them has a short (12 Ohm) between power and ground which i was unable to trace and another just doesn&#8217;t output anything. Perhaps i can give it a try later when i am more experienced. If some one out there has any ideas or the pointers on how to decode these &#8220;Y2&#8243; and &#8220;8A 804&#8243; devices please let me know.</p>
<p>Aleksey</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abieneman.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abieneman.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abieneman.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abieneman.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abieneman.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abieneman.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abieneman.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abieneman.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abieneman.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abieneman.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abieneman.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abieneman.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abieneman.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abieneman.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=177&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abieneman.wordpress.com/2010/04/20/swann_teardown/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2997c30d7a2252476993eb76f1d75ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abieneman</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9755.jpg" medium="image">
			<media:title type="html">Swann Night Hawk Camera</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9803.jpg" medium="image">
			<media:title type="html">Swann Night Hawk Camera - Teardown</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9798.jpg" medium="image">
			<media:title type="html">Swann Night Hawk Camera - Teardown</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9761.jpg" medium="image">
			<media:title type="html">IMG_9761</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9760.jpg" medium="image">
			<media:title type="html">IMG_9760</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9765.jpg" medium="image">
			<media:title type="html">IMG_9765</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9766.jpg" medium="image">
			<media:title type="html">IMG_9766</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9767.jpg" medium="image">
			<media:title type="html">IMG_9767</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9769.jpg" medium="image">
			<media:title type="html">IMG_9769</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9776.jpg" medium="image">
			<media:title type="html">IMG_9776</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9777.jpg" medium="image">
			<media:title type="html">IMG_9777</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9778.jpg" medium="image">
			<media:title type="html">IMG_9778</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9779.jpg" medium="image">
			<media:title type="html">IMG_9779</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9805.jpg" medium="image">
			<media:title type="html">IMG_9805</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9808.jpg" medium="image">
			<media:title type="html">IMG_9808</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9781.jpg" medium="image">
			<media:title type="html">IMG_9781</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9800.jpg" medium="image">
			<media:title type="html">IMG_9800</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9792.jpg" medium="image">
			<media:title type="html">IMG_9792</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9791.jpg" medium="image">
			<media:title type="html">IMG_9791</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9810.jpg" medium="image">
			<media:title type="html">Swann Wireless Receiver</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9811.jpg" medium="image">
			<media:title type="html">IMG_9811</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9813.jpg" medium="image">
			<media:title type="html">IMG_9813</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9815.jpg" medium="image">
			<media:title type="html">IMG_9815</media:title>
		</media:content>
	</item>
		<item>
		<title>Dirt Cheap Light Tent</title>
		<link>http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/</link>
		<comments>http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 17:10:51 +0000</pubDate>
		<dc:creator>abieneman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[carboard box]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Light Dome]]></category>
		<category><![CDATA[Lighting]]></category>
		<category><![CDATA[Papercraft]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://abieneman.wordpress.com/?p=146</guid>
		<description><![CDATA[After making photos of my previous project i was disappointed with the way they came out &#8211; wooden grain background and lighting from the table lamp just weren&#8217;t good. So i started looking into Light Domes and Tents. A lot of the items i liked were out of stock which made me wander &#8211; just [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=146&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After making photos of my previous project i was disappointed with the way they came out &#8211; wooden grain background and lighting from the table lamp just weren&#8217;t good. So i started looking into <a href="http://www.bhphotovideo.com/c/search?ci=1410&amp;N=4294550797&amp;Ns=p_PRICE_2|0">Light Domes and Tents</a>. A lot of the items i liked were out of stock which made me wander &#8211; just how bad would be the diy solution using cardboard box? Well, it turns out not too bad at all. Here&#8217;s tent/box:</p>
<div id="attachment_147" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/dscf2155.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/dscf2155.jpg?w=450&#038;h=600" alt="" title="DIY Cardboard Lighting Tent" width="450" height="600" class="size-full wp-image-147" /></a><p class="wp-caption-text">DIY Cardboard Lighting Tent</p></div>
<div id="attachment_148" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/dscf2156.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/dscf2156.jpg?w=450&#038;h=599" alt="" title="DIY Cardboard Lighting Tent - back" width="450" height="599" class="size-full wp-image-148" /></a><p class="wp-caption-text">DIY Cardboard Lighting Tent - back</p></div>
<div id="attachment_150" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/dscf2158.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/dscf2158.jpg?w=450&#038;h=337" alt="" title="DIY Cardboard Lighting Tent - inside" width="450" height="337" class="size-full wp-image-150" /></a><p class="wp-caption-text">DIY Cardboard Lighting Tent - inside</p></div>
<p><span id="more-146"></span></p>
<p>Granted this works different from true lighting tent &#8211; true lighting tent is lit from outside and diffuses light with all it&#8217;s sides. My lighting box bounces light from top and inside of the box. Nevertheless, results are very good compared to no light box at all, so while i would recommend replacing commercial lighting tent setup with this, it should work great when no such set is available or your scale of operations just does not justify $150+ investment into commercial lighting tent and lights. One requirement though: you need an on-camera flash unit for this to work &#8211; the main path of light needs to point to the roof of the box so you need a flexibility to adjust the flash direction (pardon my crude drawing):</p>
<div id="attachment_151" class="wp-caption alignnone" style="width: 348px"><a href="http://abieneman.files.wordpress.com/2010/04/diagram.gif"><img src="http://abieneman.files.wordpress.com/2010/04/diagram.gif?w=450" alt="" title="DIY Cardboard Lighting Tent - diagram"   class="size-full wp-image-151" /></a><p class="wp-caption-text">DIY Cardboard Lighting Tent - diagram</p></div>
<p><strong>Materials</strong></p>
<ul>
<li>Cardboard box, bankers box preferred</li>
<li>Tape</li>
<li>Paper</li>
</ul>
<p><strong>Construction</strong></p>
<ul>
<li>Assemble the box</li>
<li>Cut out the side of the box that connects to the large bottom piece &#8211; that piece becomes the roof</li>
<li>Tape box together where it&#8217;s loose</li>
<li>Lay out with paper</li>
<li>Insert the roof piece and bend it to form the roof. If the piece bends too much, use following &#8220;device&#8221;:</li>
</ul>
<div id="attachment_152" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/dscf21571.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/dscf21571.jpg?w=450&#038;h=337" alt="" title="DIY Cardboard Lighting Tent - bend limiter" width="450" height="337" class="size-full wp-image-152" /></a><p class="wp-caption-text">DIY Cardboard Lighting Tent - bend limiter</p></div>
<p>That&#8217;s all there&#8217;s to it. Here&#8217;s before and after pictures of my Punch Sensor:</p>
<div id="attachment_60" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/img_9671_1.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9671_1.jpg?w=450&#038;h=324" alt="" title="Acceleration Sensor" width="450" height="324" class="size-full wp-image-60" /></a><p class="wp-caption-text">Acceleration Sensor</p></div>
<div id="attachment_159" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/img_9736_1.jpg"><img src="http://abieneman.files.wordpress.com/2010/04/img_9736_1.jpg?w=450&#038;h=300" alt="" title="Punch Acceleration Sensor" width="450" height="300" class="size-full wp-image-159" /></a><p class="wp-caption-text">Punch Acceleration Sensor</p></div>
<p><strong>More photos:</strong></p>

<a href='http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/img_9692_1/' title='Direct flash'><img data-attachment-id='162' data-orig-size='3504,2336' data-liked='0'width="150" height="100" src="http://abieneman.files.wordpress.com/2010/04/img_9692_1.jpg?w=150&#038;h=100" class="attachment-thumbnail" alt="Direct flash" title="Direct flash" /></a>
<a href='http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/img_9705_1/' title='Bounced off roof'><img data-attachment-id='163' data-orig-size='3504,2336' data-liked='0'width="150" height="100" src="http://abieneman.files.wordpress.com/2010/04/img_9705_1.jpg?w=150&#038;h=100" class="attachment-thumbnail" alt="Bounced off roof" title="Bounced off roof" /></a>
<a href='http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/img_9707_1/' title='Bounced off roof and sides'><img data-attachment-id='164' data-orig-size='3504,2336' data-liked='0'width="150" height="100" src="http://abieneman.files.wordpress.com/2010/04/img_9707_1.jpg?w=150&#038;h=100" class="attachment-thumbnail" alt="Bounced off roof and sides" title="Bounced off roof and sides" /></a>
<a href='http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/img_9710_1/' title='Off roof and direct flash'><img data-attachment-id='165' data-orig-size='3504,2336' data-liked='0'width="150" height="100" src="http://abieneman.files.wordpress.com/2010/04/img_9710_1.jpg?w=150&#038;h=100" class="attachment-thumbnail" alt="Off roof and direct flash" title="Off roof and direct flash" /></a>
<a href='http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/img_9726_1/' title='Punch Acceleration Sensor'><img data-attachment-id='160' data-orig-size='3032,2021' data-liked='0'width="150" height="99" src="http://abieneman.files.wordpress.com/2010/04/img_9726_1.jpg?w=150&#038;h=99" class="attachment-thumbnail" alt="Punch Acceleration Sensor" title="Punch Acceleration Sensor" /></a>
<a href='http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/img_9738_1/' title='ADXL193'><img data-attachment-id='158' data-orig-size='2421,1614' data-liked='0'width="150" height="100" src="http://abieneman.files.wordpress.com/2010/04/img_9738_1.jpg?w=150&#038;h=100" class="attachment-thumbnail" alt="ADXL193" title="ADXL193" /></a>
<a href='http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/img_9751_1/' title='Punch Acceleration Sensor'><img data-attachment-id='157' data-orig-size='3504,2336' data-liked='0'width="150" height="100" src="http://abieneman.files.wordpress.com/2010/04/img_9751_1.jpg?w=150&#038;h=100" class="attachment-thumbnail" alt="Punch Acceleration Sensor" title="Punch Acceleration Sensor" /></a>
<a href='http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/img_9752_1/' title='Punch Acceleration Sensor'><img data-attachment-id='156' data-orig-size='3504,2336' data-liked='0'width="150" height="100" src="http://abieneman.files.wordpress.com/2010/04/img_9752_1.jpg?w=150&#038;h=100" class="attachment-thumbnail" alt="Punch Acceleration Sensor" title="Punch Acceleration Sensor" /></a>
<a href='http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/img_9753_1/' title='Punch Acceleration Sensor'><img data-attachment-id='155' data-orig-size='3504,2336' data-liked='0'width="150" height="100" src="http://abieneman.files.wordpress.com/2010/04/img_9753_1.jpg?w=150&#038;h=100" class="attachment-thumbnail" alt="Punch Acceleration Sensor" title="Punch Acceleration Sensor" /></a>
<a href='http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/img_9754_1/' title='Punch Acceleration Sensor'><img data-attachment-id='154' data-orig-size='3504,2336' data-liked='0'width="150" height="100" src="http://abieneman.files.wordpress.com/2010/04/img_9754_1.jpg?w=150&#038;h=100" class="attachment-thumbnail" alt="Punch Acceleration Sensor" title="Punch Acceleration Sensor" /></a>

<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abieneman.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abieneman.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abieneman.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abieneman.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abieneman.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abieneman.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abieneman.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abieneman.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abieneman.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abieneman.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abieneman.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abieneman.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abieneman.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abieneman.wordpress.com/146/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=146&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abieneman.wordpress.com/2010/04/11/dirt-cheap-light-tent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2997c30d7a2252476993eb76f1d75ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abieneman</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/dscf2155.jpg" medium="image">
			<media:title type="html">DIY Cardboard Lighting Tent</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/dscf2156.jpg" medium="image">
			<media:title type="html">DIY Cardboard Lighting Tent - back</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/dscf2158.jpg" medium="image">
			<media:title type="html">DIY Cardboard Lighting Tent - inside</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/diagram.gif" medium="image">
			<media:title type="html">DIY Cardboard Lighting Tent - diagram</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/dscf21571.jpg" medium="image">
			<media:title type="html">DIY Cardboard Lighting Tent - bend limiter</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9671_1.jpg" medium="image">
			<media:title type="html">Acceleration Sensor</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9736_1.jpg" medium="image">
			<media:title type="html">Punch Acceleration Sensor</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9692_1.jpg?w=150" medium="image">
			<media:title type="html">Direct flash</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9705_1.jpg?w=150" medium="image">
			<media:title type="html">Bounced off roof</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9707_1.jpg?w=150" medium="image">
			<media:title type="html">Bounced off roof and sides</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9710_1.jpg?w=150" medium="image">
			<media:title type="html">Off roof and direct flash</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9726_1.jpg?w=150" medium="image">
			<media:title type="html">Punch Acceleration Sensor</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9738_1.jpg?w=150" medium="image">
			<media:title type="html">ADXL193</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9751_1.jpg?w=150" medium="image">
			<media:title type="html">Punch Acceleration Sensor</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9752_1.jpg?w=150" medium="image">
			<media:title type="html">Punch Acceleration Sensor</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9753_1.jpg?w=150" medium="image">
			<media:title type="html">Punch Acceleration Sensor</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/img_9754_1.jpg?w=150" medium="image">
			<media:title type="html">Punch Acceleration Sensor</media:title>
		</media:content>
	</item>
		<item>
		<title>Punch Acceleration Sensor &#8211; Part 3</title>
		<link>http://abieneman.wordpress.com/2010/04/06/punch-acceleration-sensor-part-3/</link>
		<comments>http://abieneman.wordpress.com/2010/04/06/punch-acceleration-sensor-part-3/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 04:44:28 +0000</pubDate>
		<dc:creator>abieneman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Accelerometer]]></category>
		<category><![CDATA[AD7680]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[ATMega]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[Shift Register]]></category>

		<guid isPermaLink="false">http://abieneman.wordpress.com/?p=111</guid>
		<description><![CDATA[In this part I will describe the software side of the project. You can download the code here. I would highly recommend that you download ATMega328P documentation as well for register descriptions, notes and sample code. Beginner Arduino Notes. Any Arduino based program has at least 2 entry points: Code within setup() is executed only [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=111&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this part I will describe the software side of the project. You can download the code <a href="http://www.divshare.com/download/10979843-ecd">here</a>. I would highly recommend that you download <a href="http://www.atmel.com/dyn/resources/prod_documents/8271.pdf">ATMega328P</a> documentation as well for register descriptions, notes and sample code.</p>
<p><strong>Beginner Arduino Notes.</strong></p>
<p>Any Arduino based program has at least 2 entry points:</p>
<p><pre class="brush: cpp; light: true;">
void setup()
{
}
void loop()
{
}
</pre><br />
Code within setup() is executed only once at the start and code within loop() is executed multiple times. You will also notice syntax like this:</p>
<p><pre class="brush: cpp; light: true;">
ISR (TIMER1_OVF_vect) 
{
}
</pre></p>
<p>This is an interrupt handling routine for the Timer1 overflow interrupt. Just writing this code however is not enough as you need to enable that interrupt. Some of the interrupts are already handled by Arduino Wire library (such as Timer0 overflow) so they are not available to user code without <a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1261288143">additional steps</a>. </p>
<p>There are several ways to do i/o operations. Arduino provides friendly <code>pinMode(), digitalWrite(), digitalRead()</code> functions but you can use native AVR way of reading/writing to various microcontroller registers.</p>
<p><span id="more-111"></span></p>
<p><strong>Reading from A/D Converter.</strong></p>
<p>The AD7680 A/D converter is read using Serial Peripheral Interface (SPI). The initialization of this interface is done within setup() function:</p>
<p><pre class="brush: cpp; light: true;">
  // initialize SPI interface
  digitalWrite(CS_PIN,HIGH); // initial value
  pinMode(CS_PIN, OUTPUT);
  pinMode(SCK_PIN, OUTPUT);
  pinMode(MISO_PIN, INPUT);
  // configure SPI to: enable, master, clock high when idle, sample on falling edge, freq divider 4
  SPCR = (1&lt;&lt;SPE) | (1&lt;&lt;MSTR) | (1&lt;&lt;CPOL) | (1&lt;&lt;CPHA); 
  SPSR |=  (1&lt;&lt;SPI2X); // double the clock speed
</pre></p>
<p>SPE bit enables SPI, MSTR bits set&#8217;s microcontroller to be the master, DORD=0 for most significant bit first order, SPR1=0 and SPR2=0 to set clock frequency to the processor clock divided by 4 but it is then doubled by setting SPI2X bit of SPSR register so in the end it&#8217;s the chip clock/2. </p>
<p>CPOL=1 and CPHA=1 settings could be very confusing (they were to me) so an additional explanation is required. CPHA sets clock phase and CPOL sets clock polarity. These settings determine when the data is sampled and have to match between the master and slave. Here&#8217;s the timing diagram for the AD7680:<br />
<div id="attachment_116" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/ad7680-timing-diagram.gif"><img src="http://abieneman.files.wordpress.com/2010/04/ad7680-timing-diagram.gif?w=450&#038;h=132" alt="" title="AD7680 Timing Diagram" width="450" height="132" class="size-full wp-image-116" /></a><p class="wp-caption-text">AD7680 Timing Diagram</p></div></p>
<p>Note that when CS is set AD7680 expects clock to be high and that the best time to read data is on the raising edge of the clock. Now here are 4 modes of SPI operation for microcontroller set by the CPHA and CPOL bits:</p>
<div id="attachment_117" class="wp-caption alignnone" style="width: 460px"><a href="http://abieneman.files.wordpress.com/2010/04/atmega-spi-modes.gif"><img src="http://abieneman.files.wordpress.com/2010/04/atmega-spi-modes.gif?w=450&#038;h=480" alt="" title="ATMega SPI modes" width="450" height="480" class="size-full wp-image-117" /></a><p class="wp-caption-text">ATMega SPI modes</p></div>
<p>As you can see from the diagram, the mode that matches AD7680 diagram is mode 3 where CPCHA=1 and CPOL=1. It also starts with SCK high and samples on the raising edge of the clock.</p>
<p>To perform an actual reading, following code is used:</p>
<p><pre class="brush: cpp; light: true;">
  digitalWrite(CS_PIN,LOW); //   start ad conversion
  SPDR = 0; // start transmission of byte 1
  while(!(SPSR &amp; (1&lt;&lt;SPIF)));
  byte b1 = SPDR;
  SPDR = 0; // start transmission of byte 2
  while(!(SPSR &amp; (1&lt;&lt;SPIF)));
  byte b2 = SPDR;
  SPDR = 0; // start transmission of byte 3
  while(!(SPSR &amp; (1&lt;&lt;SPIF)));
  byte b3 = SPDR;
  digitalWrite(CS_PIN,HIGH); // end transmission
  unsigned int reading = (b1 &lt;&lt; 11) | (b2 &lt;&lt; 3 ) | ( b3 &gt;&gt; 5 );
</pre></p>
<p>SPDR is SPI Data Register. Writing to the register initiates data transmission. SPSR is SPI Status Register. When a serial transfer is complete, the SPIF Flag (SPI Interrupt Flag &#8211; most significant bit of SPSR) is set. So once we write 0 to SPI Data Register, we need to wait until SPI Interrupt Flag is set. That&#8217;s what <code>while(!(SPSR &amp; (1&lt;&lt;SPIF)));</code> does. After which we can read results of the transmission from SPI Data Register. If you look at the AD7680 timing diagram above you will also see that AD7680 starts transmitting data on the 4th clock and ends on the 19th. I can&#8217;t instruct microcontroller to wait 3 clocks and then start reading so I have to tell it to get all data including leading and trailing zeroes. The <code>( b1 &lt;&lt; 11 ) | ( b2 &lt;&lt; 3 ) |  (b3 &gt;&gt; 5 );</code> line extracts the useful 16 bits of data from 24 bits (3 bytes) read. First useful byte of data consists of last 5 bits of b1 and first 3 bits of b2: <code>( b1 &lt;&lt; 3 ) + ( b2 &gt;&gt; 5 )</code>, however we have to make it a most significant byte of our result so we shift it by 8 bits left (or multiply by 256): <code>( b1 &lt;&lt; ( 3 + 8 ) ) +  ( ( b2 &gt;&gt; 5 ) &lt;&lt; 8 ) )</code>. The second useful byte is the lower 5 bits of b2 and higher 3 bits of b3: <code> ( b2 &lt;&lt; 3 ) + ( b3 &gt;&gt; 5 )</code>. Combining it with the first byte yields <code> ( b1 &lt;&lt; 11 )  + ( b2 &lt;&lt; 3 ) +  (b3 &gt;&gt; 5 )</code></p>
<p><strong>Maximum Acceleration.</strong></p>
<p>Detecting maximum acceleration is just a matter of calculating minimum and maximum value of the a/d reading and then converting it to the acceleration in g using following formula:</p>
<p><code> Acceleration = (ADReading / 2^16 * 5 - 2.5) / 0.008 </code></p>
<p>Here, 2^15 is the maximum 16 bit value which corresponds to the analog voltage of 5V, 2.5 is the no-acceleration value and 0.008 is sensitivity volts per g.</p>
<p>The only tricky part in this part of the code is to know when to reset this maximum acceleration. The rule that i used was: reset when there is a transition from &#8220;rest&#8221; state to not &#8220;rest&#8221; state. The &#8220;rest&#8221; state is defined as system has not been experiencing acceleration for that past 0.5 sec. In order to implement this rule there are 3 state variables:</p>
<ul>
<li><code>atRestJit</code> &#8211; no acceleration at the moment</li>
<li><code>atRestJitTS</code> &#8211; time stamp when <code>atRestJit</code> changed</li>
<li><code>atRest</code> &#8211; the &#8220;rest&#8221; state</li>
</ul>
<p><code>atRestJit</code> is a &#8220;jittery&#8221; at rest and changes every time acceleration passes 10g threshold. The <code>atRest</code> is then calculated as follows. If <code>atRestJit</code> is false then <code>atRest</code> is false as well. When <code>atRestJit</code> is true and has not changed for the last 0.5 sec then <code>aRest</code> is true.</p>
<p><strong>Displaying Results on 7 Segment LED</strong></p>
<p><i>Displaying Single Digit</i></p>
<p>As described in the previous post, in order to display a digit on a 7 segment LED display we need to set the pin that selects the digit to high and then pins that select the segments to be lit to low. In this implementation, digit select pins are driven directly from ATMega while segment selection pins are driven by shift register.</p>
<p>Digit selection pins are bits 2,3,4,5 of the PortD which corresponds to pins 2,3,4,5 on the Arduino board as well. These can be set via <code>digitalWrite(2, HIGH);</code> but also directly via <code>PORTD |= (1&lt;&lt;PORTD2);</code>.</p>
<p>Segment selection is driven by sn74hc594 8bit shift register. First step is to computer the value to be sent to shift register and that is done via the switch statement. Note that since the segments that we want to turn on have to have LOW value, the value to be sent to register is inverted (~):</p>
<p><pre class="brush: cpp; light: true;">
  switch(char_to-display)
  {
    case '0':
    case 'o':
    case 'O':
      segments = ~((1&lt;&lt;SEG_A) | (1&lt;&lt;SEG_B) | (1&lt;&lt;SEG_C) | (1&lt;&lt;SEG_D) | (1&lt;&lt;SEG_E) | (1&lt;&lt;SEG_F) );  
      break;
      
    case '1':
      segments = ~( (1&lt;&lt;SEG_B) | (1&lt;&lt;SEG_C) );  
      break;
....
</pre></p>
<p>Sending it to shift register via SPI interface is a breeze: </p>
<p><pre class="brush: cpp; light: true;">
  // shift out segments
  shiftOut(SEG_SER,SEG_CLK,MSBFIRST,segments);
  // need to pulse clock high one more time since register is 1 clock behind data in
  digitalWrite(SEG_SER,HIGH);
  digitalWrite(SEG_CLK,HIGH);
  digitalWrite(SEG_CLK,LOW);
</pre></p>
<p>Here SEG_CLK is clock and mapped to Arduino pin 6 (Port D 6) and SEG_SER is data on Arduino pin 7 (Port D 7).  The only tricky part is that clock needs to be pulsed one more time because in this implementation shift register clock (SRCLK) and storage register clock (SRCLK) are tied in together and when that happens data that is output by sn74hc594 is always one clock behind data that is sent to it.</p>
<p><i>Displaying Multiple Digits</i></p>
<p>The easiest way to display multiple digits is just to display them one after another:<br />
<pre class="brush: cpp; light: true;">
while(true)
{
   DisplayDigit(1);
   delay(100);
   DisplayDigit(2);
   delay(100);
   DisplayDigit(3);
   delay(100);
   DisplayDigit(4);
   delay(100);
}
</pre></p>
<p>However if I were to do that then the program would not do anything else but display digits. The solution is to use interrupts on the timer:<br />
<pre class="brush: cpp; light: true;">
int digit=1;
void timer_interrupt() // assume timer is set to call this every 100 ms
{
   DisplayDigit(digit);
   digit++;
   if (digit&gt;4) digit=1;
}
</pre></p>
<p>The implementation is very similar to that, except an additional timer interrupt is used to turn all digits off 0.6 ms after they been turned on. This is done to avoid burning LEDs out since no current limiting resistors were used. 16 bit Timer 1 of the ATMega is used for this purpose:</p>
<p><pre class="brush: cpp; light: true;">
void setup()
{
  TCCR1A = 0; // normal operation. other modes are used for PWM
  TCCR1B = (1&lt;&lt;CS10); //Set Prescaler to clk/1 : freq: 16Mhz, 1 click = 0.0625 micro secs
  TCCR1C = 0; // no forcing output compare
  OCR1A = BRIGHTNESS; // output compare a value - brightness (10,000)
  TIMSK1 = (1&lt;&lt;OCIE1A) | (1&lt;&lt;TOIE1); // Output Compare A Match Interrupt Enable, Overflow Interrupt Enable. Overflow will happen every 2^16 ticks. freq: 244.14 Hz
}

byte currentDigit = 0;

// called on timer1 overflow - 244 Hz
ISR (TIMER1_OVF_vect) 
{
  LED7x4_display_digit(currentDigit);
  currentDigit++;
  if (currentDigit&gt;3) currentDigit=0;
}


// called BRIGHTNESS ticks after overflow
ISR (TIMER1_COMPA_vect) 
{
  // turn off all digits
  DIG_PORT &amp;= ~( (1&lt;&lt;DIG_1) | (1&lt;&lt;DIG_2) | (1&lt;&lt;DIG_3) | (1&lt;&lt;DIG_4));
}
</pre></p>
<p><strong>Miscellaneous</strong></p>
<p>In order to produce the chart in the first part of this post, different code was used. This code would continuously store data in internal buffer overriding old values when it ran out of room (which happened pretty quickly since the ATMega328 internal SRAM is only 2k so i could store no more than 900 16 bit samples). When an acceleration event was detected, program recorded next 800 samples and then printed entire buffer via Serial interface. This provided 100 samples before the acceleration event as well as 800 samples of the event itself. At first I have attempted to print to serial directly as A/D is read but even at highest baud rate I was missing a lot of data, so i had to switch to this store and print approach.</p>
<p>Overall, the programming aspects of the project was quite enjoyable with the exception of cryptic c++ errors that i was getting from time to time (mostly from forgetting basic things like how break code between .h and .cpp files). One annoying thing that i&#8217;ve encountered is the lack of clear documentation on which Arduino/Wire library to include for various purposes. I wanted to use a <code>boolean</code> and <code>byte</code> types but for some reason while they worked in the main file, they didn&#8217;t in the LED7x4.cpp file. Turns out they are not built in types but instead defined in some .h file. It took a while to figure out which .h file i need &#8211; <code>#include &lt;WProgram.h&gt;</code>. The reason i didn&#8217;t need it in main file is that Arduino puts it there automatically before compiling &#8211; but not in any of the other files.</p>
<p>Anyway, it was a fun project and I hope some one will find this rather <i>too</i> detailed description useful. I have tried to target it to the starting embedded electronics hobbyist such as myself &#8211; this was my first electronics project since college.</p>
<p>Cheers,</p>
<p>Aleksey</p>
<p>Previous: <a href="/2010/04/04/punch-acceleration-sensor-–-part-2/">Part 2 &#8211; Hardware</a></p>
<p>Next: <a href="/2010/04/26/punch-acceleration-sensor-followup/">Follow up</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abieneman.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abieneman.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abieneman.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abieneman.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abieneman.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abieneman.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abieneman.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abieneman.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abieneman.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abieneman.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abieneman.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abieneman.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abieneman.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abieneman.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abieneman.wordpress.com&amp;blog=12904384&amp;post=111&amp;subd=abieneman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abieneman.wordpress.com/2010/04/06/punch-acceleration-sensor-part-3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b2997c30d7a2252476993eb76f1d75ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abieneman</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/ad7680-timing-diagram.gif" medium="image">
			<media:title type="html">AD7680 Timing Diagram</media:title>
		</media:content>

		<media:content url="http://abieneman.files.wordpress.com/2010/04/atmega-spi-modes.gif" medium="image">
			<media:title type="html">ATMega SPI modes</media:title>
		</media:content>
	</item>
	</channel>
</rss>
