Spectral-Explorer introduces open-source USB optical spectrometer hardware and software
A new open-source project provides a DIY optical spectrometer using a Logitech C270 webcam and a Qt/C++ desktop application.
Summary
Lukas Hoyer has released Spectral-Explorer, an open-source USB-based optical spectrometer designed to measure light across the visible spectrum from 400 to 650 nm. The hardware utilizes a Logitech C270 webcam as the primary sensor housed within a 3D-printed matte black enclosure.
Accompanying the hardware is a desktop application written in C++ using the Qt framework. The system is capable of achieving up to 1 nm resolution, making it suitable for analyzing light sources such as LEDs, flames, and colored liquids. The project includes complete documentation, including FreeCAD source files, STL meshes, and assembly instructions.
Technical specifications and software requirements
- Sensor and Optics: Uses a Logitech C270 webcam sensor within a 3D-printed housing to capture spectral data in the 400-650 nm range.
- Software Stack: The desktop application is built using Qt 5.11.3 and OpenCV 2.4.13; the developer specifically avoids OpenCV 3.4.5 to prevent image scaling and maintain the camera's native resolution.
- Calibration Method: Wavelength calibration is achieved using the 436 nm and 611 nm spectral lines provided by a compact fluorescent lamp.
- Open Hardware Files: The repository provides FreeCAD source files, STL meshes for 3D printing, and detailed print profiles for assembly.
Why it matters
This project provides a low-cost, open-source alternative for scientific instrumentation, benefiting makers and researchers in the open-hardware community. By providing full CAD files and specific software version requirements, it ensures reproducibility for DIY optical measurement tools.
Original reference: blog.adafruit.com →