Building a DIY thermal drone using a FLIR Lepton sensor and a Raspberry Pi 5 gives you $10,000 industrial inspection capabilities for about $350 in parts. But cramming a 12W system-on-chip (SoC) into an enclosed, sun-baked carbon-fiber payload bay guarantees thermal throttling if you ignore the physics. When the Pi 5 throttles, your SPI bus timing drifts, thermal video frames drop, and your flight controller loses telemetry.

To keep a Raspberry Pi 5 BCM2712 SoC under its 80°C soft-throttle limit in a sealed drone bay, you need a heatsink with a thermal resistance (RθSA) of less than 1.5°C/W, paired with at least 150 LFM (Linear Feet per Minute) of forced airflow. Here is the exact math, component data, and enclosure design required to keep your payload online.

The Thermal Path: Junction-to-Ambient Math

Thermal management is not about guessing fan sizes; it is a strict electrical circuit analog where heat (Watts) is current, temperature (°C) is voltage, and thermal resistance (°C/W) is resistance. The governing equation for junction temperature is:

TJ = TA + PD × (RθJC + RθCS + RθSA)

  • TJ: Junction temperature (target < 80°C to avoid Pi 5 throttling)
  • TA: Ambient temperature inside the drone bay (assume 45°C for a dark enclosure in summer sun)
  • PD: Power dissipation (10W for Pi 5 under compute + USB thermal camera load)
  • RθJC: Junction-to-Case resistance (BCM2712 is approx 2.0°C/W)
  • RθCS: Case-to-Sink resistance (using a 0.5mm Thermal Grizzly Minus Pad 8 yields ~0.5°C/W)
  • RθSA: Sink-to-Ambient resistance (the heatsink you need to buy)

Plugging in our limits: 80 = 45 + 10 × (2.0 + 0.5 + RθSA). Solving for RθSA gives us 1.0°C/W. This is an incredibly tight thermal budget. A standard passive aluminum extrusion sits at 5.0°C/W to 10.0°C/W. You absolutely require an active heatsink, and you must account for enclosure derating.

Payload Thermal Budget & Component Limits

ComponentMax Junction (TJ)Soft Throttle / Error TempTypical Power (W)Primary Failure Signature
Raspberry Pi 5 (BCM2712)100°C80°C (Clock drops to 1.5GHz)8.0 - 12.0WSPI/I2C bus timeouts, frame drops
FLIR Lepton 3.5 Sensor85°C70°C (Excessive FFC shutter clicks)0.15WImage noise, constant recalibration
ESP32-WROOM-32 (Telemetry)125°C85°C (WiFi TX power reduction)0.8 - 1.2WMQTT disconnects, range loss
LM2596 Buck Converter (5V)125°C90°C (Efficiency drops, heat spike)1.5 - 3.0WVoltage ripple, Pi brownouts

Heatsink Selection and Derating Curves

When shopping for a heatsink, manufacturers rate RθSA under ideal bench conditions. If you ignore the derating curve on the datasheet, your payload will overheat in flight. A derating curve plots thermal resistance (Y-axis) against airflow in LFM (X-axis). A heatsink rated at 1.5°C/W at 300 LFM might derate to 4.5°C/W at 50 LFM, which is typical for a restricted drone bay.

Here are three real-world heatsink configurations evaluated for a 10W drone payload:

Heatsink ModelTypeRθSA (Free Air)RθSA (Enclosed Bay)Verdict for DIY Thermal Drone
Official Pi 5 Active CoolerAluminum + 15mm fan~2.5°C/W> 5.0°C/WFail. Too small; chokes without direct intake.
Geekworm C510 Copper Heat PipeCopper + 40mm fan~1.2°C/W~2.2°C/WPass. Excellent thermal mass handles transient spikes.
Aavid 577302B00000G + Noctua NF-A4x20Extruded Al + 40mm PWM~1.8°C/W~2.8°C/WMarginal. Requires dedicated TPU air scoop.

For a reliable build, the Geekworm C510 is the baseline choice. The copper heat pipe moves thermal energy away from the BCM2712 die faster than solid aluminum, buying you critical seconds during heavy compute tasks like running OpenCV edge-detection on the thermal feed.

Airflow, Enclosures, and Buying Degrees

Most drone payload bays are sealed to IP54 standards to protect against dust and moisture. This kills natural convection. To 'buy' extra degrees of thermal headroom, you must manipulate the enclosure aerodynamics.

Warning: LiPo Proximity. Never mount your payload bay directly against the main flight battery. A 6S LiPo under a 40A discharge can reach 55°C. If your payload bay shares a wall with the battery, your TA (ambient) calculation must increase from 45°C to 60°C, which will instantly break your thermal budget. Use a 10mm foam isolation gap.

1. Prop-Wash Scoops: 3D print TPU intake scoops that face forward, capturing the high-pressure air from the drone's propeller downwash. Route this air directly over the Geekworm fan intake, and cut an exhaust vent on the trailing edge of the bay. This forces the LFM up to 200+, keeping the heatsink on the flat part of its derating curve.

2. External Voltage Regulators: The LM2596 or XL4015 buck converters used to step down the 6S LiPo (22.2V) to 5V for the Pi 5 waste 2W to 3W as heat. Do not put them inside the compute bay. Mount them on the outside of the carbon fiber shell, potting them in thermal epoxy so the drone's slipstream cools them directly.

3. PCB Ground Plane Spreaders: If you are designing a custom carrier board for the FLIR Lepton, use thermal vias under the ESP32 module to dump heat into the bottom copper ground plane. The PCB itself becomes a secondary heatsink.

Reading the Failure Signatures of Thermal Stress

How hot is too hot? Silicon physically survives up to 125°C, but your system architecture will fail long before the silicon melts. You must recognize the specific failure signatures of thermal stress to debug your drone in the field.

  • Compute Throttling (80°C+): The Pi 5 firmware drops the CPU clock from 2.4GHz to 1.5GHz. In a thermal drone, this manifests as dropped frames on the RTSP video stream. If your ground station shows a stuttering thermal feed but your ping is fine, check the Pi's vcgencmd get_throttled output via SSH.
  • Sensor FFC Lockup (70°C+): The FLIR Lepton uses a mechanical shutter for Flat Field Correction (FFC). As the sensor die approaches its limits, the internal thermistor triggers constant recalibrations. You will hear the shutter clicking every few seconds, and the image will exhibit severe fixed-pattern noise.
  • PMIC Brownouts (90°C+ on board): The Raspberry Pi 5 uses a dedicated Renesas DA9091 Power Management IC. If the board's ambient heat soaks the PMIC, its internal resistance rises, and the 5V rail sags below the 4.65V threshold. The Pi will throw a low-voltage warning (lightning bolt icon) and reboot mid-flight, even if your bench power supply is rated for 5A. According to the official Raspberry Pi 5 hardware documentation, ensuring adequate 5V/5A PD delivery is useless if the onboard PMIC is heat-soaked.

By treating your drone payload as a closed-loop thermal system—calculating the exact RθSA requirement, respecting derating curves, and isolating your voltage regulators—you can fly a DIY thermal drone in 35°C ambient weather without losing a single frame of telemetry or video.