<?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; pic18f2620</title>
	<atom:link href="http://smackaay.com/tag/pic18f2620/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>Viscometer Ver.(Eleventy Billion Jillion) a la rotational</title>
		<link>http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/</link>
		<comments>http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 06:40:14 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[pic18f2620]]></category>
		<category><![CDATA[rotary viscometer]]></category>
		<category><![CDATA[Stormer]]></category>
		<category><![CDATA[Stormer viscometer]]></category>
		<category><![CDATA[viscometer]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=501</guid>
		<description><![CDATA[Well, this has a been a long few days of work. I have created the ideal rotary viscometer in both terms of price and repeatability. Now, this idea is nothing new but I&#8217;m simply happy that it works. I guess it&#8217;d be prudent to go in to how it works&#8230; How it works: The concept [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this has a been a long few days of work. I have created the ideal rotary viscometer in both terms of price and repeatability. Now, this idea is nothing new but I&#8217;m simply happy that it works. I guess it&#8217;d be prudent to go in to how it works&#8230;</p>
<p>How it works:</p>
<p>The concept is simple. you have a shaft that is separated by a spring, in this case two plastic cups connected by a ball bearing with rods sticking out one side. This shaft is driven by a small gear motor and a set of paddles is attached to the other end. While this is rotating, the difference in the driven and the resisted side is measured with some form of instrument be it a hall effect sensor or a slot type optical transducer.<center><br />
<div id="attachment_510" class="wp-caption aligncenter" style="width: 235px"><a href="http://smackaay.com/wp-content/uploads/2009/03/dscn8317.jpg"><img src="http://smackaay.com/wp-content/uploads/2009/03/dscn8317-225x300.jpg" alt="Viscometer and stand" title="Viscometer and stand" width="225" height="300" class="size-medium wp-image-510" /></a><p class="wp-caption-text">Viscometer and stand</p></div><br />
</center><br />
What I used:</p>
<p>Well, as far as materials are concerned, for the prototype I used blocks of polyethylene to support both the motor and the shafts. The material has pretty low friction properties at low loads and thus I used it as the bearing on the bottom. The actual difference mechanism is made from a high density plastic. I would probably use this material again as it&#8217;s light, rugged and easy to machine. For the real unit, I may still use this plastic as it is more than strong enough and it&#8217;s easy to machine.</p>
<p>As for the drive I used a design similar to the older designs with PWM motor output, serial output, keyboard input, LCD out and 2 channels of input. This is all controlled with a PIC18F2620 which is more than enough for it&#8217;s needs.</p>
<p>The motor itself is a Hsiang Neng gearmotor running at 12 volts. It&#8217;s a piece of shit but that&#8217;s not important at this stage of the game.<br />
<center><br />
<div id="attachment_511" class="wp-caption aligncenter" style="width: 235px"><a href="http://smackaay.com/wp-content/uploads/2009/03/dscn8320.jpg"><img src="http://smackaay.com/wp-content/uploads/2009/03/dscn8320-225x300.jpg" alt="Motor and sensor" title="Motor and sensor" width="225" height="300" class="size-medium wp-image-511" /></a><p class="wp-caption-text">Motor and sensor</p></div><br />
</center><br />
So, finally, a desired feature list:</p>
<p>1. RS-485 Out<br />
2. KU and Cp out<br />
3. Multi-fluid calibration, this feature allows the user to select fluids of any KU value and calibrate the unit by entering them in.<br />
4. Easy to use menus. Too often have I seen automation stuff that&#8217;s unintuitive. This hould be easy for the operator to understand and easy for the people to use.<br />
5. Speed selection, so that you can use under-powered motors.</p>
<p>Anyways, here&#8217;s a gallery of some of the pictures of what could be a DIY stormer viscometer.</p>

<a href='http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/dscn8287/' title='Original speed control in box'><img width="150" height="112" src="http://smackaay.com/wp-content/uploads/2009/03/dscn8287-150x112.jpg" class="attachment-thumbnail" alt="Original speed control in box" title="Original speed control in box" /></a>
<a href='http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/dscn8296/' title='Unmounted head 01'><img width="150" height="112" src="http://smackaay.com/wp-content/uploads/2009/03/dscn8296-150x112.jpg" class="attachment-thumbnail" alt="This is the unmounted sensor" title="Unmounted head 01" /></a>
<a href='http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/dscn8299/' title='Unmounted head 01'><img width="150" height="112" src="http://smackaay.com/wp-content/uploads/2009/03/dscn8299-150x112.jpg" class="attachment-thumbnail" alt="The unmounted head of the prototype viscometer" title="Unmounted head 01" /></a>
<a href='http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/dscn8302/' title='Drive Board'><img width="150" height="112" src="http://smackaay.com/wp-content/uploads/2009/03/dscn8302-150x112.jpg" class="attachment-thumbnail" alt="The drive board which utilizes a PIC18F2620 operating at 40Mhz" title="Drive Board" /></a>
<a href='http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/dscn8305/' title='Case and such'><img width="150" height="112" src="http://smackaay.com/wp-content/uploads/2009/03/dscn8305-150x112.jpg" class="attachment-thumbnail" alt="Case and such" title="Case and such" /></a>
<a href='http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/dscn8308/' title='sensor assem'><img width="150" height="112" src="http://smackaay.com/wp-content/uploads/2009/03/dscn8308-150x112.jpg" class="attachment-thumbnail" alt="The differential assembly" title="sensor assem" /></a>
<a href='http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/dscn8311/' title='Full unit'><img width="150" height="112" src="http://smackaay.com/wp-content/uploads/2009/03/dscn8311-150x112.jpg" class="attachment-thumbnail" alt="The viscometer on the stand" title="Full unit" /></a>
<a href='http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/dscn8317/' title='Viscometer and stand'><img width="112" height="150" src="http://smackaay.com/wp-content/uploads/2009/03/dscn8317-112x150.jpg" class="attachment-thumbnail" alt="Viscometer and stand" title="Viscometer and stand" /></a>
<a href='http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/dscn8320/' title='Motor and sensor'><img width="112" height="150" src="http://smackaay.com/wp-content/uploads/2009/03/dscn8320-112x150.jpg" class="attachment-thumbnail" alt="Motor and sensor" title="Motor and sensor" /></a>
<a href='http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/dscn8284/' title='Initial speed control'><img width="150" height="112" src="http://smackaay.com/wp-content/uploads/2009/03/dscn8284-150x112.jpg" class="attachment-thumbnail" alt="The speed control from the first version, this one isn&#039;t finished" title="Initial speed control" /></a>
<a href='http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/dscn8314/' title='Paddle and motor and difference sensor'><img width="112" height="150" src="http://smackaay.com/wp-content/uploads/2009/03/dscn8314-112x150.jpg" class="attachment-thumbnail" alt="Paddle and motor and difference sensor" title="Paddle and motor and difference sensor" /></a>

]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2009/03/02/viscometer-vereleventy-billion-jillion-a-la-rotational/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sky-Tracker, so far, so good.</title>
		<link>http://smackaay.com/2009/02/09/sky-tracker-so-far-so-good/</link>
		<comments>http://smackaay.com/2009/02/09/sky-tracker-so-far-so-good/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 23:07:24 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Personal Projects]]></category>
		<category><![CDATA[astrophotography]]></category>
		<category><![CDATA[barn door]]></category>
		<category><![CDATA[hd77480]]></category>
		<category><![CDATA[pic18f2620]]></category>
		<category><![CDATA[sky]]></category>
		<category><![CDATA[sn754410ne]]></category>
		<category><![CDATA[stepper motor]]></category>
		<category><![CDATA[tracker]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=485</guid>
		<description><![CDATA[For the last few days I&#8217;ve been working on the electrical portion of an astrophotography mount for my camera. The mechanical portions were built by my father and I&#8217;m handling the electronic portion of the device. Basically, for those who don&#8217;t know, this device is designed to allow one to take long exposures of the [...]]]></description>
			<content:encoded><![CDATA[<p>For the last few days I&#8217;ve been working on the electrical portion of an astrophotography mount for my camera. The mechanical portions were built by my father and I&#8217;m handling the electronic portion of the device. Basically, for those who don&#8217;t know, this device is designed to allow one to take long exposures of the stars without them blurring due to them moving across the sky. This device moves the camera in such a way that allows for said movement. </p>
<p>Originally, my father and I spent a day working on both the frame and the electronic portions of the unit. I quickly whipped one up with a protoboard I had laying around and a PIC16F690. I used an SN754410NE H-Bridge driver for this design as well. Unfortunately we didn&#8217;t finish the project that day, and I wasn&#8217;t keen on programming the PIC having to pull it out of the IC socket every time I wanted to test it.<center><br />
<div id="attachment_492" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2009/02/dscn8079.jpg"><img src="http://smackaay.com/wp-content/uploads/2009/02/dscn8079-400x300.jpg" alt="The original defunct board. This board was omitted due to the fact that it had no ICSP provisions." title="The original defunct board" width="400" height="300" class="size-medium wp-image-492" /></a><p class="wp-caption-text">The original defunct board. This board was omitted due to the fact that it had no ICSP provisions.</p></div></center><br />
Anyways, many months have passed since then so I decided to finish &#8216;er up. This time though I wanted the underlying design to be flexible enough to handle any configuration of &#8220;barn door&#8221; and to allow for nice methods for both calibrating and homing the device, whereas most DIY methods are rudimentary at best. The reason I want to make it more robust than needed is due to the fact that I believe that a nicely finished electronics board kit may sell quite well, or perhaps even the entire unit if done in a low-cost, high quality way.<br />
Here are some of the planned features:<br />
1. Multiple configurations built-in for both screw pitch, motor step angle and &#8220;barn door&#8221; configuration<br />
2. Homing and End Range Switch provisions to allow for homing of the device and mechanical damage prevention.<br />
3. Support for 12 and 16 button keypads.<br />
4. Support for 8&#215;1 or 16&#215;1 HD44780 LCD displays. I choose these because they&#8217;re cheap and formatting for this style guarantees compatibility.<br />
5. Multiple drive options, Full-step, Half-Step, Strong movement, weak movement.<br />
.<br />
Anyways, Here are some images and descriptions of how I put it together, up till now. As of this writing, it&#8217;s not finished yet. It will take some time methinks.</p>
<p>First, I took some Stripboard and planned out the pinouts and connections. Stripboard (or veroboard) is my favorite since it&#8217;s so damned easy to plan. Despite there being a great many other protoboards out there, veroboard has been the most useful, for me anyways.<br />
<center><br />
<div id="attachment_491" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2009/02/dscn8077.jpg"><img src="http://smackaay.com/wp-content/uploads/2009/02/dscn8077-400x300.jpg" alt="Planning it out" title="Planning it out" width="400" height="300" class="size-medium wp-image-491" /></a><p class="wp-caption-text">Planning it out</p></div><br />
<div id="attachment_493" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2009/02/dscn8107.jpg"><img src="http://smackaay.com/wp-content/uploads/2009/02/dscn8107-400x300.jpg" alt="Starting the board" title="Starting the board" width="400" height="300" class="size-medium wp-image-493" /></a><p class="wp-caption-text">Starting the board</p></div><br />
<div id="attachment_494" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2009/02/dscn8110.jpg"><img src="http://smackaay.com/wp-content/uploads/2009/02/dscn8110-400x300.jpg" alt="Halfway done" title="Halfway done" width="400" height="300" class="size-medium wp-image-494" /></a><p class="wp-caption-text">Halfway done</p></div><br />
<div id="attachment_490" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2009/02/dscn8113.jpg"><img src="http://smackaay.com/wp-content/uploads/2009/02/dscn8113-400x300.jpg" alt="Board pretty much complete" title="Board pretty much complete" width="400" height="300" class="size-medium wp-image-490" /></a><p class="wp-caption-text">Board pretty much complete</p></div><br />
</center><br />
.<br />
There were a few kinks to work out but not many, despite how messy this board is. <img src='http://smackaay.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
It took me a while but I got the keypad, LCD and Stepper running. It didn&#8217;t take very long for the LCD and keypad since I&#8217;d already developed my own libraries for those functions. I then played with the stepper motor and got it working.<br />
<center><br />
<div id="attachment_488" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2009/02/dscn8272.jpg"><img src="http://smackaay.com/wp-content/uploads/2009/02/dscn8272-400x300.jpg" alt="Astrophotography electrics working with keypad, LCD and stepper motor" title="Astrophotography electrics working with keypad, LCD and stepper motor" width="400" height="300" class="size-medium wp-image-488" /></a><p class="wp-caption-text">Astrophotography electrics working with keypad, LCD and stepper motor</p></div></center><br />
.<br />
Now, to mount it in the enclosure. I just happened to have an ideal enclosure and a sealed lead acid battery from princess auto. The battery charged fine and I think it will serve quite well to run the stepper (This motor draws about 200-400ma depending on drive configuration). Here&#8217;s what it looks like as of today. <img src='http://smackaay.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<center><br />
<div id="attachment_486" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2009/02/dscn8275.jpg"><img src="http://smackaay.com/wp-content/uploads/2009/02/dscn8275-400x300.jpg" alt="Electrics in Enclosure" title="Electrics in Enclosure" width="400" height="300" class="size-medium wp-image-486" /></a><p class="wp-caption-text">Electrics in Enclosure</p></div></center><br />
I&#8217;ll have to give the enclosure some rubber feet since the mounting screws jut from the bottom but that&#8217;s cosmetic at this point.</p>
<p>Anyways, I&#8217;ll report further progress, as usual, on my blog here.</p>
<p>Here are some interesting links<br />
<a href="http://www.keteu.org/~haunma/proj/barndoor/">http://www.keteu.org/~haunma/proj/barndoor/</a><br />
<a href="http://www.cs.uiowa.edu/~jones/step/types.html">http://www.cs.uiowa.edu/~jones/step/types.html</a></p>
<p>Comment if you wish.</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2009/02/09/sky-tracker-so-far-so-good/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working on yet another stormer viscometer board. :(</title>
		<link>http://smackaay.com/2008/10/27/working-on-yet-another-stormer-viscometer-board/</link>
		<comments>http://smackaay.com/2008/10/27/working-on-yet-another-stormer-viscometer-board/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 20:50:15 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[pcb]]></category>
		<category><![CDATA[pic18f2620]]></category>
		<category><![CDATA[pic18f6680]]></category>
		<category><![CDATA[Stormer]]></category>
		<category><![CDATA[Stormer viscometer]]></category>
		<category><![CDATA[viscometer]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=182</guid>
		<description><![CDATA[Well, For the last week or so I&#8217;ve been developing a new viscometer board. Sloppy as it is, it&#8217;s a jump ahead from the last board in terms of overall inputs allowed. I used the 68PLCC package PIC18F6680 in this one because it had a sufficient number of IO and because it looks cool in [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp mceIEcenter" style="text-align: left;">
<p style="text-align: left;">Well, For the last week or so I&#8217;ve been developing a new viscometer board. Sloppy as it is, it&#8217;s a jump ahead from the last board in terms of overall inputs allowed. I used the 68PLCC package PIC18F6680 in this one because it had a sufficient number of IO and because it looks cool in it&#8217;s socket. <img src='http://smackaay.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: left;">Anyways, this one has the following features:</p>
<ul>
<li style="text-align: left;">Several analog channels for temperature measurement.</li>
<li style="text-align: left;">Several analog channels for use in a torque sensor set-up.</li>
<li style="text-align: left;">Some analog channels.</li>
<li style="text-align: left;">built in RS-232 Output.</li>
<li style="text-align: left;">built in RS-485 Output.</li>
<li style="text-align: left;">Provisions for PICKit2 hookup.</li>
<li style="text-align: left;">TVS&#8217;s on all input lines</li>
<li style="text-align: left;">Separate PIC12F683 for PWM output</li>
<li style="text-align: left;">Debug Serial Output.</li>
</ul>
<p>All in all, it&#8217;s gone smoothly, I&#8217;ve double checked a number of the traces, let&#8217;s hope all of them are well when they come back from AP Circuits later on. <img src='http://smackaay.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
<dl id="attachment_183" class="wp-caption aligncenter" style="width: 315px;">
<dt class="wp-caption-dt"><a href="http://smackaay.com/wp-content/uploads/2008/10/board2.gif"><img class="size-medium wp-image-183" title="Stormer Visc board #129,000,321" src="http://smackaay.com/wp-content/uploads/2008/10/board2-305x300.gif" alt="Yet another iteration of the stormer viscometer board" width="305" height="300" /></a></dt>
<dd class="wp-caption-dd">Yet another iteration of the stormer viscometer board</dd>
</dl>
</div>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2008/10/27/working-on-yet-another-stormer-viscometer-board/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

