edit

edit

In addition to the detector, you will need a prism or diffraction grating to disperse the colors. See this open source spectrometer project with very inexpensive options: http://publiclab.org/wiki/spectrometer

edit