The Knob – Micro USB Media Controller (Digispark Arduino) 3D Printer Model

Author: @
License: CC BY-NC
File formats: ino,stl,zip
Download type: zip
Size:340.7KB

The file 'The Knob – Micro USB Media Controller (Digispark Arduino) 3D Printer Model' is (ino,stl,zip) file type, size is 340.7KB.

Summary

1 knob, 6 functions.

This tiny, super cheap media controller works with all devices that supports USB Media Controls - computers, tablets, phones etc. Tested so far with Windows 10 & Android 6.

A single knob performs the following:

  • Play - press knob
  • Pause - press knob again
  • Volume up - turn knob right
  • Volume down - turn knob left
  • Previous track - press AND turn knob left
  • Next track - press AND turn knob right

You can also replace the actions of the knob with pretty much any key press you want. See Changing functions further down this page.

There are several one-knob media controllers out there, but I've found no version that allows you to change tracks without dedicated buttons (like my larger Arduino Pro Micro-based Media Controller has). And none so cheap and easy to build.

The only components needed are a Digispark (Micro USB version) Arduino microcontroller and a KY-040 rotary encoder, which can be had for about 1€ each on eBay/Ali. A few wires to solder and that's it - hardware is done!

I'm also including the Arduino source I wrote which includes (or links to) pinouts, libraries , instructions and pretty much everything you need in order to program the controller.

I made several different knobs that you can choose from. The encoder has a standard D-shaped 6mm shaft so there are a multitude to choose from if you want to buy or get one from elsewhere.

Update 2018-07-03
Pinout diagram added.
Software updated to version 2.0, courtesy of IAmOrion, aka James Tanner. Basically rewritten from scratch - fixes a problem when changing direction, includes debugging mode and opens the possibility for much more advanced functions. Settings are now all in a separate Settings.h file. All code can be found in The_Knob_Arduino_code_v2.0.zip.
See the Comments section for even more versions with added functionality from IAmOrion (triple-click, anyone?).

The_Knob-MC_Mk3_v1.3.ino 5.2KB
The_Knob-MC_Mk3_v1.4.ino 5.4KB
The_Knob_-_Base.stl 259.9KB
The_Knob_-_Knob.stl 194.8KB
The_Knob_-_Pentaknob.stl 99.1KB
The_Knob_-_Squareknob.stl 45.2KB
The_Knob_-_Top.stl 460.6KB
The_Knob_Arduino_code_v2.0.zip 2.7KB
The_Knob_Arduino_code_v2.1.zip 2.7KB