Course

Python and CoDrone EDU

This course is designed to introduce students to Python programming in a way that is approachable for beginners while still building a strong foundation in core computer science concepts. Using Python with the CoDrone EDU, students will learn how to write text-based code to control the drone and interact with its sensors. Learners can start this course after completing the Blockly curriculum, or begin directly with Python if they are ready to dive into text-based programming.

This course uses:
CoDrone EDU CoDrone EDU / CoDrone EDU (JROTC edition)
Python Python
Timeframe
Quarter
Total lessons
27 lessons
Difficulty
Unit
4 lessons

Getting to Know Your CoDrone EDU

In this Unit students will learn everything there is to know about the CoDrone Edu including: drone and controller parts, safe flying skills, piloting, controller features, displays, and settings, and troubleshooting.

Lesson 1.1

Introduction to CoDrone EDU

This lesson will introduce students to what drones are and how they are used. Students will also begin to familiarize themselves with the CoDrone EDU and it’s components.
Lesson 1.2

Before You Fly

Safety is the number one priority of any pilot. Learn about how to fly the CoDrone EDU safely and how to prevent damage to your drone before it even leaves the ground.
Lesson 1.3

The Controller

Learn the fundamentals of the controller, including what the buttons do, what the settings are, and how to pilot your drone. If it's your first time using the CoDrone EDU, you will definitely want to go through this lesson before flying.
Lesson 1.4

Troubleshooting

As with any technology, sometimes students might run into issues that they have to work through. This lesson teaches students the skills to troubleshoot different scenarios that may arise while using the CoDrone EDU.
Unit
6 lessons

Basic Movements

In this Unit, students will learn how to control the CoDrone EDU using Python. They will explore how pitch, roll, throttle, and yaw control movement, and write programs that make the drone take off, hover, land, and fly along specific paths. Students will also be introduced to variables, operators, and loops to make their programs more efficient and adaptable.

Lesson 2.1

First Flight

The first flying lesson using Python! Learn how to program your drone to take off, hover in place, and land safely.
Lesson 2.2

Flight Movements: Roll and Pitch

Learn how to use Python to control your drone’s forward, backward, and side-to-side movement with pitch and roll, combining them to fly along a path.
Lesson 2.3

Flight Movements: Throttle and Yaw

Learn how to use Python to control your drone’s turning and vertical movements with yaw and throttle, creating more complex flight paths.
Lesson 2.4

Introduction to Variables

Learn how to create and use integer and float variables in Python to make your drone programs more efficient and flexible.
Lesson 2.5

Operator and String Variables

Learn how to update variables with math operators and use strings to add context, making your drone programs even more flexible, clear, and easy to adjust.
Lesson 2.6

For Loops

Learn how to use for loops in Python to repeat actions, simplify your code, and make your drone fly patterns like squares or gradual takeoffs and landings.
Unit
8 lessons

Feedback and Control Structures

In this Unit, students will learn how to make their drone programs more interactive and responsive using feedback and control structures. They will program LEDs and buzzers to provide visual and audio feedback, use random values to create variety, and apply loops and conditionals to make the drone respond to real-time conditions like battery level. Students will also learn how to measure time within their programs and use it to control when certain actions happen.

Lesson 3.1

LEDs

Learn how to use Python to control the LEDs on your drone and controller, combining RGB values to create colors that give visual feedback during flight.
Lesson 3.2

Buzzers

Learn how to use Python to control the buzzers on your drone and controller, using frequencies and notes to create sounds that provide audio feedback during flight.
Lesson 3.3

Random

Learn how to use Python to add randomness to your programs, using the randint() function with LEDs, buzzers, and flight movements to create unique lights, sounds, and behaviors every time your code runs.
Lesson 3.4

Battery and While Loops

Learn how to use Python to check your drone’s battery level and use while loops to repeat actions while it has enough power, then land safely when the battery gets low.
Lesson 3.5

Conditionals: If and Else

Learn how to use if and else statements in Python so your drone can react to different situations, like following green, yellow, and red traffic-light rules.
Lesson 3.6

Conditionals: Elif

Learn how to build on if and else statements by adding elif, so Python can check conditions in order and make your drone respond in different ways based on which condition is true.
Lesson 3.7

Timers

Learn how to use time as a condition in a while loop, compare time() and ctime(), and control how long your drone performs actions by measuring elapsed time.
Lesson 3.8

Boolean Logic

Learn how to use Boolean operators like AND, OR, and NOT to combine conditions, so your program can make more complex decisions and control how a drone behaves.
Unit
5 lessons

Sensors

In this Unit, students will explore the sensors on the CoDrone EDU and learn how they help the drone understand and respond to its environment. They will use sensors to measure height, distance, color, temperature, air pressure, and rotation, then write programs that have the drone respond to those readings in different ways. By using sensor data to interact with its surroundings, students will begin creating more autonomous programs where the drone can adapt to changes in its environment.

Lesson 4.1

Introduction to Sensors

Learn how drones use sensors to collect data, view that data in the Sensor Dashboard, and print sensor values in a program to observe how a drone detects and responds to its environment.
Lesson 4.2

Temperature and Air Pressure Sensors

In this lesson, students will use the CoDrone EDU’s built-in temperature sensor and barometer to collect and interpret real-world weather data through programming.
Lesson 4.3

Gyroscope Sensors

In this lesson, students will learn how the CoDrone EDU’s gyroscope works and how to program it.
Lesson 4.4

Bottom and Front Range Sensor

In this lesson, students explore how drones use range sensors to detect objects and measure distance.
Lesson 4.5

Color Sensor

In this lesson, students will explore how the CoDrone EDU uses its color sensors to detect and identify different colors.
Unit
4 lessons

Functions and User Input

In this Unit, students will learn how to make their programs more efficient and interactive using functions, user input, and lists. They will define functions to reuse sections of code, return and store values for later use, and respond to user input to control the drone in real time. Students will also explore how to customize the controller’s buttons and joysticks to create more personalized programs.

Lesson 5.1

Void Functions

In this lesson, students will learn how to use void functions to execute standalone actions in their programs.
Lesson 5.2

Return Functions

In this lesson, students will learn how to use return functions to send values back from a function so they can be stored and reused in their programs.
Lesson 5.3

User Input

In this lesson, students will learn how to use the input() function to make their programs interactive.
Lesson 5.4

Lists

In this lesson, students will learn how to use lists to store and organize multiple values under a single variable name in their programs.