Panning a camera rig with a microcontroller in order to generate a panorama