Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: jackkk on December 01, 2015, 06:00:00 AM

Title: Need help converting .png to gcode
Post by: jackkk on December 01, 2015, 06:00:00 AM
I am trying to make a small series of holes in thin plastic. I have the design I want but I'm struggling to understand how to convert it to gcode.

It's using a 0.1mm drill bit, to a depth of 1mm and approx 50 holes need to be drilled in one part, which is repeated 8 times per sheet of plastic.

If anyone can take the .png or .psd and send me the gcode needed to make it in Mach3 I'd be willing to pay for their help!
Title: Re: Need help converting .png to gcode
Post by: Tweakie.CNC on December 01, 2015, 06:16:59 AM
Hi Jackkk,

Welcome to the forum.

I am certain there are lots of folks here only to willing to help and I don't think any of them would charge you for their assistance.

Either post your .png here or click on the envelope (below Superkitty) and email it to me and I will see what I can do (unless someone else beats me to it  :) )

Tweakie.
Title: Re: Need help converting .png to gcode
Post by: jackkk on December 01, 2015, 06:21:13 AM
Thanks, I Sent you the download link to the file. I thought I was technically inclined but I've spent all day on this and so far have managed practically squat lol.
Title: Re: Need help converting .png to gcode
Post by: ger21 on December 01, 2015, 07:20:12 AM
A .png file is really the wrong format for this. .png files are raster images, consisting of pixels. Unless the file contains dpi info, there's no real size information in a .png. And even if there were, the resolution of the image file can affect the accuracy. Note that's it's impossible to draw a round hole in a raster image, which is made of of square pixels.

No, if your file is an image of a drawing with dimensions, then that's different.
Title: Re: Need help converting .png to gcode
Post by: Tweakie.CNC on December 01, 2015, 07:25:28 AM
I have to admit defeat on this one as I am unable to easily generate a drill file from the .png - perhaps someone else can give it a try ?

Tweakie.
Title: Re: Need help converting .png to gcode
Post by: jackkk on December 01, 2015, 08:18:23 AM
A .png file is really the wrong format for this. .png files are raster images, consisting of pixels. Unless the file contains dpi info, there's no real size information in a .png. And even if there were, the resolution of the image file can affect the accuracy. Note that's it's impossible to draw a round hole in a raster image, which is made of of square pixels.

No, if your file is an image of a drawing with dimensions, then that's different.


Hmm I also have it in .psd

I have a lot more reading to do
Title: Re: Need help converting .png to gcode
Post by: BR549 on December 01, 2015, 09:04:18 AM
COnvert it to a PDF then import teh PDF into cad. OR use Inkscape to do a raster to vestor conversion. BUT in both case you need to double check your geometry and positions.

(;-) TP
Title: Re: Need help converting .png to gcode
Post by: ger21 on December 01, 2015, 09:28:41 AM
Converting to pdf won't do any good, as it will be a raster .pdf.
You really need to use a vector drawing program, and not Photoshop.
Title:
Post by: bwprice100 on December 01, 2015, 12:56:32 PM
Can you import it into a CAD programme and trace around it?

www.ebolt.co.uk
Title: Re: Need help converting .png to gcode
Post by: garyhlucas on December 01, 2015, 01:19:08 PM
Sometimes you need to use something other than your favorite hammer. This is one of those times. Get yourself a copy of CamBam with 40 uses for free. Draw your part, create a G-code file, machine your part, done!
Title: Re: Need help converting .png to gcode
Post by: BR549 on December 01, 2015, 01:23:53 PM
Post the file here OR send me the FIle

(;-) TP
Title: Re: Need help converting .png to gcode
Post by: Tweakie.CNC on December 02, 2015, 12:56:07 AM
Can you import it into a CAD programme and trace around it?

www.ebolt.co.uk

Yes, that is not difficult to do but it results in a series of 86 circles per group. Getting from there to a drill pattern is the hard part (at least with any reasonable degree of accuracy).


Jackkk,

Post your pattern for others to look at then I am sure an answer will be found.


Tweakie.