Lecture notes on the physics of cosmic microwave background anisotropies