Library › Electronic components › Modules, sensors & displays ·
HC-SR501 PIR motion sensor: dimensions, hole spacing, lens and CAD (STEP, STL)
What are the HC-SR501 dimensions, screw spacing and lens diameter? · Modern device · basis: HC-SR501 datasheets (Rapid, Pimoroni, Elektor).
Also called: hc-sr501 dimensions, pir sensor dimensions, hc-sr501 hole spacing, hc-sr501 lens diameter, pir sensor cutout size
Exact dimensions. Every file is drawn at true size with no tolerance added. The holes and pins that meet another part are listed below under Mating features, with the fit each joint needs; open those by your process's clearance before making the part. Mating features
- length
- 32.0 mm
- width
- 24.0 mm
- height
- 24.8 mm
Notes
- Board 32 × 24 mm, two M2 screw holes 28 mm apart, Fresnel lens Ø23 mm.
- About 25 mm from the board bottom to the top of the dome; header pins and trimpots underneath.
- Board outline, holes and overall height follow the published numbers; component positions and sizes are estimated from product photos (clone boards vary).
HC-SR501 PIR motion sensor: dimensions, hole spacing, lens and CAD size chart
| item | value |
|---|---|
| board | 32 × 24 mm |
| screw spacing | 28 mm, M2 |
| lens | Ø23 mm |
Mating features
Drawn at the exact size. Open press, slide, run and socket features by your process's clearance (tolerances by process); leave designed gaps and clamp fits as drawn.
| feature | exact | mates with | fit | files |
|---|---|---|---|---|
| lens | Ø23 | enclosure cutout | slide | all |
| mounting holes | M2 | M2 screw | slide | all |
Where the files are
Other publishers' files are linked, not hosted. "verify" = check the license at the link before commercial use.
| Pimoroni | PIR motion sensor (HC-SR501) specifications | web | Publisher's page; dimensions are facts |
| Rapid Electronics | HC-SR501 PIR motion detector datasheet | web | Publisher's page; dimensions are facts |
Free files
★ Free files 1 parts. Generated by Xem Studio from the standard; threads are plain cylinders at major diameter. CC BY 4.0. index.json
Use this part in your AI. Your AI gets the exact sizes and files straight from Xem and can design a mount, case or adapter around it. Direct downloads here are limited to one file every 10 minutes; through your AI they are unlimited.
Connect Xem to your AI (free, no account, about a minute)
https://xemstudio.com/mcp- Claude: Add to Claude
- ChatGPT (Plus or higher): open Connectors → Advanced → turn on Developer mode → Create → paste the address, no authentication → Create.
- Cursor: install with one click. VS Code: install with one click.
| hc-sr501-pir-sensor | HC-SR501 PIR module: 32 x 24 mm board, two M2 holes 28 mm apart, 23 mm Fresnel dome, trimpots and header under | STEP · STL |
https://xemstudio.com/mcp (free, no account). Your AI can then look up exact sizes, mating fits and free STEP/STL from every chat.Plain text: sheet.txt · JSON: /api/geometry?object=hc-sr501-pir-motion-sensor

Related
Questions
What size hole does the HC-SR501 lens need?
The lens is Ø23 mm; its square skirt is about 23 mm.
What is the screw spacing?
28 mm, M2.

