Coding the Doppler effect

Posted by Mr Mallon on November 26, 2022

The black car is moving towards an observer,represented by the green ball, while sounding its horn.
The sound waves spread out from the car. Notice that the sound waves squash up as the car approaches the observer and stretch out as the car leaves the observer behind.
Press the run button to start the program.
Can you see why the observer hears a higher frequency of sound as the car approaches and a lower frequency of sound as the car moves away?


Comments are closed.