Engineers have developed a spectrometer so small and simple that it could integrate with the camera of a typical cellphone without sacrificing accuracy.