04Teledyne FLIR (Aeryon Labs)Sept – Dec 2025
Sonar and failure analysis
A 61 Hz sonar fault, STM32 bring‑up and a crash root cause
~61 Hz supply ripple traced as the sonar fault
Fig. 00Four channels on the sonar. Where the scope was connected, and what it showed.
At Teledyne FLIR I worked on drones already in customers' hands. The job was to find out why something failed in the field and prove a fix before it shipped.
Sonar that broke above 4,000 RPM
The sonar read correctly up to 3,000 RPM and badly at 4,000 to 4,500. I put four scope channels on the sonar trigger, the receiver threshold, the analog 3.3 V rail and the battery rail. A ripple near 61 Hz showed up on the supply and on the threshold, which shifts when the echo is detected. Adding an RC filter made it worse, which told us the supply and ground were moving under load.
The fix I proposed
Swap the op-amp for one with 20 to 30 dB better supply rejection at low frequency, give the analog rail its own filtered feed and filter the battery input. Then test one modified arm against a stock arm, measuring ripple and range jitter before changing anything else.
Sonar firmware on an STM32
The sonar board was moving from an AVR to an STM32F0. I got the Docker build running on Linux, added timer and interrupt pins, flashed and stepped through the code with J-Link and GDB, and checked for ranging messages on the CAN bus. When a newer build stopped ranging, a clean checkout and rebuild brought it back.
Why a drone fell
During a crash investigation, CAN logs showed one arm's motor controller dropping off the bus mid-flight. On the bench its microcontroller pulled about 0.3 A at 5 V and got hot, while the rest of the drone tested fine. It was a shorted chip on that one arm, not a fault in the whole system.
Thrust stand automation
I wrote a Python script that drives a motor thrust stand over gRPC. It runs throttle schedules on absolute time, keeps the connection alive with a heartbeat thread, retries failed exports, and logs what was sent next to what was applied, which explained an RPM mismatch.
Write-ups
Each test went into Jira and Confluence with the setup, serial numbers, steps, file paths and plots, so the next co-op could carry on.