

FlameSense
Learn how digital sensors communicate with the Pluto drone by interfacing a flame detection module. This project teaches you to read GPIO digital inputs and use them to trigger autonomous flight - a core skill in building reactive drone systems.
WHAT YOU'LL LEARN
- Reading digital HIGH/LOW signals from a GPIO pin
- Understanding IR-based flame detection principles
- Implementing sensor-triggered autonomous takeoff
- Using LED indicators for drone state feedback
DOWNLOADS
The Challenge
Build a program to add fire sensing ability to Pluto drone. The drone should sense fire and take off accordingly.
Understanding the Add-On
A flame sensor module is essentially an IR receiver that detects fire by sensing the infrared waves emitted by flames. Under normal conditions, the sensor output stays HIGH. When fire or a flame is detected in its sensing range, the output goes LOW. The detection sensitivity can be fine-tuned using the onboard potentiometer.
Wiring & Connections
Connect the FlameSense to the RC port on the Primus V5/X2 board. The flame sensor has a limited detection angle. Point it in the direction you want to monitor. Adjust the onboard potentiometer to set sensitivity.
| Primus V5/X2 Pin | Peripheral |
|---|---|
| VCC on RC port | VCC on flame_module |
| GND on RC port | GND on flame_module |
| Signal on RC port | Signal on flame_module |
How It Works
Approach We utilise the input signal from the flame sensor to evaluate the drone's takeoff decision. Code Logic Explained On Start: Blue LED turns ON to signal the program is initialized.Pluto Loop: The loop continuously reads GPIO_1 (connected to the flame sensor on the RC port). Under normal conditions, the sensor sends a HIGH signal. When it detects flames nearby, the signal drops to LOW (false). When this LOW is detected, the drone takes off to 150cm. The LED changes to Green + Red (Yellow) to indicate the loop is running, and Blue turns OFF to show the transition from standby to active mode.On Stop: Green LED turns ON confirming the program ended cleanly.
Real-World Applications
Fire detection and alert drone Emergency response automation Industrial safety monitoring
Try Further
Ready for the next challenge? Try these extensions to deepen your understanding. 1Use multiple flame sensors to determine the direction of fire. 2Combine with a Hooter module to create a fire alarm drone that buzzes when fire is detected. Pluto Drone Add-On Projects — Compatible with Pluto 1.2 (Primus V5) & Pluto X (Primus X2) — Drona Aviation
PlutoBlocks Code
PlutoBlocks code for this module is coming soon. Stay tuned for updates!
PlutoIDE Code (C++)
PlutoIDE C++ code for this module is coming soon. Stay tuned for updates!
Real-World Applications
Try Further
Ready for the next challenge? Try these extensions to deepen your understanding.
