Projects / Ideas / Blue Pill rotary encoder volume knob

Blue Pill rotary encoder volume knob

IntermediateAudio & MusicIdeaReviewed
In short

How do you build a blue Pill rotary encoder volume knob?

A Blue Pill reads a KY-040 rotary encoder with timer-based quadrature decoding and shows a volume bar on an OLED, with a push to mute. You need STM32 Blue Pill (STM32F103C8T6), Rotary encoder module (KY-040), SSD1306 OLED Display and Breadboard 830 Tie Points.

Level
Intermediate
Time
About 160 min
Parts
4
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Read a rotary encoder reliably without missed steps.

How to build it

  1. Wire the encoder to timer pins
  2. Set the timer to encoder mode
  3. Read the count
  4. Limit it to a range
  5. Show a volume bar and mute on push

Related projects

Common questions

What parts do I need for the blue Pill rotary encoder volume knob?

STM32 Blue Pill (STM32F103C8T6), Rotary encoder module (KY-040), SSD1306 OLED Display and Breadboard 830 Tie Points.

How long does the blue Pill rotary encoder volume knob take to build?

About 160 minutes for a intermediate maker.