Here we present a protocol to automatically determine the locomotor performance of Drosophila at changing temperatures using a programmable temperature-controlled arena that produces fast and accurate temperature changes in time and space.