| Drag | Pan stage X / Y |
| Wheel | Magnification |
| WS | Focus + / − |
| AD | Stigmator X − / + |
| QE | Stigmator Y − / + |
| RF | Rotation CW / CCW |
| TG | Tilt + / − |
| ↑↓ | Stage Z up (WD−) / down |
| X | Reduced-area scan on / off |
| V | Wobble on / off |
| Home | Stage to home position |
| Space | Slow-scan capture |
| Shift | Hold for fine steps |
| Esc | Release control |
An educational simulator of a field-emission SEM with a realistic control panel: Beam Control, Navigation, Detectors and Alignments pages, 2D stigmator and beam-shift boxes, and the column alignment procedures (final lens, stigmator centring, source tilt and shift).
The image is computed live from procedural, to-scale specimens (MEMS, CPU die, insect eye, SiO₂ dielectric, TPP micro-optics, silicon photonic IC, DOE and metalens) with a physically motivated model of focus and depth of field, astigmatism, probe size and current, accelerating voltage and interaction volume, sub-surface contrast, shot noise versus dwell time, charging and drift, low vacuum and beam deceleration.
It is a training and demonstration tool: the physics is empirical and not calibrated to a specific instrument. Nothing leaves your browser; captures are saved locally.
Built with vanilla JavaScript and three.js.
This procedure takes you from exchanging the sample to a saved, focused, stigmated micrograph. Screenshots show the control involved in each step. To be guided live, with each control highlighted as you go, press:
The simulator starts ready to image (sample loaded, vacuum, beam on). Steps 1–3 are optional here, but they are how a real instrument is operated. On a real SEM, never vent with the HV on, never open the chamber while it is under vacuum, and wear gloves when handling stubs.
Every hotkey also has a slider and a number field in the control panel. Type a value and press Enter; invalid entries are rejected and out-of-range values are clamped.
By default the microscope is ready: sample loaded, chamber at high vacuum (~3×10⁻⁶ Torr), beam on. The Instrument section lets you go through the real start-up and exchange sequence:
Sputter coating: insulating samples (TPP polymer prints, SiO₂, biological tissue) accumulate charge. On a real SEM they are coated with a few nm of metal (Au, Pt) or carbon in a separate coater. Here, choose a coating while the chamber is vented. Au and Pt give strong SE signal and remove charging; Au leaves a fine ~60 nm island grain visible at >100 kx, and Pt is finer. Carbon is conductive, with low yield and no grain, and interferes least with BSE/EDS. Mounting a different specimen removes the coating.
With the beam off the monitor is blank and focus/capture are disabled. Quick specimen swaps from the list still work at any time, for convenience. For a guided run-through use ▶ Tutorial, or read the illustrated SOP.
Active only after clicking the monitor. Hold Shift for 5× finer steps.
| Mouse drag | Pan stage X/Y (the image follows the cursor) |
| Mouse wheel | Magnification |
| Double-click | Centre the stage on that point |
| W / S | Focus (objective lens) + / −. Step size scales with magnification. |
| A / D | Stigmator X − / + |
| Q / E | Stigmator Y − / + |
| R / F | Stage rotation clockwise / counter-clockwise |
| T / G | Stage tilt + / − |
| ↑ / ↓ | Stage Z up (shorter WD) / down |
| X | Reduced-area scan on/off |
| V | Wobble on/off |
| Home | Stage to home position |
| Space | Slow-scan capture |
| H | Show/hide the hotkey card |
| F1 | Open this guide |
Touch screens. One finger pans the stage; double-tap centres on that point; pinch, or drag two fingers up / down, changes magnification. Tap a setting's name in the panel (for example Focus · WD, Spot, Contrast, or a 2D box title such as Stigmator) to select it: one-finger drag on the image then changes that setting instead of panning (left / right, and up / down for 2D boxes). A chip on the image shows the selected setting; tap its ✕ or the name again to go back to panning.
An electron gun emits electrons that are accelerated by the high voltage (HV) and demagnified by condenser lenses into a probe a few nanometres wide. The objective lens focuses that probe onto the sample and the scan coils raster it line by line. At each point, the beam knocks secondary electrons (SE) out of the top few nanometres of the surface and scatters some primary electrons back (backscattered electrons, BSE). A detector counts them and the count becomes the brightness of that pixel. There is no lens forming an image: the picture is a map of detector signal versus beam position.
Consequences you can see in the simulator:
The random seed (Specimen section, New for a new one) drives every random element: particle and scale placement, surface grain, edge roughness, wall etch marks, the hidden column astigmatism and the noise sequence. The same seed always reproduces the same sample, so you can share or repeat an exercise.
At high magnification edges are not perfectly straight: a procedural line-edge roughness field (scaled in µm, fixed to the specimen) makes outlines wiggle like real etched structures, and near-vertical side walls carry etch marks — cusped horizontal scallops on the MEMS (DRIE cycles) and fine vertical striations on all samples. Tilt the stage to see the walls.
All specimens are a 1.3 mm die on a 12.7 mm stub with a carbon tab. Microscopic surface texture is generated for the current magnification, so there is always detail to focus on.
The voltage sets the energy of the electrons and therefore how deep they penetrate. The interaction volume (Kanaya–Okayama range, shown under the slider for silicon) grows roughly as kV1.67: about 30 nm at 1 kV, 3 µm at 15 kV and 9 µm at 30 kV.
| Low kV (1–5) | High kV (20–30) | |
|---|---|---|
| Surface detail | High: the signal comes from the top nanometres | Washed out: SE2/BSE from deep inside add a diffuse glow |
| Edge effect | Thin, crisp rims | Broad, blooming edges; thin features look translucent |
| Probe size | Larger (chromatic aberration and diffraction) | Smallest, best raw resolution |
| Charging | Minimal near ~1 kV (the E2 crossover) | Strong on insulators such as the insect |
| BSE signal | Weak and noisy | Strong Z-contrast |
Rule of thumb: use low kV for delicate, uncoated or surface-critical samples, and high kV for BSE, EDS-style work or maximum sharpness on conductive samples.
Higher accelerating voltage drives the electrons deeper (Kanaya–Okayama range ≈ 0.03·kV1.67 µm in Si). Features buried under a thin cover layer then contribute backscattered and SE2 signal: they show through with a contrast that fades as exp(−depth / ½·range) and blur with depth as the beam spreads.
Magnification follows the 127 mm (Polaroid) display convention: HFW = 127 mm ÷ magnification. So 100× shows 1.27 mm and 100 kx shows 1.27 µm. The simulated image has 1024 pixels across, so pixel size = HFW / 1024. The scale bar in the data bar is always exact. The range is 100× to 500 kx. Above roughly 200 kx you are imaging the generated sub-10 nm texture, and the probe size, noise and astigmatism limit what you can see, as on a real instrument.
Focus is the objective-lens excitation, expressed as the distance at which the beam converges (the "WD" shown in the data bar, as on real SEMs). Stage Z is where the sample physically is. The image is sharp when the two match for the surface under the beam.
Depth of field ≈ pixel size / α. It is shown under the focus controls. It gets smaller at high magnification, at short working distance (larger α) and with larger spot/aperture. On a tilted sample, parts nearer or farther than the focal plane go soft. That is per-pixel defocus, not a bug. Increase the WD or reduce the tilt for more depth.
The spot-size number sets the condenser demagnification. Larger spot gives more probe current, so less noise and a brighter image, but a wider probe and softer edges (visible at high mag). Smaller spot gives a sharper probe but fewer electrons per pixel, so the image is grainier. The readout under the slider shows the probe diameter, the current in pA, and the electrons per pixel at the current dwell time (below ~20 e⁻/px the noise dominates).
Dwell time is how long the beam stays on each pixel. Signal-to-noise grows with √(current × dwell), a Poisson shot-noise model.
These are the detector gain (contrast) and offset (brightness). High contrast pushes edges to white and trenches to black (clipping); brightness shifts the mid-tones. Adjust contrast first so the brightest features are just below saturation, then brightness so the darkest detail is not crushed.
An imperfect lens focuses the beam at two different heights in two perpendicular directions, so the probe is an ellipse instead of a circle. The simulated column has a hidden astigmatism, set by the random seed, that you must correct.
Tabs select pages, each made of collapsible sections; the Status section stays at the bottom of every page.
| Page | Sections |
|---|---|
| ⚛ Beam Control | Vacuum (Pump/Vent, High/Low Vacuum, chamber pressure; sample exchange & coating) · Column (Beam On, Spot, High Voltage) · Magnification · Beam (Focus + Auto focus, Stigmator and Beam Shift 2D boxes, spot preview, wobble) · Scan Rotation · Beam Deceleration (stage bias) · Detectors (Contrast, Brightness, Auto C/B, ABC) · Scan & capture |
| ✥ Navigation | Stage coordinates X/Y/Z/R/T, Home · Sample holder (specimen, seed) |
| ◧ Detectors | Detector Settings (ETD, In-lens, BSD, LVD; colormap) |
| ⊹ Alignments | Alignments: Final Lens Alignment (Lens Align 2D + Lens Modulator + amplitude), Stigmator Alignment (Stigmator Center 2D + Modulator X/Y), Source Tilt and Shift (Source Tilt / Shift 2D, Crossover, Modulator). Auto buttons perform each step. |
Before stigmating, the beam must travel down the optical axis. The simulated column has hidden, seeded misalignments, corrected on the Alignments page. The gun starts aligned (its offsets are compensated by default); use Misalign (practice) in Source Tilt and Shift to train source alignment. Stigmator Alignment centres the stigmator coils: when de-centred, the image shifts whenever the stigmator changes — switch Modulator X (then Y) on and drag the Stigmator Center cross until the image stays put.
Model: transmitted current = exp(−tilt²/0.06)·exp(−shift²/0.1) of the residual misalignments; image shift = defocus × beam tilt (0.015 rad per unit of aperture misalignment); probe diameter × (1 + 6·aperture² + 0.5·tilt). Changing the random seed changes the misalignments.
Wobble swings the focus sinusoidally (1.6 Hz). If the objective aperture is aligned, the image only pulses in and out of focus; if it is off-axis the image swings sideways — correct it with Aperture X/Y (see Column alignment). Residual astigmatism shows as the blur changing direction between the two extremes; trim it with the stigmators. With the TV scan toggle next to Wobble on (the default), the simulator uses TV-rate scanning while wobbling, so the whole frame pulses together. Turn it off to keep the slow raster: you will then see horizontal bands of sharp and blurred lines, because each band is scanned at a different point of the oscillation.
This finds the surface height under the beam and drives the lens there in 0.6 s, landing within a fraction of a pixel of blur. It does not correct astigmatism. Use Zero stigmators to reset them.
A to-scale 3D model: 1 unit = 10 mm. It shows the objective pole piece, the ETD with its Faraday cage (rear), the retractable BSED (right), and the 5-axis stage with the stub and specimen. The cyan line is the beam and the blue rectangle on the sample is the current scan field. Drag to orbit, use the wheel to zoom (it follows the sample when close), Sample jumps to a close-up, and double-click or Overview resets the view. Because the specimen is drawn at true scale, it is a tiny chip in the overview.
Each surface has a material class that sets its procedural micro-structure (scaled in real units, so it appears only at the magnification where it would really be resolved):
Etched edges show line-edge roughness: outlines wiggle at the 10–100 nm scale instead of being ideal straight lines.
An insulator cannot drain the electrons the beam deposits. The trapped charge builds up and, in the simulator (as in practice):
Charging grows with probe current, dwell time and magnification (dose per area), and relaxes over several seconds once the dose drops. Moving to fresh, unexposed area resets it locally. Mitigations: lower the HV towards ~1 kV (the charge-balance crossover), use a smaller spot and shorter dwell, lower magnification, switch to BSED (less sensitive), or — on a real instrument — coat the sample or use low-vacuum mode. Home or reloading the specimen clears the accumulated drift.
The Dielectric SiO₂ on Si specimen is built for this: a field-oxide window with contact holes to the Si, oxide pads of increasing thickness, an oxide grating, concentric oxide rings, floating Al pads on an oxide island (they charge too) and grounded Al pads directly on Si (which do not), for comparison. The CPU die charges mildly on its oxide; the insect charges everywhere.
Slow scan capture acquires one full 1024 × 768 frame at 30 µs dwell (≈ 3.5 s). The result freezes on screen for 3 s and can be saved as a PNG with a data bar (HV, WD, mag, HFW, spot, dwell, detector, tilt) and scale bar. The file is created locally in your browser; nothing is uploaded.
This is an educational simulation, not a Monte-Carlo electron transport code. Signal uses empirical rules (secant-law SE yield, atomic-number weighting for BSE, a detector direction term, an edge Laplacian and occlusion shadowing). Blur is an elliptical Gaussian from geometric defocus plus the probe size. Noise is Poisson shot noise plus a detector bandwidth model. The interaction volume is approximated by a kV-dependent halo and edge width. Numbers such as probe diameter, current and range are representative of a field-emission SEM but not of any specific instrument.