Lesson Plan

Project Overview

Bring several concepts together by reading a potentiometer and using its value to control both servo position and RGB color with Arduino.

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 - S1E11 - Controlling Servo and RGB with Potentiometer using Arduino

Video length: 40:58

Key Topics

  • Reading a potentiometer
  • Mapping input values to servo position
  • Controlling servo motion and RGB color together

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 12, you’ll give your Magic Box more personality by adding LEDs, a pushbutton, and a programmed “laugh.”


Additional Resources

Videos

Documents

Other