Lukas Hoyer has published Spectral-Explorer on GitHub, an open USB optical spectrometer with a Qt/C++ desktop program for Windows. It covers 400 to 650 nm, the visible range, at up to 1 nm resolution, so it can measure the light from lamps, LEDs, flames and colored liquids in a cuvette. The project won a special prize at the 50th German Jugend forscht national competition.
The optics are in a 3D-printed matte black housing, and the sensor is a Logitech C270 webcam. The repository has the STL meshes, FreeCAD source files and print profiles, plus a step-by-step assembly guide. Wavelength calibration uses the 436 nm and 611 nm lines from a compact fluorescent lamp.
Pre-built installers and a portable zip are on the Releases page, so Qt and OpenCV are only needed to compile the code. The build targets Qt 5.11.3 and OpenCV 2.4.13; the project notes that OpenCV 3.4.5 is avoided because it scales the C270 image instead of using the camera’s full native resolution.…