Back to writingNov 20265 min read

EECS 195 Drone, from assembly to waypoint flight

#EECS 195#Drones#Dev notes

This term I’m taking Peter Burke’s EECS 195 drone course at UC Irvine. Six of us worked as a team to build a 4-inch ArduPilot quadcopter from parts. I did some of the soldering and airframe assembly, and handled all the software and firmware setup myself.

It didn’t go smoothly for us, though we still ended up as the second team to complete the outdoor waypoint mission at the ARC.

The flight controller started smoking

At first the assembly and soldering seemed to go very smoothly. Then, before the first flight, the flight controller suddenly started smoking for no reason we could find. We had powered it up several times before with no trouble, and it chose the moment right before our checks to smoke. I’m confident we followed the standard procedure, so the board itself may simply have been defective. Just bad luck.

We had to swap the flight controller. The course had no spares, so we took one from another team. Its pin headers had been put in backwards and were already soldered in place. We cut off every pin, cleared the solder with a desoldering pump, then put the headers in the right way around and soldered them again. The power cable and all the other wiring had to be redone as well. In every sense this meant rebuilding the whole drone, and before the smoke we had been almost finished.

Things never go that smoothly, though. Once everything was assembled and wrapped in electrical tape, we found that one motor’s ESC wires were connected backwards. We had to take it apart and redo them, which took a long time again.

Just when we all thought we were done, this flight controller turned out to have a problem too. The EP2 receiver couldn’t talk to it. The flight controller again. By then I was close to losing it. We had worked from eleven in the morning until seven that evening, and it all came to nothing.

So we started a third build, this time with a new flight controller. It took several more hours, but nothing else went wrong and we finally got it finished.

Flight controller, radio and onboard computer

The flight controller is a Matek F405-WMO running ArduPilot. Flashing the firmware, at least, went very smoothly. Good thing, too, because I really couldn’t have handled another problem. After flashing, I configured the radio channels, flight modes, motor direction and the compass.

The radio is a RadioMaster Pocket running EdgeTX, and the receiver on the aircraft is an ExpressLRS EP2. Video goes over a separate link. An AKK A11T camera sends its picture over 5.8 GHz to an FPV display on the ground.

The frame also carries an Orange Pi Zero 3W with a heatsink and fan. I installed its operating system and configured MAVLink Router. Data comes in from the flight controller’s UART, and MAVLink Router then makes it available over TCP to the ground station and to programs on the Orange Pi. Burke provides a MAVLink Router installer for this part. It covers enabling the serial port, access permissions, the routing configuration and starting the service at boot.

First takeoff

The flight labs start with manual flying in a 10-foot cage, move on to GPS waypoint missions in a 20-foot cage, and finish outdoors at the ARC.

Our first takeoff was in the 10-foot cage. The GPS and the rest weren’t installed yet, we skipped the arming checks, and we flew in Stabilize mode. In the cage there was hardly any way to correct it, and the aircraft shot off at an angle as soon as it left the ground. But at least it took off.

The LLM

Before the waypoint missions, the course also had a Python and LLM lab. A script on the Orange Pi reads battery telemetry, calls a model API and uses the answer to decide whether to keep flying or command a landing. This one takes place inside the flight cage.

The script the professor provided uses Portkey by default, which was said to be free for students. When I read the instructions, it turned out to be free for graduate students, and we undergraduates couldn’t use it. I happened to have some Anthropic API credit already, so I changed the script to use that.

Waypoints in the cage and at the ARC

In the 20-foot cage, Mission Planner kept reporting High HDOP and refused to arm. In DroneStats I could see that the actual HDOP reading was 1.8, and in that environment there was no way to improve it. So we raised the HDOP limit slightly, from 1.4 to 1.8, and that more or less solved it.

When everything seemed ready and we were about to head outdoors, we suddenly found that the radio’s controls were reversed, and the voice callouts that should go with them were missing. I hadn’t noticed either of these before. Fortunately it took only an hour to fix.

The remaining tasks mostly passed on the first try. The outdoor waypoint mission is stored on the flight controller beforehand, and ArduPilot handles the automatic takeoff, the route and the landing. In November 2026 our aircraft completed its autonomous waypoint mission at the ARC.

DroneStats, written outside class

Outside class, I also wrote DroneStats for this aircraft. Mission Planner shows the most information, but its interface is very dated and it isn’t intuitive. And since the aircraft already carried an Orange Pi, using it only to run one simple Python script seemed like a waste to me.

It runs on the Orange Pi, reads the MAVLink Router feed and shows attitude, position, battery and flight controller status in a browser, on a computer or a phone. The HDOP reading I mentioned above came from it. On real flights I only use it to monitor telemetry. I verify waypoint editing and the control functions in ArduPilot SITL.

Photos of the aircraft and the parts list are on the EECS 195 Drone project page.

Search

Quick actions