# Doppler Effect

The "Doppler Effect" happens when a wave's source is moving in relation to us:
• As the source approaches, the waves arrive at a higher frequency
• As the source moves away, the waves have a lower frequency
So a passing siren sounds like "nee-nee-nee-nee ... woooo-woooo", or a passing race-car sounds like "eeee-yoooo":
 Approaching:  higher frequency Leaving: lower frequency

This applies to all waves, including light waves and even waves on the sea:

• Light from stars that are moving away are "red-shifted" (a lower frequency of light) and those that move toward us are "blue-shifted"
• On the sea, a boat can travel in the same direction as the waves to make the up-and-down motion slower.

## Press Play!

images/doppler.js

The source emits waves at a fixed frequency, but the observer receives a higher frequency when the source moves towards them (and lower frequency when the source moves away)

To make the model "honest" I based the received frequency purely on when a wave crosses the center of the blue circle.

### Why does the sound change in little steps?

Because our model is not perfect! Each new wave, as it arrives, changes the average up or down. We could improve the model by using more data points for a smoother result.

### Relative motion!

The model shows the source moving, but it is really the relative motion between source and observer that is important. Imagine you are in a car passing by a sound source ... you would also notice this effect.

### Light

The same model could also show light getting red-shifted for objects moving further apart, or blue-shifted when getting closer. Note that the source's color does not change, but the observation of its color does