018 :: refining KiCad to Gcode workflow





Yes, i am still using this weird looking circuit. Still grinding with it. Some slight mods this time, added a device into KiCad, a meter. Nothing to shout about, Kicad has a great GUI to work with, its a breeze.

This round i did some exploration on PCB track routing refinements, i believed many PCB hobbyists did what i did years ago, so much for being cooped up in the mountain for too long :p




Based on the new routing example, i have intentionally left out the "ground plane" or negative rail. In the next few process which leads to formation of a DXF and Gcode, I realised that due to the routing behavior of a PCB mill, i do not have to route any ground plane at all. It is like cheating, 1 less item to mill.



Screen grab this piece, without the whatever masks and markings etc etc.





Frame out the PCB at the cut edges in PS, and apply greyscale (remove color, you are only working on 1 single plane of copper anyway) + tweak the black and white scaling. Apply a smart blur with edge and you will get a very nice 1 pixel boundary of all your tracks, and where is that bloody ground plane? it is just everything else of the uncut copper ! come on now, it took alot to make a PCB, lets save our earth by not wasting too much copper. Make your cake and eat it, in this case, make your own PCB and ROHS it aye? In the process of using PS to convert the PCB frame, it is possible to adjust the size to fit exactly as your PCB size, however, i have no machine to proof whether it does scale 1:1 at this moment. According to the internal KiCad measurements, this PCB is roughly 1.15" x 1.10" (@ 1A current, i think i need a 2oz board LOL !!! )

Using this very nice piece of artwork, dump it into a PNG to DXF converter (quite commonly available). In the process of searching the universe for a proper vectorizing program, I have tried the following programs like a mini review :

1) Magic tracer --> TONS of slider options, live preview. You need to sit there a day to get it. (i give this app a 5/10) 1 advantage of this bloke is, you can actually draw the vector in, so my take is this app is really powerful, and it could be used in some special works.
2) Raster 2 vector --> very easy to use, only 3 major parameters to play with. results is very good.(i give this app a 7/10)
3) potrace, MSDOS command line program. yes i know how to use a MSDOS cmd line. But no thanks
4) Vector Magic --> moderate amount of tweakables, ability to use internal engine which works REALLY well. (7/10 too !)
5) There are TONS of raster to vector apps out there, i am very sure there is one that will mind meld with you. But i found what i needed !

note that i have purposely left the outlines in the DXF trace so that there is a way to sync the scale of the process later on where possible.

Then after you have birthed the DXF, use the very nice DXF2GCODE converter ... and ... wala ! (see the pic of the sample gcode to the left, 6 pages of that to be exact in this particular case) However, at this point of time i have no idea if this does indeed translate to a true working and successful milling run, i have no hybrid cartesian machine to try it out yet.

all thanks to the remarkable German bit of engineering from Mr Christian Kohlöffel (http://christian-kohloeffel.homepage.t-online.de/index.html)

So now the next step will be, calibrating the above process to a scale that fits an actual PCB. it could be at the PS process or it could be at the Gcode segment. due to the fact that my machine will be months away still, this will take some time.

(no step sticks are harmed in this experiment.) the above has been made possible after churning out 137 attempts at making any of the following : DXF, PNG, NGC etc etc etc.

26th March 2013 edit --> certain rasterizing programs have limitations. This puts a limitation on the size that can be converted directly 1:1 scale to about less than 3000pixels. contact has been made to ascertain other scaling possibilities so that this very nice methodology can actually be done for larger raster conversions ...
... to be continued

Comments

Popular Posts