Lesson Plan

Project Overview

Expand your Arduino programming skills with while loops and RGB LEDs. You’ll wire an RGB light and write code that controls its red, green, and blue channels.

Materials

Need materials? Purchase the Magic Box Kit at our e-store.

Classroom sets available. Contact us at info@barnabasrobotics.com to inquire.

Tutorial Video

Magic Box 2.0 - S1E7 - Intro to While Loop on Arduino, Wiring and Coding RGB Light

Video length: 40:30

Key Topics

  • Using while loops
  • Wiring an RGB LED
  • Controlling RGB channels in Arduino code

Before Moving On

Make sure your circuit and code from this lesson work reliably before continuing to the next episode. Save your code so you can build on it in later lessons.

What’s Next?

In Lesson 8, you’ll use Arduino to fade an RGB LED and create smooth rainbow color effects.


Additional Resources

Videos

Documents

Other