Draw a detailed and labelled diagram of a spectrometer without any text within the image. The diagram should clearly present the main components of the instrument, including the light source, entrance slit, collimator, prism or grating, focusing lens, and detector. Each of these components should be distinguishable, and their function should be implied through their positioning and visual attributes. For instance, the light being dispersed by the prism, or being detected by the detector, should be visually noticeable.

Explain how spectrometer works by drawing a labelled flow diagram showing the main components of spectrometer and briefly state the purpose of the components

A spectrometer is an instrument used to measure properties of light over a specific portion of the electromagnetic spectrum. The main components of a spectrometer include:

1. Light Source: The light source emits light that is directed into the spectrometer for analysis.
2. Entrance Slit: The entrance slit controls the amount and direction of light entering the spectrometer.
3. Collimating Lens: The collimating lens focuses the light from the entrance slit into a parallel beam.
4. Diffraction Grating: The diffraction grating disperses the light into its component wavelengths.
5. Detector: The detector measures the intensity of light at different wavelengths.
6. Output Device: The output device displays or records the results of the analysis.

The purpose of these components is as follows:
- Light Source: Provides the light to be analyzed.
- Entrance Slit: Controls the amount and direction of light entering the spectrometer.
- Collimating Lens: Focuses the light into a parallel beam for analysis.
- Diffraction Grating: Disperses the light into its component wavelengths for analysis.
- Detector: Measures the intensity of light at different wavelengths.
- Output Device: Displays or records the results of the analysis.