Battery pack enclosure with strain relief
A parametric box for a Keystone 2465 three-AA holder with a wire bay, a cable-tie anchor and a bend-relief collar for the lead to the sensor.
Rendered, not yet printed
| Fits | ESP32-C5-DevKitC-1 (Any revision (the box holds a Keystone 2465 holder, not the board)) |
|---|---|
| Material | PETG recommended (our choice, untested) |
| Printer settings | Recommended, not yet tested: 0.4 mm nozzle, 0.2 mm layers, 3 walls, 20% infill, base floor down, lid top face down, no supports |
| Licence | CC BY 4.0 (design), source under MIT |
| Downloads | battery-pack-enclosure.scad (Source) · battery-pack-enclosure.stl · battery-pack-enclosure.3mf |
| Updated | 28 November 2026 |

This is a printed box for one Keystone 2465 battery holder: three AA cells in series with 150 mm wire leads (F-B-023). It adds a wire bay and strain relief for the lead that runs to the sensor. It pairs with the vented enclosure for the battery environment sensor. Every holder dimension comes from Keystone’s catalogue drawing. Every value that does not is a parameter labelled as an assumption. The design is rendered and checked, not yet printed.
What it is for
A battery pack on a lead keeps the cells out of the sensor enclosure. That leaves the sensor bay free of the cells’ bulk, and lets you change cells without opening the box with the board in it. The weak point of a pack on a lead is the lead itself. Keystone fits the 2465 with 26 AWG tinned wire (F-B-023). Every tug on the external cable would otherwise land on the joint between that thin wire and the lead to the sensor. This box takes the pull on the outer cable before it reaches the joint.
The IoT design reasons
Cell safety
The design does not touch the cells, the springs or the contacts. Those are Keystone’s holder (polypropylene body, nickel-plated spring-steel springs, F-B-023) and the cell maker’s cells. Follow the cell maker’s instructions for type, mixing and storage, and insert cells as marked in the holder. We make no safety claim for the pack beyond what those makers state.
The box is not sealed. The lid sits on a locating lip and four screws. We make no claim of ingress protection.
This version holds AA cells in a holder with a published, dimensioned drawing. A version for a protected single-cell lithium-ion holder needs the same kind of drawing from its maker. We have not drawn one yet. This site never gives instructions that bypass a lithium cell’s protection circuit.
Powering the board
The ESP32-C5-DevKitC-1 user guide lists three mutually exclusive ways to power the board: the USB ports, the 5V pin and the 3V3 pin (F-B-018). Do not plug in USB while the pack feeds the board through a header pin. Which pin the pack feeds, and through what regulator, is part of the project’s electrical design. It is covered on the project page, not here.
Strain relief
The lead to the sensor goes through three stages before it reaches the joint:
- Bend-relief collar. A 6 mm collar outside the end wall, with a flared mouth, keeps the cable from bending sharply at the wall.
- Cable-tie anchor. Inside, the cable lies on a block level with the exit hole. A cable tie through a tunnel in the block clamps it, so a pull on the cable stops at the tie.
- Weaving posts. Two 5 mm posts between the anchor and the holder take any slack, so the joint itself sits loose.
The holder’s own leads leave the holder pocket through a 10 mm notch at the foot of the divider wall, or over the top of it. Three 3 mm ribs under the holder leave room for the leads to run beneath it.
Mounting and the radio
Two 4.5 mm holes in the floor, under the holder, take wall screws. Fix the box before fitting the holder. The box contains no radio. If you mount it next to the sensor enclosure, keep it out of the 15 mm zone Espressif recommends around the board’s PCB antenna (F-B-015). Run the lead to the enclosure’s lead entry in its USB end wall, not past the antenna end.
Dimensions and where they come from
| Dimension | Value | Source |
|---|---|---|
| Holder length × width × height | 58.0 × 48.3 × 17.0 mm | Keystone catalogue M65 p.28, Cat. No. 2464/2465 drawing (F-B-024) |
| Holder leads | 150 mm (6.0 in), 26 AWG tinned | Same page (F-B-023) |
| Holder mounting holes | 3.3 mm, two, positions not dimensioned | Same drawing (F-B-024) |
Keystone’s drawing does not dimension where the two 3.3 mm holes are. The box therefore holds the holder in a pocket with 0.5 mm clearance per side, and the lid holds it down, instead of screwing through those holes.
These values are not in the maker’s drawing. Each is a parameter marked ASSUMPTION in the source:
| Parameter | Default | What to check |
|---|---|---|
cable_d |
4.0 mm | Outer diameter of your lead to the sensor. The exit hole is 0.5 mm larger. |
tie_w, tie_t |
5.0 mm, 1.8 mm | Your cable tie, plus clearance |
screw_pilot, screw_clear |
2.5 mm, 3.4 mm | M3 self-tapping screws for the lid |
mount_hole |
4.5 mm | Wall screw size |
Tolerances and parameters you can change
The pocket is 59.0 × 49.3 mm for a 58.0 × 48.3 mm holder (fit = 0.5 mm per side). Inside, the box is 85 × 49.3 × 21 mm. Two bars on the lid stop 0.5 mm (press_gap) above the top of the holder. The render check confirms the print plate (base and lid) is 103.0 × 142.6 × 23.0 mm within ±0.2 mm, and that the mesh is closed and manifold.
holder_l,holder_w,holder_h: change these for another holder, from that holder’s own drawing.bay_l(24 mm): length of the wire bay. Increase it if your joint is a connector, not a soldered and sleeved splice.rib_h(3 mm): space under the holder for the leads.cable_d: the exit hole follows it, and so do the collar and the anchor height.press_gap(0.5 mm): set it to 0 for a firm hold if your holder measures exactly 17.0 mm.part:plate,baseorlid.
Print and fit notes
- Print the base floor down and the lid top face down, as laid out. The collar has a web down to the floor so it prints without supports.
- Strip and join the leads in the wire bay, sleeve the joint, weave the cable round the posts, then fit and tighten the tie.
- Check that the lid bars clear the holder before you tighten the lid screws.
- PETG is our recommendation, not a tested result.
Status
Rendered, not yet printed. The source renders in the pinned OpenSCAD build (openscad/openscad:bookworm.2026-11-25), the mesh is manifold and the bounding box matches dims.yaml. No print and no fit with a Keystone 2465 holder has been done yet. This page will say “Printed and fitted” only after a print on a named printer and material, fitted with the holder and a lead, with a photo.
For makers
Buy the holder by its part number (2465 is the wire-lead version, 2464 the PC-pin version, F-B-023), print the box and splice your sensor lead in the bay. If your cable is thicker or thinner than 4 mm, set cable_d before printing.
For product teams
A printed box is a prototype. In a product, the battery compartment, contacts, polarity marking and any lithium cell follow the cell and holder makers’ specifications. They also follow the safety standard your product is assessed against, which we do not cover here. Specify the lead and its anchorage with a pull test for your application, and measure the pack’s real capacity at your load profile instead of assuming it.