Spectrometers are crucial scientific instruments in various research fields and have consistently served as indispensable tools for foundational research. However, the unwieldy size of conventional spectrometers poses challenges for cost-effective and compact mobile platforms.