For Hobbyists & Makers · Diffraction Grating
Diffraction Grating for a photonic crystal
Built for hobbyists & makers exploring it for fun. Play with real physics and math, no license and no setup — just open and tinker. Simulate a photonic crystal live below — adjust the inputs and watch it respond, right in your browser.
Diffraction GratingLive
N-slit interference
Controls
More slits make the bright maxima sharper and brighter — the principle behind spectrometers that split light into precise spectral lines.
Presets
Data Inspector
Slits5
Resolution∝ N
Maxima atd·sinθ = mλ
Governing equation
Reading this result: The bright maxima stay locked where d·sinθ = mλ — fixed by spacing and wavelength, not slit count — but with 5 slits each principal peak is about 5× narrower and far more intense, which is how a grating resolves fine spectral lines.
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
More with Diffraction Grating
Frequently asked questions
- Is this good for hobbyists & makers?
- Yes — this version of "Diffraction Grating for a photonic crystal" is framed for hobbyists & makers exploring it for fun. Play with real physics and math, no license and no setup — just open and tinker.
- Do I need to install anything?
- No. It runs in any modern browser, free, with no account required.