cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Making a Wood-Turning Segment Calculator in JMP®

Introduction

I've been interested in woodworking ever since I was a kid and first saw Norm Abram on the New Yankee Workshop. Recently, I've wanted to start doing segmented turnings on my lathe. While there are a number of free segment calculators online and in app stores, I thought it would be more fun to try making one in JMP. It was surprisingly easy to make, and I learned a few things about JMP's trig functions and Graph Builder along the way. I'll share those lessons, as well as the segment calculator file in this blog post, but first, a teaser: pictures of the finished JMP tool and the first bowl I made using the tool.

Jed_Campbell_3-1698422268552.pngJed_Campbell_4-1698422299031.png

Trig functions in JMP

I freely admit I needed a geometry refresher on calculating the length of each segment (here's what I used). However, when I started creating formulas to calculate dimensions for the segments, the numbers weren't making sense. Hovering over the Tangent function, I saw the tip at the bottom of the screen, mentioning that JMP expects an angle in radians. That makes sense, as radians are a better way of thinking about angles. I still think in degrees, though, so I multiplied my thoughts by π/180 to get things working in my JMP formulas.

Jed_Campbell_5-1698423006608.png

Graph Builder lessons

I've always loved Graph Builder, but now I love it even more after having learned the tricks I needed for this visualization to work. It is probably best explained by walking through making the graph step by step:

  • The basic graph is just Ring on the Y axis and both Inner Rad and Outer Rad on the X axis, and then selecting Show Grid in the Y axis panel, as shown below.

Jed_Campbell_6-1698423930465.png

  • The first change is to adjust the connection to be a Centered Step, which makes the outline of the segment rings more accurate to how they will be when they are made.

Jed_Campbell_7-1698424012655.png

  • The problem now is that I'd like the grid lines to be between the rings, instead of being at the ring number itself, which would help the visualization. After some poking around in the Y Axis Settings, I found that changing the Tick Labels box to Short Divider was what I was looking for:

Jed_Campbell_8-1698424435591.pngJed_Campbell_9-1698424461224.png

  • Next, I wanted the area represented by the rings to be filled in somehow. This was easier than I expected; there's a Fill option in the control panel section for Line. Selecting Fill Between now makes the graph show how each segment ring will look.

Jed_Campbell_10-1698424591190.png

  • I also wanted the numbers in the X axis to show up with the inches abbreviation ("). I found that you can choose a Custom format and set it however you'd like. I chose to treat it as a character and add a single quote afterward (the \!" is the JSL escape sequence for a single quote; more info on escape sequences here).

Jed_Campbell_11-1698425324747.pngJed_Campbell_12-1698425337170.png

  • Finally, double-clicking on the legend allowed me to change the colors and select a fill pattern. With that last change, I dragged the legend to the lower left, and my graph was done. Graph Builder really is an amazing tool!

Jed_Campbell_13-1698425491547.pngJed_Campbell_14-1698425516386.png

Putting it all together

Finishing the tool was just a matter of using the Tabulate tool to generate a Cut List, then creating a simple script to put the Graph, the Cut List, and an Export button all into one window. The Export button saves the window as an HTML document, so I can send it to my phone for consultation in the wood shop (well, garage). I saved this script to the data table as "On Open" so it will run automagically each time JMP opens the data table. Here's the HMTL output:

Jed_Campbell_15-1698425811428.png

End result

I followed the cut list shown above, and the measurements were spot-on for each ring and how they stacked together. Here's a picture of the final bowl, with my keyboard for scale. You can download and modify the tool below. If you make improvements, please post them in the comments.

Jed_Campbell_0-1698426257687.png

 

 

 

Last Modified: Oct 27, 2023 3:33 PM