Lesson 9 · Using Arduino To Fade Through Rainbow with RGB And Intro To Potentiometers
Suggested Time: 45-60 minutes
Lesson Plan
Project Overview
Add an adjustable input to your Magic Box with a potentiometer. You’ll learn how Arduino reads analog values and use those values while creating RGB rainbow effects.
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 - S1E9 - Using Arduino To Fade Through Rainbow with RGB And Intro To Potentiometers
Video length: 44:37
Key Topics
- Fading through rainbow colors
- How potentiometers work
- Reading analog input values with Arduino
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 10, you’ll use the potentiometer to control your rainbow effect and begin working with the servo motor.