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
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
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
- 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
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.