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

How to Use HC-SR505 Mini PIR Motion Sensing Module: Examples, Pinouts, and Specs

Image of HC-SR505 Mini PIR Motion Sensing Module
Cirkit Designer LogoDesign with HC-SR505 Mini PIR Motion Sensing Module in Cirkit Designer

Introduction

The HC-SR505 Mini PIR Motion Sensing Module is a compact passive infrared (PIR) sensor designed to detect motion by sensing changes in infrared radiation, typically emitted by human bodies. This module is widely used in security systems, home automation, and energy-saving applications due to its small size, low power consumption, and reliable performance.

Explore Projects Built with HC-SR505 Mini PIR Motion Sensing Module

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 HC-SR505 Mini PIR Motion Sensing Module 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 UNO-Based Security System with PIR Motion Detection and Bluetooth Connectivity
Image of 아두이노 캡스톤 : A project utilizing HC-SR505 Mini PIR Motion Sensing Module 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
ESP32 CAM-Based Wi-Fi Motion-Activated Smart Light
Image of ESP32 CAM: A project utilizing HC-SR505 Mini PIR Motion Sensing Module in a practical application
This circuit features an ESP32 CAM microcontroller connected to an HC-SR501 PIR motion sensor and a 2-channel relay module. The PIR sensor output is connected to a GPIO pin on the ESP32, allowing it to detect motion and signal the microcontroller. The ESP32 controls the relay, which in turn switches an AC bulb on or off, effectively creating a motion-activated light system.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO with PIR Sensor and Bluetooth Connectivity
Image of smart home security system: A project utilizing HC-SR505 Mini PIR Motion Sensing Module 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 HC-SR505 Mini PIR Motion Sensing Module

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 HC-SR505 Mini PIR Motion Sensing Module 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 아두이노 캡스톤 : A project utilizing HC-SR505 Mini PIR Motion Sensing Module 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 ESP32 CAM: A project utilizing HC-SR505 Mini PIR Motion Sensing Module in a practical application
ESP32 CAM-Based Wi-Fi Motion-Activated Smart Light
This circuit features an ESP32 CAM microcontroller connected to an HC-SR501 PIR motion sensor and a 2-channel relay module. The PIR sensor output is connected to a GPIO pin on the ESP32, allowing it to detect motion and signal the microcontroller. The ESP32 controls the relay, which in turn switches an AC bulb on or off, effectively creating a motion-activated light system.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of smart home security system: A project utilizing HC-SR505 Mini PIR Motion Sensing Module 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 lighting systems
  • Intruder detection in security systems
  • Automatic door openers
  • Energy-efficient appliances
  • DIY electronics and Arduino-based projects

Technical Specifications

The HC-SR505 module is designed for ease of use and integration into various electronic systems. Below are its key technical details:

Parameter Specification
Operating Voltage 4.5V to 20V DC
Quiescent Current < 60 µA
Detection Range Up to 3 meters
Detection Angle < 100°
Output Signal High (3.3V) when motion is detected
Output Duration ~8 seconds (non-adjustable)
Operating Temperature -20°C to +70°C
Dimensions 10mm x 23mm

Pin Configuration and Descriptions

The HC-SR505 module has three pins for easy connection:

Pin Name Description
1 VCC Connect to the positive supply voltage (4.5V to 20V DC).
2 OUT Output pin. Goes HIGH (3.3V) when motion is detected, LOW (0V) otherwise.
3 GND Connect to the ground of the power supply.

Usage Instructions

The HC-SR505 Mini PIR Motion Sensing Module is simple to use and can be integrated into a variety of circuits. Follow the steps below to use the module effectively:

Connecting the Module

  1. Power Supply: Connect the VCC pin to a DC power source (4.5V to 20V) and the GND pin to the ground.
  2. Output Signal: Connect the OUT pin to the input pin of a microcontroller (e.g., Arduino) or directly to a load (e.g., an LED or relay) if the current requirements are met.

Important Considerations

  • Warm-Up Time: The module requires a warm-up time of approximately 10 seconds after power-up to stabilize.
  • Detection Range: Ensure the module is placed within its specified detection range (up to 3 meters) for optimal performance.
  • Avoid Obstructions: Do not place the module behind glass or other materials that block infrared radiation.
  • Power Supply: Use a stable power supply to avoid false triggers.

Example: Using HC-SR505 with Arduino UNO

Below is an example of how to connect and use the HC-SR505 module with an Arduino UNO to control an LED:

Circuit Diagram

  • Connect the VCC pin of the HC-SR505 to the Arduino's 5V pin.
  • Connect the GND pin of the HC-SR505 to the Arduino's GND pin.
  • Connect the OUT pin of the HC-SR505 to the Arduino's digital pin 2.
  • Connect an LED (with a 220-ohm resistor) to digital pin 13 of the Arduino.

Arduino Code

// HC-SR505 Mini PIR Motion Sensor with Arduino UNO
// This code turns on an LED when motion is detected.

const int pirPin = 2;  // HC-SR505 OUT pin connected to digital pin 2
const int ledPin = 13; // LED connected to digital pin 13

void setup() {
  pinMode(pirPin, INPUT);  // Set PIR pin as input
  pinMode(ledPin, OUTPUT); // Set LED pin as output
  digitalWrite(ledPin, LOW); // Ensure LED is off initially
  Serial.begin(9600); // Initialize serial communication for debugging
}

void loop() {
  int motionDetected = digitalRead(pirPin); // Read PIR sensor output

  if (motionDetected == HIGH) { 
    // If motion is detected, turn on the LED
    digitalWrite(ledPin, HIGH);
    Serial.println("Motion detected!");
  } else {
    // If no motion is detected, turn off the LED
    digitalWrite(ledPin, LOW);
  }

  delay(100); // Small delay to stabilize readings
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output Signal (OUT pin always LOW):

    • Ensure the module is powered correctly (4.5V to 20V DC).
    • Verify that the module has completed its warm-up time (10 seconds).
    • Check for obstructions blocking the sensor's field of view.
  2. False Triggers (OUT pin goes HIGH without motion):

    • Ensure the module is not exposed to direct sunlight or heat sources.
    • Use a stable power supply to minimize noise and interference.
  3. Short Detection Range:

    • Verify that the module is within its specified detection range (up to 3 meters).
    • Ensure the sensor is not obstructed by objects or materials that block infrared radiation.

FAQs

Q1: Can the detection range or output duration be adjusted?
A1: No, the HC-SR505 module has a fixed detection range (up to 3 meters) and output duration (~8 seconds).

Q2: Can the module detect motion through glass?
A2: No, the module cannot detect motion through glass or other materials that block infrared radiation.

Q3: Is the module compatible with 3.3V systems?
A3: Yes, the module's output signal is 3.3V, making it compatible with 3.3V logic systems. However, the power supply voltage must be between 4.5V and 20V.

Q4: How can I increase the detection range?
A4: The detection range is fixed and cannot be increased. For longer ranges, consider using a different PIR sensor with adjustable settings.

By following this documentation, you can effectively integrate the HC-SR505 Mini PIR Motion Sensing Module into your projects and troubleshoot common issues with ease.