Before a flying Star Wars training droid can interact with an opponent, it needs to know where it is. On Hackaday.io, project owner Roeland54 and collaborators frederiek.vandepitte and WimB tackled that problem with a miniature quadcopter, infrared LEDs and Wii remotes. Their training droid project, created on March 25, 2014, makes an interesting robotics case study: getting a position measurement is one milestone; making it reliable enough to steer by is another.
The supplied build logs run through April 28, 2014. They document computer-controlled flight experiments and stereo tracking, rather than a finished opponent-interacting droid.
Keeping the brains on the ground
The aircraft was a Walkera LadyBird mini quadcopter. Instead of moving the navigation software onboard, the team used a computer running C# to read the Wii remotes, calculate corrections and pass commands through an Arduino Duemilanove to the RC transmitter.
That arrangement let them automate selected controls while leaving the others under manual control. It also gave them a convenient place to adjust the controller: their Windows interface displayed the detected infrared point, accepted a target position by clicking on a grid, and exposed PID gains and output limits for live tuning.
First, though, the Wii remotes needed something to see. In the April 9 tracking-marker log, Roeland54 described adding infrared-emitting diodes to the quadcopter and ordering surface-mount LEDs with a wider, 140-degree emission angle. The aim was to keep the aircraft visible from different directions. The selected wavelength was 940 nm, which Roeland54 identified as the Wiimote’s most sensitive wavelength.
That small hardware choice mattered to the larger design: a tracking marker has to remain detectable as the aircraft changes orientation, not just when it faces the sensor neatly on a bench.
Two controlled axes, then a third dimension
Early flight attempts were uneven. An April 15 entry reported an unsuccessful attempt, while the April 24 log described throttle-only tests intended to bring the quadcopter to a chosen height and tune the PID controller.
By April 25, the team reported testing computer control of both throttle and roll using one Wiimote’s two-axis view. Roeland54 described the throttle adjustment as working well, with roll still needing adjustment. The remaining flight controls stayed available through the RC transmitter.
A second Wiimote offered a route from a two-dimensional sensor view to an x, y, z position estimate. In the team’s stereo geometry, each remote supplied a viewing direction toward the infrared marker. They calculated two coordinates from the intersection of those directions and averaged the vertical readings under their stated alignment assumption.
The April 28 stereo-vision log also separated the tracking space into useful regions: areas neither remote could see, a blind spot, areas visible to only one remote, and the overlap where both could provide stereo information. The team suggested that a single-remote reading might help guide the aircraft back into that overlap; the excerpt does not report implementing that recovery behavior.
When tracking becomes flight control
The decisive result was less cinematic than the original goal, but more instructive. Frederiek.vandepitte reported that stereo tracking worked well when the quadcopter was moved slowly. With the aircraft flying, however, the remotes sometimes returned incorrect values, causing crashes.
That changes the next engineering question. Tuning a PID controller can improve its response to a measured position, but the reported failure puts the measurement itself under scrutiny. A useful next experiment would distinguish valid stereo fixes from single-sensor observations and suspect readings, then test how the controller should respond to each. That is a proposed direction, not a feature established by these logs.
Roeland54 announced the C# code release on April 28, linking the project repository. For anyone studying the approach, the most valuable boundary is the one the flight tests exposed: seeing a moving aircraft and safely closing a control loop around it are different problems. Before adding more droid behavior, the position estimate needs a clear answer to a simpler question—when should the controller trust it?
Source: Star Wars training droid
