What is a spectrometer and how does it work?
A lamp provides the source of light. The beam of light strikes the diffraction grating, which works like a prism and separates the light into its component wavelengths. The grating is rotated so that only a specific wavelength of light reaches the exit slit. Then the light interacts with the sample. This is how it works