Rapid Prototyping with Laser Cutters

While working in Silicon Valley, I quickly learned how valuable it is to, well, move quickly. One of the easiest ways to do this when dealing with real-world, tangible things, is to be able to quickly mock up and prototype ideas: whether it’s a sensor fixture, calibration device, mobile robot base, etc, chances are if you modify the way you think about design a little bit you can make it almost entirely out of laser cut and 3D printed parts. Before we get into things, I need to thank Josh Vasquez, who has been a contributing writer at Hackaday for a while now, for getting my feet wet with all this laser cutting nonsense and sharing just a little bit of his ridiculously vast maker knowledge with me. Now, with this great and unmatched introduction complete(note: LOL), let’s dig in!

Why Laser Cutting?

Well, from my experience, laser cutting is likely going to be the fastest, simplest method of creating planar parts with complex geometries. In fact, if you’re able to think about designing things a little bit differently, you can make pretty complex three-dimensional things with laser cutters, from this prototype robot mobile base, to this objectively crazy tentacle arm Josh made.

In fact, the dimensional repeatability and precision afforded by laser cutters means you can make calibration and characterization rigs for sensors in a matter of minutes, from this rig I made to create a sensor model for the ST VL6180x time of flight proximity sensor, to this fiber optic calibration board for a time of flight camera.

Calibration Board Detection

Benefits of Laser Cutting to Your Business

Now, if you’re trying to sell something like purchasing a laser cutter, or even 3D printer, to your boss at a big company, it’s pretty easy to make a business justification.

  • Speed
    • Laser cutting allows for greatly reduced iteration time on designs.
  • Cost
    • Huge employee time savings translate to money savings.
    • Results in less wasted material than conventional machining.
  • Design Quality
    • Better quality than conventional machining is achieved in much less time.

Laser Cutters to Purchase

For most professional environments that require a laser cutter for quick prototyping, think startups and research labs, I usually recommend something like the 75 Watt Universal Laser Systems PLS6.75. At the time of writing this, a system like this will cost about $30,000.00, not including the PC used for the control software, the compressor used to forcibly provide airflow, I recommend this one, and whatever ventilation system you use.

ULS PLS6.75 Laser Cutter

The PLS6.75 has a nominal working area of 18″x36″x9″, but can be increased slightly by removing one of the alignment rails in the bed. In terms of cutting performance, the above machine has a nominal kerf thickness of about 0.007″, with dimensional accuracy and repeatability of less than 0.002″. If you so wish, you can purchase additional focusing optics to reduce the kerf thickness all the way down to 0.001″.

It’s good to know the kerf thickness of your laser cutter as this will dictate how much you need to offset your drawings or parts by to achieve the nominal size. For the above case of a 0.007″ kerf, for parts that require VERY precise dimensions, I will offset all of the lines by 0.003″ and call it good. If thing’s don’t need that level of precision I generally ignore offsetting things.

All ULS systems are super user friendly. They have auto-focus, auto-z-levelling, and a huge material library so all you have to do is select your material and material thickness.

What Materials Should I use?

Hint: It’s probably Delrin.

For cheaper, less structurally important things, I’ll typically see people use acrylic or plywood. When things need to stand up to a bit more abuse, or you need things like press fits, counter sunk features, the use of thread forming screws, snap fits, or even something that slides easily and is tough, I without hesitation recommend Delrin.

Why? It’s pretty simple, really: Delrin is far more ductile than acrylic and is, generally speaking, homogeneous and isotropic, whereas wood is not. Delrin requires a huge amount of strain for it to fail, both in tension and compression, whereas wood and acrylic will yield at very low strains.

What Exactly Is it?

Delrin, as the cool kids call it, is actually just a brand name like Kleenex is. More generally speaking, Acetal is the common name for an entire family of thermoplastics known as polyoxymethylene, or POM. Delrin then, which is manufactured by DuPont, refers to homopolymer acetal (POM-H), which is distinguished from copolymer acetal (POM-C).

What are the differences? Well, to someone just slapping together a mock up of something, likely not much that they would care about, and material properties are generally within 10% of each other so they can be swapped for one another.

Typically you’ll only see delrin come in its natural white color, or dyed black, though other colors are possible (just not common).

One more thing to note about delrin, as opposed to acetal copolymer, is that due to the extrusion process used, there will be built up internal stresses caused by the outside of the sheet cooling before the inside.

Sourcing Delrin Sheets

I almost always buy flat delrin sheets from OnlineMetals, as opposed to other places like McMaster-Carr, due to OM taking more care to ensure that the sheets are flat and stay flat. If you’re looking for additional sources, or require things to be cut to a particular size a good place to look is ePlastics.

Delrin Prototyping Techniques

Most of the contents of this section are credited to Josh, as he already did a similar write-up and I’m simply regurgitating them in different words.

The Press-Fit

If you look through a standard design of machinery or machining textbook, you’ll typically see that press-fit tolerances are listed as ±0.0005″. Well, we definitely can’t get those types of tolerances with middle-end laser cutters, but thanks to delrin being much more flexible, we can easily create press fits without having to worry too much about the actual tolerancing.

When using a new laser, if I need to achieve a pressfit without knowing much about it, I will simply create an array of parts with each element having a line offset by increments of 0.001″, and then see which I like the fit of the best. If you just want to wing it, a general rule is to just slightly undersize your hole as compared to a normal, machined metal, pressfit.

Countersinking

Because delrin is so easily machined, you can create countersunk holes using nothing more than a counter-sink drill bit and your hand.

Thread-Forming

Again, because delrin is so easily machined, it’s super easy to screw in thread-forming PT screws. Some people will even go far enough to just size the hole according to the tap size required for the hole if you were to tap threads, and just screw in a standard screw!

Threaded Inserts

If you want something that will stand up to a few more installations and removals than using a thread-forming screw, the go-to solution is a PEM threaded insert. Simply size your hole according to their guide, take the PEM insert and throw it on the end of a soldering iron that’s on low, and press it into the delrin. The delrin will soften and the insert will slide in like butter.

Snap-Fits

Another benefit of delrin having such a high maximum strain is that we can easily create snap fits and tabs. It’s so accommodating of strains in tension that I typically will just eyeball what I think looks “OK” and then just go with it.

Gallery of Interesting Projects

Now that I’ve talked about different techniques and all that, here’s some of what I’ve done using a 60 watt ULS CO2 laser cutter.

Permanently Marking Metals

With a little bit of CerMark LMM6000, you’re able to spray a layer of black on stainless steel, or other hard metals, and then permanently mark the material with whatever you desire. You’ll have to do a little bit of guessing in regards to the laser parameters, so you can either make one item sacrificial and etch a calibration template onto it with different laser powers, or just take a wild guess like I did with this commemorative flask I made for a group of us on a mountaineering trip:

If you want to do the same for softer metals like aluminum, just switch to CerMark LMM14.

Laser Engraved Wooden Map

A fun thing I got into as a little side hobby was to create custom laser engraved maps and signs for people. Check out this 12″x24″ map of the San Francisco Bay Area and a plaque I made for a friend’s newborn:

Engraved Map of the Bay Area on Pine
Plaque for my Friend’s Son on Birch. Quote via Stanza 15 of the Havamal

Maps like the above are actually quite a bit easier than you’d think, it really just requires writing a little bit of code to to the set up, then properly configuring everything to easily be etched by the cutter. Pro tip: when etching on wood, avoid scorch marks like you can see along the bayside shore of the peninsula by putting down a layer of masking tape. This general does a pretty good job of preventing scorching, with the remainder easily removed by sanding.

MEMS Microphone Hydrophobic Mesh and Acoustic Impedence

Even though I regularly advertise one of the strengths of laser cutters being that most jobs are a simple single-fixture operation, that doesn’t mean you can’t do multi-fixture and multi-material cuts. Take for example this hydrophobic mesh used as an acoustic impedance for the microphone array in our robot’s neck. This stackup consists of a layer of SaatiFil Acoustex 090 to both act as acoustic impedance and protect against water ingress, as well as a layer of 3M PSA. This required adhering everything to a cut delrin plate, first cutting the adhesive, as we don’t want it in the sound inlet hole, then adhering the Acoustex to it, and cutting that.

Kuri Robot CES Prototypes

Even things like our alpha stage prototypes that won us awards at CES 2017 had laser cut pieces. Check out all of the different mounting plates and tiered platforms of our robot without the cosmetic skins on:

Kuri Alpha Prototype

¯\_(ツ)_/¯

This is a dud for now, but I’ll soon add content about motorcycle roadracing, skiing, and powerlifting.

Frequency Domain Analysis pt. III I-V-vi-IV progression

Since I’ve already covered frequency content of scales and chords in the previous two posts, I’d like to move on to common chord progressions, and what better chord progression than the I-V-vi-IV progression that is literally everywhere (The Axis of Awesome even made a song about how common this progression is, titled the four chord song). What’s even more, there’s an entire wikipedia article for popular songs containing this progression. From the list, basically every song ever uses this progression.

This progression involves the I (tonic), V (dominant), vi (submediant), and IV (subdominant) scale degrees; in the key of C major this corresponds to C – G – Am – F.

Now, it probably makes things a little prettier to visualize it in terms of a logarithmic vertical axis, since musical pitch is exponential.

When we look at pitch with a logarithmic vertical axis it just looks exactly the same as things would if all we did was plot the number of intervals in a linear fashion. Finally, it may be beneficial to look at the progression in terms of pitch names.

There you have it, the most common chord progression in western music!

Get The Code

If you’re interested in checking out any of the super hacky code I’ve written for this, check out my github repo.

Frequency Domain Pitches Pt. II

In part one I discussed frequency content of the standard chromatic and C Major diatonic scales. I’d like to move forward by discussing the frequency content of the C class of chords on piano.

Chords With Root Note C

If we take a look at the various C Chords in terms of frequency content, and format our plots such that each tick on the vertical axis coincides with the frequency content in semitone intervals, we obtain the following plot:

I’ll probably come back and re-organize this plot as the ordering of chords is a bit crazy since the python script I wrote just iterated through keys in a dictionary… but that’s a whole other story; for now it’s good enough.

From the above plot we can see that we are using A440 concert pitch, as A4 appears as 440 hz, and A5 appears as 880 hz, which is one octave higher.

Let’s take this same plot and change the vertical scale from frequency to number of semitone intervals.

From this plot it’s very easy to see that all of the C chords consist of a root note (in this case middle C), most have a major third as a second note, which is 4 semitones above the root, all the minor notes have a minor third as a second note, which is 3 semitones above the root, and nearly all have a perfect fifth as the third root, which is 7 semitones above the root. All of the numbered chords 7, 9, 11, and 13 have a minor seventh as the fourth note, which is 10 semitones above the root. All chords numbered 9, 11, and 13 have a major ninth as the fifth note, which is 14 semitones above the root, or a perfect octave plus a major second. All chords numbered 11 and 13 have an eleventh as the 6th note, or a perfect octave plus a perfect fourth, which is 17 semitones above the root, and finally both 13 chord have a thirteenth as the 7th note, or a perfect octave plus a major sixth, which is 21 semitones above the root.

Now, there’s one last easy thing we can do, and that’s to show the same plots in terms of the note contents of the chords, again, assuming we are in the fourth octave.

Frequency Domain Scale Pitches

One thing about music theory that’s always bothered me is the disconnect between pitch interval and pitch frequency content. Hopefully this will become a little series where I attempt to easily bridge this gap with frequency domain plots.

Chromatic Scale

First things first, let’s take a look at the chromatic scale ranging from middle c (c’) to tenor c (c”), using scientific pitch notation ISO 16, with A 440hz concert pitch (A above middle C having a pitch of 440 hz):

Chromatic Scale Frequencies

It’s easy to see a few things from this plot:

  • The notes of the chromatic scale are A, A#, B, C, C#, D, D#, E, F, F#, G, G#.
  • Some people refer to the chromatic scale as the dodecatonic scale as it consists of 12 notes per octave. In this case tonic refers to tones, not the presence of a tonic. In 12-tone equal temperament each tone is separated by a 100 cent wide semitone interval, thereby making the chromatic scale nondiatonic with no tonic note.
  • Each interval of the chromatic scale consists of one semitone, or half step, indicated by the letter S.
  • Each of the intervals are made up of 100 logarithmic units of measure named cents.
    Aside: Like the decibel’s relation to intensity, a cent is a ratio between two close frequencies, therefore, the frequency range encompassed by a cent must be proportional to the two frequencies. The number of cents between two pitches, a and b, can be calculated by:

    1) \qquad n = 1200 \cdot log_{2}(b/a)
  • Mathematically, the pitch frequency increases exponentially as a function of number of intervals, as dictated by the following equation:

    2) \qquad P_{out}=P_{in} \cdot (2^{i/12})
    where P_{out} is the output frequency, P_{in} is the starting input frequency, and i is the number of intervals from the input pitch.

Due to the fact that the chromatic scale is exponential, and doubles every 12 intervals, it results in a monotonically increasing linear plot when viewed with semi-log axes.

Intervals

Visualizing the chromatic scale on a semi-log plot makes understanding intervals very straight forward.

minor seconds: 1 semitone wide (100 cents, or 1 interval)
major seconds: 2 semitones wide
minor thirds: 3 semitones wide
major thirds: 4 semitones wide
perfect fourths: 5 semitones wide
diminished fifths: 6 semitones wide (also called an augmented fourth)
perfect fifths: 7 semitones wide
minor sixths: 8 semitones wide (also called an augmented fifth)
major sixths: 9 semitones wide
minor sevenths: 10 semitones wide
major sevenths: 11 semitones wide
perfect octaves: 12 semitones wide

Diatonic Scale

Moving on from the chromatic scale, let’s look at the diatonic major scale (Ionian mode) in C.

Looking at the diatonic major scale in C we observe some readily apparent things:

  • The diatonic scale consists of 7 distinct notes per octave, A, B, C, D, E, F, G. Some people may refer to this as being heptatonic as it contains 7 tones.
  • The intervals between the pitches of the chromatic scale are structured in a manner to separate the semitone (half step) intervals as much as possible, being separated from each other by a series of two or three tones (full steps).

The notes of the diatonic scale are made up of 8 degrees with the following names:
1) Tonic (key note)
2) Supertonic
3) Mediant
4) Subdominant
5) Dominant
6) Submediant
7) Subtonic (leading tone)
8) Tonic (Octave)

The tonic note is the first scale degree of a diatonic scale. Similar to how a root is the reference note of a chord, a tonic is the reference note of a scale. As the name implies, the diatonic scale consists of two tonic notes, with the second being one octave higher than the first.

Another characteristic of the diatonic scale is the presence of a subtonic note, which is the seventh scale degree. This is a note that resolves to a note one semitone higher or lower, meaning that it moves from dissonance, or an unstable sound, to consonance, a stable sound. The seventh scale degree has a strong affinity for, and leads melodically to, the tonic.

Moving On

Further on in this series I will plot other scales and modes, as well as common chords, chord progressions and songs in terms of frequency vs time.