Design And Testing Of A Nanoparticle Spectrometer