CasePost_M3

Screw mount post for a screw-mount lid with an M3 sized screw

Category: Case

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
  "CasePost_M3"
  (version 20240108)
  (generator turbocaseweb)
  (descr "Screw mount post for a screw-mount lid with an M3 sized screw")
  (attr board_only exclude_from_pos_files exclude_from_bom allow_missing_courtyard)
  (zone_connect 0)
  (
    property
    "TurboCaseModule"
    "eJylUMsOgyAQvPMVHDHah7322B/o3RhDZakkCAngoW3890qqFu0rphsSspud2ZmpNWsk4AO1cNTWESuukOBKSyiYoDU4MF0LlM3bCsS5chG+IdwVE5yDAVUCGUa+yosUioEhQikwPSbB/shmN/zR/vt+nM4EeehsEHAMVgrbnKwztFxu6kHWohaheprPH6R9LB1YWUkdkGybYP/WaZr/DC3mUutnggvyeDn4kXYVyM2jkWCiKVh5pyK0P6rwQd4BUmPLDQ=="
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "881c8957-3360-434f-a7b5-a571a183284c")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    property
    "TurboCaseAdd"
    "CasePost(size=5.6, hole_diameter=3, head_diameter=5.6, head_height=1.65)"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "d367692f-8bb7-49ad-93b9-15a81c58e081")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    property
    "TurboCaseSub"
    "CasePost_substract(size=5.6, hole_diameter=3, head_diameter=5.6, head_height=1.65)"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "49157a60-9d74-46ac-8614-4229eb2988ec")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    fp_circle
    (center 0 0)
    (end 0 1.5)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "b5aea69c-f569-44dd-9304-eb9a148753ee")
  )
  (
    fp_circle
    (center 0 0)
    (end 0 2.8)
    (
      stroke
      (width 0.2)
      (type dot)
    )
    (fill none)
    (layer "User.6")
    (uuid "02372fd7-4b11-4687-aacd-bda815af2f85")
  )
  (
    fp_circle
    (center 0 0)
    (end 0 2.8)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "2cda0958-7ab2-4d34-8ac4-f5eb18debf1c")
  )
)

The OpenSCAD code

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

module CasePost(size, hole_diameter, head_diameter, head_height) {
    difference() {
        cylinder(inner_height, size/2, size/2);
        cylinder(inner_height+1, hole_diameter/2, hole_diameter/2);
        CasePost_substract(size, hole_diameter, head_diameter, head_height);
    }
}

module CasePost_substract(size, hole_diameter, head_diameter, head_height) {
    translate([0, 0, 0.11]) {
        cylinder(inner_height+floor_height, hole_diameter/2, hole_diameter/2);
        translate([0, 0, inner_height+floor_height-head_height])
            cylinder(head_height, hole_diameter/2, head_diameter/2);
    }
}