ScrewHole_M25_DIN965_Countersunk

Hole for an M2.5 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_M25_DIN965_Countersunk"
  (version 20240108)
  (generator turbocaseweb)
  (descr "Hole for an M2.5 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 "31ccf141-d8dc-48ae-9b8a-1b7c298fa16b")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    property
    "TurboCaseAdd"
    "ScrewHoleCountersunk(hole_diameter=2.5, head_diameter=4.7, head_height=1.5)"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "981454b9-daab-46d5-88dd-d45e9b50b3a6")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    property
    "TurboCaseSub"
    "ScrewHoleCountersunk_substract(hole_diameter=2.5, head_diameter=4.7, head_height=1.5)"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "05fea694-9a75-4e95-8edd-fa02b51f6678")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    fp_circle
    (center 0 0)
    (end 0 1.25)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "9e14d4d8-1873-466b-9f28-61dc38dee7fd")
  )
  (
    fp_circle
    (center 0 0)
    (end 0 2.35)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "89944bc8-05dc-44de-b6a4-94e19e6bacab")
  )
  (
    fp_circle
    (center 0 0)
    (end 0 3.55)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "5ed52e8f-ce18-4a38-a19d-2179b77ebb44")
  )
)

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);
    }
}