Application of the Doppler Effect with light