Skip to content

Week 16 - Wild Card Week

  • A digital process
  • You have to make something
  • define your own specification

  • assigment details

I want to…

  • Learn more about G-Code,
  • Do something relevant for my final project,
  • Come up with a new way to use a machine.

New in this assignment:

  • Hot-wire foam cutting is a different subractive process,
  • designing, generating G-code in Inkscape is deeper than we went into gcode so far,
  • and modifying the Ender 3 and adding the nichrome wire is new.

* Note: I’m calling it version 2 (etc.), because there was a group of volunteers that tried before. I stole their wire, powersupply and aligator clips, but everything else is new.

Hero Shot

Hero Shot

Initial Thoughts

AxiDraw TMC2209

To hack our pen plotter and add more features. We have an AxiDraw v3 (A4 version) - I would like to add Wi-Fi and an SD Card Reader. Add the possibility for paint pots and other tool-types. The Axi-Draw is fragile. The USB connector is strained, almost broken. I have a FluidNC TMC2209 controller by Bart Dring left over from a previous project.

Work on Axi-Draw…

Looking at the terminals on the EBB and the Fluid NC board looks like a pretty straightforward swap to get started…

HAxiDraw With Paints

The idea here is to sacrifice a bit of work space to allow use of other tools, eg brushes, space for future toolchange rack.


The Web installer to Flash the Wi-Fi Firmware.

It is not mentioned, that you have to power the board, to access over USB.


It is then available on its own hotspot. Join that, and enter credentials for the network you want to use.

In our case, it is a specific IoT network provided by our university. I contacted out IT department, asked them to reserve the IP address, and to provide a network bridge to the network we use on our personal devices.


Then, uploaded a config file:

Which was based on the official ‘TMC2209_corexy.yaml’ example. Which came from the FluidNC config files, published by the developer @bdring.


I started wiring up the board.

But I got some magic smoke from a chip near the servo connector… I don’t know what it was, and the web interface still loads.


That was as far as I got for now…

Next Idea

To modify a 3D Printer to be a Hot Wire Cutter, and use this to learn about GCode etc. And still fulfill the aims at the top.

Ender3, as received This is the material, XPS Foam

Our donated Ender 3 and Extruded Polystyrene (Kingspan GreenGuard) material often used by architecture students, plentiful, cheap.

So, I measured up the printer

Measuring up the printer, to know how much room I have for the wire, the frame and the foam.

I put all these measurements in Rhino3D to prepare the mod parts. (will add to Files section soon). I prepared a cut for 18mm Plywood on CNC. In version 3 I switched to a laser-cut arm of 2x3mm plywood. It was definitely not as rigid, but strong in-plane, which was good enough, and fast enough for now.

This is what I cut on the CNC

This is the 2nd version.

This is V2

Then version 3 revision:

Laser Cutting for v3

More Prep for v3

Moved the tension spring to the bottom (and then around the bolt). I added a single terminal from a terminal block to connect the spring and wire.

Wire Setup is Backwards

This is the wire powered up.

Hot

Software

I used Inkscape’s built in Gcodetools extensions. It’s pretty basic, but it can be made to work. I checked the website ncviewer.com to see a preview. At first I used PronterFace/PrintRun (link), but from version 3, I was confident enough to use an SD Card.

Inkscape steps

Open a new file and set up the Document Preferences, with the dimensions of the machine. As follows:

Inkscape Document Preferences

Go to Extensions > Gcodetools > Orientation Points. It’s important to have Z-Depth set to something less than Z-Surface. If both are 0.000, nothing will be generated!

Gcodetools Orientation Points

This sets out a few markers on the canvas. They’re not going to be rendered to the Gcode, they are just to indicate the origin, and axes, and scale.

Added Orientation Points

Copy in your paths or draw with the tools, however you wish. Place with reference to the origin/orientation points.

Then simplify to a Path, and Ungrouped, if necessary. See the hint at the bottom to see if necessary. I changed the style to no fill, 0.5px black stroke. The hint should say something like “Path with 26 nodes”.

Inkscape style settings

inkscape style overview and selection hint.

Then, with the path selected, go to Extensions > Gcodetools > Path to Gcode.

Gcodetool options

There wasn’t too much to change. Under the Preferences tab, I changed the extension from .ngc to .gcode, and the export path to /home/users_name/Downloads. Go back to the main tab, and hit Export.

No error...

There is a pop-up. For me this says “Inkscape has received additional data from the script executed”, or that no tool was selected, or export directory didn’t exist(which I did fix). If all exported well, you should now see an inkscape object, the green box. These text items are linked to the Gcodetools configuration, and you can change them and re-export.

Inkscape Done

How my inkscape file looked with all that done.

And in NCViewer.com:

NC Viewer

GCode

This is what it exports:

%
(Header)
(Generated by gcodetools from Inkscape.)
(Using default header. To add your own header create file "header" in the output dir.)
M3
(Header end.)
G21 (All units in mm)

(Start cutting path id: path258)
(Change tool to Default tool)

G00 Z5.000000
G00 X18.607588 Y90.165220

G01 Z-1.000000 F100.0(Penetrate)
G01 X69.951042 Y76.502400 Z-1.000000 F400.000000
G01 X69.951042 Y69.958630 Z-1.000000
G01 X36.297350 Y59.963190 Z-1.000000
G01 X32.126593 Y58.812640 Z-1.000000
G02 X30.036050 Y58.257901 Z-1.000000 I-29.375201 J106.484490
G02 X28.459203 Y57.877810 Z-1.000000 I-15.344608 J60.197748
G03 X26.805519 Y57.517197 Z-1.000000 I276.874136 J-1273.649013
G03 X26.158096 Y57.374450 Z-1.000000 I42.734548 J-195.360697
G02 X27.084571 Y57.248270 Z-1.000000 I-0.612166 J-7.959218
G02 X30.185034 Y56.583440 Z-1.000000 I-17.695557 J-90.085980
G02 X33.187995 Y55.869634 Z-1.000000 I-14.518316 J-67.751759
G02 X36.513078 Y54.929520 Z-1.000000 I-21.958372 J-84.014673
G01 X69.951042 Y45.221720 Z-1.000000
G01 X69.951042 Y38.677950 Z-1.000000
G01 X18.607588 Y25.087040 Z-1.000000
G01 X18.607588 Y31.846540 Z-1.000000
G01 X49.960174 Y39.828500 Z-1.000000
G02 X53.280725 Y40.634467 Z-1.000000 I25.268774 J-96.863078
G02 X56.360128 Y41.266700 Z-1.000000 I18.577317 J-82.668597
G02 X59.461564 Y41.859100 Z-1.000000 I18.390960 J-87.868794
G02 X62.184805 Y42.273430 Z-1.000000 I11.636340 J-67.324826
G02 X59.391664 Y42.698689 Z-1.000000 I7.618879 J59.426919
G02 X56.072490 Y43.352070 Z-1.000000 I14.926841 J84.585735
G02 X52.779823 Y44.130434 Z-1.000000 I19.888750 J91.487750
G02 X49.600626 Y45.006000 Z-1.000000 I22.019873 J86.164239
G01 X18.607588 Y54.066600 Z-1.000000
G01 X18.607588 Y60.754200 Z-1.000000
G01 X49.816354 Y70.174360 Z-1.000000
G02 X53.141737 Y71.113729 Z-1.000000 I24.993673 J-82.122438
G02 X56.432038 Y71.900190 Z-1.000000 I20.768230 J-79.611575
G02 X59.677873 Y72.564939 Z-1.000000 I21.571566 J-97.072827
G02 X62.184805 Y72.978830 Z-1.000000 I10.777763 J-57.481606
G02 X59.533007 Y73.389878 Z-1.000000 I9.233385 J68.326665
G02 X56.432038 Y73.985560 Z-1.000000 I16.456805 J94.039279
G02 X53.277070 Y74.672153 Z-1.000000 I25.844599 J126.350694
G02 X49.888264 Y75.495670 Z-1.000000 I33.831182 J146.600980
G01 X18.607588 Y83.405720 Z-1.000000
G01 X18.607588 Y90.165220 Z-1.000000
G00 Z5.000000

(End cutting path id: path258)


(Footer)
M5
G00 X0.0000 Y0.0000
M2
(Using default footer. To add your own footer create file "footer" in the output dir.)
(end)
%

GCode Learnings

  1. Having swapped the arm side. The machine can safely execute a G28 (Auto Home) or similar, that doesn’t cause everything to crash. Usually.
  2. The F400.0 on the first G1 line (line 15) sets the feedrate for the job. If the wire moves too slowly it cuts too wide, and there were better results from going in and changing this to about 1200. The wire is a consumable. It’s going to break sometimes.
  3. The comments are useful. The name path258 is taken from the Layers panel, so if you name your different objects, you can debug a bit easier.

Cutting

Cut Test A

Rectangle cut at F400.0 feedrate. Laser Cut XPS foam on the right (each pass is really clear due to the massive kerf!)

Cut Test B

Cylinder is faceted. I and J arcs not showing up on previews…

Cut Test C

Letter test, except crashed a bit.

Bonus

How to restring the wire, after a crash:

Next to do something intricate! :P

Files