Course: Programming with CoDrone Lite
10-Final Challenge: LEDS Show with CoDrone Lite

  • 4-7 grade
  • Beginner

Lesson Description:

Students may have seen that their drones have LED lights, but they have not had the opportunity to do anything with them in previous lessons. In this lesson, students will learn how to program their CoDrones LEDs and will then choreograph a drone light show, using all their previous knowledge.

  • Create and run a program in Snap to change the LED colors on different parts of their drone
  • Update an existing code with LEDs
  • Work with classmates to choreograph a drone light show

image description

Lesson Modules

Teaching Tips:

  • Ask students what they think quadcopters, especially their CoDrone, can do. Ask if they’ve ever seen a drone light show and then show them the videos below. After it’s finished, ask them if they have any observations, thoughts, or questions, and then ask what they think some of the difficulties of planning a drone light show would be.

          Video: The Making of Walt Disney World’s First Drones Show

          Video: Wonder Woman Drone Light Show

Look at the videos and answer the following question.

What are the challenges in programming a drone light show?

Teaching Tips:

  • Students have a chance to experiment with lighting up different parts of their drone in different colors, make sure they also complete the Colorful Figure Eight Challenge. If they saved their Figure Eight Challenge code from the Flight Movements 2 lesson, they will be able to modify just by inserting LED control blocks.

LED control

The LED control block in the gray CoDrone menu is exactly what it sounds like --- it lets you control the CoDrone's LEDs! You need to set three things within the block:

  1. The first drop-down menu is the mode and lets you select which LEDs will light up and the pattern they will display.
  2. The second drop-down menu lets you choose which color to display in the pattern.
  3. The value space is the time and lets you control the speed of the pattern. If you chose a hold pattern, this will let you control the brightness of the LEDs.

If you want to make multiple LED changes in your program, you can do that! All you need to do is include an LED control block for each change you want. Make sure to separate them with a wait secs block so your CoDrone has time to receive each of the commands.

Modes and colors

Mode options:

The mode sets the LEDs in the CoDrone's eyes and arms to different patterns.

  • Eye and Arm Hold will keep the LEDs on.
  • Eye and Arm Mix will cycle through all of the colors.
  • Eye and Arm Flicker will turn the LEDs on and off very quickly.
  • Eye and Arm Flicker Double will turn the LEDs on twice and then off before starting again.
  • Eye and Arm Dimming will have the LEDs fade in and out gently.
  • Arm Flow will turn each arm LED on and then off before moving to the next arm. Arm Flow Reverse is the same thing, but in the opposite direction!

 Color options:

You have a lot of options to work with! For a complete list, click here. Anything that is highlighted in black will not actually have a black background --- it was just used to provide enough contrast for you to see. Just know that some of them look very similar to each other and if you have two similar colors next to each other in your program, it may not look like the LEDs are changing.


Time lets you control how many times your pattern changes per second, and you can pick a number from 1 to 100! For example, if you chose flicker and have a time of 47, your LEDs will blink 47 times per second.

However, if you chose hold, time controls the brightness of your LEDs. 0 is so dark you can barely see it, and 100 is full brightness.

Test it out!

To start your code, select the when green flag clicked button, connect an LED control block to it, add a wait secs block, and then repeat as many times as you need to until you have the lights you want! Play with the different patterns, colors, and times to see what you like.

Are you in a group with a lot of CoDrone pilots? Try to make a color and pattern mix that's unique to you so you can tell your CoDrone apart from the others!

Teaching Tips:


  • Ask students to use pseudo code to explain to a partner how they were able to change their drone’s LEDs during the Figure Eight Challenge in Snap using both their own words and the appropriate academic language.

Elaboration: (Extension)

  • Assign students to groups and have them choreograph a drone light show. They can look up light shows and drone shows for inspiration, and for an extra challenge, they can also use school-appropriate music and time the lights and/or movements of their drones to it!


Activity: Colorful figure eight

Choreograph a light show using what you learned from this lesson and your figure eight code from " Flight movement lesson"

Challenge Rules:

  1. Use your figure eight code from the previous lesson.
  2. Add in a different color or pattern for each of the CoDrone's movements.


Teaching Tips:

Explain your Colorful Figure Eight program using pseudocode.

What was the most challenging part about working in a large team? What did you enjoy the most?

Did you have any problems running your code or using your drone? If so, what did you do to fix them?