ZDP323 Digital Passive Infrared (PIR) Sensor with I2C Interface

The ZDP323AA is a Digital PIR Motion sensor with I2C interface. This article shares the Pinout, working, features and specs, and simple test code for interfacing with Arduino.

In the old days, we saw many analogue PIR sensors that worked with op-amp ICs. The analogue sensors only give LOW or HIGH. This ZDP323 digital sensor uses I2C digital lines to share data and settings with the microcontroller IC. In this article, I’m sharing useful information about this digital PIR sensor.

Introduction to the ZDP323 PIR Sensor

The Zilog ZDP323 is an advanced PIR module. This is a low power PIR Motion sensor device that comes with I2C interfacing. So the sensor can easily communicate with the connected microcontroller IC. This component comes in a TO-5 metal package with 4 pins.

This digital PIR sensor can be configured through the I2C connections and we can set the sensitivity for the motion that needs to be detected. It can filter unwanted signals and trigger only when a clean detection appears. The I2C data connection activates the IC if any motion is detected based on the programming. Lest see its key features and specifications,

ZDP323 Key Features and Specifications

  • Working voltage is 1.5V to 5.5V.
  • Working current is relatively ultra low it is about 3uA.
  • Field of view is 148°× 136°
  • Operating temperature is -40℃ to 80℃
  • I²C or UART interface with a triggered output mode
  • Comes in TO-5 Packaging with 4 pins.
  • We can program the gain, detection threshold and filter profile.

Pin Configuration and Pinout Diagram

ZDP323 Digital PIR Sensor Pinout
Figure 1 : ZDP323 Digital PIR Sensor Pinout diagram and pin configuration

Pinout Configurations

PinNameDescription
1SDA / TRIGSDA: I²C Serial Data line used for transferring data
to and from the external I²C master.
TRIG which is Motion trigger output
that is driven low when motion is detected.
2VDDPower supply input pin. (1.5V to5.5V DC)
3SCLI²C Serial Clock input from the external I²C master.
4GNDGround connection reference for the device.
Table 1: Pinout configuration of ZDP323

🛒 You can purchase the ZDP323AA Digital PIR from this from Mouser Electronics.

How the ZDP323 PIR Sensor Works

This works the same way as an analogue PIR sensor, detecting the infrared signal from the human body or a hot surface. Every human body emits infrared radiation, which is captured by the two sensors built into this component. When an IR signal is detected, the baseline of the sensor is disrupted and motion is sensed.

I2C Communication Interface

The Pin number 1 and Pin number 3 is the I2C connection pins. Which are,

  • SDA/TRIG – It is a serial data in and out pin. Also activated when the motion detected and act as the trigger pin.
  • SCL is the third pin which act as a clock pin. It connected to The Microcontroller for getting Serial clock input.

Interfacing the ZDP323 with Arduino

A simple LED based motion detector code is given. It is for demonstrating the working of the digital PIR sensor. The ZDP323 sensor monitors heat changes and pulls its data line LOW the instant it detects human movement.

Connection Details

  • VDD (Power Supply) is connect to 3.3V or 5V on the Arduino Uno.
  • GND (Ground) is connect to any GND pin on the Arduino Uno.
  • SCL (I²C Clock) which is connect to the pin A5 (or the dedicated SCL pin on newer Arduino boards).
  • Requires an external or onboard pull-up resistor connected to VDD.
  • SDA/TRIG (I²C Data / Motion Trigger) is connect to A4 (or the dedicated SDA pin) for I²C communication.
  • The same pin can also be connected to Digital Pin 2 on the Arduino Uno if hardware interrupt-based motion detection is required.
  • Requires a pull-up resistor to VDD for reliable I²C operation.

Programming Code

The Arduino catches this quick voltage drop via a hardware interrupt pin, flashes an LED, and prints an alert to the screen without needing to constantly poll the sensor.

Applications

  • Motion activated lighting systems.
  • Smart home automation and occupancy detection.
  • Security and intrusion alarm systems.
  • Battery powered IoT motion sensing devices.
Akhil Satheesh

Akhil Satheesh

Akhil Satheesh is an electronics expert and the Founder and CEO of Soldering Mind. He specializes in designing innovative electronic circuits and custom, high-performance PCB layouts. Every project he shares on solderingmind.com is rigorously bench-tested to ensure accuracy for makers and hobbyists alike.

Leave a Reply