its been done. there are 'diy kits' for getting useful data from a camera ccd on youtube. meanwhile ocean optics usb2000 spectrometers are under $300 on ebay