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.
Drafted with AI assistance, fact-checked and approved by RackedPrice.
- Click the Qwiic Twist knob and the LED Stick onto a RedBoard Qwiic.
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.
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.
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.
Ready for a bigger build?
Our project guides walk through a whole build, with a parts list priced by our tracker.
What you'll need
- Qwiic Twist (knob)Check price at SparkFun
- Qwiic LED StickCheck price at SparkFun
- SparkFun RedBoard QwiicCheck price at SparkFun
SparkFun doesn't share prices with us, so check the price on its page.
More make and tinker how-tos
Set up your first Raspberry Pi
A tiny computer for learning, projects and small home servers.
30 minutesPlug sensors into a Pi (no soldering)
SparkFun's Qwiic cables click in one way only. No soldering, no wiring mistakes.
20 minutesMake a room temperature sensor
See a room's temperature and humidity in Home Assistant, from a sensor you put together.
1 hour