The invention discloses an optical
chip, a spectrum sensing device and method, a
spectrometer and equipment. The optical
chip comprises an
encoder with a non-periodic
diffraction unit, and is used for enabling different light in a
light beam to enter different
diffraction units in the non-periodic
diffraction unit for modulation so as to obtain optical signals in different diffraction directions. Therefore, spectral information corresponding to the
light beam can be determined subsequently according to the
light signal. In the application, different light in the
light beam enters different diffraction units in the non-periodic diffraction units to be modulated to obtain light in different diffraction directions, and every two adjacent light signals in the light signals corresponding to the light are different in phase and
phase difference, so that the space separation distance of different wavelengths is relatively large; and a relatively
high resolution can be obtained. Meanwhile, along with the increase of the
diffraction order, the light of each
wavelength in different diffraction directions is not easy to overlap, so that the effective
wavelength detection area is relatively large, and the bandwidth is relatively wide. Therefore, the problem of restriction between the resolution and the bandwidth is eliminated.