brain_zero C8 - MATCHED GROOVE / 60% WALL-DEPTH SNAPS
Two PETG parts. Original outside size: 79.25 x 53.8 x 22.8 mm.

PRINT ONLY
  1 x brain-zero-base.stl
  1 x brain-zero-lid.stl
Use both C8 halves. They are not interchangeable with previous revisions.

CLOSURE
An internal perimeter catch groove is recessed into the base immediately
below its rim. Twelve low, tapered beads on the lid's continuous skirt snap
into it: four per long side, at PCB X=8, 24, 44 and 61 mm, plus two on each
short end. Connector-end snap centres are Y=28.5 and 39.5 mm, clear of the
RJ45 opening. Antenna-end centres are Y=11 and 34 mm.
The groove follows the whole perimeter, interrupted at the existing RJ45
access opening. There are no separate clips, spring fingers, release slots,
exterior tabs, fasteners or other enclosure parts.

The groove follows the SAME master cross-section as the snap beads, with a
constant 0.08 mm normal clearance. Both are generated by rim_profile.py;
the groove is not independently drawn. It begins about 1.56 mm below the
rim at the inner wall. The upper bead tips sit 3.19 mm below the rim;
the bead roots end 1.5 mm below it.

Each bead penetrates 1.20 mm into the original 2 mm base wall: exactly 60%.
Groove depth is 1.28 mm including the 0.08 mm profile clearance, leaving
0.72 mm solid outside skin. Beads project 1.35 mm from the skirt; nominal
skirt clearance is 0.15 mm PER SIDE, giving 1.20 mm radial engagement. Radial
relief at the seated tip is 0.08 mm; initial axial movement before the
retaining flank contacts is about 0.128 mm. The corner radius of the skirt
has also been matched to its tighter offset from the base. The bead ramps
are taller to retain the previous flank angles with the greater depth.

Entry bevel and sloping matching faces guide assembly. The skirt and base
rim share the required elastic movement. This is a deliberately snug,
calibration-dependent PETG fit; actual printed play/force is unmeasured.
The prescribed relative override to pass the rim is 1.20 mm; CAD clearance
checks do not determine how this is shared by base and lid deformation.

PRINT SETTINGS
Plain, unfilled, non-conductive PETG; 0.4 mm nozzle; 0.12 mm layers.
The finer layers reduce stair-stepping on the close-fitting sloped faces.
Four walls where possible, five solid top/bottom layers, 25-30% infill.
Keep the 1.2 mm skirt solid. Use dry filament and temperatures that produce
good layer bonding. Avoid conductive, carbon/metal-filled or brittle stock.
Dimensional calibration and clean seams matter with the small clearances.
Enable variable-width perimeter generation so the 0.72 mm residual wall
at the groove is filled continuously. Inspect that thin band in the slicer.

Both STLs are already on the bed in the intended orientation:
  Base floor down.
  Lid engraved OUTSIDE face down; skirt and PCB keepers point upwards.
Scale 100%, in mm. Do not rotate the lid to its assembled orientation.
The matching sloping bead return faces and groove ceiling avoid horizontal
hook ledges. Supports normally should not be needed. Keep any
support out of the groove and off the snap beads. Correct elephant-foot
expansion and remove strings from the rim before trying the fit.
Do not scale either part to adjust fit: that moves PCB holes and ports.

FIRST FIT
Fit the two empty PETG halves before installing the PCB. Align them and
press around ALL FOUR edges so the beads engage progressively. Confirm
the whole seam seats and the lid stays engaged under a gentle lift.
Open and repeat a few times. Stop if it needs excessive force, cracks,
whitens, will not seat, or becomes loose. Correct print calibration and
surface defects first. Force/retention and repeated-use life depend on
the actual print and have not been measured on a physical prototype.

ASSEMBLE
1. Disconnect power and cables. Clean all printing debris.
2. Place the PCB components up: VE.Bus jack left, antenna right. Lower
   the actual mounting holes onto the two tapered locating pins. Check
   the four support points and solder-tail clearance.
3. Align the lid and connector opening. Press around all four edges until
   all snap locations seat. Check the complete seam and board retention.
4. Check cable latch access, temperatures and wireless performance in use.

OPEN FOR SERVICE
Disconnect power and cables. Ease a long edge up progressively, gently
flexing the rim to disengage the beads one at a time, including the added
end-wall snaps. If necessary use a
thin plastic opening card at the normal lid/base seam, no more than 1 mm
deep. Work along the edge rather than wrenching the lid upwards as a whole.
Then lift vertically. Do not pry against the PCB or pull on the cable.
RESET, BOOT and PROG are reached by removing the lid; there are no access
holes, button plungers or guide tubes. Observe the board's documented
pinout and JP1 bench-power configuration during programming.

BOARD / ANTENNA / PORTS
PCB: 64.25 x 45 x 1.6 mm; underside 6.2 mm above the case floor.
Two tapered 1.75 mm pins fit its actual 2.2 mm holes; two further supports
prevent rocking. Hollow lid keepers retain the PCB with a 0.25 mm gap.
The full 6 mm antenna overhang fits. Its tip is 1.65 mm from the skirt and
3 mm from the main wall; there are no supports or fasteners beneath it.
Keep the antenna end clear of inverter metalwork and conductive finishes.
RJ45 access: 18.4 x 13.2 mm, recessed jack. Check unusually bulky boots.
Existing buck vents remain above and below the converter. This is a
ventilated indoor case, with no ingress rating. The approved brain_zero
logo and VE.BUS label remain; the maker credit remains removed.
The Rev C PCB and its manufacturing files have not been changed.

CAD FILES
brain-zero-enclosure.FCStd: assembled two-piece native FreeCAD model,
dimensions sheet, hidden PCB outline/drills and component fit envelopes.
brain-zero-enclosure.step: assembled two-solid exchange file in PCB axes.
build_enclosure.py, rim_geometry.py, rim_profile.py, parameters.json: source.
fit-reference.json / extract_fit_reference.py: exact Rev C outline, drills
and assembly references; conservative component heights with sources.
verify_closure.py / validation.json: geometry and native round-trip audit.
rim-section.png: section and plan showing the matched groove and 12 beads.
Reference envelopes are not supplier production STEP models.

REBUILD
In FreeCAD's Python console, adjust the path if moved:
  from pathlib import Path
  ENCLOSURE_ROOT=Path(r'C:\Users\MJP\cerbo-light\hardware\brain-zero-enclosure-rev-c8')
  exec(compile((ENCLOSURE_ROOT/'build_enclosure.py').read_text(encoding='utf-8'),str(ENCLOSURE_ROOT/'build_enclosure.py'),'exec'))
Run verify_closure.py similarly in a fresh FreeCAD/headless process.
Run render_cad.FCMacro in GUI FreeCAD for pictures and the closed view.
Wait until render-status.json reads "complete" before packaging.
Run draw_rim_section.py and package_enclosure.py with ordinary Python,
NumPy, Pillow and Matplotlib for the diagram, mesh audit and ZIP.
The logo uses approved SVG paths. Only the small VE.BUS label uses Windows
Segoe UI. prepare_logo.py also needs svgpathtools and Shapely if changing
the logo size or position. All markings are engraved 0.4 mm deep.

VERIFICATION LIMITS
Checks cover valid single solids, closed positive STL meshes, two-solid
STEP/FCStd round trips, all twelve beads captured by the groove with no
closed-position overlap, insertion/withdrawal geometric clearances, solid
outside skins, exact original exterior bounds, and electronics clearance.
The unengraved lid is used as a conservative superset for fit checks.
All four flanks of the female profile are verified parallel to the male
profile at the specified 0.08 mm normal offset. New end snaps are checked
against the complete RJ45 access opening.
These checks prescribe relative bead/rim displacement. They are not shell
elasticity/force/strain FEA and do not establish tactile snap, holding load,
fatigue, thermal behaviour or the properties of a particular PETG print.
The continuous rectangular rim is not analysed as isolated cantilever arms.

DESIGN REFERENCE
Covestro, Snap-Fit Joints for Plastics - A Design Guide, annular bead/groove
and separable-joint principles. This rectangular segmented-bead design is
original brain_zero CAD; moulded-resin calculations do not qualify FDM PETG.
https://solutions.covestro.com/-/media/covestro/solution-center/brands/downloads/imported/1557216102.pdf
