deckle studio
Open the editor
Behavioural mixed-signal modelHC-SR501hcsr501

HC-SR501 PIR motion sensor

Passive infrared motion detector: OUT goes to 3.3 V when a person moves in front of it and stays high for the set delay (the "Time" potentiometer, about 3 s … 5 min); jumper H: every motion restarts the delay, L: one pulse per motion; after it OUT is blocked for 2.5 s. VCC 4.5–20 V (3.3 V regulator on the board), 65 µA. Switch "Motion" while the simulation runs. The warm-up of about a minute after power-on is not modelled.

VCCOUTGNDHC-SR501
Schematic symbol

Key data

Category
Modules
Simulation model
Behavioural mixed-signal model
Manufacturer part number
HC-SR501
Reference prefix
A
Pins
3
Land pattern
PinHeader_1x03_P2.54mm_Vertical

Simulation model

A behavioural model implements the interface of the chip (registers, protocol, timing) at its pins. The pins are connected to the analog circuit like CMOS pins.

Model
pir
Supply pins
VCC / GND

Pins 3

PinNameUse
VCCVCCSupply pinSupply input: decouple with 100 nF close to the pin
OUTOUTOutput pinLogic output: drives the next input; do not tie outputs together
GNDGNDGround pinGround

Parameters 3

Motionmotionlive
Defaultoff

Someone moving in front of the sensor

Delay (Time pot)delay
Default5 s

How long OUT stays high after the last motion (3 s … 300 s on the board)

Trigger jumpertrigger
DefaultH (repeat)
H (repeat)L (single)

PCB

Connector / off-boardPinHeader_1x03_P2.54mm_Vertical

HC-SR501 PIR motion sensor as a module on a 3-pin header (VCC, OUT, GND) – compare the order with your own module