1 / 7
HC-SR501 PIR sensor case with rim clip (snap-on lid, no supports) — image 1
1 / 7

HC-SR501 PIR sensor case with rim clip (snap-on lid, no supports)

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

HC-SR501 PIR sensor case with a sawtooth clip for a 9.7-11.5 mm rim. Snap-on lid, no supports, OpenSCAD source.

Rating
0 / 5
Likes
0
Downloads
1
Makes
0
Views
10
Reviews
0

Updated at source:

Model information

Category
Electronics
License
Creative Commons — Attribution

A small snap-together case for the common HC-SR501 PIR motion sensor, with a sawtooth U-clip underneath so it clips straight onto the rim of a tank or tote. We designed it for our turtle tote: the case sits on the rim with the lens dome looking out. Designed in OpenSCAD; the editable .scad source is included so you can change the clip gap for your own rim.

WHAT YOU GET

- turtle_pir_case_body_print.stl: the case body with the clip, already oriented for printing (upright, jaw tips on the bed).

- turtle_pir_case_lid_print.stl: the snap-on lid (top face on the bed).

- turtle_pir_case.scad: the parametric source (board size, clearances, clip gap, jaw length, teeth).

- abs_raft_profile.ini: the PrusaSlicer profile the case in the photos was sliced with.

FITS

- The standard HC-SR501 board: 32.5 x 24 mm PCB, 23 mm lens dome, 3-pin header on one long edge, two trim pots on the other.

- The PCB slides down into slots in the side walls, header edge up, with your Dupont plugs already on.

THE CASE

- Outside: 37.6 W x 20.8 D x 32 H mm with the lid (51 mm tall including the clip). 2.2 mm walls, 2.5 mm floor.

- Front: a 24.2 mm window for the lens dome, which sticks out about 8.5 mm. 1.6 mm outer chamfer so the wall doesn't shade the dome's side view.

- Back: an 11 x 9.5 mm U-slot for the 3 Dupont plugs, and a 22 x 6 mm screwdriver window over both trim pots, so you can adjust sensitivity and delay with the case closed.

- Lid: snaps on with two small legs that click into grooves in the side walls; two tabs on the lid hold the board down.

THE CLIP

- U-shaped, under the floor, running the full 37.6 mm width. Jaws 19 mm (0.75 in) long, 3.5 mm thick.

- 11.5 mm gap at the root and 6 sawtooth teeth per jaw (0.9 mm tall), 9.7 mm between tooth tips. It grips rims about 9.7 to 11.5 mm thick. The teeth slide on easily and bite when pulled up.

- Different rim? Measure it and change gap at the top of the .scad (F6, export STL).

PRINT SETTINGS (what the case in the photos was printed with)

- Material: ABS, 240 C nozzle / 100 C bed.

- 0.2 mm layers, 0.4 mm nozzle, 4 perimeters, 40% gyroid infill.

- Raft: 3 layers, 0.2 mm contact gap, 1.5 mm expansion. No brim, no skirt.

- No supports. The only bridges are the 11.5 mm floor between the jaws and the top of the pot window.

- Body and lid fit on one plate: PrusaSlicer says 2 h 50 min and about 16 g of ABS (15.3 cm3, 6.37 m of filament). The real print took about 3 h 08 min.

ASSEMBLY

1. Plug your 3 Dupont jumpers onto the sensor's header.

2. Slide the board down into the side slots, dome facing the front window, header edge up. The plugs come out through the back U-slot.

3. Press the lid on until it clicks.

4. Push the clip down over the rim.

Print timelapse, more photos and direct downloads are on the blog: https://chartmann1590.github.io/homelab-the-right-way/posts/free-hc-sr501-pir-sensor-case-3d-print/

Homelab the Right Way: https://www.youtube.com/@HomelabTheRightWay

License: CC BY 4.0 (Charles Hartmann / Homelab the Right Way).