Loading…
TechNest
Code autonomous drones
Explore and get curious
2 steps
Try things, experiment
2 steps
Go deep, master it
2 steps
Explore & Discover
Watch "How Drones Work" on the SciShow or Real Engineering YouTube channels to understand what actually makes a drone fly — motors, propellers, gyroscopes, and flight controllers all working together. Then search YouTube for "DJI Tello programming tutorial" to see what it looks like when someone controls a drone with code instead of a remote. Utah has real drone activity: search "Utah drone laws" on the FAA website to learn where you can and can't fly locally. You do not need a drone yet — just explore the ideas. You're ready for the next step when you can explain what a flight controller does and name two places near Salt Lake City where recreational drone flight is allowed.
Learn the Basics
Install Python on your computer for free at python.org, then download the Tello SDK documentation from the DJI developer site. Watch "Python for Beginners" on the official Python YouTube channel to get comfortable with variables, loops, and functions — you will use all three to control a drone. Practice writing simple Python scripts that print messages and use loops, even without a drone. The free site Codecademy.com has a Python basics course if you want structured practice. Drone code is just Python code that sends commands instead of printing text. You're ready for the next step when you can write a Python script that uses a loop and a function without looking at a tutorial.
Build Your First Project
Connect to your Tello drone over Wi-Fi and send your first commands using Python. Use the DJI Tello SDK and the free "djitellopy" library — install it with one line in your terminal: pip install djitellopy. Write a script that takes off, hovers for three seconds, and lands. Test each command one at a time before combining them. Always fly in a safe open space with no people nearby — a backyard or empty gym works great. If something goes wrong, the drone has automatic safe landing. Write comments in your code explaining what each line does. You're ready for the next step when your Python script successfully commands the drone to take off, hover, and land on its own.
Experiment & Iterate
Write a script that flies the drone in a geometric shape — a square, triangle, or figure-eight. This requires combining forward, turn, and timing commands precisely. Start with a square: fly forward, rotate 90 degrees, repeat four times. Test outdoors at a park with open space, like Jordan Park or Liberty Park in Salt Lake City. Each time it does not fly the shape correctly, debug your code — check the timing values and turn angles. Experiment with speed settings to see how they affect accuracy. You're ready for the next step when your drone successfully completes a full square flight path that you can describe in code and verify by watching it fly.
Advanced Techniques
Add the drone's front camera to your program using OpenCV — a free Python library for computer vision. Install it with pip install opencv-python. Write code that streams the camera feed to your screen while the drone flies. Then add one intelligent behavior: detect a specific color (a bright orange cone, for example) and make the drone turn toward it automatically. Search YouTube for "OpenCV color detection Python tutorial" for step-by-step help. This is how real autonomous drones navigate. You're ready for the next step when your drone streams live video to your computer AND reacts to detecting a specific color by changing its flight direction.
Final Project Showcase
Design and execute an autonomous mission: a sequence of at least five programmed movements with at least one computer-vision decision built in. Document your mission with a flowchart before you code it — draw out what the drone should do at each step, including what happens if the camera sees the target or doesn't. Record the full flight on video. Post your code to GitHub (free account) with a README explaining your mission and how the vision detection works. Share the video to the r/tello or r/learnpython community. You're ready for the next step when your mission code is on GitHub, the flight video is recorded, and you can walk someone through every function in your script.
Recommended materials and resources for this quest.
DJI Tello Programmable Drone
RequiredThe Tello is the go-to beginner drone for programming. It has a full Python SDK, a front camera, stable indoor hovering, and safety features that make it forgiving while you are learning. It connects to your computer over Wi-Fi — no special hardware needed.
amazon
$90–$110
Spare Tello Propeller Set
RequiredPropellers break during learning — it is not if, it is when. Having a spare set means you are back in the air in two minutes instead of waiting a week for shipping. Always fly with extras on hand.
amazon
$10–$18
Tello Battery 3-Pack
The Tello battery lasts about 13 minutes per charge. A three-pack keeps your coding sessions flowing without constant 90-minute charge breaks interrupting your momentum at the advanced stages of this quest.
amazon
$30–$45
Some links may be affiliate links. We may earn a small commission at no extra cost to you.