BatteryHolder_18650_Keystone289

3D Printed 18650 button-top cell holder. Mounted by a Keystone 289 and 228 spring contact

Category: Batteryholder

Using this part

This TurboCase prefab can be directly pasted into your KiCad PCB editor by using the copy button below. The code of the footprint is also shown here for reference. The footprint file can also be downloaded to be added to your own local footprint libraries.

Download footprint
(
  footprint
  "BatteryHolder_18650_Keystone289"
  (version 20240108)
  (generator turbocaseweb)
  (descr "3D Printed 18650 button-top cell holder. Mounted by a Keystone 289 and 228 spring contact")
  (attr board_only exclude_from_pos_files exclude_from_bom allow_missing_courtyard)
  (zone_connect 0)
  (
    property
    "TurboCaseModule"
    "eJy9ld1ugyAUx+99Ci5RxIJL1yxNb7abvcPSLH7QzsTignixLH33HVFWndXapRvxggOc//kBh+OhSKtcoMdIa6E+nos8Fer16SPPZKqyJMpxmkUHAXM+yoXc6zcXfToIWmOhTdtZcIYI4mszFxcKZGDuLli2IyVY7exeZe8bHjZGmu12QgmZCGyV61bJrJC9kYnFtiVVLPCLBSY49OLStdzGNFwwZNcswq27dgZCqtCRBin6wHxUf1t3sEarSJa5WXZSI3HpI4pPAxCrCXpGITGnLBRuALtU3b677nke+7jjGKy/zZ7XpQ1+ozXwE2gzYdo7GMr9GdiZ8+rggTRlAWPLk5fHgtXyZ7iZGUVAi4+m1fixNO5d9kkAg3jOy+PBauujREgwNlpV4rr4ZOR+/peGzbkMbiNeiHdlTnrhLYPPjl4bg0ymfDoNrUcjQXFdUL2wU9Z+nwrEiMEDgtdxfwWTb6o65UF4CwpqKQgIwm9lWCBvgVO7HZ2j8wXD6QFo"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "ea77a28a-e66d-4236-9df3-66d5bccffb8a")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    property
    "TurboCaseAdd"
    "BatteryHolder_Cylindrical(diameter=18, length=730)"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "d149d9da-983d-47db-a477-f8b30f8cdaf1")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    property
    "TurboCaseHeight"
    "18.5"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "b78b5235-75c8-4b5e-8fc5-a79ce3d6246b")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    fp_rect
    (start 0 0)
    (end 20 81.0)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "89cb8eb2-c7ea-4561-96eb-b4ac74b9fde4")
  )
  (
    fp_rect
    (start 1 3.5)
    (end 19 77.5)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "364def93-cee3-4ccf-864d-0c1f2c1ae088")
  )
  (
    fp_text
    user
    "18650"
    (at 8.0 40.5 90)
    (
      effects
      (
        font
        (size 3 3)
        (thickness 0.1)
      )
      (justify bottom)
    )
    (layer "User.6")
    (uuid "112fe47e-6a11-43e7-b913-b44008d477f4")
  )
  (
    fp_text
    user
    "Unprotected, Keystone 289"
    (at 10.0 40.5 90)
    (
      effects
      (
        font
        (size 2 2)
        (thickness 0.1)
      )
      (justify top)
    )
    (layer "User.6")
    (uuid "a89f2df1-a719-4a40-9cc5-da4a76237f2b")
  )
)

The OpenSCAD code

This is the OpenSCAD code that will end up in your final case .scad file:

module BatteryHolder_Cylindrical(diameter, length) {
    length = length/10 + 1;
    border = 3.5;
    bs = 1;
    grip=12;
    difference() {
        union() {
            difference() {
                cube([diameter+(2*bs), length+(2*border), diameter/2]);

                rotate([-90, 0, 0])
                translate([diameter/2+bs, -(diameter/2), border])
                cylinder(length, diameter/2, diameter/2);
            }

            translate([diameter/2+bs, 0, diameter/2])
            rotate([-90, 0, 0])
            cylinder(border, diameter/2, diameter/2);

            translate([diameter/2+bs, length+border, diameter/2])
            rotate([-90, 0, 0])
            cylinder(border, diameter/2, diameter/2);
        }

        translate([0, -0.005, diameter*0.75])
            cube([diameter+(2*bs), length+(2*border)+0.01, diameter/2]);

        translate([diameter/2+bs, border/2, diameter])
            cube([diameter*0.75, border/2, diameter*1.7], center=true);

        translate([diameter/2+bs, border/2+length+border, diameter])
            cube([diameter*0.75, border/2, diameter*1.7], center=true);

        translate([diameter/2+bs, 0, diameter*0.75])
            cube([1, border, diameter*1.7], center=true);
        translate([diameter/2+bs, length+border*2, diameter*0.75])
            cube([1, border, diameter*1.7], center=true);

        translate([diameter/2+bs, length/2+border, diameter/2-1])
            cube([diameter+border, length-(grip*2), diameter], center=true);

        translate([diameter/2+bs, border+(grip/2)-0.6, diameter/2-1])
            cube([diameter, grip-1.2, diameter], center=true);

        translate([diameter/2+bs, border-(grip/2)+1.2 + length, diameter/2-1])
            cube([diameter, grip-1.2, diameter], center=true);
    }
}