ScrewHole_M16_DIN965_Countersunk

Hole for an M1.6 DIN965 standard countersunk screw

Category: Screws

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
  "ScrewHole_M16_DIN965_Countersunk"
  (version 20240108)
  (generator turbocaseweb)
  (descr "Hole for an M1.6 DIN965 standard countersunk screw")
  (attr board_only exclude_from_pos_files exclude_from_bom allow_missing_courtyard)
  (zone_connect 0)
  (
    property
    "TurboCaseModule"
    "eJytUbEOwiAU3PsVjCXFCqwdXdwdjWkqvAqxpQmlMcb034VGY2vQxMTbuHfc8Y62k0MDaCcsXLZdA5tuMA5sP5hz2Q/H3tlKuFT5SSl11YKfEaSgku9HBfqkHEa3BHn4a6ZvKgfpnhJKVjNJxnJ+wJMqQFwbbSTYdCYhaJm45jijOQ/0PPlB4yKJZaIVo7Ecxr/YR+hgPybt555+b0fqugYLRkD6pJZPjG3K4gWwVwEBf/vIYrIc/ep3JLawMQ=="
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "b4bf1c7d-694a-4dbb-9717-09a1ff9f8611")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    property
    "TurboCaseAdd"
    "ScrewHoleCountersunk(hole_diameter=1.6, head_diameter=3, head_height=0.96)"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "0294b010-7c87-4e51-9ea1-f7ea0fd3da2a")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    property
    "TurboCaseSub"
    "ScrewHoleCountersunk_substract(hole_diameter=1.6, head_diameter=3, head_height=0.96)"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "9d37182d-f314-4f7b-bb96-d59d7b6c483b")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    fp_circle
    (center 0 0)
    (end 0 0.8)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "39edaec6-62e9-44aa-afac-65721c646937")
  )
  (
    fp_circle
    (center 0 0)
    (end 0 1.5)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "c85b7924-9c80-47cb-8910-9b81dcdc378a")
  )
  (
    fp_circle
    (center 0 0)
    (end 0 2.7)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "0823bc5e-8c3d-4833-8a0a-d0ba711f1189")
  )
)

The OpenSCAD code

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

module ScrewHoleCountersunk_substract(hole_diameter, head_diameter, head_height) {
    translate([0,0,-head_height+1.2])
        cylinder(head_height, (hole_diameter/2)+0.2, (head_diameter/2)+0.2);

    translate([0,0, -10])
        cylinder(12, (hole_diameter/2)+0.2, (hole_diameter/2)+0.2);

}
module ScrewHoleCountersunk(hole_diameter, head_diameter, head_height) {
    difference() {
        cylinder(1, (head_diameter/2)+1.2, (head_diameter/2)+1.2);

        ScrewHoleCountersunk_substract(hole_diameter, head_diameter, head_height);
    }
}