May 11, 2025
Description
The OpenSCAD script can easily generate a simple battery cell holder for creating battery packs. It consists of two parts with proper cutouts and integrated magnets that hold the cells in place. One part can slide along guiding axes to allow for proper aligning. This part also has two sides, one with a cell cutouts that are shifted by half a cell width. Just turn it the way you need it for the battery pack you want to create.
It support easy customization. Just specify the number of cells, their dimensions, the magnets you want to use, if any, and get your custom model.
There are some sample files for 5 battery cells of type 18650, 21700 and 26500. In the preview image you see the 18650 version.
In the example design shown I used the magnets I had at hand (Prusa Mk2.5S hotend magnets):
They seem to be a pretty good fit for 18650 cells. In the slicer I added a pause command at the magnet's top and inserted them with some super glue.
As an alternative you can also disable the integrated magnets. The slot will then extend all the way to the bottom so you can insert the magnets easily after printing. You'll probably need some glue then, too.
The axes are just plain old 8 mm rods that I had lying around from various 3D printer upgrades.
To prevent the parts moving just use a rubber band around both parts.
You can also find the full source at https://github.com/RealNagus/spot-weld-helper.git
License:
BSD License
8