กลับไปหน้ารวมไฟล์
the-pir-sensor-d3aaca-en.md

It all started when I saw a PIR sensor at work. I was walking and all of a sudden a light went on. I discovered it was a PIR sensor and made a very simple code.

And if you get an unsatisfactory detection, Just adjust the screws in the PIR Sensor.

Comment if this works below

EXPANDED TECHNICAL DETAILS

Passive Infrared Detection

The PIR sensor is the most common way to detect human presence in security and lighting systems.

  • Thermal Imaging: It doesn't emit any energy; it simply "looks" for moving sources of black-body radiation (heat). The internal pyroelectric sensor is split into two halves; motion is detected when a heat source crosses from one half to the other.
  • Adjustability: Most PIR modules (like the HC-SR501) have two potentiometers: one for "Sensitivity" (distance) and one for "Time Delay" (how long the output stays HIGH).

Logic Implementation

  • Wait Time: The firmware includes a "Warm-up" period (30-60 seconds) during which the Arduino ignores sensor input to allow the sensor to stabilize to the ambient room temperature.
  • Interfacing: Connected to a simple digital input pin, making it one of the easiest yet most effective sensors for beginner home automation projects.

ข้อมูล Frontmatter ดั้งเดิม

title: "The PIR Sensor"
description: "The PIR is the shorten form of Passive Infared Sensor. It detects movement. You can make anything start to work when someone is moving."
author: "danushi13"
category: ""
tags:
  - "home automation"
  - "sensor"
  - "do when moving"
  - "pir"
views: 3755
likes: 2
price: 1499
difficulty: "Easy"
components:
  - "1x LED (generic)"
  - "1x Jumper wires (generic)"
  - "1x Arduino UNO"
  - "1x PIR Motion Sensor (generic)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "aed30f2314a9aaf16d413b2cad7899ce229df84387c7a04165302b395be2b52a"
encryptedPayload: "U2FsdGVkX1+YHaMeYSjwXnikgOoEm+IxkJ6xtOCsVeT3+D7crWJqBTBwmQVtzPW+4esg+9N+/SndrIpTTFonvt3V8qx+PlkMxT2nM0DkEec="
seoDescription: "Learn how to use a PIR Sensor to detect motion and trigger actions in your Arduino projects."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/the-pir-sensor-d3aaca_cover.jpg"
lang: "en"