Computer-Controlled Machining

This week I am designing a brain-inspired ribbed divider and preparing it for the CNC.

Design Sketch

This week's theme is about making something bigger. I initially wanted to build an interactive furniture of some kind. But after scouting out some past designs from previous years of class, I found out that people pretty consistently complained about the rough surface of OSB plywood. So I wanted to build something more on the display side to avoid that. Combining that with one extra credit goal of "include curved surfaces", some quick google search landed me on this cool design.

Wavy Slat Room Divider: Modern Partition Wall, Custom Wood Screen from CraftivaArt
Wavy Slat Room Divider from CraftivaArt. This simultaneously fits my goal of large design and curved surfaces while also processing artistic beauty.

But soon I also noticed something interesting. In the above image, you can see that, while not entirely intentional, the wavy ribs actually creates a nice ring of shadow under light. So I began to wonder if we can intentially exploit this effect to create a meaningful pattern. Additionally I also wanted to retain some useful elements of that so I began to wonder if I can incorporate in some shelf functionality.

Sketch of the brain-inspired ribbed divider
The initial design sketch on Excalidraw. I saw initially two ways to go about this. One is to create a curved ribbed divider with some shelf element embedded in. The other is to go full on manipulating the shadow effect to create an interesting pattern. In the end I decided to go full on the shadow side but retain some shelf functionality by putting it on the top.

Algorithmic Design

Designing what the pattern should resemble was the easy part. I felt this was finnally the great time to insert some elements of my research in, so I used a brain outline. I generated a brain image through ChatGPT for this purpose.

Generated brain image from ChatGPT
Generated brain image from ChatGPT. Intentionally simplistic since I only needed the outline.

Next up came the question: How would I go from the image to the rib pattern? Obviously this is not achievable by hand, so I again designed an algorithm to systematically convert the image into the rib pattern. The workflow has six steps as below. The implementation scripts are generated by Codex and available on bottom of the page.

  1. Extract the outer brain contour: Threshold the dark lines and use OpenCV to find the largest outside contour
  2. Create a smooth outline: Calculate each pixel's signed distance from the brain boundary and assign intensity based on that.
  3. Apply a Gaussian blur: Smooth the intensity field so the ribs have continuous transitions.
  4. Sample at 16 positions: Each rib sits at a fixed horizontal position across the divider and sample the intensity at that position.
  5. Convert intensity into depth: higher intensity means deeper rib.
  6. Export the profiles: Each sampled rib becomes a closed 2D polygon, which later gets imported into Fusion and extruded into the OSB thickness.

The central equation

The generator I used sets the front-to-back depth of rib \(i\) at height \(z\) as

\[ d_i(z) = 52 + 3\sin\left(\frac{z}{205} + \frac{x_i}{225}\right) + 90\, O(x_i, z)\, T(z) \]

All lengths are in millimeters. I later worked in inches in Fusion. \(O(x_i, z)\) is the blurred brain-outline intensity, from 0 to 1. \(T(z)\) reduces that outline effect near the top and bottom, where the ribs meet the shelf connections.

Conversion pipeline from brain image to rib pattern
Conversion pipeline from brain image to rib pattern. Generated by Codex produced Python scripts.

Model Design

Next up was the model design. For this part I worked in Fusion from the ground up.

First bottom rail model
First bottom rail which is just a plank for now. It is currently floating as I will add in the footers for better support.
First slot on bottom model
First slot on bottom model. The width I used here is 0.438 inches.
Slots on bottom model created by mirroring the first slot
Slots on bottom model created by mirroring the first slot.
Top rail model
Top rail model. This is also the part that will hold the shelf.
Top back panel model
Top back panel model.
Model with both top and bottom parts ready for ribs insertion
Added in top side panels and footers. The model is now ready for ribs insertion.
Finished rib model
After adding in the first rib in manually, I again used Codex MCP to finish the repetitive task.
Curved back panel in model
Next up after some inspection, I think the straight back panel somewhat breaks the aesthetic of the curved ribs. So I changed it to a curved one.
Curved side panel in model
Same deal for the side panels.
Finished model. Drag to orbit, scroll to zoom.

Arrange and Toolpath Check

Now to prepare the now ready model for cutting, I arrange the componenets in so they nicely fit onto two sheets of OSB plywood.

Fusion 360 arrange view of the ribbed shelf parts next to the assembled model
Arranged parts beside the assembled shelf. I ended up needing two sheets of OSB plywood.
Fusion 360 manufacturing simulation of 2D contour toolpaths on a sheet of shelf parts
Contour simulation for one sheet.

CNC Milling

Now comes the moment of truth. I brought my design to the EECS workshop and milled the parts on the CNC with Anthony's help.

CNC milling in progress
CNC milling in progress.
Video ofCNC milling in progress (loud).

Final Assembly

The assembly was more painful than expected. The ribs were a bit too tight to fit into the almost half of the slots, so I had to sand them wide a bit.

Rib insertion into the slots
First I started manually inserting the ribs into the slots on the floor.
Joint check between insertion of ribs
Moving to the table to make sure joints are fitting between insertions.
All ribs inserted into the slots
All ribs inserted into both top and bottom rails. This step was extra hard as all 16 ribs had to be perfectly aligned to allow this. Many thanks to TA Fan Xue who was in the lab to help me get through this.
Glue overnight to let the joints dry
Since after some testing, I found out that the design likely won't survive the transport if not glued together. So I glued the joints and let it stay in lab overnight to let the glue dry.
Finished piece
Fully finished piece. The rest of the insertion was pretty easy comparably.
Finished piece in my office
Glad how everything turned out. Now this divider proudly stands in my office.

Remarks

Overall pretty happy with the result. There are so many parts that could go wrong, but overall I feel my ambitious side paid off.

A potential improvement would be to paint the surface of the design to hide OSB texture a bit. But I am too tired after this so I just want to catch some rest now.

Design

Download the brain divider model (.f3d)

Download the rib builder scripts (.zip)