

PIR motion detection sensor module used to detect human movement. A passive infrared sensor that detects warm body motion in its field of view, outputting a digital HIGH signal when movement is detected.
Build a program that detects human movement using the PIR sensor and triggers a drone response such as takeoff or buzzer alert.
The MotionSense module is a passive infrared (PIR) motion detection sensor designed for the Pluto drone. It detects warm body motion within its field of view by sensing changes in infrared radiation. When movement is detected, the sensor outputs a digital HIGH signal on its output pin. The sensor has a built-in delay and sensitivity adjustment, making it suitable for detecting human presence and triggering autonomous drone actions. Control Signal PIRSensor Type GPIOOutput Type RCPort Used PIR Sensor Type GPIO Output Type RC Port Used
Connect the MotionSense to the RC port on the Primus V5/X2 board. Ensure the PIR sensor is oriented with its detection dome facing the desired direction. Allow a brief warm-up period after powering on for stable readings.
| Primus V5/X2 Pin | Peripheral |
|---|
PlutoBlocks code for this module is coming soon. Stay tuned for updates!
PlutoIDE C++ code for this module is coming soon. Stay tuned for updates!
Ready for the next challenge? Try these extensions to deepen your understanding.
| VCC on RC port | VCC on PIR Sensor |
| GND on RC port | GND on PIR Sensor |
| Signal on RC port | OUT on PIR Sensor |
Approach The PIR sensor continuously monitors for changes in infrared radiation in its field of view. When a warm body (such as a person) moves within range, the sensor outputs a digital LOW signal. The drone reads this digital output and triggers a programmed response such as takeoff, buzzer alert, or LED indication. Code Logic Explained On Start: Blue LED turns ON to indicate the program has started and the sensor is warming up.Pluto Loop: The code continuously reads GPIO_1 (RC port where PIR sensor is connected). The PIR output goes LOW (returns false) when it detects motion in its field of view. When a LOW signal is detected, the drone takes off to 150cm. The current sensor state is printed to the monitor using Monitor_Println. Yellow LED (Red + Green) glows as a visual indicator that the monitoring loop is active.On Stop: Green LED turns ON to confirm safe shutdown.
Security surveillance drone Motion-triggered alert system Automated patrol drone
Ready for the next challenge? Try these extensions to deepen your understanding. 1Combine with a buzzer to create a motion alarm drone. 2Program the drone to follow detected movement direction. 3Add an LED indicator that lights up when motion is detected. Pluto Drone Add-On Projects — Compatible with Pluto 1.2 (Primus V5) & Pluto X (Primus X2) — Drona Aviation