ScrewHole_M3_DIN967

Hole for an M3 DIN967 standard pan-head screw (optical drive 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_DIN967"
  (version 20240108)
  (generator turbocaseweb)
  (descr "Hole for an M3 DIN967 standard pan-head screw (optical drive screw)")
  (attr board_only exclude_from_pos_files exclude_from_bom allow_missing_courtyard)
  (zone_connect 0)
  (
    property
    "TurboCaseModule"
    "eJzLzU8pzUlVCE4uSi33yM9JjS8uTSouKUpMLtHIAHFTMhNzU0tSi3QUMlITU+BcTYVqLgUgAKrMK85JLEnViDbQMdDRNTSI1QRLgEByZU5mXkpqkYahqY4CqnH6RpraBnpGOIQ1rblquXLRXEaUe1Iy09JSi1LzklM1YEKoLgHZiKwRySFYhIEOgZtBchBZg7XWAr0CAOPTcTM="
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "61979fb3-99fa-4860-b3f2-bff4f3698198")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    property
    "TurboCaseAdd"
    "ScrewHole(hole_diameter=3, head_diameter=7)"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "1cf619ff-2c24-434a-96e6-911534eae512")
    (
      effects
      (
        font
        (size 1 1)
        (thickness 0.1)
      )
    )
  )
  (
    property
    "TurboCaseSub"
    "ScrewHole_substract(hole_diameter=3, head_diameter=7)"
    (at 0 0 0)
    (unlocked yes)
    (layer "F.SilkS")
    (hide yes)
    (uuid "908a50a1-f3d6-420d-a8bc-da9a313dba05")
    (
      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 "21309bed-aa32-4d49-9158-be3592625d6a")
  )
  (
    fp_circle
    (center 0 0)
    (end 0 3.5)
    (
      stroke
      (width 0.2)
      (type default)
    )
    (fill none)
    (layer "User.6")
    (uuid "6b8702d7-4c91-4254-9727-0027fd349e50")
  )
)

The OpenSCAD code

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

module ScrewHole_substract(hole_diameter, head_diameter) {
    translate([0,0,-10])
        cylinder(15, (hole_diameter/2)+0.2, (hole_diameter/2)+0.2);
}
module ScrewHole(hole_diameter, head_diameter) {
    difference() {
        cylinder(1, (head_diameter/2)+0.2, (head_diameter/2)+0.2);

        ScrewHole_substract(hole_diameter, head_diameter);
    }
}