Monday, March 12, 2012

using Inkscape and Gcodetools for CNC plasma cutting

I like SheetCam for generating G-code for a CNC plasma cutter from DXF or SVG drawings, but I prefer free and/or open source programs that students can use on their own computers. Inkscape and the Gcodetools plug-in achieve that.

Version 0.49 of Inkscape will include Gcodetools, but until then we have to extract the contents of the Gcodetools download (using a program such as 7-zip) and put them in the appropriate Inkscape directory (probably c:\Program Files\Inkscape\share\extensions\ on Windows).

Once you have this set up, start up Inkscape and check under the Extensions menu for Gcodetools.
If it's not there, close Inkscape, make sure the files are copied to the correct directory, and restart Inkscape.

The process for creating G-code from a drawing follows:

Open (or create) a drawing in Inkscape. Make sure the bottom left corner of your drawing is at the bottom left of the document. As an example, I'll be making an arcade controller top for mounting buttons and a joystick.

Convert all objects to paths. Keyboard shortcuts to do this are <Ctrl><a> (to select everything) then <Shift><Ctrl><c> to convert objects to paths.

You should now have only "objects of type Path".

Now we need to set some orientation points. Click on the Extensions menu and select Gcodetools then Orientation points....

Change the Units to inches (in) and click Apply then Close.

To specify that you're going to use a plasma cutter, click on the Extensions menu and select Gcodetools then Tools library...

Select plasma and click Apply.

This will create a green text box with your tool definition in it.

You will be able to edit the text to edit it and change things like your feed rate. For now all we want to do is remove some of the "gcode before path" lines. Double-click that text box and delete everything but the line "M03 (turn on plasma)" so that it looks like this:

Next you will need to select all of your objects again (press F1 to use the arrow tool again instead of the text tool) and choose Prepare path for plasma...

This will bring up a window allowing you to create lead-in and lead-out paths, as explained in this article on torchmate.com. You'll probably want a short in-out path to make a cleaner cut and to show you which direction the torch will be cutting. Remember that the units for the length are inches. Click Apply create the paths and click Close to close that tool once it has finished.

If you don't like how the in-out paths look, you can undo it and try again until you get something that looks like this:

You can now select and delete the objects in your original drawing so you will just see the cut paths.

Now select Path to Gcode....

Click on the Preferences tab to make sure you will be saving the file onto your flash drive (e.g. drive e:\).

Select the Path to Gcode tab and click Apply. Read through any warnings that pop up, but you should get some usable G-code.

Open the file in Notepad or a similar text editor, and it should look like this:

The one thing you'll want to change is to delete the M3 on the fourth line of the file. M3 is the Gcode for turning on the torch, and we don't want it to turn on until the torch has moved into position. You can eliminate this step by having an empty file in your output directory (e:\ or wherever you specified earlier) that is called header.txt (edit: the empty file should just be named header with no extension).Your output file will then look like this:

Open that output.ngc file in Mach3, make sure everything looks as you expect, set up the torch (talk to your Instructor about the torch settings), and click Cycle Start (or press <Alt><r>). You may need to click (or press) this again every time the torch fires if it's set to pause before cutting. 

Hopefully everything will work for you and you'll have a nicely cut metal project.


Monday, March 5, 2012

mapping box.com as a network drive

To make better use of my 50 GB of free online storage at Box.com, I've just learned that you can map it a network drive.

Windows Instructions:
Right-click on "My Computer" (or "Computer") and choose "Map Network Drive...".
In the "Folder" box type   http://www.box.net/dav/
Click on "Connect using a different user name." and input your Box.com username and password.
Click the "Finish" button and in a minute or two you should have a new network drive on your computer that is your Box.com files and folders.

Monday, February 27, 2012

professional development presentations

In case you're curious about some of the things that I do, here are links to presentations that I'm giving at the upcoming district professional development day.

Quick and Easy Technology Implementation
Asynchronous Professional Develoment
Communicating With Students and Parents Using Social Media
3D Design and Printing, CNC Cutting, Etc.

Not all of them are complete as I post this, but feel free to take a look.

Wednesday, February 8, 2012

project photos

I haven't gotten around to documenting these, but I thought I'd post some pictures of a few projects I've worked on lately. Hopefully I'll get around to more complete documentation some time.

What's wrong with opening it this way?

T-shirt we printed for my sister-in-law.

building a MakerBot

CNC plasma cutting

keyboard hacking for a CNC controller
joystick and buttons for the CNC controller


two player arcade controller
(plasma-cut sheet metal)
(parts from xgaming.com and paradisearcadeshop.com)


Saturday, December 3, 2011

hippopotamus for Christmas

For some reason there's been talk of hippos this season, so I thought I'd print one.


The model was this one from Thingiverse. It printed as a top half and bottom half (10% infill, one shell). I used a heat gun to warm up the faces to stick them together.

Saturday, November 26, 2011

a Rock Band or Guitar Hero instrument hanger

I've found myself with a number of video game instruments, some of them just for parts, so I thought I'd get them out of the way and display them in the basement.

That is a 2x4 with 4" screws spaced 2" apart. It's 11" from the left screw of one guitar to the left screw of the next guitar.

The strap closest to the camera is how I've hung my Rock Band keyboard (keytar).

Thursday, November 24, 2011

metal Makerbot spool holder

A common issue with the Makerbot 3D printer is setting up something to hold the spool of plastic as it is being fed into the machine. I decided to cut a spool stand out of metal using a CNC plasma cutter that I have access to.

The spool is about 8 inches across, with a 2 inch hole in the middle (I know, metric measurements are preferable, but the plasma cutter workflow is easier in inches). I wanted something quick and easy that would hold the spool vertically, so I came up with this:


I drew it in Inkscape for cutting out of flat sheet of 1/8th inch steel, exported the drawing using Better DXF Output for SheetCam to turn it  into g-code for the CNC plasma cutter. I'm currently looking into PyCAM, heekscnc, and PartKAM as free alternatives to SheetCam, but that's another post.

After cutting it out, I bent it on a brake to an angle of about 135 degrees (about 3π/4 radians) and cleaned up the edges using a bench grinder. In hindsight it would have been easier to do those steps in the opposite order, but I guess that's part of the learning process.



And here's the (mostly) finished product. I still need to add a piece of plastic or slippery tape where the spool rests on the metal in order to allow it to spin more freely.

If I build another version of this, I'll round the corners a little more and cut some sort of design into the base.