Spectrometers from ASEQ Instruments provide powerful, USB-connected devices for spectral measurements. To make integration into research workflows easier, we created the open-source Python driver: ASQESpectrometer on GitHub.
In this post, we’ll cover how to set up and use the driver on macOS, Linux, and Windows.
1. Installation
Clone the repository and install the required dependencies:
git clone https://github.com/PVSensors/ASQESpectrometer.git
cd ASQESpectrometer
pip install -r requirements.txt
Make sure your ASEQ spectrometer is connected via USB before running the scripts.
2. Running a Test Script
Once the setup is complete, you can run this Python script on any OS:
import matplotlib.pyplot as plt
from asqe_spectrometer import ASQESpectrometer
# Connect
spec = ASQESpectrometer()
spec.open()
# Configure
spec.set_integration_time(200000) # 200 ms
# Acquire spectrum
wavelengths, intensities = spec.read_spectrum()
# Plot
plt.plot(wavelengths, intensities)
plt.xlabel("Wavelength (nm)")
plt.ylabel("Intensity (a.u.)")
plt.title("ASEQ Spectrometer Measurement")
plt.show()
Save the file as test_spectrum.py and run:
python test_spectrum.py
If successful, a plot window will display the measured spectrum.
With this driver, you can integrate ASEQ spectrometers into Python-based workflows for spectroscopy, materials research, photovoltaics, and more. For full code and contributions, visit ASQESpectrometer on GitHub.