When designing embedded security systems or automating lighting with an ESP32, reading the correct motion sensor symbol electrical notation on a schematic is critical. Whether you are integrating a passive infrared (PIR) module like the HC-SR501 or a microwave radar sensor like the RCWL-0516, the schematic symbol dictates the logic flow, while the physical pinout dictates the wiring. Below is the definitive reference for motion sensor symbols, standardized across IEC and NEC/JIC formats, followed by exact microcontroller pin mappings.

Motion Sensor Electrical Symbols & Schematic Reference

Electrical schematics use standardized symbols to represent sensors without drawing their internal circuitry. The two dominant standards are IEC 60617 (used globally and in Europe) and NEC/JIC ladder logic symbols (common in North American industrial controls). For hobbyist and embedded PCB design, IEC-style block symbols are the default.

Table 1: Motion Sensor Schematic Symbols & Logic Mapping
Sensor Type IEC 60617 Symbol Description NEC/JIC Ladder Logic Symbol Typical Embedded Module Logic Output Behavior
PIR (Passive Infrared) Semicircle with radiating dashed lines inside a sensor box Normally Open (NO) contact with 'PIR' label HC-SR501, SR602 Digital HIGH on motion, LOW on timeout
Microwave (Doppler Radar) Antenna icon with concentric radiating arcs NO contact with 'MW' or 'Radar' label RCWL-0516, HLK-LD2410 Digital HIGH or UART data stream
Ultrasonic (Time-of-Flight) Transducer cone with bouncing soundwave lines Rarely used in ladder; represented as analog transmitter HC-SR04, JSN-SR04T PWM pulse width (Echo pin)
Dual-Tech (PIR + MW) Combined PIR semicircle and MW arcs in a single box AND-gate logic combining PIR and MW contacts Commercial security modules Digital HIGH only when both trigger

Rows People Get Wrong

  • Confusing Ultrasonic with Audio: The ultrasonic transducer symbol (a cone with bouncing lines) is frequently misread as a standard audio speaker or buzzer. Remember that ultrasonic sensors like the HC-SR04 require two microcontroller pins (Trigger and Echo), whereas a speaker requires an amplifier and PWM audio pin.
  • Assuming PIR is Analog: Beginners often look at the radiating lines on a PIR symbol and assume it outputs an analog voltage proportional to heat. Standard embedded PIR modules (HC-SR501) use an internal comparator (like the LM324) to output a strict 3.3V or 5V digital HIGH. Do not wire the OUT pin to an ESP32 ADC pin expecting a gradient reading.
  • Microwave Penetration Misconception: The MW symbol looks like a standard RF transmitter. In practice, 5.8GHz microwave sensors (RCWL-0516) will detect motion through drywall and thin wood. If your schematic places this symbol inside a plastic enclosure, expect false triggers from people walking in the adjacent room.

Microcontroller Module Pinouts & Wiring Color Codes

Translating the motion sensor symbol electrical diagram to a physical breadboard or custom PCB requires knowing the exact pinouts. While commercial 120V/240V motion switches use standard NEC wire colors (Black=Line, Red=Load, White=Neutral, Bare=Ground), low-voltage embedded modules use proprietary harness colors or bare header pins.

Table 2: Embedded Motion Sensor Pinouts for ESP32/Arduino
Module VCC (Input) GND Signal Out Quiescent Current Recommended ESP32 GPIO
HC-SR501 (Standard PIR) 5V (4.5V-20V) GND OUT (3.3V logic) ~50 µA GPIO 4 (RTC capable)
SR602 (Mini PIR) 3.3V - 5V GND OUT (Matches VCC) ~10 µA GPIO 14 (RTC capable)
RCWL-0516 (Microwave) 5V (4V-28V) GND OUT (5V logic!) ~2.8 mA GPIO 5 (via logic level shifter)
HLK-LD2410 (mmWave) 5V or 3.3V GND TX / RX (UART) ~70 mA GPIO 16 (RX) / GPIO 17 (TX)
⚠️ CALL-OUT WARNING: The RCWL-0516 Voltage Trap

The RCWL-0516 microwave sensor has an onboard voltage regulator allowing it to accept up to 28V on the VCC pin. However, the OUT pin pulls high to the unregulated input voltage on many board revisions. If you power it with 5V, the OUT pin will output 5V. Connecting this directly to an ESP32 GPIO pin will fry the microcontroller. Always use a simple voltage divider (e.g., 2kΩ and 3.3kΩ resistors) or a logic level shifter between the RCWL-0516 OUT pin and your 3.3V ESP32.

Harness Wire Color Conventions

When buying pre-crimped JST-PH or Dupont harnesses for these sensors, manufacturers generally follow this color code:

  • Red: VCC (Power)
  • Black: GND (Ground)
  • Yellow or White: Digital OUT / Signal
  • Green or Blue: UART TX/RX (on mmWave sensors like the LD2410)

Optimizing for ESP32 Deep Sleep

If your project is battery-powered, quiescent current is your biggest enemy. The HC-SR501 draws about 50 µA, which is acceptable for a 18650 lithium cell. However, the onboard 3.3V LDO on the HC-SR501 is inefficient. For ultra-low power, use the SR602 (10 µA) and power it directly from the ESP32's 3.3V regulator. Wire the OUT pin to an RTC-capable GPIO (like GPIO 4 or GPIO 14) and use the esp_sleep_enable_ext0_wakeup() function in your Arduino code. Refer to the Espressif ESP32 Datasheet for the exact RTC GPIO mapping.

Regional Standards, Faded Markings & Safe Interpretation

When moving from schematic design to physical troubleshooting, you will inevitably encounter modules with faded silkscreen, missing datasheets, or ambiguous symbols. Here is how to safely interpret them based on regional standards and bench-testing techniques.

Which Standard Applies to Your Region?

  • North America (US/Canada): If you are wiring a 120V AC commercial motion sensor switch into a junction box, you must follow NFPA 70 (NEC) guidelines. Line is Black, Load (to the light) is Red, Neutral is White, and Ground is Bare/Green. The schematic symbol will be a standard NO switch contact inside a box with a PIR icon.
  • Europe / UK / Global: Follow IEC 60446 for AC wiring colors (Brown=Line, Blue=Neutral, Green/Yellow=Earth). For low-voltage embedded PCB design globally, IEC 60617 is the undisputed standard for schematic symbols.

Safe Interpretation When Markings are Faded or Missing

If you pull a salvaged motion sensor module from an old security system or buy an unmarked clone from an overseas marketplace, never guess the pinout by applying power. Applying 5V to a GND or Signal pin will instantly destroy the internal ASIC or your microcontroller. Follow this bench procedure:

  1. Identify Ground (GND) First: Set your multimeter to continuity mode (the diode/beep setting). Probe the large ground plane on the back of the PCB or the negative leg of the largest electrolytic capacitor. Whichever header pin beeps continuously to this ground plane is your GND.
  2. Identify VCC: Look for the input capacitor (usually a 10µF to 100µF electrolytic). The positive leg of this capacitor connects directly to the VCC pin. Alternatively, trace the VCC pin through the onboard voltage regulator (often an AMS1117 or HT7533).
  3. Identify the Signal Pin: The remaining pin(s) are your outputs. If there is only one pin left, it is a digital OUT. If there are two, it is likely a UART TX/RX pair (common on 24GHz mmWave sensors) or an I2C SDA/SCL pair.
  4. The Safe Power-Up Test: Connect GND and VCC to a current-limited bench power supply (set the limit to 100mA). Power it on. Use your multimeter in DC Voltage mode to probe the remaining pins. A pin sitting at 0V that jumps to 3.3V when you wave your hand is a standard PIR Digital OUT. A pin continuously streaming fluctuating voltage values is likely a UART TX pin (which requires a logic analyzer or oscilloscope to decode the baud rate, typically 256000 for the LD2410).

By cross-referencing the motion sensor symbol electrical schematic with physical multimeter probing, you eliminate the guesswork and protect your expensive microcontrollers from catastrophic wiring errors.