Creators
Rojony Khatun Author
Rojony Khatun
CalculatorToolsProjectExpert
Reviewers
Małgorzata Koperska, MD Steven Wooding
Last updated: November 30, 2025

PIR Motion Sensor Circuit for Home Automation DIY

🇺🇸
English
Default
🇪🇸
Español
Spanish
🇫🇷
Français
French
🇩🇪
Deutsch
German

*Please note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

PIR Motion Sensor at Home Circuit

Build a DIY PIR motion sensor circuit for home security. Step-by-step guide with components, working principle, schematic, and installation tips.

What Is a PIR Motion Sensor Circuit?

A PIR motion sensor circuit is an electronic circuit on which the movement of a human being or an animal is detected by a Passive Infrared sensor and used to control an output device. PIR sensors have pyroelectric materials that produce a voltage after being hit by infrared radiation from a moving object. This signal is processed in the circuit and causes a load, including home automation devices, lights, and alarms.

Educational electronics project

A large scrolling text display is a popular DIY electronics project for home decoration, events, or advertising. It allows you to display moving messages using LEDs, which can be programmed to scroll text horizontally.

This guide explains how to build a bright, programmable, large scrolling text display at home using LED matrices, a microcontroller (like Arduino), resistors, and driver ICs. You will learn the circuit diagram, component selection, programming, assembly, and troubleshooting tips. This project is perfect for electronics enthusiasts, hobbyists, and students who want to explore LED matrix displays, microcontroller programming, and multiplexing techniques.

LED Text Display – Complete Guide

Applications of LED Text Display

  • Home decoration or festivals
  • Event announcements
  • Shop advertising
  • Educational electronics projects
  • Digital clocks or counters with messages
  • Science fairs and tech exhibitions

Components Required

Component Specification
LED Matrix Panels 8x8, 16x16, or larger
Microcontroller Arduino Uno, Mega, or ESP32
Shift Registers 74HC595 for controlling columns/rows
Resistors 220Ω for current limiting
Power Supply 5V DC, sufficient current for all LEDs
Wires Flexible jumper wires or PCB tracks
PCB or Breadboard For testing circuits
Soldering Tools For assembly
Software Arduino IDE
Connectors For panel assembly

Working Principle of Scrolling Text Display

LED Matrix Basics

LEDs are arranged in rows and columns. Each LED is addressed by selecting a row and column.

Microcontroller Programming

The microcontroller uses shift registers to control LEDs and create scrolling text animation.

Multiplexing LED Columns

Fast switching of rows/columns creates the illusion of a continuous message.

Circuit Diagram Overview

  • Shift registers connect LED matrix rows/columns.
  • Shift registers connect to Arduino pins.
  • Resistors used for current limiting.
  • Multiple matrices can be daisy-chained.
  • PWM can be used for brightness control.

Step-by-Step Construction Guide

  1. Arrange LED matrix panels.
  2. Connect rows and columns to shift registers.
  3. Wire shift registers to Arduino.
  4. Add resistors for current limiting.
  5. Upload scrolling text program.
  6. Test panels individually.
  7. Assemble all panels on a frame.
  8. Connect power supply.
  9. Adjust brightness and scroll speed.

Programming & Software Setup

  • Use Arduino IDE for coding.
  • Define message arrays.
  • Use shiftOut() or LED matrix libraries.
  • Adjust scroll speed and brightness.

Tips for Bright & Smooth Scrolling

  • Ensure proper current supply.
  • Use clean soldering and wiring.
  • Use PWM for dimming.
  • Optimize refresh rate in code.

Troubleshooting

LED Not Lighting

  • Check wiring
  • Verify resistor values

Flickering Text

  • Increase update frequency
  • Check power supply stability

Microcontroller Not Responding

  • Re-upload code
  • Check power/USB connection

Frequently Asked Questions - PIR Motion Sensor at Home Circuit:

What is a PIR motion sensor circuit?

A circuit using a PIR sensor to detect movement and activate a load like lights or alarms.

Which PIR module is commonly used?

HC-SR501 is commonly used for home DIY projects.

What voltage does PIR sensor require?

Typically 5V–12V DC depending on the module.

Can it control AC lights?

Yes, using a relay to isolate the AC load from the sensor.

How to adjust sensitivity?

Use the potentiometer on the PIR module to change detection range.

How long does output stay on?

Most modules have a delay adjustment from a few seconds to several minutes.

Can I add LED indicator?

Yes, connect LED with current-limiting resistor parallel to relay.

Is the PIR safe for beginners?

Yes, low-voltage DC circuit makes it beginner-friendly.

What is typical detection range?

Usually 5–12 meters, adjustable by module sensitivity.

Can it be used with microcontrollers?

Yes, PIR output can be interfaced with Arduino, Raspberry Pi, etc.

Comments

Please login to comment.

Rojony Khatun

Rojony Khatun

Calculator Tools Project

Rojony Khatun is the creator of a free online tools website designed to simplify everyday and engineering-related calculations for students, professionals, and hobbyists. The platform offers a wide variety of basic and advanced calculators across key categories, including Electrical Calculators, Electronic Calculators, and Time & Date Calculators, helping users solve problems quickly and accurately.