lhoyer/spectral-explorer
Hardware & IoTBuild a USB optical spectrometer from 3D-printed parts and a modified webcam, then measure visible spectra with Qt software.
What it is
Spectral-Explorer is a hardware-plus-software project for measuring visible light spectra. A 3D-printed housing holds an adjustable razor-blade slit, a DVD grating and a modified Logitech C270 webcam; the webcam connects over USB and feeds a Qt/C++ desktop application that extracts and displays the spectrum. The documented range is 400–650 nm with resolution up to 1 nm. It targets physics, chemistry and biology teaching, plus hobbyist and lab experiments (1).
The project arose from a German Jugend forscht entry and offers step-by-step build instructions, STL meshes and FreeCAD sources in the hardware folders (9). Example applications include flame spectroscopy, Fraunhofer lines in daylight, fluorescent-lamp calibration at 436 nm and 611 nm, and liquid absorption measurements with the optional cuvette holder (11).
Quick start
The fastest path is to use an existing spectrometer: download the Windows installer or portable archive from the releases page and run the application. The menu shortcuts or extracted Spectral-Explorer.exe open the live camera view; point the device at a light source and adjust the slit until a usable spectrum appears. Then read the user guide for safety notes, slit adjustment and CFL calibration before relying on wavelength values (10).
Building the hardware is a separate track: print the case and optional cuvette holder from the supplied STL and FreeCAD files (7) (8), assemble per the hardware guide, and modify a C270 webcam as described there (9). No pre-built hardware is sold through this repository.
Software features
The desktop app provides live capture, spectrum and intensity graph views, comparison of multiple spectra, noise filtering, calibration against CFL lines, and save/load/export of spectrum data and images. Pre-built Windows binaries remove the need to set up Qt or OpenCV; the source build targets Qt 5.11.3 MinGW 32-bit and OpenCV 2.4.13, with detailed Windows instructions in the README (27).
Constraints
- The current packaged application and build instructions are Windows-specific; no other desktop platform is documented.
- Accuracy depends on correct slit adjustment and calibration; the guide uses 436 nm and 611 nm CFL lines rather than factory calibration.
- The sensor is a modified Logitech C270, so a build requires that camera model and a DVD grating piece.
- The license is CC BY-NC-SA 4.0: free non-commercial use with attribution and share-alike (31).
HotRepo's take
On 2026-11-23 the repository appeared on HotRepo's new-project list for C++ with 9 stars gained across a roughly 3.5-hour window, reaching 109 stars and 19 forks. That is a short single-session signal with no GitHub daily ranking recorded, so it says little about sustained interest. The unusual combination — printable hardware, a modified consumer webcam, and a desktop measurement app — is what makes the entry notable; the next check for anyone evaluating it is whether the released binaries correspond cleanly to the published source.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.