Posts Tagged ‘ meshcam

New CNC Cut : Anchorage To Talkeetna

When I was at our family’s cabin in the Talkeetna (Alaska) area last, my father gave me some birch from our property he’d felled, milled, and planed.  I brought that back to CA, and for the longest time have been thinking what to cut on it.

Realized it would make a great Christmas gift to give it back to them with some art.

As a test piece, since I’d never used this wood before, I turned some clouds from the SW corner of Jupiter’s Great Red Spot into a height map, and cut that.  It took 9 hours with rough + finish, mainly because of all the height variation and the 1/8″ tapered ballnose I used for the finish:

theSpot_web

Armed with that test success, I moved onto my next piece.

Using terrain2stl, I captured the terrain between my hometown (Anchorage) and the region our cabin is at (Talkeetna).  I cleaned this up in Autodesk Maya, added the text, and send this to MeshCAM where I generated the toolpath for my X-Carve CNC:

anch2talkeet_beauty_web anch2talkeet_angle_web

After a combined 6 hours for the rough, finish (both with a 3-flute upcut .25″ ballnose endmill), and pencil cleanup (on the text, with 1/8″ tapered 2-flute upcut ballnose) passes I did some sanding, stained it, then applied the paint for Cook Inlet, and the major rivers in the area.  Measure over a foot wide, and around 30″ tall.

Turned out beautiful, and I look forward to seeing it at our cabin next time I’m up there.

CNC The Bay

I bought & assembled my X-Carve cnc during Christmas, 2015.  Ever since then, I thought it would be perfect to do topo maps.  I had great success with Denali & Lake Tahoe, but always wanted to do something bigger.  In fact, a year before the X-Carve’s arrival, I’d 3d printed the (lower half) of the San Franisco Bay Area, which I felt turned out well.

Some friends and I took a trip to Firewood Farms in Half Moon Bay, where I picked up a couple slabs of redwood, without really knowing what I was going to do with them at the time.  Then the stars aligned, and I realized one was the perfect shape to do a cnc topo map of the whole bay area.  “The Bay” is the result:

uberbay_final_web

uberbay_persp_web

uberbay_closeup_web

More pics below.

Info on it:

  • The piece measures 17×30″, and about 1.75″ deep.
  • Rough cut was 3h, 10min.  Finish pass was 6h, 20min.   Total was 9.5h (my whole Saturday…).
  • Used a 3-flute .25″ ballnose for both passes, DeWalt router on speed 1.
  • Roughcut feed for X/Y was at 150″/min, finish pass was at 210″/min.
  • Roughcut feed for Z was 20″/min, finish pass was 40″/min : I had to modify my firmware to get these speeds.  I tried a faster z-feed, but the machine couldn’t raise the spindle that fast, and chaos ensued.
  • Very little sanding was needed, based on the 10% stepover during the finish pass.
  • Used terrain2stl to get the topo data.
  • Used Autodesk Maya for all the mesh modification, and text creation.
  • Used MeshCAM for the toolpath generation.
  • Used Universal GcodeSender to send the cam to the machine.
  • Applied a ‘natural’ Minwax stain, and “Blue Lagoon” satin paint.

Issues:

  • I think the poor Arduino Uno couldn’t handle the fast feedrate during the rough terrain parts:  The whole thing would start & stop over and over (giving me an anxiety attack at first), while the buffer caught up with the operations.  Maybe it’s time to get some new electronics?  That really slowed down the finish pass.  Didn’t have any trouble during the rough.
  • I think I could speed up the rough-cut even more by not using MeshCAM’s ‘Use 3D Roughing’ option : while it makes a nice looking roughcut, who cares, it’s all getting cut out anyway.  The result was a lot of small up/down z-travels, that really slowed it down overall.

Here’s a series of photos showing the process:

A shot in Maya, while I got the text arranged:

uberbay_maya_web

1.15 million triangles:

uberbay_maya_polydensity_web

The very first cuts:

uberbay_initialcut_web

Roughcut complete:

uberbay_roughcut_web

The final piece, before stain and paint:

uberbay_unpainted_web

In conclusion, I found this to be really satisfying project, and it looks great hanging on my living-room wall.

 

Using Autodesk Fusion 360 with the X-Carve CNC & 3D Mesh

Overview

I’d been stuck on an old Macbook Air for all my CAD/CAM work for the past number of years.  And because of that, I was limited to MeshCAM (no disrespect, I quite like it, but one of the few mac apps for CNC I could find) for all my 3d-mesh carving.  I’d dabbled with Autodesk Fusion 360, but the ol’ Mac wasn’t powerful enough to handle it well unfortunately.

Finally got a new PC, and can start to branch out into other CAD/CAM apps.  I’ve been using my X-Carve CNC for just over a year now, been a great learning experience both with its hardware, and the CAM software that generates the toolpaths for it.  And as much as I appreciate how much I’ve learned from MeshCAM, I felt like there could be a more robust solution, and that’s where F360 comes into play.  I am by no stretch any sort of CNC expert, just an avid hobbyist, but I was really surprised how much the F360 team has put into its CAM solutions.

The below post is an overview on my first steps to get it working, specifically for cutting 3d mesh (rather than parametric solids) so I don’t forget what I did in the future.

I should note though, if you don’t care about cutting 3d mesh, this tutorial is still a valid intro to generating toolpaths with F360.

Disclaimer : Not a CNC expert.  Not a F360 expert.  What I list below are ways I figured out how to do things by looking through the docs, and a lot of forum posts.  There may be better ways out there to do any of this.  If so, please let me know!

Note, I use the term “RMB” a lot below.  That means “RightMouseButton”.

Updates:

  • 2017-04-23 : Based on the 2.0.2989 release,  they made a huge improvement to importing mesh for CNC cutting.  While I’m not going to go through this whole post updating it, things worth calling out include:
    • It doesn’t have to be a solid body.
    • You no longer have to convert your mesh to a BRep to cut it.
    • It does seem a little twitchy:  Some mesh will come into the CAM workspace fine, others does not.

Fusion 360 CAM Docs

These are the docs I got the most out of when it came to learning its CAM capabilities.

And an informative tutorial:

F360 Installation

Really nothing to report here:  Install went off without a hitch.  It should be noted that F360 is cloud-app, meaning everything you do gets uploaded to the cloud.  I remember back in the day when it first came out there was a way around this, to only ever work locally.  I’ve not looked into that recently though.

Importing your mesh

F360’s CAM package can’t deal with 3d mesh natively (at least, I’ve been unable to find a way) : You first need to convert it into a solid it can deal with.  And in this case, it needs converted to a ‘BRep’ : I’ve been unable to actually figure out what the definition of a BRep is, but I’m guessing it’s a (solid)BodyRepresentation.  This process probably took me the most time to figure out, not having a broad knowledge of how F360 works.  The trick is, you can’t have any ‘history’ enabled when you do the conversion : The menu won’t even be there if that’s the case.

Note if you don’t care about 3d mesh, and just want to cut your solids, you can just skip this section.

Prep the mesh for import

Before you import/convert your mesh, you should be certain of a few things, based on the way you want to import/convert the mesh:

  • There are no holes in it.  It should be a solid mesh, no non-manifold geometry… quality solid geometry.

Triangulated:

  • It should be triangulated:  While F360 accepts quads or n-sided polys, I found that it’s internal triangulation function, which appears to be auto-ran when converting to a BRep, sucks, causing poorly converted mesh. Pre-triangulate your mesh.
  • F360 will complain (but still do the conversion if you tell it to) if the mesh is over 10k tri’s, citing poor performance to BRep’s.  I presume this is for good reason.  Right now, I just auto-downres my mesh via Meshmixer or Remake.
  • Note, if you want to use this method on mesh that is more than 10k tris, you can cut your mesh up into 10k or less chunks via software like Meshmixer, export all those chunks, then import them all in one at a time via the below instructions.  Super clunky.

Quadrangulated:

  • If you want to get passed the 10k poly limit, you can instead import quad-based OBJ data.  The trick is to first get it converted to a quad obj:  I learned most of this from this video.
  • Very important:  Make sure in your F360 Mesh Preferences, the “Triangulate Mesh Polygons” option is turned off.
  • Based on what I’ve read, you can do this via Remake:  First you should still decimate the model to some reasonable amount (via its Retopologize menu).
  • Then, via its Export Model windows ‘advanced’ tab, you can choose OBJ(Quads) as an export format.  You can additionally reduce the poly count here, but remember the tri count will be 2x the quad count you’re putting in.
  • Also note, this tool likes to blue-screen my PC from time to time :(
  • I’ve tried to get software like Meshlab to convert to quads and export as an OBJ, but F360 doesn’t seem to like that output (maybe I’m doing it wrong…).

Import into F360

Initial import steps:

To import in your mesh, regardless of it being triangles or quads:

  • From the Model Workspace, access Create -> Create Base Feature
  • Insert -> Insert Mesh
    • Browse to the mesh on disk, hit “Ok” in the “Insert Mesh” dialog

If you have triangulated mesh:

  • Once inserted, access the RMB marking menu on the mesh and “Mesh to BRep”
  • Finish Base Feature via the top menubar.

The imported mesh:

meshImport

Via either method, at this point you can delete the original mesh from the Browser.

This will now give you a ‘body’ the CAM package can deal with.

f360body

If you have quadrangulated mesh:

  • Press the “Finish Base Feature” after the mesh is imported.
  • Press the Create -> Create Form button:  This will open the Sculpt Environment.
  • Utilities -> Convert
    • Choose : Quad Mesh to T-Splines
    • Select the mesh
    • Hit OK
  • This will create a new T-Spline body.
  • Press “Finish Form” From the top menubar:  This will auto-convert the T-Spline into a BRep (Body1), ready for CAM.
  • And again, here’s the video link I learned most of this from.

Dealing with scale

Note, that based on where you authored your mesh and the units it was in, you may need to scale it up.  For example, I work in Autodesk Maya in cm units.  I need to scale that mesh up by a factor of 1o either before I export, or once in F360, to get it in mm correctly.

Setting up CAM

First, switch to the CAM workspace in F360.

Manage your tools

Before you can start making toolpaths, you need to tell F360 what cutting tools you have:  Via the CAM workspace, access MANAGE -> Tool Library.

Uncheck all the libraries on the left except “Local”/”My Tools”.  Select “My Tools”.

Press the “New Mill Tool” button on the top bar, and start filling out the info for all the bits you own/want to cut with.

Nice page showing what all the values mean:  “New Mill Tool Reference

But in general the below values are always equal to or less than the one that came before it, from the “Cutter” tab:

  • Overall Length:  Total length of the tool,  say, 2.5″ for a fictional bit.
  • Body Length : How much of the tool sticks out of the chuck, or “Holder” in F360 terms. Obviously variable every time you insert it, but say 1.5″ here.  That leaves 1″ inside the chuck.
  • Shoulder Length:  From the tip of the bit to the last part of the thread, even the non-cutting part of the thread, say 1.25″.  That leaves .25″ between the end of the shoulder, and the chuck.
  • Flute Length:  Length of the cutting surface, like 1″:  There’s .25″ of non-usable cutting surface.

I should also note that with the 1/4″ chuck on the DeWalt611, it has 2″ of internal space for bits.

You can also make “Holders” for your different chucks:  Doesn’t seem necessary, but I did it anyway.

Create a Setup

Setups collect the rules that define the the stock to cut, and the toolpaths to cut in them.

Via the SETUP menu: New Setup : This will immediately open the SETUP dialog.  Below are good defaults I start with, but obviously every situation is different.  I skip over values I don’t change.

  • Setup Tab
    • Setup:
      • Operation Type:  Set this to Milling.
    • Work Coordinate System (WCS):
      • Origin: Selected Point : I pick the point on my mesh in the top of bottom left corner, which is the usual (0,0,0) position for the X-Carve:
      • stockZero
  • Stock Tab
    • Stock
      • Mode : Relative Box Size : This creates stock relative to the size of the model you’re working with.
      • Stock Offset Mode : No additional stock:  The stock is the exact size of the model.

This creates a new Setup for the given solid model.  If you hide the body via the lightbulb in the browser, you’ll see a ghost of the resultant stock:

stockGhost

Create a rough clearing operation

Now that there is a setup which defines our stock and the WCS origin, we can start adding toolpaths.  The order is important, since F360 cuts them in that order in Simulate mode.

Note, F360 has great tooltips, many with pictures:  Hover over the given field and see what pops up.

Via the “3D” CAM button, there are two clearing options available:  “Adaptive Clearing” and “Pocket Clearing” :

  • Pocket clearing is closest to what I’m familiar with in MeshCAM:  It removes material layer by layer, which is good for a light-weight machine like the X-Carve.
  • Adaptive Clearing will attempt to burrow down to the full length of your tool, then start cutting material against the full length of the tool. While this sounds great, I’m not sure how well the X-Carve would handle it, and have yet to test at this point (probably would need to cut very slow…).

Choose the “Pocket Clearing” operation:

  • Tool Tab
    • Tool : Select a tool you defined above.  The below “Feed & Speed” section will be auto-populated with that tools defaults.
    • Feed & Speed
      • Adjust as necessary based on the type of material you’re cutting.  How do you know what to set?  Based on my hobbyist level experience it’s all about learning what others have done, + trial & error.
  • Geometry Tab : Controls what area of the mesh will be machined.
  • Heights Tab:  A nice graphical way to set the vertical areas to be machined, and how far the tool-head should retract.
  • Passes Tab
    • Passes
      • Manual Stepover : If you want direct control over this, you can check this and set the min/max values.  Note that F360 can either use hard-coded values, or expressions for the fields : RMB on the “Maximum Stepover” field and “Edit Expression”:  You’ll see something like this pop up:
        • Math.max((tool_diameter – (2 * tool_cornerRadius)) * 0.95; tool_diameter * 0.20)
      • Change it, edit it, etc, based on your needs.  Here’s an example video on how to do that.
      • Direction : Climb by default, but machines like the X-Carve should have it set to “Conventional”, so the cutting edge bites into the material with the direction of toolhead travel.
    • Stock to Leave:  Here you can set how much stock is left over for the finish passes.  How much should you leave?  I generally make this a percentage of the diameter of the finish bit I’m using.
    • Smoothing : In general it sounds like you want this checked on, check the tooltip.
  • Linking Tab
    • Linking
      • Retraction Policy : I’ve had good success with “Minimum Retraction”.
    • Ramp
      • Ramp Type :
        • If you’re cutting wood, “Plunge” seems good.  If you’re cutting metal, then “Helix” is the way to go.

There are obviously many more options, but the above got me started well.

After you hit “Ok” in the dialog, you’ll see the new Pocket operation in the browser show up : While it’s calculating the toolpath a % value will be visible.  After a few seconds, the toolpath should show up, presuming you have the pocket operation selected.

roughPocket2

 

Create one or more finish operations

F360 comes with quite a few finish operations.  Technically you can use can combine as many as you want, but again, build them in order of operation.  In this example, I’ll use the “Parallel” operation, because it most closely emulates what I’m used to in MeshCAM.

Via the 3D  Menu access “Parallel” operation:

  • Tool Tab
    • Tool : Select the tool for this pass. But default it’ll choose the tool used in the operation before it. Note if you choose a different tool, obviously you’ll need to go through a toolchange operation (which on the X-Carve is a very manual step), and need to save out your gcode as multiple files.
  • Geometry Tab : Controls what area of the mesh will be machined.
  • Heights Tab:  A nice graphical way to set the vertical areas to be machined, and how far the tool-head should retract.
  • Passes Tab
    • Passes Options to control the angle of the surface to be machined, the stepover, etc.
      • I like to set my stepover to be 10% of the bit width to give a nice, smooth finish, which you can set as an expression by RMB on the “Stepover” field & “Edit Expression”:
        • tool_diameter * .1
    • Smoothing : Like in the rough cut, this seems good to check on.
  • Linking Tab
    • Linking
      • Retraction Policy : I’ve had good results with “Minimum Retraction”.

After you hit “Ok” in the dialog, you’ll see the new Parallel operation in the browser show up : While it’s calculating the toolpath a % value will be visible.  After a few seconds, the toolpath should show up, presuming you have the parallel operation selected.

parallelFinish

Like mentioned above, you can add more finish passes using different techniques here as needed.

Name your setup and operations

It’s a good idea to name your setup and operations, so you know what you were up to months later.  Click once on a name in the Browser, then click again after a second: It’ll let you rename them:

passNames

Save operation templates

Presuming you get values you like and want to resuse thes on other cuts later, there are two ways to access the data:

  • You can open a previous cut, then RMB on any operation and “copy” it.   You can go to your other cut’s setup, and “paste” it.  Works, but clunky.
  • Better, is to select one or more operations in the browser, and RMB on them -> Store as template : This will give you a broswer to your local HD for storage, and later import via the “Create from Template” Setup RMB menu.

Simulate / preview the cut

This is an incredibly powerful part of F360:  You can pre-visualize your cut.  Either select your setup folder in the Browser, or multi-select all the operations you want to preview (basically, whatever toolpaths are shown will be simulated), and press the  ACTIONS -> Simulate button.

In the SIMULATE popup, check on the “Stock” box.  This will show you the uncut stock.  You can uncheck the “Toolpath” if you don’t want the lines to obscure the view.  Then simply press the > Play button at the bottom of the screen:  All the selected operations will begin previewing their cut:

cutPreview

Green is the roughcut, blue is the final pass.

Using the correct postprocessor

For F360 to generate the correct gcode/nc data, it needs to be post-processed for your given machine.  Since I’m using an Inventables X-Carve (grbl-based), I had to do some searching.

This section has been edited since the original blogging:  Originally I’d found a couple postprocessors online, and they “worked”, but had a “bug” where at the end of the cut, they’d send the machine back to the “machine home” (where the toolhead was when the machine was powered on), not the “work home” (the zero/home position of the cut).  This caused two failed cuts for me as the tool-head ripped into my stock trying to go somewhere bad.

After troubleshooting and posting on the forums, I was made aware that F360 comes with a ‘generic grbl postprocessor’, that needs only one small adjustment.  I’ll show that info below.

Generate or “post” the gcode/nc data

Once you’re happy with your toolpaths, you can ‘post’ the data for your CNC to use.

The big decision here is how you’ll save the operations you’ve made previous:  If they all share the same bit, you can select them all at once in the Browser, and save a single file for all of them.  However, if toolchange is needed, you should save each operation as a separate file, selecting one at a time and going through the below steps.

Via the ACTIONS -> Post Process Menu:

  • Setup your postprocessor.  Since I’m using an X-Carve that runs grbl:
    • Setup : Use Generic Posts
    • In the Post Configuration section, select “grbl.cps – Generic grbl”
    • In the “Property” section in the bottom right, make sure that “useG28” is “No”.  If this is “Yes”, it’ll return to machine home (instead of work home, where you zeroed the cut) upon completion of the job, discussed above.  If this is “No”, it simply raises the toolhead and leaves it there.
    • grbl_post
  • Define the Output folder where you want the .nc data saved.
  • Under Program Settings, set the name of the file under “Program name or number”.
  • Press the “Post” button:  The .nc data is saved to disk.

Cutting with the data

There are number of sender software available to send the .nc data to your machine:  Easel (browser-based) can do it, I’ve had success with Chlipeppr (browser-based), I hear good things about LaserWeb/CNCWeb (browser-based, not yet tried), but currently use Universal GCode Sender (Java applet)  for all my work.

The F360 data didn’t cut any differntly in UGS than MeshCAM data, and had great result:

finalCut

In fact, the few hard-edges around the hemisphere are due to a pencil-cut I was toying around with as an extra pass.

In Conclusion

I feel F360 provides a tremendous amount of power to the hobbyist CNC user, especially considering the price (free).  The learning curve is a bit steep, but it has a large amount of helpful documentation, and videos available.  It’ll be my go-to piece of CAM software in the future, hands down.

 

New CNC cut: Honeywood

I’ve been teaching myself the MASH toolkit in Autodesk Maya.  It’s been a lot of fun to learn.  As a challenge, I decided to design a hexagonal-based structure, which I then cut into some reclaimed redwood with my X-Carve CNC:

honeywood_mash2

I applied a ‘natural’ stain to the inside section, and a darker ‘walnut’ stain to the outside.  The rough cut was with a 1/8″ 1-flute upcut endmill, and I did a pencil-cleanup pass with a 1/16″ 2-flute upcut endmill.  Whole cut took maybe 45 minutes.  The piece measures 8″ square, and the cut is around 1″ deep at the lowest point.  I used MeshCAM to generate the toolpaths from the stl file exported from Maya.

Visual comparison of ballnose stepover values on the X-Carve

I built my X-Carve back in December:  It’s been a great new tool to learn.  I’m still very new to the world of CNC, and like to visually grasp the concepts.  So I decided to do a series of tests to understand how ‘stepover’ values effect the finish-pass quality of the surface both on X, and on the XY axes.

The MeshCAM blog does a great job of describing the fundamentals of stepover here.

Here are the stats for the cuts:

  • Hardware:  Inventables 1000mm X-Carve.
  • 1/4″ ballnose bit, 2-flute upcut.
  • Feedrate 60ipm, DeWalt set 1 to 2.
  • Wood type:  Unknown (came from an old bookshelf bottom), but if I had to take a guess, I’d say pine.
  • 3d Design Software: Autodesk Maya
  • CAM: MeshCAM
  • Sender: Chilipeppr

The specifics from MeshCAM below. All values for all cuts were the same except of the stepover, and either “Cut along X”, or “Cut X then Y”.

meshcamSettings_x

I wanted really extreme examples, so I set the following stepover percentages for my test: 100% (1/4″), 75%, 50%, 25%, 10%, 5% (only done on X, not XY).

I started by designing a model in Maya that incorporates a variety of surface angles.  The inside volume is just over 2×2″, by about 1/4″ deep.

stepoverCompare_maya (that’s a flattened sphere in the middle)

I then made multiple different gcode (nc) via MeshCAM, and started cutting them.


The whole piece for the X-cut:

stepoverCompare_all

And the whole piece for the XY cut:

stepoverCompare_allXY (note, no 5% test here)


Individual close-ups below.  X pass on the left, XY on the right.

Note the rough-cut for all pieces took just about exactly 2 minutes.  All the times listed below are for the X & XY-Axis Finish pass in min:sec.  So to get the total cut time, just add two minutes to the below values.


stepoverCompare_100 stepoverCompare_100xy

  • 100% stepover, .25″ : This is obviously super rough.  I honestly expected the segment to be closer together.
  • X Finish Pass Time:  0:47
  • XY Finish Pass Time : 1:34

stepoverCompare_75 stepoverCompare_75xy

  • 75% stepover, .1875″ : Not too much different than 100 really.
  • X Finish Pass time : 1:03
  • XY Finish Pass time : 2:03

stepoverCompare_50 stepoverCompare_50xy

  • 50% stepover, .125″ : Still really rough, but arguably could do something artistic with the ridges at this point.
  • X Finish Pass time: 1:30
  • XY Finish Pass time : 3:00

stepoverCompare_25 stepoverCompare_25xy

  • 25% stepover, .0625″ : Carry on, nothing to see here.  Even with the XY pass, it’s still pretty rough.
  • X Finish Pass time: 2:50
  • XY Finish Pass time : 6:40

stepoverCompare_10 stepoverCompare_10xy

  • 10 % stepover, .025″ : Now we’re getting somewhere: Ridges are still visible, but small.  Pretty smooth to the touch, but you can still make them out.  Sanding could take care of this.
  • X Finish Pass time: 7:10
  • XY Finish Pass time : 14:00

stepoverCompare_05

  • 5% stepover, .0125″ : Done.  Finished.  Can’t make out the ridges with the naked eye.  Very smooth to the touch.  No sanding needed really.
  • X Finish Pass time: 14:20
  • No XY pass done.  Not much point considering the quality already achieved.

Final thoughts:

  • Notice on all X-cuts that the lower-left section of the hemisphere is rough.  Must have to do with the direction of the toolhead (left<>right on X) and the spinning of the bit (clockwise).  The XY cuts removed these issues.
  • If you are ok with sanding, 10%/.025 stepover is ok.  If you want to avoid sanding entirely, go with the 5%/.0125″ stepover.
  • Even though the 5% X-only stepover and  10% XY stepover took the same amount of time, the X-only has a far better surface quality.  You’d still need to sand the 10% XY one.
  • What do I take away the XY Finish pass?  The XY Finish Pass times are generally 2x the X-only times, but don’t really increase the quality.  Not much point unless you’re looking for ‘that look’ in the cuts.
  • I feel like the speeds could be greatly increased on the finish pass:  I was only running the router on speed 1 to 2.  The smaller the stepover, the smaller the amount of material you’re removing, so arguably the faster the toolhead could move to compensate for this under load:  There’s a lot of speed left in the router…. sounds like another good test to try.