News & Updates

Elegoo Pir Sensor Which One Are The Pins: A Complete Guide To Pinout, Wiring, And Integration

By Daniel Novak 14 min read 1558 views

Elegoo Pir Sensor Which One Are The Pins: A Complete Guide To Pinout, Wiring, And Integration

Many hobbyists and makers new to motion detection assume all PIR sensors are interchangeable, but subtle differences in pin configuration and electrical characteristics can derail a project before it functions. The Elegoo brand offers several passive infrared sensors, each with a distinct pin layout and intended role within an ecosystem of Arduino-compatible boards. This article provides a definitive breakdown of the Elegoo PIR sensor variants, explaining exactly where power, ground, and signal connect, and how these choices impact real-world deployment.

Understanding The Core Technology Behind Elegoo PIR Sensors

Passive Infrared (PIR) sensors detect movement by measuring changes in infrared radiation, or heat, within their field of view. The Elegoo modules, typically based on the AM312 or similar pyroelectric sensor design, do not emit any radiation themselves; instead, they listen for the natural heat signature of warm-blooded animals moving across the sensor's Fresnel lens. When a change in infrared pattern occurs, the sensor generates a small charge, which the onboard circuitry amplifies and converts into a digital HIGH or LOW signal readable by a microcontroller.

Within the Elegoo ecosystem, two primary hardware revisions dominate the market: the original module with a vertically oriented sensor and the newer, more compact variant with a horizontal sensor footprint. While both serve the same fundamental purpose, the arrangement of the Elegoo PIR sensor pins differs between these models, making it critical to verify the specific version before connecting it to a circuit.

Decoding The Elegoo Pir Sensor Which One Are The Pins

Identifying the correct pinout is the most common point of failure for beginners. Assuming the wrong configuration—such as swapping the signal and ground—can prevent the sensor from working entirely or, in rare cases, damage the connected microcontroller. The standard Elegoo PIR sensor features three exposed copper pads, each serving a distinct electrical function.

Pin 1: The Power Supply (VCC)

The first pin, typically located on the right when the sensor lens faces away from you, is the voltage input. This Elegoo PIR sensor pin requires a stable DC voltage between 3.3V and 5V, depending on the microcontroller platform. Unlike digital signals, PIR sensors draw a constant current to power the internal circuitry and the onboard pyroelectric detector. Without this continuous power, the module cannot initialize or enter a ready state.

Pin 2: The Signal Output (OUT)

Positioned in the center of the trio is the signal pin, which carries the information about detected motion. This is the Elegoo PIR sensor pin that the microcontroller must monitor to react to events. The output is a digital signal that toggles between HIGH and LOW. When the sensor detects a change in the infrared field, the OUT pin goes HIGH, remaining at that state for a duration determined by the onboard potentiometers. It then returns to LOW, ready to detect the next trigger.

Pin 3: The Ground Reference (GND)

Completing the triangle is the ground pin, usually found on the left side of the cluster. This Elegoo PIR sensor pin provides the return path for current and establishes the 0V reference point for the signal voltage. Ensuring a solid ground connection is essential for electrical noise immunity; a poor ground can result in erratic readings or a signal that fluctuates randomly, even in the absence of motion.

Physical Identification And Color Coding

To avoid confusion, manufacturers often adhere to a semi-standardized color scheme, though this is not a universal guarantee. When examining your Elegoo PIR sensor, look for the following visual cues:

  • The Power Pin (VCC): Often marked with the label "VCC" or "+", and typically soldered with a red wire.
  • The Signal Pin (OUT): Usually labeled "OUT" or "SIG", and commonly associated with a yellow or green wire.
  • The Ground Pin (GND): Labeled "GND" or "-", and almost always connected using a black or brown wire.

However, third-party clones or mislabeled shipments may deviate from this standard. Therefore, relying solely on color is discouraged. A digital multimeter set to continuity mode is the most reliable tool for verification. By probing the pads and tracing them to the labeled pins on the reverse side of the PCB, one can confirm the exact wiring configuration.

Integration With Microcontrollers: Practical Wiring Examples

Once the Elegoo PIR sensor pins are identified, integration with a microcontroller like an Arduino Uno becomes straightforward. The physical interface is designed to be breadboard-friendly, with the pins spaced to fit standard tie-points.

Wiring To An Arduino Uno:

  1. Connect the Red Wire (VCC) of the Elegoo PIR sensor to the 5V pin on the Arduino.
  2. Connect the Black Wire (GND) to one of the GND pins on the Arduino.
  3. Connect the Yellow Wire (OUT) to a Digital Input pin, such as pin 2, to allow the Arduino to register the motion event.

After wiring, the Arduino IDE can be used to program a simple sketch to read the digital state of pin 2. When motion is detected, the serial monitor will display a "Motion Detected" message, providing immediate visual feedback that the wiring is correct and the sensor is operational.

Troubleshooting Common Pin-Related Issues

Even with the correct wiring, users may encounter issues that stem from misunderstanding the Elegoo PIR sensor pins. One frequent problem is the stability of the output signal. Because PIR sensors are sensitive to heat sources, placing them near a heating vent or a window receiving direct sunlight can cause the OUT pin to remain HIGH or fluctuate constantly.

Another consideration is the trigger mechanism. The two potentiometers on the board typically control two distinct parameters: the delay time (how long the signal stays HIGH after detection) and the sensitivity range (how far into the room the sensor "sees"). Adjusting these requires a steady hand and a screwdriver, as turning the wrong pot can mask the symptom rather than fix the root cause of a wiring error.

In professional settings, engineers might bypass the breadboard connection entirely and opt for a direct soldered wire harness. In these scenarios, clearly identifying the Elegoo PIR sensor pins with heat shrink tubing or printed labels is vital for maintaining reliable serviceability over the lifespan of the device.

Variants And Compatibility Across The Elegoo Ecosystem

Elegoo frequently releases kits that include slight modifications to the standard PIR sensor. For instance, some security system starter packs include a PIR module with a fourth pin: a simple LED indicator soldered directly to the board. In these cases, the fourth pin usually replicates the signal state but is designed to drive a high-current LED without taxing the microcontroller.

When consulting documentation or tutorial videos, it is vital to match the specific part number or photo of your sensor with the guide you are following. The phrase "Elegoo PIR sensor which one are the pins" often arises from mismatched guides that assume the older vertical sensor model while the user has received the newer horizontal variant. Verifying the sensor dimensions and component placement before powering the device saves time and prevents frustration.

Written by Daniel Novak

Daniel Novak is a Chief Correspondent with over a decade of experience covering breaking trends, in-depth analysis, and exclusive insights.