USB Volume Knob Using DigiSpark and Rotary Encoder

by mahesh_jo in Circuits > Arduino

4640 Views, 14 Favorites, 0 Comments

USB Volume Knob Using DigiSpark and Rotary Encoder

USB Volume Control Knob using DigiSpark and Rotary Encoder
IMG_0090.JPG
digispark.jpg
rotary-encoder.jpg
Wiring.jpg

This is a super cheap USB Volume Control Knob. Some times traditional knobs are more convenient to control things rather than clicking mouse everywhere. This project uses DigiSpark, a Rotary Encoder and Adafruit Trinket USB Library (https://github.com/adafruit/Adafruit-...) and a few female-female jumper wires.

Enclosure and the Knob

IMG_0073.JPG
IMG_0075.JPG
IMG_0076.JPG
IMG_0078.JPG
IMG_0085.JPG
IMG_0082.JPG
IMG_0084.JPG
IMG_0087.JPG

Take any ready made volume control knob or you can use an old detergent bottle cap. I have used an old cap. After cleaning the cap, it is painted black. Take another empty container of face cream and make a hole in its lid. Make another hole in bottom of container so that the wires can go out.

Test the Project

IMG_0080.JPG
IMG_0072.JPG
IMG_0071.JPG
IMG_0068.JPG
IMG_0070.JPG
IMG_0069.JPG
  • Download and install DigiSpark drivers for Windows/Linux/Mac
  • Install DigiSpark Board packages for Arduino in IDE (more details https://create.arduino.cc/projecthub/alaspuresuja...
  • Select the DigiSpark board in Arduino IDE under Tools menu.
  • Download and install Adafruit Trinket USB library from https://github.com/adafruit/Adafruit-Trinket-USB
  • Connect rotary encoder and DigiSpark as per attached wiring diagram. You can test it on a breadboard.
  • Download attached USBKnob.ino and Settings.h. Open the ino file in Arduino IDE and upload to DigiSpark

Test the volume by rotating the Knob. Volume should go up and down. Thats all. So simple.

Final Assembly

IMG_0079.JPG
IMG_0081.JPG
IMG_0089.JPG
IMG_0090.JPG

Screw the encoder through the hole on top of container lid. Because the container is empty, when the Knob is rotated the whole container may moves. Put something inside the container to make its base heavy (like GRAM or ball bearing etc). Connect the DigiSpark to computer and the Knob is ready.