Close

Interactive Optical Bench Simulator

A project log for JASPER: VIS-NIR SPECTROMETER

Grating-based VIS-NIR Spectrometer: Customizable for spectral range, resolution, SNR, and detector options aided by a software design tool

tony-francisTony Francis 07/24/2026 at 19:300 Comments

Most VIS-NIR spectrometers designed for specific applications require fine customization of spectral span, optical resolution, or Signal-to-Noise Ratio (SNR).

For instance, the Zemax spectrometer design guide highlights a system tailored for Optical Coherence Tomography (OCT) in retinal imaging. That specific application demands a narrow 50nm bandwidth (855 nm to 905 nm) optimized for deep, non-invasive imaging within the near-infrared biological window.

However, standard optical simulation software (such as Ansys Zemax OpticStudio) often falls short when modeling physical diffraction efficiency curves, real-world blaze angles, and practical mounting tolerances. For researchers, optical engineers, and hardware builders, having a physical, reconfigurable benchtop setup is indispensable.

We are building a truly customizable, open-source optical benchtop for reflective-grating spectrometers that allows you to easily swap and tune key hardware parameters:

  1. Slit Sizing: Interchangeable mechanical slits to balance optical throughput against spectral resolution.
  2. Optics Selection: Modular lens mounts to evaluate different collimating and focusing focal lengths.
  3. Grating Geometry: Independently adjustable incident (α) and diffracted (β) angles to test custom blaze conditions and spectral dispersion profiles.
  4. Sensor Versatility: Flexible detector positioning to evaluate COTS camera modules or specialized high-speed linear CCD/CMOS array sensors.

To help refine the optical layout and clear aperture tolerances for the JASPER VIS-NIR Spectrometer, we built a lightweight, interactive simulator that models our optical bench mechanics directly in the browser!

You can try out the live tool here:
https://checkag.github.io/jasper-bench-sim/ 

What the Simulator Models

When designing compact Czerny-Turner or transmission-grating VIS-NIR optical benches, balancing detector arm placement against grating rotation is always a trade-off between spectral range and focus depth.


This simulator lets you interactively adjust and test:

Built for Open-Source Transparency

Rather than relying on heavy desktop CAD packages or proprietary optical simulation software for quick spatial checks, we built this tool with pure, self-contained HTML5, CSS, and inline SVG. It requires zero external assets or dependencies, making it instantly scannable and accessible on desktop or mobile.

Feel free to run the "Run full demo" loop on the page to see the automated mechanical sweep sequence in action, or turn off labels for a clean visual view!

The repository is fully open-source under the MIT license:

📁 GitHub Repo: checkag/jasper-bench-sim

Give it a try and let us know your thoughts on the mechanical geometry

Discussions