This proyect is a the second version of the Mechanicals Keys, change the keys distribution on the board and add a rotary encoder.
You can download the example code from github.
Details
I use an Arduino Pro Micro as microcontroller to send the actions. It's a small board, 7x4 cm. The wheel for the rotary encoder it's 3d printed, but you can use any knob you have.