# HC-SR501 PIR motion sensor: dimensions, hole spacing, lens and CAD (STEP, STL)

> What are the HC-SR501 dimensions, screw spacing and lens diameter?

- Category: Electronic components › Modules, sensors & displays
- Kind: Modern device
- Basis: HC-SR501 datasheets (Rapid, Pimoroni, Elektor).
- Page: https://xemstudio.com/objects/hc-sr501-pir-motion-sensor/ · JSON: https://xemstudio.com/api/geometry?object=hc-sr501-pir-motion-sensor · Plain text: https://xemstudio.com/objects/hc-sr501-pir-motion-sensor/sheet.txt
- License: dimension sheet CC BY 4.0 (Xem Studio); files CC BY 4.0 or their publisher's license
- Use in every chat: add https://xemstudio.com/mcp as a connector (https://xemstudio.com/use-with-ai/)

## Overall (mm)

| length | width | height |
|---|---|---|
| 32.0 | 24.0 | 24.8 |

**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.

## 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).

## Mating features (exact size; open press / slide / run / socket by your process clearance, leave designed and clamp as drawn)

| feature | exact | mates with | fit | files |
|---|---|---|---|---|
| lens | Ø23 | enclosure cutout | slide | all |
| mounting holes | M2 | M2 screw | slide | all |

## Sizes

| item | value |
|---|---|
| board | 32 × 24 mm |
| screw spacing | 28 mm, M2 |
| lens | Ø23 mm |

## Where the files are

- Pimoroni: [PIR motion sensor (HC-SR501) specifications](https://shop.pimoroni.com/products/pir-motion-sensor) — web — Publisher's page; dimensions are facts
- Rapid Electronics: [HC-SR501 PIR motion detector datasheet](https://static.rapidonline.com/pdf/74-1108_v2.pdf) — web — Publisher's page; dimensions are facts

## Free STEP/STL (1 parts, CC BY 4.0, Xem Studio)

Index: https://xemstudio.com/files/hardware/hc-sr501-pir-motion-sensor/index.json

- hc-sr501-pir-sensor: [STEP](https://xemstudio.com/files/hardware/hc-sr501-pir-motion-sensor/hc-sr501-pir-sensor.step) · [STL](https://xemstudio.com/files/hardware/hc-sr501-pir-motion-sensor/hc-sr501-pir-sensor.stl) — HC-SR501 PIR module: 32 x 24 mm board, two M2 holes 28 mm apart, 23 mm Fresnel dome, trimpots and header under

## 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.

## Related

- [HC-SR04 ultrasonic sensor](https://xemstudio.com/objects/hc-sr04-ultrasonic-sensor/)
- [GY-521 MPU-6050 6-axis IMU breakout: dimensions, holes and CAD (STEP, STL)](https://xemstudio.com/objects/gy-521-mpu-6050-module/)
