<?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>Mark&#039;s Electronics Blog</title>
	<atom:link href="http://www.mendingthings.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.mendingthings.com</link>
	<description>Microcontrollers, Electronics, Arduino, Electronic Hacks</description>
	<lastBuildDate>Sat, 01 May 2010 03:05:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CNC Update 9: Cutting Spindle Mount</title>
		<link>http://www.mendingthings.com/?p=171</link>
		<comments>http://www.mendingthings.com/?p=171#comments</comments>
		<pubDate>Sat, 01 May 2010 03:05:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[CNC Router]]></category>
		<category><![CDATA[HDPE]]></category>
		<category><![CDATA[Spindle Mount]]></category>

		<guid isPermaLink="false">http://www.mendingthings.com/?p=171</guid>
		<description><![CDATA[I finally got the spindle mount GCode right and made one of my 4 Spindle mount pieces. Look at the video below.

Here is the finished piece.
 Here is a video of one of my test patterns using some 1/4&#8243; scrap wood.

I had to make several manual modifications to the gcode to get it right. Not because [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got the spindle mount GCode right and made one of my 4 Spindle mount pieces. Look at the video below.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/J4JmCDv1R8g&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/J4JmCDv1R8g&amp;hl=en&amp;fs=1" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p>Here is the finished piece.</p>
<div id="attachment_172" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/04/CNCMount1.jpg"><img class="size-medium wp-image-172" title="CNCMount1" src="http://www.mendingthings.com/wp-content/uploads/2010/04/CNCMount1-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">HDPE 1/2 of Spindle Mount</p></div>
<div id="attachment_173" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/04/CNCMount2.jpg"><img class="size-medium wp-image-173" title="CNCMount2" src="http://www.mendingthings.com/wp-content/uploads/2010/04/CNCMount2-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Spindle mount test fit, IT FITS!</p></div>
<p> Here is a video of one of my test patterns using some 1/4&#8243; scrap wood.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/3hcPGdLbN7o&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/3hcPGdLbN7o&amp;hl=en&amp;fs=1" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p>I had to make several manual modifications to the gcode to get it right. Not because CAM software did it wrong, I just didn&#8217;t have all the settings right when I created the gcode. Also I don&#8217;t have any home switches installed yet so all the absolute values are wrong or at least that is what I think you call them. The machine coordinates I know are not right until I get the home switches installed. I am still learning about all of this and I have a long way to go.</p>
<p>I have ordered some upgrades that should make some nice improvements in cutting speed. I have 3 new Acme leadscrews and nuts coming along with some other enhancements, such as bearing blocks and a motor mount for the Z-axis. My tie wraps are working but are a little to gehtto for me:-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mendingthings.com/?feed=rss2&amp;p=171</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CNC Update 8: First Cut! Mach3 cutting Styrofoam</title>
		<link>http://www.mendingthings.com/?p=165</link>
		<comments>http://www.mendingthings.com/?p=165#comments</comments>
		<pubDate>Sat, 24 Apr 2010 02:39:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[CNC Router]]></category>
		<category><![CDATA[Leadscrew]]></category>
		<category><![CDATA[Linear Bearings]]></category>

		<guid isPermaLink="false">http://www.mendingthings.com/?p=165</guid>
		<description><![CDATA[Well, last Sunday was a very frustrating day. I shorted out my controller board frying one of my easysteppers and all of the buffer chips in my breakout board. I was too frustrated to work on the boards for now so I ordered a new controller board on eBay.

It is a very nice package. It [...]]]></description>
			<content:encoded><![CDATA[<p>Well, last Sunday was a very frustrating day. I shorted out my controller board frying one of my easysteppers and all of the buffer chips in my breakout board. I was too frustrated to work on the boards for now so I ordered a new controller board on eBay.</p>
<p><a href="http://www.mendingthings.com/wp-content/uploads/2010/04/3Axis-Stepper-Driver-Brd.jpg"><img class="alignnone size-medium wp-image-169" title="3Axis Stepper Driver Brd" src="http://www.mendingthings.com/wp-content/uploads/2010/04/3Axis-Stepper-Driver-Brd-300x199.jpg" alt="" width="300" height="199" /></a></p>
<p>It is a very nice package. It is a 3.5 Amp stepper driver with a parallel interface built in. It is a China unit but it seems to work very well. I also ordered a new Stepper motor for my Z axis. Anyway here is a video of the CNC cutting the Roadrunner Gcode in Mach 3, into Styrofoam. Skip to about 2:08 to see a wider view of the system and the touch screen monitor.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/o9d29JEASFA&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/o9d29JEASFA&amp;hl=en&amp;fs=1" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p>I don&#8217;t blame you for skipping through it, kind of dry video but I was excited to see it work! The bit I had in the router was too big so some of the lines ran together but all in all it did pretty well.</p>
<p>More to come.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mendingthings.com/?feed=rss2&amp;p=165</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CNC Update 7: Simultaneous 3 Axis Motion</title>
		<link>http://www.mendingthings.com/?p=157</link>
		<comments>http://www.mendingthings.com/?p=157#comments</comments>
		<pubDate>Sun, 18 Apr 2010 03:10:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[CNC Router]]></category>
		<category><![CDATA[Leadscrew]]></category>
		<category><![CDATA[Linear Bearings]]></category>

		<guid isPermaLink="false">http://www.mendingthings.com/?p=157</guid>
		<description><![CDATA[It&#8217;s been a while since my last CNC update because I have been very busy with work, but I have made a lot of progress and a few steps back.
I was able to get all 3 axises put together and aligned pretty well. The only real problem is that my Z axis stepper is not [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since my last CNC update because I have been very busy with work, but I have made a lot of progress and a few steps back.</p>
<p>I was able to get all 3 axises put together and aligned pretty well. The only real problem is that my Z axis stepper is not going to have enough torque and it has too much run out in the stepper motor. but for testing it is fine.</p>
<p>First I wanted to explain how I am coupling my motors to the lead screw, AKA all thread <img src='http://www.mendingthings.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I took a vacuum TEE that I had and cut the barb off of one end.</p>
<div id="attachment_159" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/04/CutTee.jpg"><img class="size-medium wp-image-159" title="CutTee" src="http://www.mendingthings.com/wp-content/uploads/2010/04/CutTee-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Amputated Tee</p></div>
<p>This was too small to just slide onto the shaft of the stepper so I had to press it on using a C-clamp. This makes for a very tight fit. Then I score the barbs parallel to the shaft to give it teeth that can bite into the rubber tubing to keep it from slipping. I then press a short piece of tubing onto the barb and then onto the leadscrew. If needed you can add a tie wrap to secure the tubing even more. Here is a picture of how I pressed it on the stepper.</p>
<div id="attachment_158" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/04/PressingBarbOnStepper.jpg"><img class="size-medium wp-image-158" title="PressingBarbOnStepper" src="http://www.mendingthings.com/wp-content/uploads/2010/04/PressingBarbOnStepper-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Pressing on barb</p></div>
<p>Here is a video of all 3 Axises running at the same time. I am using my arduino to run this test because I fried my buffer chips in by breakout board! That is fine, I will build something better anyway.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/GznojD4_G7U&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/GznojD4_G7U&amp;hl=en&amp;fs=1" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p>Here is a picture of my Z axis flange nut I built. It is hand filed to a press fit so that I can adjust it to align.</p>
<div id="attachment_162" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/04/ZaxisFlangeNut.jpg"><img class="size-medium wp-image-162" title="ZaxisFlangeNut" src="http://www.mendingthings.com/wp-content/uploads/2010/04/ZaxisFlangeNut-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Z Axis Flange Nut</p></div>
<p> </p>
<p>I have not put any anti backlash devices on these yet, but I have a design in mind for some.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mendingthings.com/?feed=rss2&amp;p=157</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CNC Update 6: Adding Y Axis &amp; Rebuild X &amp; Z Axis</title>
		<link>http://www.mendingthings.com/?p=145</link>
		<comments>http://www.mendingthings.com/?p=145#comments</comments>
		<pubDate>Mon, 29 Mar 2010 02:16:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[Linear Bearings]]></category>

		<guid isPermaLink="false">http://www.mendingthings.com/?p=145</guid>
		<description><![CDATA[Sorry it has been so long since my last update. I have been really busy with work and have been doing some traveling.  Anyway this weekend saw a solid 20 + hours of work on the CNC. Early last week I decided that the 80/20 linear bearing I built for the X Axis, had too [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry it has been so long since my last update. I have been really busy with work and have been doing some traveling.  Anyway this weekend saw a solid 20 + hours of work on the CNC. Early last week I decided that the 80/20 linear bearing I built for the X Axis, had too much play in it so I ordered some shims. I also ordered some 20 mm linear bearings from Glacern Machine Tools. They have them on sale for $12.95. They are rotating ball bearing units. Lastly I picked up some aluminum channel for the spacer to go under my rails. I already had several 20 mm rails that were kindly donated to me by my friend Brian.</p>
<p>OK, the first thing to do was tear the entire unit down. I decided that I had the uprights too high for the sides so I need to cut them down. Then it was time to work on that bearing. Let me stop here and say that I am very sorry that I don&#8217;t have pictures of all the work. My good camera was charging so I was using my backup camera. I took a lot of photos that didn&#8217;t come out due to overexposure and out of focus. Anyway, the shims I bought came in a stack of about 8 or so. They were all stuck together from where they were cut out. It was a challenge to get them apart without tearing. When I finally got them apart I started adding them under all the slides. After doing that I tried to slide the bearing back on the rail but it was obviously too tight. So now it was a game of trial and error until I got enough shims to tighten it up but hopefully, not so much that it will cause too much drag for my stepper.</p>
<p>Next I started working on reassembling the uprights and the X Axis rail. When that was done I had to attach them to the base. Until now I have just had the bottom rails setting on the base. The base is a piece of 1/2&#8243; scrap aluminum plate. It wasn&#8217;t exactly cut square and I realy didn&#8217;t have a good way to cut anything that thick. So I had to square the rails without using the base as a guide. So if you notice the 1&#8243; rails setting on the base don&#8217;t match exactly with the edge of the base, that is why. I will grind the base off square later.</p>
<p>The next order of business was to install the slide rails for the Y Axis. I first cut two pieces of the aluminum channel to length. Alignment here is critical. Not only do they need to be perfectly parallel, they must be exactly perpendicular to the X Axis. So in order to insure this I mounted a square to the X Axis and attached a pencil to the end and drew a line on the base. So now I had a reference on my base to the X Axis. Then I used a square to strike two lines perpendicular to the X Axis line. I used these lines then to line up my channel support. I then used C-clamps to hold them in place while I drilled the mounting holes. The positioning of these holes was also critical because my rails are pre drilled and tapped and these holes had to match up with the rails. After the holes were drilled I had to counter bore them from the bottom so my 6mm allen heads would set flush with the bottom of the base. Finally, I pushed the bolts up from the bottom and set the rails on them and tightened everything up.</p>
<div id="attachment_146" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0009.jpg"><img class="size-medium wp-image-146" title="Aluminum_Channel" src="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0009-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Here is what the channel looks like.</p></div>
<div id="attachment_147" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0010.jpg"><img class="size-medium wp-image-147" title="20mmRail" src="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0010-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Here is one completed rail</p></div>
<div id="attachment_152" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0013.jpg"><img class="size-medium wp-image-152" title="IMG_0013" src="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0013-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Table setting on slide bearings.</p></div>
<p> After the rails were done I had a decision to make. Would I use 4 bearings, 2 per side, or just 2 bearings, 1 on each side. My Y table is only about 12&#8243; wide so I thought one bearing in the middle should be fine, and a lot less work to line up that the 4 bearings would be. So after a lot of measuring and math I had transferred the mounting patterns on to my Y table and drilled them out. Once I got the bearings mounted and the table installed, it would slide very well. However if you applied almost any force at all to either of the unsupported ends of the table, the bearings would thrust and bind. This obviously was not going to work. There was just too much play in the bearings for this type of set up. Also you could almost fill the movement of the bearings as the table slid, even when the pressure was applied directly over the bearings. I was about to pull the table and re-drill it for all four bearings, when I remembered that I had some 20mm slide bearings that another friend, also named Brian, had given me. I hadn&#8217;t thought to use them because I didn&#8217;t have a housing for them. My thought was, I wonder if they will fit in the same housing as the bearings I got from Glacern. The Glacern bearings were held captive by two snap rings at either end of the bearing housing. The slide bearings I had were a little longer so I Knew I would be able to use both snap rings. Luckily there is also an allen adjusting screw in the middle of the bearing that tightens down to adjust the tightness of the bearing. I simply installed the slide bearing and tightened the allen screw tight enough to leave a mark on the bearing. Then I removed the bearing and drilled a divot in that spot. Now I reinstalled the bearing and tightened the set screw into the divot and the bearing was now captive in the housing. After installing two of these to the table and sliding the table back on to the rails, I was amazed how much smoother the table moved and the bearings did not bind when a reasonable amount of force was applied to the outside edge of the table!</p>
<div id="attachment_148" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0006.jpg"><img class="size-medium wp-image-148" title="Bearings" src="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0006-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Over exposed image of the bearings</p></div>
<p>Sorry about the quality of this photo, but you can see the original bearing on the left, the removed ball bearing in the middle and the slide bearing on the right.</p>
<p>Next I had to attach a nut under the table for the screw to act on to move the table. I had a piece of scrap aluminum about 3/8&#8243; thick that were cut into two rectangles 1.5&#8243; x 2&#8243;. In the center I tapped them 3/8&#215;16 for my drive screw. I am using just standard threaded rod for now.  I then turned one of them on edge and drilled and tapped two holes for 6mm. I drilled the table to accept the two holes I just drilled in the <em>nut</em>and mounted it under the table. By the way, every thing you see here was drilled with a hand drill not a drill press. Originally took some pieces to a shop to use the drill press but found the accuracy of the cheap drill press was no better than I could do by hand so I decided to just do them by hand. Don&#8217;t get me wrong, if I had a good drill press, allot of this would have been much easier. Anyway to get back on track, I took a threaded rod and screwed it through the nut until it came out the back side of the table. Now I used a line that I had already drawn on the base, that was the center of the rails, to align the nut so that I knew it was straight.</p>
<div id="attachment_150" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0003.jpg"><img class="size-medium wp-image-150" title="YTableNut" src="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0003-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Y Axis Nut</p></div>
<p>You can actually see it better in the reflection off the base.</p>
<p>Then I built the mount for the stepper. This was built with some aluminum angle.</p>
<div id="attachment_149" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0002.jpg"><img class="size-medium wp-image-149" title="Y-Axis_Mount" src="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0002-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Y Axis Stepper mount</p></div>
<p> After this was done it was time to reassemble the Z Axis. The original setup I had used for the Z Axis was not working out. The stepper motor didn&#8217;t have enough torque and it was very hard to get perfectly aligned. After a lot of thought, I rebuilt it using a different stepper, that I had from a tear down of an old dot matrix printer. I also inverted the mounting of the motor and the drive nut. The motor is now on top of the axis, rather than tucked away inside. Also for the nut I used the second piece of aluminum that I spoke of earlier. I used a grinder to get it to rough dimension then hand filed it so that I could press fit it into the aluminum mounting for the axis. I wish the pictures of this had turned out. It is hard to explain without the pictures, but I will get some in a day or so. Anyway, all I like on the Z Axis is finishing the stepper mount on the top.</p>
<p>Here is a picture of the unit as it stands right now.</p>
<div id="attachment_151" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0001.jpg"><img class="size-medium wp-image-151" title="IMG_0001a" src="http://www.mendingthings.com/wp-content/uploads/2010/03/IMG_0001-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Front view, Z Axis mount not complete</p></div>
<p>That&#8217;s all for this update, time to get some rest.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mendingthings.com/?feed=rss2&amp;p=145</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CNC Update 5: Testing interfaces with TurboCNC</title>
		<link>http://www.mendingthings.com/?p=140</link>
		<comments>http://www.mendingthings.com/?p=140#comments</comments>
		<pubDate>Thu, 11 Mar 2010 03:52:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.mendingthings.com/?p=140</guid>
		<description><![CDATA[Tonight I decided to test out my parallel breakout board and make sure there wasn&#8217;t going to be any issues using it to drive the easydrivers. I don&#8217;t have the desktop that I plan to use setup yet so I decided to use my workhorse of a laptop that I use to burn eproms with. [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight I decided to test out my parallel breakout board and make sure there wasn&#8217;t going to be any issues using it to drive the easydrivers. I don&#8217;t have the desktop that I plan to use setup yet so I decided to use my workhorse of a laptop that I use to burn eproms with. It is an old CTX laptop with an AMD 300 Mhz processor running Windows 98! I plan on doing a post soon on using old technology laptops to do great things better and faster than some monster machine today. Anyway back on track, there is one thing to watch out for if you are using a breakout board with a cable that you didn&#8217;t buy with the board. Most 25 pin cables male to female. Both the computer and the breakout board typically with have a female Db25. So you can use a simple male to male adapter or build one. However if you look at the pin numbering on a male connector and on a female connector you will notice the rows are inverted. So if you use the male to male adapter then the pin 13 will now go to pin 1 and vice versa. You need to realize this before you get started or you could spend a lot of time scratching your head.</p>
<p>As for why I am using TurboCNC instead of Mach3, quite simply my laptop won&#8217;t run Mach3 but it will run TurboCNC just fine. Newer laptops have power conservation circuits that will interfere with the timing so don&#8217;t expect your really Rad gaming laptop to work for CNC purposes. Especially with Mach3, again some of the older software is a little more forgiving if you can sacrifice the features.</p>
<p>OK, enough rambling here is the video of the test, nothing exciting just a simple demonstration.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/gERY0OqX6TY&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x006699&amp;color2=0x54abd6" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/gERY0OqX6TY&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x006699&amp;color2=0x54abd6" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p>Here is a video on how I configured TurboCNC to do the quick test.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/hxUrmLaGNok&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/hxUrmLaGNok&amp;hl=en&amp;fs=1" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mendingthings.com/?feed=rss2&amp;p=140</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CNC Update 4: Taking Shape</title>
		<link>http://www.mendingthings.com/?p=125</link>
		<comments>http://www.mendingthings.com/?p=125#comments</comments>
		<pubDate>Sun, 07 Mar 2010 02:35:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNC]]></category>

		<guid isPermaLink="false">http://www.mendingthings.com/?p=125</guid>
		<description><![CDATA[Today was spent cutting, drilling, tapping, de-burring, re-drilling, filing, filing some more, re-cutting, bleeding etc&#8230;
At the end of the day a few things are starting to take shape.
Look closely at the shinny Z axis plate, see that red swish? That is a little blood sacrifice I made to the project gods. My wife (the hand model [...]]]></description>
			<content:encoded><![CDATA[<p>Today was spent cutting, drilling, tapping, de-burring, re-drilling, filing, filing some more, re-cutting, bleeding etc&#8230;</p>
<p>At the end of the day a few things are starting to take shape.</p>
<div id="attachment_126" class="wp-caption alignnone" style="width: 209px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/03/CNC-005.jpg"><img class="size-medium wp-image-126" title="FrontViewCNC3-5" src="http://www.mendingthings.com/wp-content/uploads/2010/03/CNC-005-199x300.jpg" alt="" width="199" height="300" /></a><p class="wp-caption-text">The X Axis with the Z Axis Front View</p></div>
<p>Look closely at the shinny Z axis plate, see that red swish? That is a little blood sacrifice I made to the project gods. My wife (the hand model because she wouldn&#8217;t let me get her in the picture) is holding the X Axis up I don&#8217;t have it secured to the table yet. Everything is aluminum except the fasteners and rails, they are stainless. The table is a whopping 1/2&#8243; thick plate. the smaller plate for the Z and Y axis is 1/4&#8243; plate. Yes, the Y axis table is too narrow I will address that later.</p>
<div id="attachment_127" class="wp-caption alignnone" style="width: 209px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/03/CNC-004.jpg"><img class="size-medium wp-image-127" title="BackviewCNC3-6" src="http://www.mendingthings.com/wp-content/uploads/2010/03/CNC-004-199x300.jpg" alt="" width="199" height="300" /></a><p class="wp-caption-text">Rear view</p></div>
<p>Here is the view from behind. If this stepper works out it will be a slick install, notice you can&#8217;t even see it in this picture. The next one will show it tucked away.</p>
<div id="attachment_128" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/03/CNC-007.jpg"><img class="size-medium wp-image-128" title="CNC 007 Stepper " src="http://www.mendingthings.com/wp-content/uploads/2010/03/CNC-007-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">I can bearly get a peek at it.</p></div>
<p>One of the biggest pains today was making the screws for mounting this. In case anyone wants to mount some of these steppers from SparkFun, the mounting holes on the front are M 3.5. I couldn&#8217;t find any screws long enough for what I needed so I used some threaded rod. Cutting them and grinding the ends so they would accept the nuts was a real joy!</p>
<div id="attachment_129" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/03/CNC-008.jpg"><img class="size-medium wp-image-129" title="CNC 008" src="http://www.mendingthings.com/wp-content/uploads/2010/03/CNC-008-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Not too bad in the end though.</p></div>
<p> I made all of my own fasteners and I will show some close ups later on how they worked. Overall I am happy with them but they are a lot of work compared to just buying some from 80/20. The drilling must be precise and there are some tricking things to do. Such as counter bore the rail face so the socket head screws can set in flush.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mendingthings.com/?feed=rss2&amp;p=125</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CNC Update 3: Assembling the 80/20 Linear Bearing</title>
		<link>http://www.mendingthings.com/?p=115</link>
		<comments>http://www.mendingthings.com/?p=115#comments</comments>
		<pubDate>Mon, 01 Mar 2010 03:32:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CNC]]></category>

		<guid isPermaLink="false">http://www.mendingthings.com/?p=115</guid>
		<description><![CDATA[This has been a very busy week and weekend. I had a couple of PLC boards to refurbish so I didn&#8217;t get as much done this weekend as I had hoped. I did manage to get quite a bit done tonight on the X and Z axis but my camera battery is dead so I will [...]]]></description>
			<content:encoded><![CDATA[<p>This has been a very busy week and weekend. I had a couple of PLC boards to refurbish so I didn&#8217;t get as much done this weekend as I had hoped. I did manage to get quite a bit done tonight on the X and Z axis but my camera battery is dead so I will create a new post in a few days with that progress.</p>
<p>So, back to the topic. I had decided to use a linear bearing from 80/20 for my X axis. I could have bought one ready to go for about $70., but I decided to buy the bare pieces and build it myself for about $20. I bought the bare bearing in an unfiled and deburred state for about $5. Then instead of buying the bearing pads individually, I bought an 18&#8243; length of the bearing material UHMW-PE (Ultra High Molecular Weight Polyethylene) for $9.54. I then bought a bag of the screws to attach it to the bearing for $3.70.  I bought 1 extra piece that I new I wouldn&#8217;t use but I wanted to use it as a reference, that was a completed UHMW-PE bearing pad.</p>
<p>Here is a picture of the components:</p>
<div id="attachment_116" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/100_1957.jpg"><img class="size-medium wp-image-116" title="Linear_Bearing_Parts" src="http://www.mendingthings.com/wp-content/uploads/2010/02/100_1957-300x199.jpg" alt="Linear Bearing parts" width="300" height="199" /></a><p class="wp-caption-text">Rough bearing lower right, UHMW-PE left, reference pad upper, Screws upper right</p></div>
<p>I originally was going to cut the  bearing material into pads just like 80/20 does, that&#8217;s why I bought the finished pad. However I decided that it would be better to make longer pads that covered the entire length of the bearing in one piece. This not only will make the bearing stronger and have less slop, it turns out it is much easier to make them this way. Now someone may jump in and say that you will create too much friction if you have that much contact area. I was worried about that myself but the finished product slides smooth as silk.</p>
<p>The first step was to deburr the bearing housing. I did this with a hand drill and a bit about twice the size of the holes. Since the housing is aluminum, you need to be careful. I ran the drill in reverse using the bit to deburr the holes with very little force. Then I finished deburring the edges with a file. Finally I used emery cloth to smooth all the surfaces. There is no need to spend time sanding or polishing further because the housing doesn&#8217;t come in contact with the rails.</p>
<p>Next I cut four lengths of the UHMW-PE bearing material, exactly the length of the bearing. I used a coping saw for this and it worked really well. One tip, I laid the bearing material in the slot of a piece of 80/20 rail then laid the bearing on top. I then scored it with the saw. Then I moved the bearing and slid the bearing material down to the end of the rail, leaving it in the groove but hanging over the end so I could saw it but it was supported and wouldn&#8217;t move around. I then used a razor knife to clean up any rough edges from the saw cut.</p>
<div id="attachment_117" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/100_1962.jpg"><img class="size-medium wp-image-117" title="bearing material" src="http://www.mendingthings.com/wp-content/uploads/2010/02/100_1962-300x199.jpg" alt="bearing material" width="300" height="199" /></a><p class="wp-caption-text">Cut piece of bearing material in slot of 80/20 extruded aluminum</p></div>
<p>Then I put the 4 pieces of bearing material into the slots of a 10 series 2&#8243; wide extruded aluminum. Next I slid the bearing housing onto the bearing pads. After lining everything up I took a marker and marked all of the holes that the screws were going in with a fine tip permanent marker. This left a perfect center showing for lining up the bit on the drill. Then I took a small bit, I believe about 11/64&#8243; and drilled out the holes where each screw was to be placed.</p>
<div id="attachment_119" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/100_1963.jpg"><img class="size-medium wp-image-119" title="Drilled_bearing" src="http://www.mendingthings.com/wp-content/uploads/2010/02/100_1963-300x199.jpg" alt="Here is what it looks like after drilling." width="300" height="199" /></a><p class="wp-caption-text">Here is what it looks like after drilling.</p></div>
<p>On the first couple I used a bit stop so as not to drill completely through the bearing, then I realized it didn&#8217;t matter if I went all the way through because that surface of the bearing doesn&#8217;t touch anything, so I just drilled the rest all the way through. Then used the screws to attach the bearings, making sure not to over tighten them and strip out the hole. Here is a picture after I installed the first pad then pulled it off to inspect it.</p>
<div id="attachment_118" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/100_1961.jpg"><img class="size-medium wp-image-118" title="Pad_Installed" src="http://www.mendingthings.com/wp-content/uploads/2010/02/100_1961-300x199.jpg" alt="1 pad installed" width="300" height="199" /></a><p class="wp-caption-text">First bearing pad installed.</p></div>
<p>I continued on with the other three pads in the same manner. That was pretty much it! It was really simple and I saved myself $50.</p>
<p>Sorry I don&#8217;t have a picture of the competed bearing but this is where my camera battery died. After this I actually went on to drill out my Z axis mechanism to accept a 3/8 &#8221; rod for movement then attached the it to the bearing. It is starting to come together. I will get some pictures up hopefully this week if I am not too swamped at work, it is month end so work will be a bear!</p>
<p>More next time&#8230;</p>
<p>Oh yeah forgot to mention, my optically isolated parallel breakout board came in from CNC4PC. If I get time this week I may do a quick write up on it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mendingthings.com/?feed=rss2&amp;p=115</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CNC Update 2: 3 Functioning stepper drivers on 1 Proto Board!</title>
		<link>http://www.mendingthings.com/?p=95</link>
		<comments>http://www.mendingthings.com/?p=95#comments</comments>
		<pubDate>Mon, 22 Feb 2010 01:29:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[CNC]]></category>

		<guid isPermaLink="false">http://www.mendingthings.com/?p=95</guid>
		<description><![CDATA[Yesterday was spent picking up supplies and installing and learning Autodesk 2010. I have never really worked with any CAD program before so this was a challenge. However I was able to learn enough to draft my first item. It will be the spindle holder for my machine. I then used the trial version of [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday was spent picking up supplies and installing and learning Autodesk 2010. I have never really worked with any CAD program before so this was a challenge. However I was able to learn enough to draft my first item. It will be the spindle holder for my machine. I then used the trial version of CAMBAM+ to generate the Gcode. So I then loaded that into Mach3 and simulated the cut. All of that worked well. I thought that was enough software learning for one weekend and moved on to more of the electronics. Although I will be returning to cover these software packages in much more detail later.</p>
<p>I have decided to put aside the plans to run this from the Arduino for now and instead I will use a parallel port on a spare PC. I am still using the Arduino for testing for now. The reason for this decision was simply that the use of the Arduino was going to severely limit my integration of some very good off the shelf software. I suspect I will be revisiting the integration of the Arduino later.</p>
<p>Today&#8217;s goal was to construct a proto board with the 3 EasyDriver&#8217;s on them and the breakout terminals to simplify hookup. I purchased a proto board from Radio Shack and intended to purchase the terminals as well, but much to my disappointment they didn&#8217;t have them. So I had to sacrifice a breakout board I built for my OOPIC several years ago. I had  to amputate the terminals I needed! Oh, the carnage! Well at least it had signed the organ donor card so this project my live.</p>
<p>Here are some pictures of the construction:</p>
<div id="attachment_96" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-003.jpg"><img class="size-medium wp-image-96" title="Stepper_driver_layout" src="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-003-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">This is the layout of the stepper drivers on the Proto Board</p></div>
<p>I had to first solder pins to the other 2 driver boards that I hadn&#8217;t used yet. Then I started with the wiring on the under side of the board. Here is a picture shortly after starting the wiring.</p>
<div id="attachment_97" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-002.jpg"><img class="size-medium wp-image-97" title="ProtoWiringInProgress" src="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-002-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Let the finger burning begin!</p></div>
<p>Man, I will be glad when I have my own CNC router that I can just put a copper clad board in and zap out my custom PCB.</p>
<p>A few minutes later I have this:</p>
<div id="attachment_98" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-004.jpg"><img class="size-medium wp-image-98" title="Stepper_Board_Bottom" src="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-004-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Aint it Purdy?!</p></div>
<p>OK, well maybe it took more than a few minutes and several puncture wounds and a few burns as well. You will notice every like trace is color coded.</p>
<p>Here is the Key:</p>
<p>Light Red-&gt; Coil A</p>
<p>Dark Blue-&gt; Coil B</p>
<p>Yellow-&gt; MS1</p>
<p>Dark Green-&gt; MS2</p>
<p>Purple-&gt; Dir</p>
<p>Brown-&gt; Step</p>
<p>Light Green-&gt; Sleep</p>
<p>Light Blue-&gt; Enable</p>
<p>Black-&gt; Ground (There are two gnd sources)</p>
<p>Red-&gt; V+ (12v)</p>
<p>If you are asking yourself, why is he giving so much information here about the color codes and such, remember this blog is as much for me as it is for anyone else. I can use this as a reference should I need it.</p>
<p>Here is the top view again with the wiring completed and the standoffs installed.</p>
<div id="attachment_100" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-005.jpg"><img class="size-medium wp-image-100" title="Stepper_Driver_Board_Top" src="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-005-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Board with Z axis wired up to Arduino</p></div>
<p> Here it is labeled:</p>
<div class="mceTemp">
<dl id="attachment_103" class="wp-caption alignnone" style="width: 310px;">
<dt class="wp-caption-dt"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/Stepper-brd-Labled.jpg"><img class="size-medium wp-image-103" title="Stepper brd Labeled" src="http://www.mendingthings.com/wp-content/uploads/2010/02/Stepper-brd-Labled-300x199.jpg" alt="" width="300" height="199" /></a></dt>
<dd class="wp-caption-dd">Hillbilly Skimatic!</dd>
</dl>
<p>Here is a video of it working:</p></div>
<p> </p>
<p> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/cssjtZGtFYY&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/cssjtZGtFYY&amp;hl=en&amp;fs=1" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p> That is where I finished today. I ordered some 80/20 extruded aluminum Friday. I hope to get to work assembling the frame and axises next week.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mendingthings.com/?feed=rss2&amp;p=95</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Crank up the Volts on that Stepper!</title>
		<link>http://www.mendingthings.com/?p=86</link>
		<comments>http://www.mendingthings.com/?p=86#comments</comments>
		<pubDate>Thu, 18 Feb 2010 03:40:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[CNC]]></category>

		<guid isPermaLink="false">http://www.mendingthings.com/?p=86</guid>
		<description><![CDATA[I found some larger stepper motors that I had salvaged from a large dot matrix printer years ago. They are rated at 4.4V 1.15 A. However I have discovered that the EasyDriver chops and current limits the output so you can run these motors at much higher voltage then they were intended to run at. [...]]]></description>
			<content:encoded><![CDATA[<p>I found some larger stepper motors that I had salvaged from a large dot matrix printer years ago. They are rated at 4.4V 1.15 A. However I have discovered that the EasyDriver chops and current limits the output so you can run these motors at much higher voltage then they were intended to run at. This can come in very handy in CNC operations because under low load you can drive them very fast and have great response. I plan on redesigning my linear actuators to take advantage of these larger steppers. Someone on Chiphacker coincidently asked this question the other day as well so I thought it was a good time to test my theory.</p>
<p> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/ZgZLC0WoaH0&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/ZgZLC0WoaH0&amp;hl=en&amp;fs=1" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mendingthings.com/?feed=rss2&amp;p=86</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CNC Update 1 &#8220;We Have Motion!&#8221;</title>
		<link>http://www.mendingthings.com/?p=68</link>
		<comments>http://www.mendingthings.com/?p=68#comments</comments>
		<pubDate>Sun, 14 Feb 2010 05:56:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[CNC]]></category>

		<guid isPermaLink="false">http://www.mendingthings.com/?p=68</guid>
		<description><![CDATA[NOTICE: I CORRECTED ERRORS IN THE CODE AND DESCRIPTION ABOUT MICROSTEPPING AN PULSE DELAY!
Videos at the bottom.
Ok, a lot has happen this week. I started out with a general ideal of how I wanted to accomplish the X and Y axis movements. I was going to go with the sliding table design rather than the [...]]]></description>
			<content:encoded><![CDATA[<p><em>NOTICE: I CORRECTED ERRORS IN THE CODE AND DESCRIPTION ABOUT MICROSTEPPING AN PULSE DELAY!</em></p>
<p><em>Videos at the bottom.</em></p>
<p>Ok, a lot has happen this week. I started out with a general ideal of how I wanted to accomplish the X and Y axis movements. I was going to go with the sliding table design rather than the Gantry. No real good reason why I have this method in mind it just seems simpler to me. Anyway I go scrounging around through some surplus junk I have picked up from an industrial auction and I came across a couple of pneumatic cylinders with a linear motion mount. This caught my eye right away. The design is quite nice but it only gives me about 10.5&#8243; of travel. This should be fine for my first build and it should be plenty for routing printed circuit boards. Here is a picture of what one of these mounts looks like.</p>
<div id="attachment_69" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-042.jpg"><img class="size-medium wp-image-69" title="CNC 042" src="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-042-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Linear Motion assembly</p></div>
<p>Today the Stepper motors and EasyDriver boards came in from SparkFun. This is the new version 4.2 driver boards. There isn&#8217;t much out there in the ways of tutorials for using this board yet so I hope I can help someone. </p>
<p>The first order of business was to get some mounting pins soldered onto the driver board so I could plug it into a breadboard for testing. Here is a picture of the module with the pins soldered. </p>
<div id="attachment_70" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-038.jpg"><img class="size-medium wp-image-70" title="CNC 038" src="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-038-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">EasyDriver v4.2 with Pins soldered on</p></div>
<p>Hint: it&#8217;s easier to solder the pins in if you lay the circuit board on the breadboard and stick the pins through the holes into the breadboard then when you have all the pins inserted solder them while its still on the breadboard to hold them straight)</p>
<p>Next I started laying out the jumpers and terminals on the breadboard. I know I could just stick the wires in the breadboard, but I find using these screw terminals work much better. The terminals I have are something like 5 mm pitch so they only pickup every other rail on the breadboard. So it takes a little thought on how to lay the jumpers out.</p>
<div id="attachment_71" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-036.jpg"><img class="size-medium wp-image-71" title="CNC 036" src="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-036-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Jumpers</p></div>
<div id="attachment_72" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-037.jpg"><img class="size-medium wp-image-72" title="CNC 037" src="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-037-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Terminals</p></div>
<p>Here is what it looks like when I finished placing all jumpers and terminals.</p>
<div id="attachment_73" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-039.jpg"><img class="size-medium wp-image-73" title="CNC 039" src="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-039-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Completed test board</p></div>
<p>Wired up</p>
<div id="attachment_74" class="wp-caption alignnone" style="width: 310px"><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-041.jpg"><img class="size-medium wp-image-74" title="CNC 041" src="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-041-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Wired test board</p></div>
<p>In case you are trying to follow my wiring here, notice the color coding on the stepper motors. On the circuit board there are 4 terminals to hook to the stepper motor. Coil A and Coil B. Coil A terminals are next to each other and Coil B terminals are as well. However due to my use of the 5mm blocks I had to stagger the connections so what you see here  is ABAB, so Blue and Yellow are A coil and Red and Green are B coil.</p>
<p>The wiring of these units is pretty much straight forward. You have a direction Pin, that is held high for one direction and low for the other. A step pin that is pulsed high then low for 1 step. You have 2 other pins that enable micro stepping, ms1 and ms2. Tie them both low if you don&#8217;t want to micro step. ( I recommend tying them <span style="color: #ff0000;"><strong>HIGH</strong> </span>until you have tested for successful operation). You have two sources of power, one for the motor and one for the logic. If you are using an external power supply for your motor, which is almost always required, then the board will supply power back to the Arduino through the 5v logic connection. (However I had some issues getting my sketch to upload properly without my normal external supply hooked to the arduino). You have an enable pin that must be held low for the board to operate. The last connection that I used is the Sleep pin. If you tie it low then your motor will not be powered even though the arduino and the easydriver boards are still supplied. This also allows the motor to free wheel. I haven&#8217;t used the RST and PFD pins so I can&#8217;t speak to them just yet.</p>
<p>Here is the code to get the test running</p>
<p><strong><span style="color: #ff0000;">NOTICE SEVERAL ERRORS WERE CORRECTED SINCE MY ORIGINAL POST!</span></strong></p>
<p>// Some of this code was scavenged from different places on the Internet but I have changed a few things to get it working.</p>
<p>int dirpin = 8;<br />
int steppin = 9;<br />
int ms2pin = 10;<br />
int enablepin = 11;<br />
int ms1pin = 12;<br />
int sleeppin = 13;<br />
void setup() {<br />
Serial.begin(9600);</p>
<p>pinMode(dirpin, OUTPUT);<br />
pinMode(steppin, OUTPUT);<br />
pinMode(ms2pin, OUTPUT);<br />
pinMode(enablepin, OUTPUT);<br />
pinMode(ms1pin, OUTPUT);<br />
pinMode(sleeppin, OUTPUT);</p>
<p>digitalWrite(enablepin, LOW);    // enable easy driver<br />
digitalWrite(sleeppin, HIGH);    // easy driver operating<br />
digitalWrite(ms1pin, HIGH);    // microstepping disabled<br />
digitalWrite(ms2pin, HIGH);    // microstepping disabled<br />
}<br />
void loop()<br />
{</p>
<p>int i;</p>
<p>digitalWrite(dirpin, LOW);    // Set the direction pin to move forward</p>
<p>delay(1000);                  //Give it some time</p>
<p>Serial.println(&#8220;Forward&#8221;);    // Print Forward to the terminal window<br />
for (i = 0; i&lt;31000; i++)    // Step Forward 31000 steps<br />
{<br />
digitalWrite(steppin, LOW);   // Start out with step pin low<br />
delayMicroseconds(500);    // Delay controls speed and Torque I originally had these at 100 that was too short<br />
digitalWrite(steppin, HIGH);    // Now switch it high<br />
delayMicroseconds(500);    // Delay controls speed and Torque you need at least a 500 delay<br />
}             //</p>
<p>digitalWrite(dirpin, HIGH);    // Change direction to reverse<br />
delay(100);                     // Give it some time</p>
<p>Serial.println(&#8220;Reverse&#8221;);     // Print Reverse to terminal window<br />
for (i = 0; i&lt;31000; i++)    // Step in Reverse 31000 steps<br />
{<br />
digitalWrite(steppin, LOW);   //  Start out with step pin low<br />
delayMicroseconds(500);    // Delay controls speed and Torque you need at least a 500 delay  <br />
digitalWrite(steppin, HIGH);    // Now switch it high<br />
delayMicroseconds(500);    // Delay controls speed and Torque you need at least a 500 delay<br />
}            </p>
<p>}</p>
<p>OK, now time for a couple of videos. Note the wire ties holding the stepper motor on, I couldn&#8217;t find any m3.5 screws today so I just used the wire ties for now.</p>
<p><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-040.mov">CNC 040</a> 6.5 Meg</p>
<p><a href="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-044.mov">CNC 044</a> 5.5 Meg</p>
<p><span style="text-decoration: line-through;">I am not impressed with the torque of these small steppers I will most likely need to size up but more testing is required</span>. <span style="color: #ff0000;">This was because I had my pulse width too narrow. After increasing the delays to 500, I have plenty of torque!</span></p>
<p>I was the happy recipient of some really cool parts today (Thanks Brian). I now have some 20mm rails and 2 20mm ball screws. These will be the DADDY project after I flush all of the software and driver issues out with this junior unit. (insert smile).</p>
<p>I guess that&#8217;s enough for today. More to come&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mendingthings.com/?feed=rss2&amp;p=68</wfw:commentRss>
		<slash:comments>54</slash:comments>
<enclosure url="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-040.mov" length="6731555" type="video/quicktime" />
<enclosure url="http://www.mendingthings.com/wp-content/uploads/2010/02/CNC-044.mov" length="5668138" type="video/quicktime" />
		</item>
	</channel>
</rss>
