A developer autonomously piloted a DJI Tello drone using Claude 3.5 Sonnet, with the entire hardware budget coming in at just $100 — the experiment was detailed in a Hacker News thread that garnered 132 points. The project demonstrates a practical, low-cost entry point for testing LLM-driven embodied AI.
LLM: Claude 3.5 Sonnet | Hardware: DJI Tello Drone ($100) | Control: Full Python autonomy
Key Output: Self-written and self-executing flight code
How Claude Controlled the Drone
The process bypassed manual coding. The developer provided Claude 3.5 Sonnet with the drone's Python SDK documentation and a high-level goal: "take off, perform a square flight path, and land." Claude then generated the necessary control code in real-time. This code was executed locally, sending commands directly to the drone via WiFi. The LLM handled the entire logic chain, from parsing the SDK to implementing flight mechanics.
The system operated in a closed loop: Claude wrote the code, the host machine ran it, and the drone performed the actions. No pre-written flight scripts were used.
The Technical Setup and Workflow
The experiment required minimal infrastructure. The core components were the DJI Tello drone, a standard computer, and access to the Claude API. The Tello was chosen for its programmable Python SDK and low cost.
The workflow followed three steps:
- Prompting: The user gave Claude the objective and the official djitellopy library documentation.
- Code Generation: Claude produced a complete Python script with error handling and flight logic.
- Execution: The user ran the script, which established a WiFi connection to the drone and executed the autonomous flight pattern.
Claude's Output (Abridged): Included "Example of the interaction"
User Prompt: "Using the djitellopy library, write a script to make the Tello drone take off, fly in a 50cm square, and land."
Tello() object initialization, connect(), takeoff(), sequential move_forward(50), rotate_clockwise(90) commands, and a land() function call with try/except blocks for safety.
Pros and Cons of the LLM-Pilot Approach
This method offers specific advantages and reveals current limitations.
Advantages:
- Rapid Prototyping: Eliminates hours of SDK study and manual coding for simple autonomous behaviors.
- Accessibility: Lowers the barrier to robotics experimentation, requiring only prompt engineering skill.
- Adaptability: The same LLM can generate code for different tasks (e.g., "follow a color," "avoid walls") without switching tools.
Limitations and Risks:
- Latency: The cycle of prompt->code->execute is slower than a dedicated, compiled control system, unsuitable for real-time reaction.
- Safety Hallucinations: An LLM might generate logically correct code that is physically unsafe (e.g., aggressive maneuvers indoors). Human-in-the-loop verification is mandatory.
- Hardware Constraints: The Tello's basic sensors (no LiDAR, limited camera use in this experiment) restrict the complexity of tasks LLMs can reasonably design for.
Bottom line: A powerful proof-of-concept for iterative robotic behavior design, but not a replacement for real-time control systems.
Alternatives for Drone Automation
Claude is not the only path to autonomous drone control. The experiment sits between manual coding and full-stack AI pilots.
| Feature | Claude 3.5 + Documentation | Pre-Written Scripts (e.g., OpenCV) | Specialized AI Pilots (e.g., SkyNav) |
|---|---|---|---|
| Development Speed | Minutes for new behaviors | Hours/Days of manual coding | Months of model training |
| Flexibility | High (any describable task) | Low (hard-coded only) | Medium (trained for specific domains) |
| Hardware Requirements | Low ($100 drone + API) | Low ($100 drone) | Very High (research-grade drones) |
| Real-Time Performance | Poor (multi-second cycles) | Excellent (millisecond latency) | Good (optimized neural nets) |
For developers, pre-written scripts with libraries like OpenCV remain the standard for reliable, real-time computer vision tasks. Research projects like NVIDIA's Isaac Sim or Microsoft's AirSim provide high-fidelity simulators for training embodied AI models before real-world deployment, a crucial step this Claude experiment skipped.
Who Should Try This Approach
This method is a targeted tool, not a universal solution.
Use this approach if you:
- Are a developer or researcher exploring LLM applications in physical spaces.
- Need to quickly prototype high-level drone behaviors for concept validation.
- Want an educational tool to demonstrate the intersection of LLMs and robotics.
Avoid this approach if you:
- Require real-time, low-latency control for stability or obstacle avoidance.
- Are building a commercial or safety-critical product.
- Lack the capacity for direct hardware supervision and safety oversight.
Practical Next Steps and Implementation
To replicate or build upon this experiment, start with the verified hardware and software chain.
- Acquire Hardware: Purchase a DJI Tello drone (~$100).
- Set Up Environment: Install Python and the
djitellopylibrary (pip install djitellopy). - Access the LLM: Use the Claude API or another capable code-generating model like GPT-4o.
- Provide Context: Supply the model with the DJITelloPy documentation and a clear, safety-focused prompt.
- Execute with Caution: Always test generated code in a safe, open environment with emergency stop procedures.
The experiment underscores a shift: the challenge in lightweight embodied AI is less about writing code, and more about designing safe, effective prompts and validation frameworks for the code that LLMs now write autonomously.

Top comments (0)