Sign in with STEVE

steve/lithium-battery-pack

3.7 V lithium battery packs with protection circuit, as sold by Adafruit: lithium polymer pouch packs from 100 to 2500 mAh and 18650 packs of one, two or three cells.

v1.0.0 Latest STEVE MIT 5
Isometric
part.py 39 lines · Python · STEVE runtime · checked
Download
1"""3.7 V lithium battery pack with protection circuit, as Adafruit sells them: a lithium polymer pouch pack or a pack of one,
2two or three 18650 lithium ion cells side by side, at the outside size Adafruit publishes for it. The pack lies flat: its
3underside on the XY plane, its length along Y, its width along X, centred on the origin in X and Y. One solid; the wires
4and plug are not modelled. Dimensions and their sources in the README."""
5from steve import Model
6
7pack = "lipo-500mah" # Pack: chemistry and capacity
8
9# pack: shape (pouch: a flat block; round: 18650 cells side by side in one sleeve), width, length and thickness in mm, from
10# the "Technical Details" of Adafruit's product page for that product number (pages read 2026-11-14).
11PACKS = {
12 "lipo-100mah": {"shape": "pouch", "w": 11.5, "l": 31, "t": 3.8}, # product 1570: "Size: 11.5mm x 31 x 3.8mm"
13 "lipo-150mah": {"shape": "pouch", "w": 19.75, "l": 26.02, "t": 3.8}, # product 1317: "Size: 19.75mm x 26.02mm x 3.8mm"
14 "lipo-400mah": {"shape": "pouch", "w": 17, "l": 36, "t": 7.8}, # product 3898: "Size: ~36mm x 17mm x 7.8mm"
15 "lipo-500mah": {"shape": "pouch", "w": 29, "l": 36, "t": 4.75}, # product 1578: "Size: 29mm x 36mm x 4.75mm"
16 "lipo-2000mah": {"shape": "pouch", "w": 36, "l": 60, "t": 7}, # product 2011: "Dimensions: 60mm x 36mm x 7mm"
17 "lipo-2500mah": {"shape": "pouch", "w": 50, "l": 60, "t": 7.3}, # product 328: "Size: ... (50mm x 60mm x 7.3mm)"
18 "18650-2200mah": {"shape": "round", "w": 18, "l": 69, "t": 18}, # product 1781: "Dimensions: 69mm x Diameter18mm"
19 "18650-4400mah": {"shape": "round", "w": 37, "l": 69, "t": 18}, # product 354: "Dimensions: 69mm x 37mm x 18mm"
20 "18650-6600mah": {"shape": "round", "w": 54, "l": 69, "t": 18}, # product 353: "Dimensions: 69mm x 54mm x 18mm"
21}
22
23if pack not in PACKS:
24 raise ValueError(f"no pack {pack!r}: {', '.join(PACKS)}")
25P = PACKS[pack]
26w, l, t = P["w"], P["l"], P["t"]
27
28model = Model()
29if P["shape"] == "pouch":
30 model.box("pack", w, l, t, at=(0, 0, t / 2), name="Pack")
31else:
32 # The sleeve around the cells: round sides of the pack's thickness, flat across the cells in between.
33 half = (w - t) / 2
34 model.cylinder("side_1", t / 2, l, direction=(0, 1, 0), at=(-half, -l / 2, t / 2), name="Pack")
35 if half > 0:
36 model.cylinder("side_2", t / 2, l, direction=(0, 1, 0), at=(half, -l / 2, t / 2), name="Pack side")
37 model.box("middle", w - t, l, t, at=(0, 0, t / 2), name="Pack middle")
38result = model.result()
39

3.7 V lithium battery packs with protection circuit, as Adafruit sells them: lithium polymer pouch packs of 100, 150, 400, 500, 2000 and 2500 mAh, and 18650 lithium ion packs of 2200, 4400 and 6600 mAh. One solid at the outside size Adafruit publishes, lying flat; the wires and plug are not modelled. See the README.

Lithium battery pack

A 3.7 V rechargeable lithium battery pack with its protection circuit, as Adafruit sells them: six lithium polymer pouch packs from 100 to 2500 mAh and three packs of one, two or three 18650 lithium ion cells. The model is one solid at the pack's outside size, for checking that a pack fits an enclosure.

The pack lies flat with its underside on the XY plane, its length along Y and its width along X, centred on the origin in X and Y. A pouch pack is a plain block. An 18650 pack is the sleeve around its cells: a cylinder for one cell, and for two or three cells side by side a flat pack with round sides.

Parameter: pack, the chemistry and capacity.

Source

Adafruit's product page for each product number (www.adafruit.com/product/ and the number), section "Technical Details", read 2026-11-14. Each size below is the page's own figure.

Pack Adafruit product Page's size Width x length x thickness here Page's weight
lipo-100mah 1570 "11.5mm x 31 x 3.8mm" 11.5 x 31 x 3.8 3 g
lipo-150mah 1317 "19.75mm x 26.02mm x 3.8mm" 19.75 x 26.02 x 3.8 4.65 g
lipo-400mah 3898 "~36mm x 17mm x 7.8mm" 17 x 36 x 7.8 8.2 g
lipo-500mah 1578 "29mm x 36mm x 4.75mm" 29 x 36 x 4.75 10.5 g
lipo-2000mah 2011 "60mm x 36mm x 7mm" 36 x 60 x 7 34 g
lipo-2500mah 328 "50mm x 60mm x 7.3mm" 50 x 60 x 7.3 50 g
18650-2200mah 1781 "69mm x Diameter18mm" 18 x 69 x 18 46 g
18650-4400mah 354 "69mm x 37mm x 18mm" 37 x 69 x 18 95 g
18650-6600mah 353 "69mm x 54mm x 18mm" 54 x 69 x 18 155 g

The pages give no tolerance, and the page for product 3898 marks its size as approximate. A lithium polymer pack also swells a little with age and charge, so leave room around it.

The maker's limits. Each page links PKCELL's technical specification for the pack, whose last page is a drawing with the pack's size limits. They are not the same figures as the page's, and for some packs the page's size is outside the drawing's limits (marked). The model uses the page's size; allow for the larger of the two when sizing a pocket.

Pack PKCELL specification Drawing: thickness x width x length Outside the drawing's limits
lipo-100mah Li-Polymer 401230 105mAh 3.7V, QA.S.0228 edition A, 2014-09-09, page 5 4.0 ±0.3 x 12 ±0.3 x 30 ±2 width 11.5
lipo-150mah Li-Polymer 402025 150mAh 3.7V, QA.S.0228 edition A, 2014-07-28, page 5 4.0 ±0.3 x 20 ±0.3 x 25 ±0.3 length 26.02
lipo-400mah LIPO 801735 400mAh 3.7V, 2016-11-29, page 8 max 8.2 x max 17.5 x max 37.0 none
lipo-500mah Li-Polymer 503035 500mAh 3.7V, QA.S.0228 edition A, 2014-08-21, page 5 5.0 ±0.1 x 30 ±0.1 x 35 ±0.1 all three: 4.75, 29, 36
lipo-2000mah Li-Polymer 803860 2000mAh 3.7V, QA.S.0228 edition A, 2014-06-03, page 5 max 8.5 x max 38.5 x max 62 none
lipo-2500mah LIPO 785060 2500mAh 3.7V, 2019-05-10, page 8 max 8.1 x max 50.5 x max 62.5 none
18650-2200mah ICR18650 2200mAh 3.7V, QA.S.0221 edition A/0, 2014-07-28, page 7 diameter at most 18.6, length at most 67.50 length 69
18650-4400mah ICR18650 4400mAh 3.7V, QA.S.0221 edition A/0, 2014-07-28, page 7 max 18.6 x max 37.5 x max 65.4 length 69
18650-6600mah ICR18650 6600mAh 3.7V 1S3P, QA.S.0221 edition A/0, 2014-07-30, page 7 18.3 x 55.5 x 69 none stated; the page's width is 54

Not modelled. The two wires and the JST PH 2-pin plug (some pages give a lead length: 25 mm for product 3898, 102 mm for 1578, 105 mm for 1570 and 127.5 mm for 1317; none gives wire or plug dimensions), the protection circuit board under the wrap at the wire end, the pouch's folded seams and the tape. The revision histories on several pouch pack pages (2022 to 2024) say the lead is now taped to the top of the pack, which adds to the thickness there; the pages don't say by how much.

Proportions, for looks only. The 18650 packs of two and three cells are drawn as one smooth sleeve with round sides and flat faces; the real wrap dips between the cells. The pouch packs have square edges here; the real ones are rounded. Neither changes the outside size.

Materials and mass. No material is set: a pack is cells, a circuit board, wrap and tape, and no single material describes it. Use the page's weight in the first table. The model's volumes run from 1.4 cm³ (lipo-100mah) to 62.3 cm³ (18650-6600mah). The 18650 specifications call the wrap blue PVC.

Catalogue models

The old catalogue's Adafruit battery entries 1570, 1317, 3898, 1578, 2011, 1781 and 353 map to this part. Their reference models were measured for overall size only:

Product Reference model Page
1570 11.5 x 31.0 x 3.8 11.5 x 31 x 3.8
1317 19.75 x 26.02 x 3.8 19.75 x 26.02 x 3.8
3898 17.0 x 36.0 x 7.6 17 x 36 x 7.8
1578 29.0 x 36.0 x 4.75 29 x 36 x 4.75
2011 37.0 x 60.0 x 7.5 36 x 60 x 7
1781 diameter 18.0 x 69.0 diameter 18 x 69
353 54.0 x 70.0 x 18.0 54 x 69 x 18

Two entries are left out because their reference model is another size than the page gives, by more than 0.5 mm or 3 %: product 328 (model 47.7 x 61.0 x 7.9, page 50 x 60 x 7.3) and product 354 (model's pack 36.6 x 66.0 x 18.0, 76.0 long with its wire stubs; page 37 x 69 x 18). Both packs are still offered here at the page's size.

  1. 1.0.0 Latest
More #battery
STEVEMIT

steve/macropad-keyplate

Adafruit MacroPad RP2040 key plate (product 5128): 3 x 4 switch cut-outs, measured from Adafruit's published model.

5 1 size 0 1 month ago v1.0.0
STEVEMIT

steve/pluggable-terminal-header

PCB header for pluggable terminal blocks, Phoenix Contact: MSTBA 2,5, MC 1,5, GMSTBA 2,5; vertical MSTBVA, MCV, GMSTBVA; MC/MCV with threaded flange (GF).

48 232 sizes 0 3 weeks ago v1.6.0
STEVEMIT

steve/to-package

Through-hole TO packages standing on the board: TO-220AB, TO-220AC, TO-220F, TO-262, TO-251AA, TO-247AC, TO-126, TO-92 and the TO-3, TO-18, TO-39 and TO-46 metal cans, from the makers' drawings.

24 15 sizes 0 3 weeks ago v1.3.1
STEVEMIT

steve/pin-header

Pin header, 2.54 mm and 2.00 mm pitch in one or two rows, 1.27 mm in two rows, straight or right-angle through-hole, or 1.27 mm surface-mount.

22 329 sizes 0 4 weeks ago v1.3.0