DEV Community
UAV Balloon Popper
This is a submission for the MLH x DEV Writing Challenge What I Built Sometime after midnight at HackUMass, I held a phone up to a Raspberry Pi camera. The phone showed a picture of a red balloon. On the table, a 3D-printed flying wing twitched its elevons. When I moved the phone left, the wing banked left. When I moved it up, the nose pitched up. The plane couldn't see me or the phone, only the balloon, and it was trying to fly at it. That was UAV Balloon Popper, a small autonomous plane that hunts down stray balloons. Why balloons? The idea started with drones. Watching the war in Ukraine, I kept seeing the same problem: cheap drones are cheap to build and expensive to stop. Interceptor missiles can cost far more than the drones they shoot down. Police in the Netherlands once trained eagles to snatch drones out of the air, and I loved that idea of a hunter that doesn't need a missile. My teammate Mohamed and I wanted to build our own eagle: a cheap plane with a camera and a computer that could find a target and chase it down by itself. There was one problem. We didn't have any drones to hunt. We did have balloons, and we grew up playing Bloons Tower Defense 6, a game that is entirely about popping balloons. So balloons became the target. The detector still recognizes drones, so the same pipeline works on both. How it works The plane is a flying wing with an INAV flight controller, a Raspberry Pi 5 and a Camera Module 3. The pilot flies it normally with a RadioMaster Zorro radio. When the pilot flips a switch, the Pi takes over: See. A YOLO11n model on the Pi looks for balloons and drones in every frame. Aim. The Pi turns the detection into an angle, then subtracts the plane's own roll and pitch so the target doesn't appear to swing around every time the plane banks. Lead. Proportional navigation, the guidance law interceptor missiles use, steers the plane onto a collision course instead of a curving chase. Steer. The Pi sends bank and pitch targets to the flight controller, while a 15 ft altitude floor keeps it out of the ground. When the pilot flips the switch back, they get control again in under 100 ms. If the Pi crashes, control comes back in about half a second. Claude Opus 5.5 I used Claude Opus 5.5 to help build the guidance system and the Pi-to-flight-controller link. It was strongest on the math: proportional navigation, the coordinated-turn equation that converts a turn rate into a bank angle, and the frame-of-reference work that removes the plane's own motion from the camera image. When we found out the board ran INAV instead of Betaflight, it helped me redesign the control path around logic conditions instead of starting over. It can't see the hardware, so every sign and direction still had to be checked on the bench, but it let a two-person team cover a lot more ground in one weekend. What I learned (mostly the hard way) Read the firmware before you design around it. We planned the whole control system around a Betaflight feature that lets a companion computer override the radio. On the bench we ran version and found out the board was running INAV, which doesn't have that feature. We rebuilt the link around INAV's logic conditions: a chain of 14 rules that apply the Pi's targets only while the switch is up and the Pi's heartbeat is fresh. A dataset has to match the job. Our first balloon detector was great at finding balloons at birthday parties. Public balloon datasets are full of indoor party photos and hot-air balloons, and none of that looks like a small balloon against open sky. We filtered hard, retrained, and tested on real sky photos. The final model found a balloon in all 43 sky test images with zero false alarms. Use the multimeter before you plug in the battery. Our 6S battery puts out around 25 V. We fried our buck converter because we connected it before checking the output. It took one second to break and a lot longer to fix. SSH is a superpower. I'll come back to this one. Demo toyJig / UAV-Ba...
Powered by Readybot.io
External Link
Platform
You are about to visit:
https://example.comThis will open in a new tab. Make sure you trust this link.