Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use PIR HC-SR505 : Examples, Pinouts, and Specs

Image of PIR HC-SR505
Cirkit Designer LogoDesign with PIR HC-SR505 in Cirkit Designer

Introduction

The PIR HC-SR505 is a compact Passive Infrared (PIR) sensor designed for detecting motion through changes in infrared radiation levels within its detection range. This sensor is widely used in various applications such as automatic lighting, security systems, and home automation projects due to its small size and ease of use.

Explore Projects Built with PIR HC-SR505

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
PIR Motion-Activated LED Light
Image of 0: A project utilizing PIR HC-SR505  in a practical application
This circuit is a simple motion-activated LED light system. The HC-SR505 Mini PIR Motion Sensing Module is powered by a 9V battery and detects motion, upon which it sends an output signal to turn on the red LED. The LED and the PIR sensor share a common ground with the battery, completing the circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano-Based Motion Detection and Distance Measurement System with IR Control
Image of Transmitter: A project utilizing PIR HC-SR505  in a practical application
This circuit is designed to interface an Arduino Nano with an ultrasonic distance sensor (HC-SR04), a passive infrared (PIR) motion sensor (HC-SR501), and an infrared (IR) receiver (TSOP312). The Arduino controls an LED through a resistor and is powered by a 18650 Li-ion battery pack. The system is likely intended for distance measurement, motion detection, and IR signal reception, with visual indication provided by the LED.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO-Based Security System with PIR Motion Detection and Bluetooth Connectivity
Image of 아두이노 캡스톤 : A project utilizing PIR HC-SR505  in a practical application
This circuit features an Arduino UNO microcontroller interfaced with a PIR motion sensor (HC-SR501), a Bluetooth module (HC-06), a buzzer (FIT0449), and a soil moisture sensor (SEN040129). The Arduino is programmed to interact with these sensors and actuators, likely to monitor environmental conditions and provide alerts or communication via Bluetooth. Additionally, there are two LED components (JLED-START and JLED-ARROW-9) daisy-chained together, which could be used for visual signaling or status indication.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO with PIR Sensor and Bluetooth Connectivity
Image of smart home security system: A project utilizing PIR HC-SR505  in a practical application
This circuit features an Arduino UNO connected to a PIR (Passive Infrared) sensor and an HC-05 Bluetooth module. The PIR sensor detects motion and sends a signal to the Arduino, which then communicates via Bluetooth using the HC-05 module. The embedded code on the Arduino is configured to send a specific message over serial when motion is detected by the PIR sensor.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with PIR HC-SR505

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of 0: A project utilizing PIR HC-SR505  in a practical application
PIR Motion-Activated LED Light
This circuit is a simple motion-activated LED light system. The HC-SR505 Mini PIR Motion Sensing Module is powered by a 9V battery and detects motion, upon which it sends an output signal to turn on the red LED. The LED and the PIR sensor share a common ground with the battery, completing the circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Transmitter: A project utilizing PIR HC-SR505  in a practical application
Arduino Nano-Based Motion Detection and Distance Measurement System with IR Control
This circuit is designed to interface an Arduino Nano with an ultrasonic distance sensor (HC-SR04), a passive infrared (PIR) motion sensor (HC-SR501), and an infrared (IR) receiver (TSOP312). The Arduino controls an LED through a resistor and is powered by a 18650 Li-ion battery pack. The system is likely intended for distance measurement, motion detection, and IR signal reception, with visual indication provided by the LED.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of 아두이노 캡스톤 : A project utilizing PIR HC-SR505  in a practical application
Arduino UNO-Based Security System with PIR Motion Detection and Bluetooth Connectivity
This circuit features an Arduino UNO microcontroller interfaced with a PIR motion sensor (HC-SR501), a Bluetooth module (HC-06), a buzzer (FIT0449), and a soil moisture sensor (SEN040129). The Arduino is programmed to interact with these sensors and actuators, likely to monitor environmental conditions and provide alerts or communication via Bluetooth. Additionally, there are two LED components (JLED-START and JLED-ARROW-9) daisy-chained together, which could be used for visual signaling or status indication.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of smart home security system: A project utilizing PIR HC-SR505  in a practical application
Arduino UNO with PIR Sensor and Bluetooth Connectivity
This circuit features an Arduino UNO connected to a PIR (Passive Infrared) sensor and an HC-05 Bluetooth module. The PIR sensor detects motion and sends a signal to the Arduino, which then communicates via Bluetooth using the HC-05 module. The embedded code on the Arduino is configured to send a specific message over serial when motion is detected by the PIR sensor.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Motion-activated night lights
  • Security alarms
  • Automatic door openers
  • Presence detection for energy-saving systems

Technical Specifications

Key Technical Details

  • Operating Voltage: 4.5V to 20V
  • Static Power Consumption: <60uA
  • Output Voltage: High 3.3V (motion detected), Low 0V (no motion)
  • Detection Range: Up to 3 meters
  • Detection Angle: <100 degrees
  • Delay Time: Adjustable (default setting 8s+2s)
  • Output Type: Digital signal (3.3V TTL)

Pin Configuration and Descriptions

Pin Number Name Description
1 VCC Power supply input (4.5V to 20V)
2 OUT Digital output signal (3.3V TTL)
3 GND Ground connection

Usage Instructions

How to Use the Component in a Circuit

  1. Connect the VCC pin to a power supply within the range of 4.5V to 20V.
  2. Connect the GND pin to the ground of the power supply.
  3. Connect the OUT pin to a digital input pin on a microcontroller, such as an Arduino UNO.

Important Considerations and Best Practices

  • Ensure that the power supply voltage does not exceed the maximum rating of 20V.
  • Avoid placing the sensor in an environment with rapid temperature changes to prevent false triggers.
  • The sensor should not be exposed to direct sunlight or placed near heating devices.
  • Allow a warm-up time of approximately 1 minute for the sensor to stabilize after powering up.

Example Code for Arduino UNO

// Define the PIR sensor pin
const int PIRPin = 2; // Connect HC-SR505 OUT pin to Arduino pin 2

void setup() {
  pinMode(PIRPin, INPUT); // Set the PIR pin as an INPUT
  Serial.begin(9600);    // Initialize serial communication
}

void loop() {
  int motionStatus = digitalRead(PIRPin); // Read the PIR sensor output

  if (motionStatus == HIGH) { // Check if motion is detected
    Serial.println("Motion detected!");
    // Add code here to handle motion detection event
  } else {
    Serial.println("No motion.");
    // Add code here to handle no motion detected
  }

  delay(1000); // Wait for 1 second before reading again
}

Troubleshooting and FAQs

Common Issues Users Might Face

  • False triggers: Adjust the sensor's placement or orientation to avoid false detections caused by environmental factors.
  • No response: Check the power supply and connections to ensure the sensor is properly powered and connected.

Solutions and Tips for Troubleshooting

  • If the sensor is not detecting motion, ensure that it is not facing any heat sources or direct sunlight.
  • Verify that the sensor's output pin is correctly connected to the microcontroller's input pin.
  • Check the power supply voltage with a multimeter to ensure it is within the specified range.

FAQs

Q: Can the HC-SR505 sensor detect motion through walls? A: No, the sensor cannot detect motion through walls as it relies on detecting changes in infrared radiation.

Q: How can I adjust the delay time of the sensor? A: The delay time can be adjusted by replacing the onboard resistor with a different value. However, this requires soldering and an understanding of the sensor's circuitry.

Q: Is it possible to power the HC-SR505 with a 3.3V supply? A: No, the minimum operating voltage for the HC-SR505 is 4.5V. Using a voltage lower than this may result in unreliable or no operation.