USB Volume Knob

This is part 2 of 3 in the series USB Volume Knob
  • %post_shorttitle_linked%
  • %post_shorttitle%
  • %post_shorttitle_linked%

I wanted to build a USB volume knob (with mute button) just like in the Trinket USB Volume Knob tutorial using an Adafruit Trinket and a rotary encoder.

To get started with your Adafruit Trinket, first install the required drivers and add the board to your Arduino IDE.

USB Volume Knob WiringThen, wire your rotary encoder to the Trinket pins as shown on the right. I also added some heat-shrink tubing around the solder joints of the rotary encoder’s pins as shown in the image at the top to avoid any accidental contact between them.

Next, download the Trinket USB Library and copy the TrinketHidCombo folder contained within that zip file to your %USERPROFILE%\Documents\Arduino\libraries\ folder.

Then restart the Arduino IDE and load the example sketch: menu File » Examples » TrinketHidCombo » TrinketVolumeKnobPlus

Finally, from the Tools menu:

  1. menu Tools » Board » Adafruit Trinket 8MHz
  2. menu Tools » Programmer » USBtinyISP

That’s it! You can now upload the sketch to the Trinket (menu Sketch » Upload) right after pressing the reset button.

The only thing left now is to find a suitable enclosure to fit it all in, as well as a nice big knob to put on top of the rotary encoder.

« Adafruit Trinket ProgrammingHIDSerial Problems »

You may also like...

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.