3D Printing Generator
DeutschEnglish

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.

ParameterDefaultRangeMeaning
Cells
Hole diameter18.4 mm8 – 40 mmDiameter of the hole for one cell. 18.4 mm suits most 18650 cells; check it with the fit test.
Cell length65 mm30 – 100 mmLength of the cell. Sets the height of the box.
Wall around a cell1.2 mm0.4 – 4 mmWall around one cell; two cells are separated by twice this wall. Ideally a multiple of your nozzle width.
Layout
Rows41 – 20Number of rows. For a triangle: cells in the widest row.
Cells per row81 – 30Number of cells in a row (no effect for triangles).
Holder
Holder height10 mm4 – 30 mmTotal height of the holder including the channels.
Channel depth3 mm0 – 6 mmDepth of the channels on the underside. 0 = no channels; the holder then prints without any support.
Diagonal channel width8 mm2 – 20 mmWidth of the channels at 60° between the rows.
Row channel width8 mm2 – 20 mmWidth of the channels along a row.
Cell rim overlap3 mm0.5 – 8 mmHow far the floor overlaps the edge of the cell. The opening for the terminal is the hole diameter minus twice this value.
Floor thickness1 mm0.4 – 3 mmThickness of the floor between the cell and the channels.
Insulator
Insulator gap0.3 mm0.1 – 0.6 mmAir between the insulator and the channel ceiling, so it comes off easily.
Insulator play1.5 mm0.2 – 4 mmHow much narrower than the channel the insulator is.
Cap
Cap wall1.2 mm0.8 – 4 mmWall and floor thickness of the cap.
Cap play0.2 mm0 – 1 mmAir between the holder and the cap.
Box
Box wall2 mm1.2 – 5 mmWall and floor thickness of the box bottom and lid.
Box play0.2 mm0 – 1 mmAir between the holders and the box.
Room for the BMS10 mm0 – 40 mmSpace above the holders in the lid for the BMS and wiring.
Room below0 mm0 – 30 mmSpace under the pack for wires.
Room on the wire side3 mm0 – 40 mmSpace between holder and wall on the side of the wire exit.
Room on the other side0 mm0 – 40 mmSpace between holder and wall on the opposite side.
Stacked packs11 – 6Height of a vertical box section in packs, to put several packs on top of each other in one box.
Wire exit
Wire diameter5 mm1 – 12 mmOuter diameter of one main wire (5 mm ≈ 10 AWG silicone wire).
Strain relief bolt3 mm2 – 5 mmBolt diameter of the strain relief (3 = M3).
Clamp factor0.70.3 – 1Share of the wire diameter that stays free. Smaller = clamped tighter.
Wire exit width15 mm6 – 40 mmWidth of the opening for the wires.
Wire exit length10 mm5 – 30 mmHow far the wire exit sticks out of the lid.
Wall above the wires4 mm2 – 8 mmThickness of the wall above the wire exit.
Strain relief plate4 mm2 – 8 mmThickness of the plate that bolts the strain relief in place.
Bolts & zip ties
Bolt diameter3 mm2 – 6 mmBolts joining bottom and lid (3 = M3). In the bottom the hole is slightly tighter so the bolt cuts its thread.
Head diameter6 mm4 – 12 mmDiameter of the bolt head (6 mm for an M3 socket head).
Head height3 mm1.5 – 6 mmDepth of the counterbore for the bolt head.
Hole allowance1 mm0 – 2 mmHow much larger the hole for the strain relief bolt is.
Zip-tie width8 mm2 – 12 mmWidth of the zip-tie slots.
Zip-tie thickness2.5 mm1 – 4 mmThickness of the zip-tie slots.
Fit test
Smallest diameter18 mm8 – 40 mmDiameter of the first test cup.
Step0.2 mm0.05 – 0.5 mmHow much larger each further cup is.
Number of cups42 – 8How many diameters you test at once.
Cup wall1.6 mm0.8 – 3 mmWall and floor thickness of the test cups.
Cup depth10 mm4 – 20 mmHow deep the cell sits in the cup.
Label
Text size0 mm0 – 30 mmHeight of the capital letters, 0 = fit the floor.
Label depth0.6 mm0.2 – 1.2 mmHow 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).