Spectrometers—devices that distinguish different wavelengths of light and are used to determine the chemical composition of everything from laboratory materials to distant stars—are large devices with six-figure price tags, and tend to be found in large university and industry labs or observatories.