Yep, diffraction gratings an not only 'useful', but are the base of most modern spectrometers. From a half-toy Little Garden to multi - 1000$$ options from Ocean Optics. Other popular option is a prism.
Little Garden is so much fun for $60, no more need to mess with anything DIY. You get a nice box and the results are generally better!
Some Little garden examples:
That elusive yellow 400W MH lamp from BLV! Finally hunted down a couple, though at a steep price... Note these are Thallium - Sodium - Lithium. Lithium component was not mentioned for these before, though is pretty evident on a spectrogram.
70W purple color MH lamp from BLV. Probably does not like running from electronic ballast, too much pressure, blue indium line is inverted and some continuous spectrum part appears.
35W Elite MH from Philips. Note calcuim 'humps' in deep red, giving the lamp good red rendering and incandescent-like appearance!
6W 930 color Osram from Bari, Italy. No more of these nice tubes
Good deep red from these...