If you want to build a device that is used to detect sense motion and almost always used to detect whether a human has moved in or out of the sensors range. Then this Sensor is needed for you. you can buy this sensor from bot3dprint.com at a reasonable price
The PIR Motion Sensor Detector Module HC SR501 allows you to sense motion. It is almost always used to detect the motion of a human body within the sensor’s range. It is often referred to using “PIR”, “Pyroelectric”, “Passive Infrared” and “IR Motion” sensors.
Circuit Diagram of PIR Sensor With Arduino:
Features :
Infrared Sensor with Control Circuit Board
The Sensitivity and Holding Time are adjustable.
Blockade time: 2.5s (Default)
Sensitive Setting: Turn to Right, Distance Increases (About 7M); Turn to Left, Distance Reduce (About 3M)
Time Setting: Turn to Right, Time Increases (About 200S); Turn to Left, Time Reduce (About 5S).
5// Digital pin PB5 on STM32. Let the module settle ~30-60s after power-on before trusting readings.
6#define PIR_PIN PB5
7
8voidsetup() {
9Serial.begin(115200);
10pinMode(PIR_PIN, INPUT);
11}
12
13voidloop() {
14if (digitalRead(PIR_PIN) == HIGH) {
15Serial.println("Motion detected!");
16delay(1000); // simple debounce so it doesn't spam while triggered
17 }
18}
📄 File: pir_motion_sensor_detector_module_hc-sr501_-_raspberry_pi_pico.inoRaspberry Pi Pico
430 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital pin 18 on Raspberry Pi Pico. Let the module settle ~30-60s after power-on before trusting readings.
6#define PIR_PIN 18
7
8voidsetup() {
9Serial.begin(115200);
10pinMode(PIR_PIN, INPUT);
11}
12
13voidloop() {
14if (digitalRead(PIR_PIN) == HIGH) {
15Serial.println("Motion detected!");
16delay(1000); // simple debounce so it doesn't spam while triggered
17 }
18}
Classic PIR motion sensor - digital output, adjustable sensitivity/delay via onboard potentiometers.
نظرة عامة ومواصفات المنتج — بالعربية
PIR Motion Sensor Detector Module HC-SR501 متوفر الآن في متجر إكوسترا للإلكترونيات، ضمن قسم PIR / IR and Optical Sensor وSensors، بسعر 75,00 EGP. كود المنتج لدينا: EK328. المنتج متوفر في المخزون وجاهز للشحن الفوري لكل محافظات مصر مع إمكانية الدفع عند الاستلام.
أهم المواصفات الفنية:
Sensor Type: PIR (Passive Infrared)
الموديل: HC-SR501
Operating Voltage: 5V–12V DC
Detection Range: 3–7 meters (adjustable)
Detection Angle: 110°
الخامة: PCB with electronic components
Usage: Motion detection, security alarms, DIY electronics, home automation
الوزن: 6 g
هذا المنتج مناسب لمشاريع الأردوينو (Arduino) و ESP32 و Raspberry Pi، ومشاريع الروبوتات وإنترنت الأشياء والتعليم الهندسي. جميع القطع مفحوصة قبل الشحن.