The utility model provides a miniature
grating spectrometer based on a smartphone, which belongs to the technical field of spectrum acquisition and analysis, and comprises a device body, a first groove, a dispersion
prism, a second fixing block, an
echelle grating, an
echelle grating, a second fixing block, a third fixing block, a fourth fixing block, a fifth fixing block and a sixth fixing block, wherein the first groove is formed in the top end of the device body; the stability and the correct position of the dispersion
prism and other optical elements in the device are ensured, the
echelle grating is a transparent medium with a periodic structure and can generate an
optical path difference according to the
wavelength of incident light so as to realize
diffraction or light splitting of light, and in the device, the echelle
grating is arranged at one side end of the second fixing block and is used for fixing the dispersion
prism and the other optical elements. The optical elements can be used for further
processing light rays dispersed by the dispersion prism, and correct alignment between the optical elements is ensured through accurate
position control and fixation, which is crucial for obtaining clear optical images or realizing specific optical functions.