Close Menu
  • Articles
    • Learn Electronics
    • Product Review
    • Tech Articles
  • Electronics Circuits
    • 555 Timer Projects
    • Op-Amp Circuits
    • Power Electronics
  • Microcontrollers
    • Arduino Projects
    • STM32 Projects
    • AMB82-Mini IoT AI Camera
    • BLE Projects
  • IoT Projects
    • ESP8266 Projects
    • ESP32 Projects
    • ESP32 MicroPython
    • ESP32-CAM Projects
    • LoRa/LoRaWAN Projects
  • Raspberry Pi
    • Raspberry Pi Projects
    • Raspberry Pi Pico Projects
    • Raspberry Pi Pico W Projects
  • Electronics Calculator
Facebook X (Twitter) Instagram
  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact Us
  • Advertise With Us
Facebook X (Twitter) Instagram Pinterest YouTube LinkedIn
How To Electronics
  • Articles
    • Learn Electronics
    • Product Review
    • Tech Articles
  • Electronics Circuits
    • 555 Timer Projects
    • Op-Amp Circuits
    • Power Electronics
  • Microcontrollers
    • Arduino Projects
    • STM32 Projects
    • AMB82-Mini IoT AI Camera
    • BLE Projects
  • IoT Projects
    • ESP8266 Projects
    • ESP32 Projects
    • ESP32 MicroPython
    • ESP32-CAM Projects
    • LoRa/LoRaWAN Projects
  • Raspberry Pi
    • Raspberry Pi Projects
    • Raspberry Pi Pico Projects
    • Raspberry Pi Pico W Projects
  • Electronics Calculator
How To Electronics
Home » How to interface Panasonic PIR Motion Sensor with Arduino
Arduino Projects

How to interface Panasonic PIR Motion Sensor with Arduino

Mamtaz AlamBy Mamtaz AlamUpdated:December 23, 20233 Mins Read
Share Facebook Twitter LinkedIn Telegram Reddit WhatsApp
Panasonic PIR Sensor Arduino
Share
Facebook Twitter LinkedIn Pinterest Email Reddit Telegram WhatsApp

Overview: Panasonic PIR Motion Sensor with Arduino

In this post we will learn how to interface Panasonic PIR Motion Sensor with Arduino. PIR (Passive Infrared or Pyroelectric) Motion Sensor from Panasonic has industrial grade, highly reliable and precise and accurate sensor. The other type of Pir Sensor called HC-SR501 or SR602are the cheaper sensor which can’t be used for industrial applications. So we need a highly accurate and best PIR Sensor if we think of designing real-life application project.

The real-life application project includes burglar alarms, access control, automatic lighting, automatic door opening, and many other applications where detection of personnel is required. So let us learn about the features of this Sensor and its Interfacing with Arduino.


Bill of Materials

The following are the components required for learning the Working of Panasonic PIR Motion Sensor with Arduino. All the components can be easily purchased from Amazon. The component purchase link is given as well.

S.N.Components NameQuantityPurchase Links
1Arduino Nano Board1Amazon | AliExpress
2EKMC1603111 Panasonic PIR Motion Sensor1AliExpress
3Connecting Wires10Amazon | AliExpress
4Breadboard1Amazon | AliExpress




Panasonic PIR Motion Sensor

PIR Motion Sensor also known as Passive Infrared Sensor or Pyroelectric from Panasonic is an industrial grade, highly reliable, precise and accurate sensor. The model used here is EKMC1603111. The Sensor operates between 3V-6V DC.

EKMC1603111

The Panasonic EKMC1603111 is a long-distance detection type passive infrared motion sensor within the TO-5 package. This sensor detects a change in infrared which occurs when there’s a movement by an individual or object by the change within the surrounding temperature. There are several conditions to sense targets like the temperature difference between the target and surroundings should be 4°C, movement speed is 1.0m/s and the target size is 700mm x 250mm. EKMC1603111 is especially utilized in lighting, Anti-crime devices, home appliances, commercial equipment and audio and visual devices.

Features & Specifications

1. Enclosed sensing circuits, high S/N ratio
3. Wall Mount Capability
4. Limited Field Of View
5. Optimized To Provide Pet Immunity
6. Available In 1 μA, 2 μA, 6 μA, and 170 μA to accommodate Line Voltage Users And Battery Operated Users
7. One Plug And Play Solution Saves Design Time
8. Standard detection type
9. 82° vertical, 100° horizontal detection angle
10. White lens color
10. 170 μA operating current
11. Long Distance(12 m) Detection range

Pinouts

The Sensor has 3 pins
1. VCC (3V-6V)
2. OUT
3. GND

Panasonic PIR Sensor Pinout

There is a gold mark on the sensor part. The pin near to the Gold mark is the VCC Pin. The middle pin is the output pin and the third pin is the GND Pin.



How to interface Panasonic PIR Motion Sensor with Arduino

Now, lets learn about the sensor Interfacing with Arduino. The sensor works between 3V-6V. So connect its VCC Pin to 5V/3.3V of Arduino.Connect the GND to GND & its output pin to any of the digital pin of Arduino.

Panasonic PIR Motion Sensor Arduino

I used digital pin 2 of the Arduino to connect the Sensor. You can just connect 3 wires to the sensor so that it can be easily inserted in the breadboard as shown below.


Source Code/Program

The source code for Interfacing Panasonic PIR Sensor Arduino is given below. You can copy the code and upload it to the Arduino Board.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#define PIR 2
#define PIR_THRESH 12000
 
void setup() {
  Serial.begin(115200);
  pinMode(PIR,INPUT);
  
  Serial.println("Sensor Initializing.....");
  delay(10000);
  Serial.println("Setup Completed");
  delay(3000);
  
  
}
 
void loop()
{
  int duration;
  duration = pulseIn(PIR,HIGH);
  if(duration>PIR_THRESH)
  {
    Serial.println("Motion Detected");
  }
  else
    Serial.println("No Motion");
    delay(500);
}

After uploading the code, just place your hand in front of the Sensor, it will detect the motion and display it on the Serial Monitor.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Reddit Telegram WhatsApp
Previous ArticleInterfacing APDS9960 Gesture & RGB Color Sensor with Arduino
Next Article How to use FreeRTOS for STM32F103C8 in Arduino IDE

Related Posts

DC Energy Meter using Arduino

Build a DC Energy Meter using Arduino – 32V/5A

Updated:August 26, 20252K
Interfacing ADXL375 Accelerometer with Arduino

Interfacing ADXL375 Accelerometer with Arduino (±200g)

Updated:June 28, 2025
PZEM-004T Arduino Energy Meter

DIY AC Energy Meter using PZEM-004T & Arduino

Updated:March 6, 20258K
Interfacing BMI160 Accelerometer & Gyroscope with Arduino

Interfacing BMI160 Accelerometer & Gyroscope with Arduino

Updated:February 2, 20259K
Password Based Door Lock Security System Using Arduino & Keypad

Password Based Door Lock Security System Using Arduino & Keypad

Updated:February 2, 20252436K
Earthquake Detector Alarm with with Accelerometer & Arduino

Earthquake Detector Alarm with Accelerometer & Arduino

Updated:February 2, 2025661K
Add A Comment

CommentsCancel reply

Latest Posts
ESP32 Fingerprint Attendance System with Live Web Dashboard

ESP32 Fingerprint Attendance System with Live Web Dashboard

June 16, 2026
IoT Based PM & Air Quality Monitoring System using ESP32

IoT Based PM & Air Quality Monitoring System using ESP32

June 14, 2026
DIY ESP32 MLX90640 IR Thermal Camera with Live Web Display

DIY ESP32 MLX90640 IR Thermal Camera with Live Web Display

May 10, 2026
IoT Activity Tracker with ESP32 & Accelerometer Gyroscope

IoT Activity Tracker with ESP32 & Accelerometer/Gyroscope

May 2, 2026
A Guide to Sourcing Obsolete ICs for Vintage Projects

Beyond AliExpress: A Guide to Sourcing Obsolete ICs for Vintage Projects

April 21, 2026

ESP32 IoT Vehicle Motion Analyzer with MPU6050 & LIS3MDL

April 27, 2026
Building a Smart Sensor Node with a BLE Microcontroller

Building a Smart Sensor Node with a BLE Microcontroller

February 26, 2026
High-Accuracy Pitch, Roll, Yaw with ESP32 & BNO08x IMU

High-Accuracy Pitch, Roll, Yaw with ESP32 & BNO08x IMU

April 27, 2026
Top Posts & Pages
  • ESP32 Fingerprint Attendance System with Live Web Dashboard
    ESP32 Fingerprint Attendance System with Live Web Dashboard
  • IoT AC Energy Meter with PZEM-004T & ESP32 WebServer
    IoT AC Energy Meter with PZEM-004T & ESP32 WebServer
  • 12V DC to 220V AC Inverter Circuit & PCB
    12V DC to 220V AC Inverter Circuit & PCB
  • ECG Graph Monitoring with AD8232 ECG Sensor & Arduino
    ECG Graph Monitoring with AD8232 ECG Sensor & Arduino
  • How to use ADS1115 16-Bit ADC Module with Arduino
    How to use ADS1115 16-Bit ADC Module with Arduino
  • Buck Converter: Basics, Working, Design & Application
    Buck Converter: Basics, Working, Design & Application
  • IoT Based ECG Monitoring with AD8232 ECG Sensor & ESP32
    IoT Based ECG Monitoring with AD8232 ECG Sensor & ESP32
  • Interfacing PN532 NFC RFID Module with Arduino
    Interfacing PN532 NFC RFID Module with Arduino
Categories
  • Arduino Projects (197)
  • Articles (60)
    • Learn Electronics (19)
    • Product Review (15)
    • Tech Articles (28)
  • Electronics Circuits (46)
    • 555 Timer Projects (21)
    • Op-Amp Circuits (7)
    • Power Electronics (13)
  • IoT Projects (205)
    • ESP32 MicroPython (7)
    • ESP32 Projects (82)
    • ESP32-CAM Projects (15)
    • ESP8266 Projects (76)
    • LoRa/LoRaWAN Projects (22)
  • Microcontrollers (38)
    • AMB82-Mini IoT AI Camera (4)
    • BLE Projects (18)
    • STM32 Projects (19)
  • Raspberry Pi (93)
    • Raspberry Pi Pico Projects (57)
    • Raspberry Pi Pico W Projects (12)
    • Raspberry Pi Projects (24)
Follow Us
  • Facebook
  • Twitter
  • Pinterest
  • Instagram
  • YouTube
About Us

“‘How to Electronics’ is a vibrant community for electronics enthusiasts and professionals. We deliver latest insights in areas such as Embedded Systems, Power Electronics, AI, IoT, and Robotics. Our goal is to stimulate innovation and provide practical solutions for students, organizations, and industries. Join us to transform learning into a joyful journey of discovery and innovation.

Copyright © How To Electronics. All rights reserved.
  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact Us
  • Advertise With Us

Type above and press Enter to search. Press Esc to cancel.

Ad Blocker Enabled!
Ad Blocker Enabled!
Looks like you're using an ad blocker. Please allow ads on our site. We rely on advertising to help fund our site.