<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Steve's Junk &#187; circuit</title>
	<atom:link href="http://smackaay.com/tag/circuit/feed/" rel="self" type="application/rss+xml" />
	<link>http://smackaay.com</link>
	<description>A showcase of Steven Mackaay's stuff</description>
	<lastBuildDate>Sun, 11 Mar 2012 20:11:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Building a quadrature generator with a PIC10F222</title>
		<link>http://smackaay.com/2012/01/08/building-a-quadrature-generator-with-a-pic10f222/</link>
		<comments>http://smackaay.com/2012/01/08/building-a-quadrature-generator-with-a-pic10f222/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 05:38:40 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[circuit]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[microchip]]></category>
		<category><![CDATA[microcontroller]]></category>
		<category><![CDATA[pic10f222]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1087</guid>
		<description><![CDATA[I need to start my new project with my digital RTJ gage and in order to do so I need to use the quadrature decoder chip LS7166. I could use the actual encoder I&#8217;m going to use for the project but it is large and unwieldy so I decided to build a generator for it. [...]]]></description>
			<content:encoded><![CDATA[<p>I need to start my new project with my digital RTJ gage and in order to do so I need to use the quadrature decoder chip LS7166. I could use the actual encoder I&#8217;m going to use for the project but it is large and unwieldy so I decided to build a generator for it.</p>
<p>The concept is simple, have a knob that produces no waveform in the middle of it&#8217;s stroke and as the pot deviates from the center, the speed of the signal increases also changing direction based on which side the knob id turned to. I couldn&#8217;t use a PIC10F200 much to my chagrin because it doesn&#8217;t have an ADC module built in, the PIC10F222 does however. It still works within my concept of low-end mcu&#8217;s doing valuable jobs since they&#8217;re still only 55 cents in quantity, from digikey of all places.</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/IMG_3428-modified.jpg"><img class="aligncenter size-medium wp-image-1089" title="pic10f222 quadrature generator 2" src="http://smackaay.com/wp-content/uploads/2012/01/IMG_3428-modified-392x300.jpg" alt="" width="392" height="300" /></a></p>
<p>Overall, it&#8217;s a pretty simple design.</p>
<ul>
<li>GP3 -&gt; unconnected</li>
<li>GP2 -&gt; Channel B out (Digital output)</li>
<li>GP1 -&gt; Channel A out (Digital output)</li>
<li>GP0 -&gt; 10k Potentiometer in (Analog in)</li>
</ul>
<p>Dead simple. I did program a bit of a dead spot in the middle so that one can stop the quadrature from advancing quite easily. I put 2 LEDs on it to indicate that it is in fact working. Anyways, here&#8217;s the source (again it&#8217;s in Oshonsoft BASIC)</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/10f222-quadrature.zip">10f222 quadrature src.zip</a></p>
<p>I didn&#8217;t bother drawing up a circuit diagram since it&#8217;s such an easy circuit but here&#8217;s an additional image if you&#8217;re really curious. keep in mind that the board I&#8217;m using is Stripboard (aka Veroboard) so the traces run along one direction</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/IMG_3427-modified.jpg"><img class="aligncenter size-medium wp-image-1088" title="pic10f222 quadrature generator" src="http://smackaay.com/wp-content/uploads/2012/01/IMG_3427-modified-341x300.jpg" alt="" width="341" height="300" /></a></p>
<p>Now for the fun challenge of making a simple serial interface MCU to the LS7166.</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2012/01/08/building-a-quadrature-generator-with-a-pic10f222/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Torque Coupling Update</title>
		<link>http://smackaay.com/2008/11/24/torque-coupling-update/</link>
		<comments>http://smackaay.com/2008/11/24/torque-coupling-update/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 18:57:41 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[ad7705]]></category>
		<category><![CDATA[circuit]]></category>
		<category><![CDATA[electrical]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[Stormer viscometer]]></category>
		<category><![CDATA[viscometer]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=267</guid>
		<description><![CDATA[This update is a little bigger than usual since I want keep the images and text as a sort of record of what I did for future reference. For the viscometer project, I&#8217;ve discovered that the motor is far too unreliable to produce reliable results despite algorithmic compensation. So now I&#8217;ve been charged with the [...]]]></description>
			<content:encoded><![CDATA[<p>This update is a little bigger than usual since I want keep the images and text as a sort of record of what I did for future reference. For the viscometer project, I&#8217;ve discovered that the motor is far too unreliable to produce reliable results despite algorithmic compensation. So now I&#8217;ve been charged with the task of creating a torque coupling that fits on to the rotating shaft. Now, there is no problem building the torque sensor, however, what is a problem is making it small and making it send the signal back to the device.<br />
Also, instead of using an Analog Devices AD7705B 16 bit serial out ADC. Frankly, I&#8217;ve never used one but the greater resolution should enable more useful measurements.<br />
Anyways, here&#8217;s a picture of the torque coupling before I ravaged it with hot glue.</p>
<div id="attachment_270" class="wp-caption alignnone" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2008/11/dscn7275.jpg"><img class="size-medium wp-image-270" title="Torque Coupling" src="http://smackaay.com/wp-content/uploads/2008/11/dscn7275-400x300.jpg" alt="Torque Coupling" width="400" height="300" /></a><p class="wp-caption-text">Torque Coupling</p></div>
<p>It&#8217;s pretty fucking ugly but it&#8217;ll work for the time being. I did have the ribs that sit under the sensors quite a bit thicker, but there wasn&#8217;t enough strain to be useful for measurement, I had to hacksaw the chunks underneath right off.Unfortunately, I believe the polyurethane glue I used has caused strain on the sensor as it cured, I don&#8217;t know of it will go any further.</p>
<p>So, I&#8217;ve started on the circuit as of yesterday. I have it set up to take the PICKIT2 interface so that I can hot-program it and I setup the serial out board so that I can output debug data. This works thus far. Soon, I&#8217;ll be setting up the ADC and attempting to interface with it.</p>
<div id="attachment_272" class="wp-caption alignnone" style="width: 235px"><a href="http://smackaay.com/wp-content/uploads/2008/11/dscn7279.jpg"><img class="size-medium wp-image-272" title="Starting on the ADC circuit" src="http://smackaay.com/wp-content/uploads/2008/11/dscn7279-225x300.jpg" alt="Starting on the ADC circuit" width="225" height="300" /></a><p class="wp-caption-text">Starting on the ADC circuit</p></div>
<p>Here is an image dealing with the read/write cycle on the AD7705, also to note is that the AD7705 is MSB first.</p>
<div id="attachment_268" class="wp-caption alignnone" style="width: 246px"><a href="http://smackaay.com/wp-content/uploads/2008/11/readtiming.jpg"><img class="size-medium wp-image-268" title="The timing for read/write on the AD7705" src="http://smackaay.com/wp-content/uploads/2008/11/readtiming-236x300.jpg" alt="The timing for read/write on the AD7705" width="236" height="300" /></a><p class="wp-caption-text">The timing for read/write on the AD7705</p></div>
<p>Here&#8217;s the site they came from <a title="Working with AD7705" href="http://www.protongeeks.com/index.php?option=com_content&amp;task=view&amp;id=63&amp;Itemid=27" target="_blank">http://www.protongeeks.com/index.php?option=com_content&amp;task=view&amp;id=63&amp;Itemid=27</a></p>
<p>Anyways, I&#8217;m glad to have my equipment back and ready for whatever crap I decide to build. Here&#8217;s a picture for posterity:</p>
<div id="attachment_271" class="wp-caption alignnone" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2008/11/dscn7281.jpg"><img class="size-medium wp-image-271" title="My bench as of Nov, 2008" src="http://smackaay.com/wp-content/uploads/2008/11/dscn7281-400x300.jpg" alt="My bench as of Nov, 2008" width="400" height="300" /></a><p class="wp-caption-text">My bench as of Nov, 2008</p></div>
<p>Anyways, I&#8217;ll attempt to update this as much as possible, for whoever is interested (or not).</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2008/11/24/torque-coupling-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

