Generating G-Code for line art is a simple process that can be perfected with a little practice and the appropriate software. CNC machines are spectacular for cutting line art, whether you are doing a one-off piece or mass production. Line art can mean anything from actual line art, to simple mechanical components that can be easily drawn with a line, such as a gear or wheel. CNC machines can replace machines like a scroll saw, and make part to precision. This article will discuss exactly how to create G-code from line art.
Step 1: Get a good digital image of what you need to create
If you have line art on physical paper, such as a scroll saw pattern you purchased, you need to first digitize the image. A digital camera won’t do, since even the slightest tilt will result in a stretched image. What you really need is an orthographic view of the page, and a digital camera can’t do that for you. You will need a scanner with at least 600 DPI scan resolution. To my knowledge, this is about as high as most scanners go, and is a common number. Scanners are cheap if you’d like to purchase one, just make sure if has this scan resolution. Otherwise, you can use a FedEx Express if you only have a few pages that need scanning.
Step 2: Cleaning up the digital image
Scanning in the image is not enough. You must clean it up before you can use it to create G-Code. Your goal is to produce a nearly black and white image with very crisp lines. To the left is an example of the clean up process before and after. Note, the image is fairly large, but you can see all the details if you click on the image.
There are a couple things you should notice. First, the image is very large, especially for a gear that is about 3 inches across. This is because many CNC machines are accurate to a few microns, so you need to keep everything in the original resolution of 600 DPI. This will produce good, accurate G-code later on. In the original image, notice that you can see the other side of the page leak through, as well as one of my hairs that apparently got on the paper before scanning. These can both be easily removed.
To perform the image cleanup, you’ll need a copy of Photoshop. If you don’t own a copy since it’s expensive, Adobe recently started a model where you can rent Photoshop for a month for thirty dollars or so. That puts it well within reach for many CNC hobbyists. To clean up an the edges of all the lines as well as eliminate the bleed through from the back of the page, go to Image->Adjustments->Levels, and play around with the arrows under the histogram until you have nice, crisp lines that are very well defined. Don’t go too far, however, since you don’t want any breaks in any of the lines. To get rid of other defects such as hair or text, you can use the small eraser in Photoshop and zoom in very far. This will let you remove any defects with ease.
Pages: 1 2