Easily connect an encoder to you Arduino board. Use it to control everything that you want with this simple code.