Lesson Plan
Project Overview
Use Arduino code to smoothly fade an RGB LED and mix red, green, and blue light to create a rainbow of colors for your Magic Box.
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 - S1E8 - How To Fade RGB Light On Arduino And Make Rainbow Colors
Video length: 48:54
Key Topics
- Using PWM-style values to fade an RGB LED
- Mixing red, green, and blue
- Creating rainbow color transitions
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 9, you’ll add a potentiometer and learn how Arduino can read changing analog input values.