10. চোর ধরার এলার্ম | Work with PIR sensor (simulation) | Arduino Programming Course by Cyber School

Опубликовано: 11 Июль 2026
на канале: Cyber School
78
12

চোর ধরার এলার্ম। Work with PIR sensor in arduino Programming (simulation)
-------------------------------------------------------------------------------------------------------------------------
এখানে আরডুইনো, PIR sensor, বাজার ব্যবহার করা হয়েছে।
PIR sensor মোশন ডিটেক্ট করতে পারে। এটি কোন কিছু ডিটেক্ট করতে পারলে একটি সিগনাল পাঠায়। সে সিগনালটিকে কাজে লাগিয়ে আমরা বাজার বা কোন এল ই ডি জ্বালাতে পারি।

এ প্রজেক্ট সংক্রান্ত সমস্যায় facebook.com/groups/cyberschoolarduino group এ post করুন।

আমাদের ফেসবুক পেজঃ facebook.com/cyberschool24
Previous Class link :
1st Class:    • C-1: Basic Concept of Arduino Programming ...  
2nd Class:    • C-2: Arduino LED Blink (use single & multi...  
3rd Class:    • C-3: Digital & Analog Signal Input | Ardui...  
4th Class:    • C-4: Conditional Statement in Arduino Prog...  
5th Class:    • C-5: Looping & LED brightness control with...  
6th Class:    • C-6: Array in Arduino Programming (Simulat...  
7th Class:    • C-7: Work with LCD display in Arduino Prog...  
8th Class:    • C-8: Work with Piezo Buzzer in Arduino | A...  
9th Class:    • C-9: Work with Servo Motor | Arduino Progr...  

নিচে প্রজেক্ট সংক্রান্ত আরো তথ্য দেওয়া হলোঃ

Now, to do the same with Arduino connect the VCC of the PIR sensor to the 5v pin of Arduino. Then connect the OUTput pin to D13 and GND to the Ground pin of the Arduino. Now, connect the LED along with a 220 ohm resistor to the D2 pin of the Arduino.
When something passes in front of a PIR sensor it detects the change in background temperature and then triggers an output voltage. This voltage can be read by an Arduino digital input and then the Arduino can act upon it. The PIR Motion Sensor on the left is made by Parallax and sold by Radio Shack.
The PIR acts as a digital output so all you need to do is listen for the pin to flip high (detected) or low (not detected). Its likely that you'll want reriggering, so be sure to put the jumper in the H position! Power the PIR with 5V and connect ground to ground. Then connect the output to a digital pin

Now when the PIR detects motion, the output pin will go "high" to 3.3V and light up the LED! Once you have the breadboard wired up, insert batteries and wait 30-60 seconds for the PIR to 'stabilize'. During that time the LED may blink a little.

Wait for 10 to 60 seconds for the PIR sensor to calibrate itself. If the LED is on, please wait until the LED turns off, as well. viii. Now, make a movement in front of the sensor, if voltage values change, and the LED turns on when there is a movement; the sensor detects the motion.

A quick solution that customers have said works well is to use black electrical tape to cover part of the sensor. Start by covering the edge of the sensor on the side you want to keep out of the detection area and use small pieces of tape to block it out.

The short answer is yes. Motion sensors do work in complete darkness, as none of the motion sensors mentioned above are reliant on using images to detect motion. Instead of images, PIR motion sensors detect changes in the level of received infrared.

How do you adjust a motion sensor?
Press the "On-Time" switch to the desired number of minutes you'd like a triggered bulb to stay on. ...
Adjust the "Dual-Brite" feature if present to keep the bulbs on a certain amount of time after dusk. ...
Adjust the switch controlling the motion sensor light to have it stay on full brightness for one full night.

Thank you
Cyber School