Printing 18650 battery holders: guide and tips
What does the cell holder generator do?
If you want to build your own battery pack – for an e-bike, a cordless drill, a power bank or a small solar setup in the shed – the first thing you need is a holder that keeps the round cells neatly apart. That is what this generator makes. It builds honeycomb holders for 18650 cells and any other round cell: every cell sits in its own hexagon, a narrow rim rests on the end of the cell, and a round opening leaves the terminal free so you can spot-weld nickel strips onto it.
Channels run along the underside between the cells. Later the nickel strips or bus wires lie in them without sticking out of the holder. The pack stays flat and is easy to stack, glue together or put into a box.
Besides the 18650 holder itself, the generator makes every part a pack needs:
- holders for the top and the bottom, mirrored where needed
- caps that slide over the finished pack and cover the terminals
- a box of bottom and lid with bolt and zip-tie holes, room for the BMS and a wire exit
- a wire clamp that holds the main wires at the wire exit
- vertical box sections to stack several packs in one box
- an insulator that goes over the nickel strips
- a fit test to find the right hole diameter for your cells
All parts share the same dimensions. Once you set the cell format, rows and cells per row, holder, cap and box fit together automatically. At the top you just pick the part you want to print next and download it as STL or 3MF.
Which cells fit?
The common formats are ready as presets: 18650, 21700, 20700, 26650, 32700 (also sold as 32650) and 14500, which is the same size as an AA cell. Picking a format sets the hole diameter and the cell length. For 18650 that is an 18.4 mm hole, as in the original project; for 21700 it is 21.4 mm, and more for the thick 26650 and 32700 LiFePO4 cells.
These values are a good starting point, not a guarantee. Cells from different makers differ by a few tenths of a millimeter, and every printer prints holes a little differently. That is why there is a fit test: a strip of small cups whose diameter grows by 0.2 mm from cup to cup. Each cup has its diameter engraved inside its floor. Print the test with exactly the material and settings you will use for the holder and push a cell into each cup. The right diameter is the one in which the cell sits firmly without having to be forced in. Enter that value as the hole diameter; the format switches to “Custom size”.
If your cells are not among the presets, set diameter and length yourself. The generator works with any size between 8 and 40 mm.
Planning the pack: rows, shape and channels
A battery pack consists of cells connected in parallel (P) and in series (S). A 10S4P pack for a 36 V e-bike, for example, has 40 cells: ten groups in series, four cells in parallel in each group. How you arrange the cells in the holder depends on how you want to lay the nickel strips later. Often one row of the holder is one parallel group.
Rows and cells per row set the size. The generator shows the holder’s dimensions right away. The original project’s default – four rows of eight cells – is just under 177 mm long and only just fits a 180 mm print bed. If your pack is larger, split it into two holders and join them later; the generator warns you when a part no longer fits the bed.
There are three pack shapes:
- Rectangle: the rows are offset by half a cell in turn, the outer edges stay straight. This is the usual shape for boxes and caps.
- Parallelogram: every row is offset by half a cell against the previous one. It fits slanted frames, such as the down tube of an e-bike.
- Triangle: the cells form a triangle; four rows make ten cells. Triangles have no caps or boxes.
Under Channels you choose how the cells are connected. “Nickel strips” puts three channels through every cell: one along the row and two at 60°, so the strips can run in any direction. “Bus wires” puts two channels per row for thick copper conductors, which you connect to the cells with thin fuse wires.
Why a mirrored holder?
Every pack needs two holders, one at the top and one at the bottom. With rectangular packs with an odd number of rows and with triangles, both are the same: you print the same holder twice. With an even number of rows or a parallelogram, the second holder only fits mirrored. The generator tells you and shows a list of what your pack needs below the part selector. The “Mirrored” version gives you the matching second holder; “Both” puts both side by side on one plate.
Caps, box and strain relief
If a bare pack in heat-shrink tubing is not enough, there are two options. The cap is a shallow tray that slides over a holder and covers the terminals and nickel strips. You can put a label on its floor, such as “5S4P” or “36V 10Ah”. The text is mirrored in the floor so it reads correctly from outside, either engraved or inlaid flush in a second color.
The box encloses the whole pack. It consists of a bottom and a lid that meet in the middle of the upper holder, with a lip that keeps both parts in place. Small ribs reach between the cells and hold the holders at the right height. Bolt holes for M3 bolts with counterbores for the heads sit at the corners, with zip-tie slots in between, so you can hold the pack together and strap it to something at the same time. Above the holders the lid leaves room for the BMS, and there is a wire exit on the side. The wire clamp bolts onto it and holds the main wires so no pull reaches the cell connections.
For tall packs with several layers you also print vertical box sections. Each section is as tall as one pack and has a lip at the bottom that reaches into the part below.
Printing tips
- Material: use PETG, ABS or ASA. PLA softens at about 55 °C, and packs can get that warm while charging or under load.
- Orientation: every part already lies the right way on the bed. The holder prints channels down, caps and box parts floor down.
- Insulator as support: a thin ceiling spans the channels. So that it prints cleanly, the generator puts an insulator into every channel, with 0.3 mm of air above it. It supports the ceiling while printing and comes off easily afterwards; later it goes over the nickel strips as an extra layer. In its own color it is easy to spot in the preview.
- No support at all: set the channel depth to 0 and the holder has no channels and needs no support.
- Wall thickness: 1.2 mm around each cell is three lines of a 0.4 mm nozzle. Ideally, keep the wall a multiple of your nozzle width.
- Test without cells: try fit and assembly with empty parts first. Never force cells in; a damaged wrap is a short-circuit risk.
Battery safety
A printed holder brings order and spacing, but it does not make a pack safe. Lithium cells store a lot of energy. A short circuit, a damaged wrap or a charging fault can heat them so much that they catch fire. So:
- Always use a BMS that monitors every cell group, and a fuse in the main circuit.
- Put fish paper or Kapton tape over the terminals before the nickel strips. The printed insulator is an extra layer, not a replacement.
- Connect the cells by spot welding. Soldering heats the cells and damages them.
- Only combine identical cells at the same state of charge.
- Never charge a home-made pack unattended or near anything flammable.
If you have no experience with lithium packs yet, get help from someone who does for your first pack.
Storing loose cells
This generator makes holders for packs that are wired together for good. If you just want to store single cells safely or take them on a trip, a sliding case with pockets is the better choice. Make one with the battery case generator for AA, AAA, 18650 and other formats. Both generators share the same table of cell formats.
Origin and credits
This generator is a port of Hex-Cell-Holder, an OpenSCAD project by Addy with additions by Albert Phan (boxes, stacking, optimizations). The original idea of the honeycomb holders comes from “SpinningMagnets” on the endless-sphere.com forum. The project is in the public domain (Unlicense); we credit it all the same. Holders, caps, box, wire clamp, insulator and fit test have been translated line by line into TypeScript and give the same dimensions and volumes as the original in OpenSCAD.
New in this version are the cell format presets, the label on caps and boxes, the colors for insulator and label, and the list of parts for your pack. You will find all details under licenses.
Ready to start? Open the generator or browse the examples.
All parameters
The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Cells | |||
| Hole diameter | 18.4 mm | 8 – 40 mm | Diameter of the hole for one cell. 18.4 mm suits most 18650 cells; check it with the fit test. |
| Cell length | 65 mm | 30 – 100 mm | Length of the cell. Sets the height of the box. |
| Wall around a cell | 1.2 mm | 0.4 – 4 mm | Wall around one cell; two cells are separated by twice this wall. Ideally a multiple of your nozzle width. |
| Layout | |||
| Rows | 4 | 1 – 20 | Number of rows. For a triangle: cells in the widest row. |
| Cells per row | 8 | 1 – 30 | Number of cells in a row (no effect for triangles). |
| Holder | |||
| Holder height | 10 mm | 4 – 30 mm | Total height of the holder including the channels. |
| Channel depth | 3 mm | 0 – 6 mm | Depth of the channels on the underside. 0 = no channels; the holder then prints without any support. |
| Diagonal channel width | 8 mm | 2 – 20 mm | Width of the channels at 60° between the rows. |
| Row channel width | 8 mm | 2 – 20 mm | Width of the channels along a row. |
| Cell rim overlap | 3 mm | 0.5 – 8 mm | How far the floor overlaps the edge of the cell. The opening for the terminal is the hole diameter minus twice this value. |
| Floor thickness | 1 mm | 0.4 – 3 mm | Thickness of the floor between the cell and the channels. |
| Insulator | |||
| Insulator gap | 0.3 mm | 0.1 – 0.6 mm | Air between the insulator and the channel ceiling, so it comes off easily. |
| Insulator play | 1.5 mm | 0.2 – 4 mm | How much narrower than the channel the insulator is. |
| Cap | |||
| Cap wall | 1.2 mm | 0.8 – 4 mm | Wall and floor thickness of the cap. |
| Cap play | 0.2 mm | 0 – 1 mm | Air between the holder and the cap. |
| Box | |||
| Box wall | 2 mm | 1.2 – 5 mm | Wall and floor thickness of the box bottom and lid. |
| Box play | 0.2 mm | 0 – 1 mm | Air between the holders and the box. |
| Room for the BMS | 10 mm | 0 – 40 mm | Space above the holders in the lid for the BMS and wiring. |
| Room below | 0 mm | 0 – 30 mm | Space under the pack for wires. |
| Room on the wire side | 3 mm | 0 – 40 mm | Space between holder and wall on the side of the wire exit. |
| Room on the other side | 0 mm | 0 – 40 mm | Space between holder and wall on the opposite side. |
| Stacked packs | 1 | 1 – 6 | Height of a vertical box section in packs, to put several packs on top of each other in one box. |
| Wire exit | |||
| Wire diameter | 5 mm | 1 – 12 mm | Outer diameter of one main wire (5 mm ≈ 10 AWG silicone wire). |
| Strain relief bolt | 3 mm | 2 – 5 mm | Bolt diameter of the strain relief (3 = M3). |
| Clamp factor | 0.7 | 0.3 – 1 | Share of the wire diameter that stays free. Smaller = clamped tighter. |
| Wire exit width | 15 mm | 6 – 40 mm | Width of the opening for the wires. |
| Wire exit length | 10 mm | 5 – 30 mm | How far the wire exit sticks out of the lid. |
| Wall above the wires | 4 mm | 2 – 8 mm | Thickness of the wall above the wire exit. |
| Strain relief plate | 4 mm | 2 – 8 mm | Thickness of the plate that bolts the strain relief in place. |
| Bolts & zip ties | |||
| Bolt diameter | 3 mm | 2 – 6 mm | Bolts joining bottom and lid (3 = M3). In the bottom the hole is slightly tighter so the bolt cuts its thread. |
| Head diameter | 6 mm | 4 – 12 mm | Diameter of the bolt head (6 mm for an M3 socket head). |
| Head height | 3 mm | 1.5 – 6 mm | Depth of the counterbore for the bolt head. |
| Hole allowance | 1 mm | 0 – 2 mm | How much larger the hole for the strain relief bolt is. |
| Zip-tie width | 8 mm | 2 – 12 mm | Width of the zip-tie slots. |
| Zip-tie thickness | 2.5 mm | 1 – 4 mm | Thickness of the zip-tie slots. |
| Fit test | |||
| Smallest diameter | 18 mm | 8 – 40 mm | Diameter of the first test cup. |
| Step | 0.2 mm | 0.05 – 0.5 mm | How much larger each further cup is. |
| Number of cups | 4 | 2 – 8 | How many diameters you test at once. |
| Cup wall | 1.6 mm | 0.8 – 3 mm | Wall and floor thickness of the test cups. |
| Cup depth | 10 mm | 4 – 20 mm | How deep the cell sits in the cup. |
| Label | |||
| Text size | 0 mm | 0 – 30 mm | Height of the capital letters, 0 = fit the floor. |
| Label depth | 0.6 mm | 0.2 – 1.2 mm | How deep the label goes into the floor. At least 0.4 mm stays below it. |
Frequently asked questions
Which hole diameter do I need?
Cells vary by a few tenths of a millimeter between makers. Print the fit test with the same settings you will use for the holder and take the diameter in which the cell sits firmly without binding.
Why do I need a mirrored holder?
In rectangular packs with an even number of rows and in parallelograms the top side does not match the bottom. The generator tells you and lists the parts your pack needs.
Which material should I use?
PETG, ABS or ASA cope with heat better than PLA, which softens at about 55 °C. Don’t use PLA for packs that get warm in use.
What is the insulator for?
It prints as support under the channels, comes off easily and then lies over the nickel strips as extra insulation.
Is a printed holder safe?
It keeps the cells apart, but it replaces neither a BMS, a fuse nor fish paper. Only build lithium packs with experience, spot-weld instead of soldering and never charge them unattended.
Origin & license
- Hex-Cell-Holder by Addy, Albert Phan (contributor) · Unlicense · code ported – Holders, caps, box, strain relief, insulator and fit test ported (public domain); original idea by “SpinningMagnets” (endless-sphere.com).