ScrewHole_M3_DIN965_Countersunk

Hole for an M3 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_M3_DIN965_Countersunk"
  (version 20240108)
  (generator turbocaseweb)
  (descr "Hole for an M3 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 "d85c8973-3c0a-4a8d-a6df-dbbe902d7ee7")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    property
    "TurboCaseAdd"
    "ScrewHoleCountersunk(hole_diameter=3, head_diameter=5.6, head_height=1.65)"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "fdcb9b29-4974-4547-b325-210fddd0fef8")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    property
    "TurboCaseSub"
    "ScrewHoleCountersunk_substract(hole_diameter=3, head_diameter=5.6, head_height=1.65)"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "d0fdf887-2e62-4ec7-896e-01532aee8b4c")
    (
      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 "157868c1-7b4d-42fa-a74e-6cea6194fdcf")
  )
  (
    fp_circle
    (center 0 0)
    (end 0 2.8)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "03cf6ea8-cdb6-4d67-9abf-74f4cfc544b1")
  )
  (
    fp_circle
    (center 0 0)
    (end 0 4.0)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "a3fa6338-3f97-4956-88d1-ed0fa111dfdf")
  )
)

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