RackedPrice

Disclosure: We earn a commission from some links on this page. Details

Make a mood light with a knob

Turn a knob to change the color of a strip of lights. A fun first project.

Make and tinker1 hourEasy

Drafted with AI assistance, fact-checked and approved by RackedPrice.

  1. Click the Qwiic Twist knob and the LED Stick onto a RedBoard Qwiic.
  2. Install SparkFun's libraries for both from the Arduino IDE's library list.

    Sketch > Include Library > Manage Libraries. Search and install SparkFun Qwiic Twist, then SparkFun Qwiic LED Stick.

  3. Open the LED Stick example and check the lights come on.

    New to the Arduino IDE? Our electronics how-to covers picking the board and uploading.

  4. Read the knob's position and use it to pick the color.

    Start from the Twist's first example, which prints the knob's count. Copy the LED Stick's setup lines into it, then set the color from the count.

Build guide

Ready for a bigger build?

Our project guides walk through a whole build, with a parts list priced by our tracker.

See the projects

Shopping (optional)

What you'll need

SparkFun doesn't share prices with us, so check the price on its page.

More make and tinker how-tos