Introduction
The DJI O4 Air Unit in my 5 inch and in my Meteor gets hot. In the air that’s fine, the props push enough air over it to keep it cool. On the ground it’s a different story. When I’m out flying and want to export videos off the drone, the air unit has to stay powered on, and with no airflow it overheats.
At home I’d just point a fan at it. But I’m usually not at home when I want those videos, so I needed something that fits in my bag, runs off a battery, and blows air right where it’s needed.

I could have looked for something to buy, but nothing does exactly this, and honestly that’s half the fun. As an engineer, building your own solution to a problem you actually have is one of the best ways to learn. You end up with something made exactly for your use case, and you pick up skills along the way that you’d never get from a tutorial. This one went from first sketch to printed case in a single day.
The cooler is simple: an 18650 cell, a USB-C charge and boost board that steps it up to 5 V, a slide switch, and a 5015 blower fan. All of it lives in a 3D printed case. This post is mostly about how I modelled that case.
A Parametric Model With a Spreadsheet
The first thing I did in FreeCAD was create a spreadsheet. Every dimension that matters lives there with an alias, and the sketches reference those aliases instead of hard-coded numbers:
| Alias | Value (mm) |
|---|---|
| InnerBoxWidth | 85 |
| WallThickness | 2.5 |
| Height | 20 |
| SwitchWidth | 10.59 |
| SwitchHeight | 5.8 |
| CPortWidth | 11 |
| CPortHeight | 6 |
| CBoardWidth | 23.6 |
| CBoardLength | 34 |
| DuctWidth | 19.5 |
| DuctHeight | 15.45 |
So instead of typing 2.5 into a sketch constraint, I type Spreadsheet.WallThickness. The floor pad, the wall height, the cutouts for the switch, the USB-C port and the fan’s air duct, and the pocket the charging board sits in all read from the sheet. Some constraints are expressions, like the outer width being Spreadsheet.InnerBoxWidth + Spreadsheet.WallThickness.
The payoff is that changing the design is changing one cell. If I buy a different switch, I measure it, update SwitchWidth and SwitchHeight, and the whole model recomputes. No hunting through sketches to find which constraint was the 10.59.
Placing the Screw Holes From a Photo
The blower fan has two mounting tabs, and I needed the screw holes in the case floor to line up with them. Measuring the hole positions on an oddly shaped fan with calipers is a pain, so I took a photo instead.
I put the fan on my cutting mat and took the photo from directly above. Then I imported it into FreeCAD as an image plane and placed it on top of the case floor. The cutting mat’s grid is the trick here: I scaled the image until the grid squares matched real millimetres in FreeCAD, and from that point the photo is a 1:1 reference.
Then I sketched the holes right on top of the fan’s mounting tabs and used the Hole feature to make them, 3.4 mm in diameter for M3 screws.
Making the Lid With a Sub-Shape Binder
The lid is a separate body, but it has to match the case exactly. If I change InnerBoxWidth, the lid has to follow.
That’s what a sub-shape binder is for. In PartDesign, one body isn’t supposed to reach into another body’s geometry directly. A sub-shape binder brings a copy of that geometry into the new body, and keeps it linked to the original. So I created a binder of the case body inside the lid body, and sketched the lid on top of it, referencing the binder’s edges for the outline.
The lid plate is padded by Spreadsheet.WallThickness, the same value as the case walls, so it’s still driven by the spreadsheet. Change the case, and the binder updates, and the lid updates with it.

Hex Vents With a Linear Pattern
The fan needs to pull air in through the lid, and I wanted that to look nice, so hexagons it was.
Drawing 30+ hexagons by hand is a terrible idea. Instead I sketched a small cluster of hexagons once, pocketed it through the lid, and then used LinearPattern to repeat that pocket. The pattern runs in two directions, along the sketch’s vertical and horizontal axes, with 3 occurrences each, spaced 20 mm and 17 mm apart. Nine copies of one pocket gives the whole grille.
Like everything else, if I want more or fewer vents later, it’s one number in the pattern instead of redrawing anything.
Combining the 18650 Holder in the Slicer
I didn’t model the battery holder myself. There’s already a great one on Printables, the EZ 18650 charging tray with printed spring by FiveAngle, so there was no reason to reinvent it. The printed spring is the clever part: it holds the cell in place without any metal spring at all.
Instead of importing it into FreeCAD, I combined it with the case in the slicer:
- Load the case body and the holder STL as one object with two parts.
- Rotate the holder 90° and stand it on the case floor. Its bottom sits at z = 2.2 mm, so it overlaps the 2.5 mm floor slightly and fuses to it when printed.
- Put the spring end over a cutout in the floor (
Pocket004in the model), so the spring has room to flex.

That way the case and the holder print as one part, and I didn’t have to touch someone else’s model.
The Result

Everything fits: the cell in the printed holder, the fan bolted down on the holes from the photo, and the charging board in its pocket with the USB-C port lined up with the wall. The switch only cuts the fan’s positive lead, so the cell still charges over USB-C with the fan off.
Now when I’m out flying, I point the cooler at the air unit, flip the switch, and export my videos without worrying about cooking the O4.
Conclusion
This was a small project, but it’s exactly the kind I think every engineer should be doing. A real problem, a quick solution, and a bunch of new skills I’ll use on every model from now on: spreadsheets for parameters, images for reference, binders for parts that depend on each other, and patterns for anything repeated.
The FreeCAD model, STLs, wiring diagram and parts list are all on GitHub. The battery holder is FiveAngle’s, licensed under CC BY-NC-SA 4.0, so download it from Printables.
Feel free to check out my other blog posts or find the source code to my projects on my GitHub.