{"id":1819,"date":"2014-09-16T11:15:10","date_gmt":"2014-09-16T18:15:10","guid":{"rendered":"http:\/\/thelawlers.com\/Blognosticator\/?p=1819"},"modified":"2023-02-19T10:08:43","modified_gmt":"2023-02-19T18:08:43","slug":"making-things-i-designed-in-illustrator-cnc-routing","status":"publish","type":"post","link":"https:\/\/thelawlers.com\/Blognosticator\/?p=1819","title":{"rendered":"Making things I designed in Illustrator <br>\u2013 CNC routing"},"content":{"rendered":"<p><a href=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/07\/Blognosticator-Head.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1755\" src=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/07\/Blognosticator-Head.png\" alt=\"Blognosticator Head\" width=\"252\" height=\"115\" \/><\/a><\/p>\n<p>In previous blogs I have described how I have designed things in Illustrator, then built them out of wood in my shop. The shop in question is located in my friend Jim\u2019s barn. We consolidated shops in 2005 when I moved into a small house where there is no room for large power tools.<\/p>\n<p>Since then we have expanded the shop to include several stationary power tools and a very large work bench and assembly table that has electricity and compressed air delivered to its perimeter. I have added digital micrometers to two of our tools \u2013 one to the router table, making it precise to 0.001 in., another to our 12-inch planer, adding the ability to dial-in similar precision to cuts we make on that machine.<\/p>\n<p>Moving deeper into the digital domain, last month we installed a large CNC router table, and we have been learning the ropes of computer-controlled routing since then. The CNC machine is a product of a Washington state company called <a title=\"CNC Router Parts\" href=\"http:\/\/www.cncrouterparts.com\" target=\"_blank\" rel=\"noopener\">Avid CNC.<\/a> They sell kits for the do-it-yourselfer to make a CNC machine of your own. The parts are well-made; the precision of the machine is extraordinary.<\/p>\n<p><a href=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Making-T-slot-board-08.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1822\" src=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Making-T-slot-board-08.jpg\" alt=\"Making T-slot board 08\" width=\"684\" height=\"456\" srcset=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Making-T-slot-board-08.jpg 684w, https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Making-T-slot-board-08-300x200.jpg 300w\" sizes=\"auto, (max-width: 684px) 100vw, 684px\" \/><\/a> <em><span style=\"color: #0000ff;\">This is the CNC router, built from a kit made by Avid CNC. At the moment of this photo the router was cutting T-slots in a sheet of 3\/4 in. hardwood plywood. That plywood sheet will become a hold-down board for future projects.<\/span><\/em><\/p>\n<p>Once the machine was assembled, which took the better part of two days, it was ready to run. We entered the learning mode, where we have been for several weeks. We have learned that the machine will do exactly what you tell it to do \u2013 even machine right through itself, if you give it the wrong instructions.<\/p>\n<p>It\u2019s a very powerful machine, using four NEMA 34 stepper motors to control the movements and position of a DeWalt 3.5 HP router (replaced twice since with more powerful motors).<\/p>\n<p>We run the machine with a program called <a title=\"Mach3 Software\" href=\"http:\/\/www.machsupport.com\/software\/mach3\/\" target=\"_blank\" rel=\"noopener\"><em>Mach3,<\/em><\/a> which is probably the most common machine control software in the industry. That software can be customized to control a wide variety of CNC devices. Ours is pretty simple \u2013 left-right (X), back-forth (Y), and up-down (Z). But within these three seemingly simple axes are a world of complexities: cutting speed, spindle speed, plunge speed, cutting depth, number of passes, step-over settings, tabs, and much more.<\/p>\n<p>CNC machines of all types use a control schema called G-code. G-code is text, thankfully, and it\u2019s pretty easy to interpret. Here is a snippet of G-code:<\/p>\n<pre>G0 X0.0000 Y0.0000 Z0.8000\n(Closet shelves 3)\nT1\n(End Mill {0.25 inches})\nF150.0\nF30.0\nS6000\nG0 X9.0267 Y4.7822 Z0.2000\nG1 \u00a0 Z-0.2500 F30.0\nG1\u00a0 Y17.5546\u00a0 F150.0\nG1 X9.0767\nG1 X9.0765 Y4.7744\nG1 X9.0753 Y4.7632\nG1 X9.0728 Y4.7555\nG1 X9.0666 Y4.7520\nG1 X9.0559 Y4.7498\nG1 X9.0435 Y4.7503\nG1 X9.0345 Y4.7530\nG1 X9.0304 Y4.7559\nG1 X9.0277 Y4.7663\nG1 X9.0267 Y4.7822\nG1 X8.9267 Y4.7810<\/pre>\n<p>If you study the G-code, you\u2019ll begin to recognize its instructions. The top line tells the machine to go to X0, Y0, and 0.8 Z, which is eight-tenths of an inch above the work surface. This is \u201chome\u201d for the X and Y axes, and a safe margin above the material so it doesn\u2019t start cutting too soon. The T1 is a definition for Tool 1 (some machines have multiple tools). Ours has only one, and in this case, it\u2019s defined as an end-mill (a simple two-flute 1\/4 in. diameter router cutter). The next two lines are X and Y cutting speed (150 in. per minute or 2.5 inches per second, which is pretty fast), and a plunge speed of 30 inches per minute, which translates into one-half inch per second, also pretty fast. The S stands for spindle speed, which in this case is 6,000 rpm.<\/p>\n<p><a href=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/CNC-Router-06.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1823\" src=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/CNC-Router-06.jpg\" alt=\"CNC Router 06\" width=\"684\" height=\"456\" srcset=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/CNC-Router-06.jpg 684w, https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/CNC-Router-06-300x200.jpg 300w\" sizes=\"auto, (max-width: 684px) 100vw, 684px\" \/><\/a> <em><span style=\"color: #0000ff;\">The router is controlled by a Windows PC, running two programs: V-Carve Pro and Mach3, both of which are necessary to do CNC design and machine control.<\/span><\/em><\/p>\n<p>Then the work begins, which an instruction to move 9.0267 inches along the left-right axis, 4.7822 inches along the back-forth (Y) axis, and to hover above the material at 0.2 inches (it will begin cutting there). Following these instructions, we learn that the machine is starting a cutting path at this location because it immediately plunges the cutter .25 inches down (below zero Z), then moves to a new location along the Y axis only (a straight line), then a similar cut along the X axis, and begins a complex \u201ccurved\u201d cut described by hundreds of lines of X-Y code positions.<\/p>\n<p>Machines like this don\u2019t really cut curves, they step in both X and Y directions in small increments, making the effect of a curve in the material being machined. It\u2019s equivalent to the effect of applying a raster to a curve in Adobe Photoshop. The curve is converted from a mathematical entity into a series of pixels on an X-Y grid defined by the resolution of the photo. In the CNC software, that raster grid is 0.0001 in., though the resolution of the machine is closer to 0.002 inch. The stepper motors can move in micro-steps, essentially half-steps that can increment the cutter between two poles of the stepper motors.<\/p>\n<p><a href=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Cubbyhole-layout.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1824\" src=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Cubbyhole-layout.jpg\" alt=\"Print\" width=\"832\" height=\"738\" srcset=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Cubbyhole-layout.jpg 832w, https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Cubbyhole-layout-300x266.jpg 300w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><\/a> <em><span style=\"color: #0000ff;\">These are parts designed in Adobe Illustrator for a set of interlocking shelves I made for a\u00a0cabinet in my camper van. I drew them at actual size in Illustrator, imported the file into V-Carve, and machined the parts in Baltic 1\/4-inch plywood.<\/span><\/em><\/p>\n<p>I suppose, with a bit of practice, one could write G-code by hand; it would be like writing a photo\u2019s pixels with a word processor. The consequences of error are much greater when you are running a multi-horsepower machine with a spinning blade into a block of wood, or worse \u2013 part of its own aluminum or steel superstructure. Oops!<\/p>\n<p><a href=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Exploded-view.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1825\" src=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Exploded-view.jpg\" alt=\"Print\" width=\"684\" height=\"304\" srcset=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Exploded-view.jpg 684w, https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Exploded-view-300x133.jpg 300w\" sizes=\"auto, (max-width: 684px) 100vw, 684px\" \/><\/a> <em><span style=\"color: #0000ff;\">This is the exploded view of the shelves I drew\u00a0in Adobe Illustrator. I used the 3D extrude tools in Illustrator to convert 2D art into 3D representations.<\/span><\/em><\/p>\n<p>To build the G-code, we use another program. The program we have chosen is a Windows-only application called <a title=\"V-Carve software\" href=\"http:\/\/www.vectric.com\/products\/vcarve-pro.htm\" target=\"_blank\" rel=\"noopener\">V-Carve.<\/a> It\u2019s a very popular CNC design tool for a variety of uses, and it has the ability to import Adobe Illustrator (.ai) files directly. I experimented with a similar program for Macintosh called <a title=\"MESHCam software\" href=\"http:\/\/www.grzsoftware.com\" target=\"_blank\" rel=\"noopener\">MESHCam,<\/a> which is nice, but it lacks many of the capabilities of V-Carve on Windows, and it requires the intermediate step of exporting DXF files from Illustrator (no big deal, but it\u2019s an extra step).<\/p>\n<p><a href=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Shelves-extreme-wide-05.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1826\" src=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Shelves-extreme-wide-05.jpg\" alt=\"Shelves extreme wide 05\" width=\"684\" height=\"278\" srcset=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Shelves-extreme-wide-05.jpg 684w, https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2014\/09\/Shelves-extreme-wide-05-300x121.jpg 300w\" sizes=\"auto, (max-width: 684px) 100vw, 684px\" \/><\/a> <em><span style=\"color: #0000ff;\">\u2026and these are the finished shelves in the\u00a0cabinet of my van. They provide easy storage for our clothes when we go out camping in the RV.<\/span><\/em><\/p>\n<p>The way V-Carve (and similar programs) works is to declare a material size and thickness, and the origin X,Y as one of the corners (three-dimensional space can be reassigned on these CNC machines).<\/p>\n<p>Once the material is defined, then cutting paths can be drawn in V-Carve or imported from Adobe <em>Illustrator.<\/em> Once those paths have been imported, they can be assigned to cutting tools, with cutting speeds and cutting depths assigned. When complete (and I am glossing over a lot of detail here), V-Carve generates the G-code for the project, and you load the G-code into Mach3, and you make your parts. This, after mounting the material solidly to the cutting table of the machine. You\u2019re in big trouble if you fail to secure your work to the table.<\/p>\n<p>Once it gets going, the CNC machine is a delight to watch. It roars around the material raising and plunging its cutter into the material and making a huge amount of sawdust where there once was solid material. It also makes a lot of noise. In the coming days I will write about some of my projects, and will show examples of how I have been using the machine to make practical things from Adobe Illustrator designs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In previous blogs I have described how I have designed things in Illustrator, then built them out of wood in my shop. The shop in question is located in my friend Jim\u2019s barn. We consolidated shops in 2005 when I &hellip; <a href=\"https:\/\/thelawlers.com\/Blognosticator\/?p=1819\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,9,30],"tags":[64,426,427,428,430,429],"class_list":["post-1819","post","type-post","status-publish","format-standard","hentry","category-gadgets","category-new-technology","category-technology","tag-brian-lawler","tag-cnc-router","tag-cnc-router-parts","tag-cnc-routing","tag-machine-cut-parts-from-illustrator","tag-machining-parts-from-adobe-illustrator"],"_links":{"self":[{"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/posts\/1819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1819"}],"version-history":[{"count":14,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/posts\/1819\/revisions"}],"predecessor-version":[{"id":3567,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/posts\/1819\/revisions\/3567"}],"wp:attachment":[{"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}