{
 "digest": null,
 "links": {
  "fits": [
   {
    "product": "ada-4557-din-bracket",
    "name": "DIN Rail Mount Bracket (Pi/Metro/UNO/Mega/BeagleBone)",
    "kind": ""
   },
   {
    "product": "ada-4561-hq-camera",
    "name": "Raspberry Pi HQ Camera (C/CS mount)",
    "kind": ""
   }
  ],
  "members": [],
  "cases": [],
  "assemblies": []
 },
 "prints": [],
 "part": {
  "id": "raspberry-pi-hq-camera-din-rail-case-body-lid-pi-pattern-fla",
  "name": "Raspberry Pi HQ Camera DIN-rail case (body + lid, Pi-pattern flange)",
  "kind": "case",
  "method": "",
  "vendor": "sargbench2",
  "sku": "",
  "model": "",
  "buy": [],
  "url": "",
  "category": "enclosure",
  "owned_qty": 0
 },
 "facts": {
  "id": "rpi-hq-camera-din-case",
  "kind": "made",
  "name": "Raspberry Pi HQ Camera DIN-rail case (body + lid",
  "aka": [
   "hq camera din case",
   "hq camera bracket case",
   "ada-4561 enclosure"
  ],
  "category": "enclosure",
  "status": "designed",
  "for_parts": [
   "ada-4561-hq-camera",
   "ada-4557-din-bracket"
  ],
  "frame": "camera frame: origin PCB plan bottom-left, +Y toward the FPC edge, Z=0 back of PCB, lens +Z on (19, 19); tripod block below the Y=0 edge",
  "body": {
   "size_mm": [
    68.0,
    59.0,
    12.5
   ],
   "outline": "rect",
   "corner_r": 3.0,
   "notes": "flange 68 x 59 x 2.5 (Z -7..-4.5) with four dia 2.8 holes on the Raspberry Pi 58 x 49 pattern centred on the lens axis at (-10,-5.5) (-10,43.5) (48,-5.5) (48,43.5); walls 2.0 rising to Z 3.5 around a pocket x -0.5..38.5, y -6.51..38.5 (PCB + 0.5, tripod block + 0.8); lid 2.0 -> top Z 5.5, 0.3 below the back-focus ring (Z 5.8..18.58) - ring, lock screw and the lens are outside the case"
  },
  "mounting": {
   "holes": [
    {
     "xy": [
      -10.0,
      -5.5
     ],
     "dia": 2.8,
     "axis": "z",
     "notes": "Pi 58 x 49 M2.5 pattern -> Adafruit 4557 DIN Rail Mount Bracket plate (or any Pi-pattern DIN adapter); heads on the flange front, outside the walls"
    },
    {
     "xy": [
      -10.0,
      43.5
     ],
     "dia": 2.8,
     "axis": "z"
    },
    {
     "xy": [
      48.0,
      -5.5
     ],
     "dia": 2.8,
     "axis": "z"
    },
    {
     "xy": [
      48.0,
      43.5
     ],
     "dia": 2.8,
     "axis": "z"
    }
   ],
   "pattern": "camera + lid: 4 x M2.5 x 10 from the front through lid post (dia 5, 5.2 x 1.5 cbore) -> camera hole (30 x 30, dia 2.5) -> dia 5.5 standoff with 2.1 x 6 pilot"
  },
  "interfaces": {
   "din_rail": "bolts to the owned Adafruit 4557 DIN Rail Mount Bracket (TS35 legs, vertical plate with the Pi 58 x 49 grid) via the kit's M2.5 standoffs; camera then looks perpendicular to the rail. Flange screws stay reachable with the lid on. No tripod thread used (the camera's own 1/4\"-20 block passes through the lid slot unused).",
   "camera_retention": "the four M2.5 screws locate + clamp the PCB between standoff tops (Z 0) and lid posts (bottom Z 1.55, 0.15 over the 1.4 PCB)",
   "front": "keyhole: dia 33 round the dia 30.75 mount body + 15.57 wide slot (y -6.51..19) for the tripod block; lid top Z 5.5 stays 0.3 under the ring start (5.8, approx from the drawing)",
   "lens": "lens-agnostic: 6 mm CS (34 long) or 16 mm C (+ adapter, 50 long) both sit entirely outside; total protrusion from the lid ~47 / ~63",
   "fpc": "22 x 4.2 ribbon slot in the +Y wall, x 8..30, Z -4.5..-0.3; 4.5 mm back cavity for the (estimated 2.7 tall) back-side FPC connector",
   "lid": "1.2 x 1.5 lip, 0.2/side gap"
  },
  "print": {
   "orientation": "body flange-down (flat), lid top-down; no supports",
   "profile": "0.4 nozzle / 0.2 layer, PLA or PETG, >= 3 perimeters",
   "hardware": "4 x M2.5 x 10 pan head (camera + lid); 4 x M2.5 screws/standoffs from the 4557 kit (flange -> bracket)"
  },
  "cad": {
   "file": "hq_din_case_body.step",
   "files": [
    "hq_din_case_body.step",
    "hq_din_case_lid.step",
    "hq_din_case_assembly.step",
    "rpi_hq_camera_board.step"
   ],
   "source": "hq_din_case_common.py",
   "fidelity": "exact",
   "verified": false
  },
  "sources": [
   {
    "facts": "camera PCB 38 x 38 x 1.4, holes 30 x 30 dia 2.5 inset 4, mount OD 30.75, ring OD 36 from Z ~5.8 to 18.58, tripod block 13.97 x 12.04 x 5.71 under Y=0",
    "ref": "sargineer /m/sarg/ada-4561-hq-camera (official RPi HQ camera drawing, ring Z start approximate)",
    "date": "2026-08-21"
   },
   {
    "facts": "back-side FPC connector x 9..29, y 31..38, 2.7 tall - ESTIMATED, not on the drawing",
    "ref": "typical 15-pin 1 mm FPC socket; caliper the owned unit",
    "date": "2026-08-21"
   },
   {
    "facts": "Adafruit 4557 plate grid supports the Pi 58 x 49 M2.5 pattern; M2.5 standoffs in the kit",
    "ref": "sargineer /p/ada-4557-din-bracket (Adafruit 4557-dim.png)",
    "date": "2026-08-21"
   },
   {
    "facts": "case geometry",
    "ref": "hq_din_case_common.py + HQ_DIN_CASE.md + verify.py",
    "date": "2026-08-21"
   }
  ],
  "confidence": "Geometry exact in source; verify.py: zero interference body/lid vs the camera envelope (and sarg's STEP) at nominal and +/-0.25 X/Y, 2.0 screw rods clear lid/PCB/standoff, a dia 40 column above Z 5.8 (ring + lens) clears the lid, DIN screw heads clear the walls, a 16 mm ribbon passes the slot. Risk items: the ring Z start (5.8 approx - if the real ring starts lower, drop LID_T/RING_CLR), the estimated back connector height (4.5 cavity), and the 4557 plate actually having the Pi pattern where assumed (check before drilling)."
 },
 "models": [
  {
   "handle": "sargbench2",
   "fidelity": "exact",
   "verified": false,
   "visibility": "public",
   "url": "/m/sargbench2/raspberry-pi-hq-camera-din-rail-case-body-lid-pi-pattern-fla",
   "files": [
    "HQ_DIN_CASE.md",
    "hq_board_ref.py",
    "hq_din_case_assembly.step",
    "hq_din_case_assembly.step.py",
    "hq_din_case_body.step",
    "hq_din_case_body.step.py",
    "hq_din_case_body.stl",
    "hq_din_case_common.py",
    "hq_din_case_lid.step",
    "hq_din_case_lid.step.py",
    "hq_din_case_lid.stl",
    "mountkit.py",
    "part.yaml",
    "pcbkit.py",
    "rpi_hq_camera_board.step",
    "rpi_hq_camera_board.step.py",
    "sheet.png",
    "verify.py"
   ]
  }
 ],
 "related": {
  "notes": {
   "exact": [],
   "chip": [],
   "addr": []
  },
  "parts": {
   "variants": [],
   "interface": [],
   "mounting": [],
   "cooccur": [],
   "owners": [],
   "addr": []
  }
 }
}