<?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>imsolidstate &#187; CNC</title>
	<atom:link href="http://www.imsolidstate.com/archives/tag/cnc/feed" rel="self" type="application/rss+xml" />
	<link>http://www.imsolidstate.com</link>
	<description>Always improving things...</description>
	<lastBuildDate>Wed, 04 Jan 2012 22:32:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CNC version 2.0</title>
		<link>http://www.imsolidstate.com/archives/965</link>
		<comments>http://www.imsolidstate.com/archives/965#comments</comments>
		<pubDate>Fri, 01 Jul 2011 17:32:30 +0000</pubDate>
		<dc:creator>imsolidstate</dc:creator>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[Engraving]]></category>
		<category><![CDATA[Gcode]]></category>
		<category><![CDATA[PCB]]></category>
		<category><![CDATA[Stepper]]></category>

		<guid isPermaLink="false">http://www.imsolidstate.com/?p=965</guid>
		<description><![CDATA[I finally finished putting together my second CNC machine. Again this one is put together with surplus parts, but they are much better surplus parts. I have the luxury of three linear slides from Newmark Systems, that have dual profile rails and recirculating ball slides, along with 16TPI precision screws and recirculating ball guides. In [...]]]></description>
			<content:encoded><![CDATA[<p>I finally finished putting together my second CNC machine. Again this one is put together with surplus parts, but they are much better surplus parts. I have the luxury of three linear slides from Newmark Systems, that have dual profile rails and recirculating ball slides, along with 16TPI precision screws and recirculating ball guides. In short, the new machine is solid as a rock, and has more torque.</p>
<p><img class="alignnone size-large wp-image-966" title="New 3-axis CNC" src="http://www.imsolidstate.com/wp-content/uploads/2011/07/IMAG0122-612x1024.jpg" alt="New 3-axis CNC" width="612" height="1024" /></p>
<p><span id="more-965"></span>I used a dremel this time instead of a router, since the router was pretty much overkill for engraving anything. I made a mount for the dremel by cutting up the little plastic guide that comes with it. It has an approximate O.D. of 1&#8243; and acts as a nut that you can clamp with a shaft collar, and still unscrew the dremel from the mount if you need to get it out. I welded the shaft collar to a stainless steel bracket.</p>
<p><img class="alignnone size-large wp-image-968" title="Dremel mount" src="http://www.imsolidstate.com/wp-content/uploads/2011/07/IMAG0067-copy-1024x612.jpg" alt="Dremel mount" width="645" height="385" /></p>
<p>I haven&#8217;t made any boards yet to see if the dremel has much z-axis play.</p>
<p>There&#8217;s nothing special about this machine electronics-wise. Since I have NEMA23 steppers and 16TPI lead screws I don&#8217;t need a really high voltage drive or anything special. I&#8217;m using a 24VDC linear power supply with two automation direct stepper drives and one from Schneider. I didn&#8217;t connect the home and limit switches as I don&#8217;t think they have much value on machines this small. It&#8217;s a lot of work to do proper limit switches that disable the drive and signal the controller that a limit has been reached. Also to have home and limit switches on each axis you need two parallel ports. TurboCNC, being run in DOS, can only use the onboard parallel port so you can&#8217;t use PCI parallel port cards with TurboCNC. Only Mach3 can recognize inputs on the extra card since it&#8217;s address will map outside of the legacy range.</p>
<p><iframe width="640" height="510" src="http://www.youtube.com/embed/rNzUU_N8y0g?rel=0" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imsolidstate.com/archives/965/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PCB layouts and schematics for my CNC</title>
		<link>http://www.imsolidstate.com/archives/636</link>
		<comments>http://www.imsolidstate.com/archives/636#comments</comments>
		<pubDate>Thu, 25 Mar 2010 19:59:57 +0000</pubDate>
		<dc:creator>imsolidstate</dc:creator>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[PCB]]></category>
		<category><![CDATA[Stepper]]></category>

		<guid isPermaLink="false">http://www.imsolidstate.com/?p=636</guid>
		<description><![CDATA[I&#8217;ve received some email and comment requests for the layouts and schematics of the electronics running my CNC machine. I&#8217;ve pulled together what I can find for this article.
Power Filter Boards

I made these power filters for a few reasons. One is to protect the stepper motor drives from the inductive spikes that can come off [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve received some email and comment requests for the layouts and schematics of the electronics running my CNC machine. I&#8217;ve pulled together what I can find for this article.</p>
<p><strong>Power Filter Boards</strong></p>
<p><strong><img class="alignnone size-large wp-image-643" title="Electronics 002" src="http://www.imsolidstate.com/wp-content/uploads/2010/03/Electronics-002-768x1024.jpg" alt="Electronics 002" width="538" height="717" /></strong></p>
<p>I made these power filters for a few reasons. One is to protect the stepper motor drives from the inductive spikes that can come off of the motors.  They can be pretty big. Another reason was that I wanted to use a switch-mode power supply to run the drives. There&#8217;s a lot of good reasons for this:</p>
<p>1. Switch-mode power supplies are cheaper than linear power supplies.</p>
<p>2. Switch-mode power supplies are smaller than linear supplies for equivalent output power.</p>
<p>3. Switch-mode power supplies come in a wide range of voltages, so you can run the stepper motors at the highest voltage possible. (The highest voltage your controller supports) This allows for more torque from any motor because a higher voltage will push more current through the inductance of the motor than a lower voltage. It will also do it quicker, so you should get a little more speed too.</p>
<p>However, I wasn&#8217;t sure that the chopper-style stepper driver would be okay with a switch mode supply, as it pretty much shorts out the supply every time the chopper turns on. So I needed a buffer.</p>
<p>I found <a href="http://www.eetasia.com/ART_8800475657_480600_NP_f0ccb955.HTM">this article</a> at EETimesAsia by John Betten from TI. I modified the circuit for the voltage levels I wanted to run, and also found a suitable replacement for the FET since I couldn&#8217;t find one at the time. Here is the original schematic:</p>
<p><img class="alignnone size-full wp-image-639" title="PowerFilterSchem" src="http://www.imsolidstate.com/wp-content/uploads/2010/03/PowerFilterSchem.JPG" alt="PowerFilterSchem" width="664" height="400" /></p>
<p>I&#8217;m using an IR IRFP9140N in place of Q1. I also replaced D2 with a 56V TVS from ON semi, 1.5KE56A. I used 56V because the LMD18245 motor driver IC I have has a continuous rating of 55V and an absolute max of 60V. I also oversized the output capacitor just to be on the safe side since I had some big ones laying around anyway. They are 22000uF 100V Panasonics. They are overkill, the voltage is rock-solid even when the motors are running at full clip. I wanted to be able to recycle the boards though if I ever upgrade to a bigger machine and have bigger motors. Here&#8217;s the layout for my circuit:</p>
<p><img class="alignnone size-full wp-image-641" title="FilterLayout" src="http://www.imsolidstate.com/wp-content/uploads/2010/03/FilterLayout.jpg" alt="FilterLayout" width="587" height="588" /></p>
<p><strong>Opto-isolated Parallel Interface Board</strong><strong> </strong></p>
<p>I designed this parallel interface board after killing a parallel port with a breakout board that I bought off the internet. I think it just pulled too much current from the port. I designed this board to pull the smallest amount of current from the parallel port as possible, while also providing good drive characteristics for outputs. This board is customized to my application, so the voltages and bias might not be appropriate for all.  Check to make sure your inputs will work before using the values here. I couldn&#8217;t find the schematic, just the layout but it&#8217;s not too complicated to figure out if you have the datasheets for the TLP2631 and the SN74LS244N.<span id="more-636"></span></p>
<p>The 74244 is just a buffer; high impedance inputs and good drive characteristics. All inputs and outputs have RC filters. Adjust these values to suit your application. The 2631 is an opto-isolator that keeps the PC&#8217;s voltage potentials isolated from the CNC machine&#8217;s voltage. That way no voltage spikes hit the PC and there are no ground loops with the power supplies. Complete isolation! You just have to run power over from a spare drive connector on the PC to wherever you put this board.</p>
<p><img class="alignnone size-large wp-image-646" title="Electronics 001" src="http://www.imsolidstate.com/wp-content/uploads/2010/03/Electronics-001-1024x768.jpg" alt="Electronics 001" width="645" height="484" /></p>
<p>The astute observer will notice a fried resistor on the board. That&#8217;s the board doing just what it was designed to do, protect my computer from dumb screw-ups. I accidentally miswired one of my limit switches during the build and the little resistor took a hike. I could have just replaced the resistor, but I&#8217;m not using all of the inputs so I just moved the wire over and remapped the limit input pin. Here&#8217;s the layout. Click to view full size.</p>
<p><a href="http://www.imsolidstate.com/wp-content/uploads/2010/03/Optocoupler.jpg"><img class="alignnone size-full wp-image-648" title="Optocoupler" src="http://www.imsolidstate.com/wp-content/uploads/2010/03/Optocoupler.jpg" alt="Optocoupler" width="603" height="366" /></a></p>
<p><strong>Stepper Motor Controller</strong></p>
<p><strong><img class="alignnone size-large wp-image-650" title="microstep" src="http://www.imsolidstate.com/wp-content/uploads/2010/03/microstep-1024x692.jpg" alt="microstep" width="645" height="436" /> </strong></p>
<p>I used the &#8220;Microstep&#8221; from <a href="http://www.embeddedtronics.com/">EAS Electronics</a>. It&#8217;s worked well, but the switching frequency is low enough to create an obnoxious whine when the motors aren&#8217;t moving. I read in the LMD18245 datasheet that you can adjust the chopping frequency, but I haven&#8217;t bothered to try. It&#8217; s loud enough anyway when my router &#8220;spindle&#8221; is turning that it&#8217;s not too important to me.</p>
<p>It&#8217;s PIC based and the source is available if you want to modify it to do custom stuff. The microstep ranges are 10,8,4,half, and full step.</p>
<p>My next machine will use <a href="http://www.automationdirect.com/adc/Home/Home">Automation Direct&#8217;s</a> stepper drivers. They aren&#8217;t as cheap as building your own, but they are pretty close. I used two of their <a href="http://www.automationdirect.com/adc/Shopping/Catalog/Motion_Control/Stepper_Systems/Drives_-z-_Power/STP-DRV-4035">STP-DRV-4035</a> drives in a project at work along with their stepper motors and was pleased with the results. If you need really fine step rate control, they have one that is programmable but it costs more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imsolidstate.com/archives/636/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>0.008&#8243; PCB trace isolation on my CNC</title>
		<link>http://www.imsolidstate.com/archives/476</link>
		<comments>http://www.imsolidstate.com/archives/476#comments</comments>
		<pubDate>Sun, 20 Sep 2009 21:32:13 +0000</pubDate>
		<dc:creator>imsolidstate</dc:creator>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Engraving]]></category>
		<category><![CDATA[PCB]]></category>

		<guid isPermaLink="false">http://www.imsolidstate.com/?p=476</guid>
		<description><![CDATA[Due to a new design that I am working on, I needed to use a component from TI that only came in a 6SC70 package.  It&#8217;s a boost converter (TPS61221) that operates from an input voltage as low as 0.7V and has 80% or better efficiency in the 1-10mA range. It&#8217;s trimmed at 3.3V, which [...]]]></description>
			<content:encoded><![CDATA[<p>Due to a new design that I am working on, I needed to use a component from TI that only came in a 6SC70 package.  It&#8217;s a boost converter (<a href="http://focus.ti.com/lit/ds/symlink/tps61221.pdf">TPS61221</a>) that operates from an input voltage as low as 0.7V and has 80% or better efficiency in the 1-10mA range. It&#8217;s trimmed at 3.3V, which I&#8217;m using to run an <a href="http://www.atmel.com/dyn/resources/prod_documents/doc2586.pdf">ATtiny45V</a>. The ATtiny45 comes in a fine-pitch package as well, an <a href="http://www.fairchildsemi.com/dwg/MT/MTC08.pdf">8TSSOP</a> that requires 0.009&#8243; isolation between pads. I haven&#8217;t been able to get much better than 0.020&#8243; with the tooling I have, so I have been looking for alternatives.</p>
<p>I found some mechanical engraving bits at <a href="http://www.thinktink.com/">Think &amp; Tinker</a> which is actually here in Colorado at Palmer Lake. Their URL descriptor says they offer &#8220;Instrument and PCB prototyping equipment&#8221;. They also sell carbide engraving bits, and the particular one I selected was the 60° cutter, part number #EM2E8-0625-60V. The bits came in a nice container and are labelled as having a 0.005&#8243; tip. The shipping was also wicked fast. Granted, it&#8217;s only a few hours away from my location but I ordered them and got them in the next day.</p>
<p><img class="alignnone size-large wp-image-477" title="Engraving a PCB with a cutter from Think&amp;Tinker" src="http://www.imsolidstate.com/wp-content/uploads/2009/09/Sony-135-1024x768.jpg" alt="Sony 135" width="645" height="484" /></p>
<p>I&#8217;ve only cut one board, but I&#8217;m really happy with the results. I successfully achieved 0.008&#8243; isolation between the pads of the devices, and now I can finally route traces inbetween the pads of 0.1&#8243; headers. I couldn&#8217;t do that before.</p>
<p><img class="alignnone size-large wp-image-478" title="Populated PCB" src="http://www.imsolidstate.com/wp-content/uploads/2009/09/Sony-147-1024x768.jpg" alt="Sony 147" width="645" height="484" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imsolidstate.com/archives/476/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>My homebuilt CNC machine</title>
		<link>http://www.imsolidstate.com/archives/55</link>
		<comments>http://www.imsolidstate.com/archives/55#comments</comments>
		<pubDate>Tue, 25 Aug 2009 23:02:10 +0000</pubDate>
		<dc:creator>imsolidstate</dc:creator>
				<category><![CDATA[CNC]]></category>
		<category><![CDATA[CAD]]></category>
		<category><![CDATA[Engraving]]></category>
		<category><![CDATA[Gcode]]></category>
		<category><![CDATA[PCB]]></category>
		<category><![CDATA[Stepper]]></category>

		<guid isPermaLink="false">http://www.imsolidstate.com/?p=55</guid>
		<description><![CDATA[I finally assembled enough surplus parts and scrap material to build a halfway decent CNC machine. I have been looking forward to actually completing this task for some time, but the appropriate parts and materials are prohibitively expensive for the individual on a budget. This spring I managed to complete the project.
Most of the machine [...]]]></description>
			<content:encoded><![CDATA[<p>I finally assembled enough surplus parts and scrap material to build a halfway decent CNC machine. I have been looking forward to actually completing this task for some time, but the appropriate parts and materials are prohibitively expensive for the individual on a budget. This spring I managed to complete the project.</p>
<p>Most of the machine is made out of either aluminum or acrylic. These materials are both easy to work with when all you have available is various hand tools and a drill press with a cross slide vise. The motors are NEMA 23 high torque, the threaded rods are 1/2-10 precision ACME and the nuts are anti-backlash. This results in pretty decent X-Y movement. I made the slides from extruded aluminum profiles available at the hardware store and some strips of Teflon.</p>
<p><img class="alignnone size-large wp-image-472" title="My CNC workstation" src="http://www.imsolidstate.com/wp-content/uploads/2009/09/Sony-143-1024x768.jpg" alt="Sony 143" width="645" height="484" /></p>
<p>I made all of the electronics that support the machine. I made the optical home and limit switches, as well as both parallel port interface boards. I also assembled the stepper motor drivers and built power filters/regulators for the input to the stepper motor drives on all three axes. This prevents inductive feedback spikes from the motors ruining the stepper motor control ICs. I need this because I&#8217;m running the motors at 48VDC and the controller IC has an absolute maximum voltage rating of 60VDC. I also wanted to keep any switching noise and voltage dips from the switch-mode power supply out of the stepper drives. Each filter has a FET-regulated output that clamps the voltage and then sends it out to some big capacitors to prevent the voltage from dropping.</p>
<p>The parallel interface boards completely isolate the controlling PC from the drives and other electronics. Buffers handle all the appropriate levels and opto-isolators keep the ports safe.</p>
<p><img class="alignnone size-large wp-image-57" title="Control electronics chassis" src="http://www.imsolidstate.com/wp-content/uploads/2009/08/IMAG0072-1024x768.jpg" alt="IMAG0072" width="645" height="484" /></p>
<p>I&#8217;ve run it extensively with <a href="http://www.dakeng.com/">TurboCNC</a>, but I don&#8217;t get any of the limit and home functionality because TurboCNC only supports legacy port addresses, and most parallel port PCI cards can&#8217;t map to legacy addresses. This leaves me with only the one on-board parallel port, which is mostly used up by the 3 axis step and direction signals. It works in <a href="http://www.machsupport.com/">Mach3</a> CNC, but I can&#8217;t afford to buy that program right now. So I&#8217;ve used it in evaluation mode for doing simple text engraving on plastics and acrylic. Oddly enough I couldn&#8217;t get it to work at all in Mach2. The pulse train output to the stepper drives was inconsistent enough that the motors would stall. I even tried it on a few different computers, one of which was a brand new XP install.</p>
<p>The machine mostly cranks out PC boards thanks to <a href="http://www.cadsoft.de/">Eagle CAD</a> and <a href="http://sourceforge.net/apps/mediawiki/pcb2gcode/index.php?title=Main_Page">PCB2GCode</a>. I&#8217;ve made quite a few since the machine was finished. It does a pretty good job, and holds flatness to a couple thousandths. It&#8217;s enough to get routine 0.020&#8243; isolation on traces and pads, and clean 0.012&#8243; trace widths. It&#8217;s a bit slow because of the low-buck slides, the motors stall if I speed it up much. It&#8217;s not exactly a high precision machine, so I can live with slow.</p>
<p>I&#8217;ve got some better parts since I built this one, and I&#8217;m planning on building another one with much better accuracy in the near future. This machine won&#8217;t handle the fine traces necessary to make boards with the newer components.</p>
<p>Here&#8217;s a video of the machine in action:</p>
<p><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/ogZHVd8bbQ8&amp;hl=en&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/ogZHVd8bbQ8&amp;hl=en&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>You can see more videos at youtube: <a href="http://www.youtube.com/watch?v=FMJ5V_Y_-gg&amp;feature=channel">imsolidstate&#8217;s CNC machine</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imsolidstate.com/archives/55/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

