computer-controlled cutting
drone protector
At the end of last week, I was reasonably
familiar with the Part Design workflow of FreeCAD, but I still wanted to try out
some of the other features, such as technical drawings (TechDraw
workbench),
assemblies (a2plus
workbench) and spreadsheets (as demonstrated by Neil).
I had a project in mind for this that let me combine practice of these features with parametric design of a laser cut part: I had recently built a ‘mini’ (5" propeller) FPV Quadcopter, and had been thinking different ays to protect the blades when transporting it.
Initially I thought of a spacer that clips/snaps onto the motors bells. Here are some paper sketches of my first concept:
I soon realized that mounting it this way wouldn’t be able to sustain any forces parallel to the motor axis, so I came up with a different design where the protective cover is mounted directly over the propellers. The M8 hex nuts that hold the propellers on the motor shaft register in two holes in the cover. This way the cover is already arrested in all movements parallel to the frame. The load is transferred to the motors, which are soft-mounted on the drone’s carbon-fiber frame. The biggest problem with this design is that strong impacts could potentially shear the motor shafts, but given the application of this is transport of the drone in a soft backpack or wrapped in another soft material, I think it is quite reasonable.
I started by creating a Spreadsheet in FreeCAD and noted down the relevant design parameters of the Quad, as well as some material parameters (thickness and kerf):
I made all parameters accessible from outside the sheet with short aliases
(right click > properties > alias
), and noted the alias in a seperate column
for easy reference (this turned out to not be too important since FreeCAD auto-
completes parameter names in expressions).
I then created a new Sketch on the XY (top) plane, and started by drawing the known parts of the drone (motor bell, rough propeller outline, motor nut) as construction lines. I only drew one of the four motors, since the design could easily be mirrored after. Then I started drawing the shape of the cover using polylines and splines. I added a cutout for the M8 nut, which I constrained using an expression in order to take the kerf into consideration:
For the nut cutout, the kerf is subtracted from the diameter, since the laser kerf will enlarge this interior hole. On the other hand when constraining the motor bell, which is used as convex dimension of my part, the kerf has to be added to the diameter instead. I also added a slot for the clip to register in, which was also designed taking into account the kerf to subtract. Here is the full sketch (of the first prototype):
I then created a part from the sketch by padding it to the material thickness value from the spreadsheet, and finally mirrored it along the XZ plane in order to obtain a complete protector for one side of the quad.
As I mentioned above, the guard is already arrested along two axes by the nut it registers with. Along the remaining axis, movement is also already prevented downwards, since the guard sits directly on top of the propellers, which are pressed onto the motor bell by the locknuts. This together with the geometry of the drone makes forces from below an unlikely problem, and so I decided to use a simple clip on each side that lightly clamps the cover to the carbon fiber frame underneath the motor.
I sketched the first version on the XZ plane, so that it would be easier to assemble right away, but I later figured out that for purposes of exporting the drawing it is better to have all Sketches that will be exported as files for laser cutting to lie flat in the XY plane. Here is the initial sketch:
a2plus
and TechDraw
With the two parts done, I wanted to do an assembly using the a2plus
workbench. I couldn’t figure out how to do the assembly in the same file
without losing the ‘parametric-ness’ of the parts, so I ended up creating a
separate FreeCAD file for the assembly and importing the Parts using the “Add
single shape out of an external file” feature. Then I could constrain the clips
to the main piece using two orthogonal axis-coincident constraints each.
Then I switched to the TechDraw
workbench and created a new Page with the
A2_Landscape_EN_m32
template. I added views of the Assembly, the two
Sketches, as well as a part of the Spreadsheet, which i think is a really nice
way to make sure that the parameters are known when the file is exported:
export and cutting
For exporting the design, it turned out to be easiest to use the drawing export
feature of TechDraw, which outputs an SVG or DXF file directly, and can export
drawings from any direction and with additional documentation overlaid. It is
also possible to directly export a single Sketch by selecting it in the Model
window and choosing Flattened SVG
in File > Export
, but this requires the
Sketch to be in the XY plane and doesn’t have any advanced options.
I really like the TechDraw
workflow, so I ended up creating a second drawing
with a bank template, on which I added two views of the clip and arranged
everything ready to export for cutting straight away.
I cut the first test on 3mm plywood, and the main part of the design was an immediate success:
However I forgot to take the material thickness into account for the length of the clips, so they ended up 3mm short:
I made a second iteration of only the clips, and was rather satisfied with everything. It was getting close to the end of the day, but I wanted to do a ‘production’ run with a nicer (and thicker) material. My instructor gave me a sheet of 4mm transparent acrylic, which is also very nice to engrave. I went ahead and changed my file parameters for the new thickness - and this is where I got sloppy. I was rushing a bit, and didn’t pay enough attention when I measured the acrylic. Ideally I would have not only measured more accurately, but also done a test cut to measure the kerf with the new material. Instead I got clips that didn’t fit in the slot cut out for them.
I fixed the fit problem by sanding down the slots a bit, which was much faster and resource-effective than cutting a new pair of guards, but even then the clips didn’t end up working as expected. Since the clips of the last prototype were a bit too loose, I had added a small lip on the bottom of them, and thinned out the hook at the top to make it more flexible. It turned out that the new geometry was simply too tight and, as I found out trying to force them on, the thinner top and right angles really exacerbated the brittleness of the acrylic, making them snap in two very easily.
At this point I realized what should have been clear from the beginning: a clip
with right angle bends at the top and bottom was just not going to work neither
geometrically nor in being flexible enough to snap onto the slot as expected.
I redrew the clip from scratch, this time using half-ellipse arcs as the base
for a round ‘C’ shape. I made the thickness of the clip a design parameter and
cut three different versions to find a good compromise between rigidity and
flexibility of the clip. In the end the one with a width of 3mm
worked best,
and I produced three more with the same dimensions. Due to my previous slip-up,
I still had to manually sand some spots on the three of them down, but this
only took a few minutes and then I finally had a set of clips that properly
clip on with an audible sound and stay in place.
files
acryl engraving
I also made some shirt buttons to test different engraving patterns and techniques:
I made the base files for these in Inkscape, which just consisted of a bunch
of concentric circles / squares. I then exported a DXF file and used Rhino’s
Hatch
command to fill some of the spaces between the curves with vector hatch
patterns.
flexure testing
For the clips above, I wanted to do some testing on different material thicknesses and their flexibility. I reused my template from the kerf test to build a little flex test generator:
I imported the generated SVG into Inkscape in order to convert it to a DXF
file, since our Rhino installation on the CAM PC doesn’t support SVG import.
I also replaced the SVG-fill text with single-stroke lettering using Inkscape’s
Hershey Text plugin (Extensions > Render > Hershey Text
). Creating, sizing
and positioning every label separately was quite tedious, and I couldn’t find a
working plugin that can auto-convert existing text to single-stroke text, so I
will keep looking for other solutions as I go further, for example I have not
checked yet whether Rhino has support for a similar feature.
Here is the SVG file before I exported it to DXF:
And here is the set of laser-cut flex tests:
Notice something? It might not be too clear without a good reference object in
the picture, but the tests are way too big! It turns out that the Inkscape DXF
export dialog has a little option for the ‘Base unit’, and it doesn’t always
match the document settings - in my case it defaulted to pt
when I wanted to
use mm
. In the end this wasn’t a big problem because I could simply measure
the actual thickness with calipers, but it did teach me a lesson.
construction kit
I had spent a lot of time on the drone-cover side-project above, so I decided to go with a rather simple press-fit construction kit. I started by designing a hexagonal connector in FreeCAD, with parametric settings for the material thickness, kerf and joint depth.
After extruding the sketch by the material width, I added a second sketch on top of it and cut off little chamfers to ease connection. I also designed a big rectangular panel, which I drew first as a quarter panel, then extruded and mirrored twice to obtain the full shape. I used the same technique I used for the drone protector (using TechDraw to export to SVG and DXF) to do the first tests on the laser cutter. The press-fit came out great first time, thanks to the kerf gauge that I used to select the kerf value to design with (0.25mm).
After I cut the first panels and joins, I realized that making differently- sized panels in the way I designed the first one would be extremely tedious, so I quickly recreated a fully parametric panel in OpenSCAD:
width = 9;
height = 4;
thick = 3.3;
kerf = 0.25;
depth = 5;
slot_width = thick - kerf;
stride = 2*depth + slot_width;
off = depth * 0.5; // 1.5 for 1x1 joins, 0.5 for bigger panels
start = off + depth;
full_width = 2*off + width*stride;
full_height = 2*off + height*stride;
echo(full_width, full_height);
difference() {
square([full_width, full_height]);
for (i = [0 : width-1]) {
translate([start + i*stride, -depth])
square([slot_width, 2*depth]);
translate([start + i*stride, full_height-depth])
square([slot_width, 2*depth]);
}
for (i = [0 : height-1]) {
translate([-depth, start + i*stride])
square([2*depth, slot_width]);
translate([full_width-depth, start + i*stride])
square([2*depth, slot_width]);
}
}
This way I could change some settings and quickly produce all the other parts I ended up cutting:
- four 4x8-notch panels
- three 2x4-notch panels
- two 2x25-notch panels
- a bunch of 1x1-panels
- a bunch of larger 1x1-panels for 90° joints
The OpenSCAD-produced panels do not currently have chamfered edges on the slot, which I would definitely change if I were to produce any more of these. When connecting two individual pieces it usually doesn’t matter, but when joining more than two pieces at the same time, it gets a bit more fiddly otherwise. Finally, here are some pictures of creations I built using the kit:
files
vinyl cutting
For the vinyl cutting assignment I decided to create a two-color pineapple sticker to go with my pineapple-VJing antics:
I designed the pineapple in Inkscape. I used the rectangle tool to create a square with rounded corners, then used the ‘Create Tiled Clones’ feature to create an array of these squares. I then turned the whole array by 45° and removed the excess pieces. Finally I converted the outside squares to paths and pushed in the outside control points to close the shape at the borders. The green leaves at the top I added with the pen/path tool.
I saved the design as an Inkscape SVG and transferred it to the vinyl-cutting
PC. On the PC I reopened it in Inkscape and used an Inkscape plugin to export
the paths to Roland CutStudio (Extensions > Roland CutStudio > Send to
CutStudio
). I exported the file twice, once for each color, after removing
the parts of the other color respectively. In CutStudio it was only necessary
to load the configuration from the machine after inserting the material and
setting the origin point, in order to make sure the placement was going to work.
Here is the process of weeding and transferring the two parts onto my laptop
cover:
I used a single piece of transfer film to transfer both parts in a single go. This allowed me to align them carefully when I applied the transfer, so that I didn’t have to worry about alignment anymore when applying everything to the laptop.
files
- the design is simply the SVG pictured above.