Generation of oscillations using radiation source and detector