Beyond the Basics: Supercharging Your NINA Sequencer
In our NINA setup guide and Sequencer Basics tutorial, we covered getting NINA configured and running simple sequences. But the real power of NINA’s Advanced Sequencer lies in its ability to make intelligent decisions while you sleep. This guide dives into the features that transform NINA from a simple automation tool into a fully autonomous imaging observatory.
The Three Pillars of Advanced Sequencing
The Advanced Sequencer is built on three core concepts that work together: Instruction Sets that group actions, Loop Conditions that control repetition, and Triggers that fire actions when specific events occur. Master these three concepts and you can handle virtually any imaging scenario.
Understanding Instruction Sets
Instruction Sets are containers that group related instructions together. NINA offers three types:
Sequential Instruction Set
Instructions execute one after another, top to bottom. This is the workhorse of most sequences. Think of it as a checklist: slew, center, autofocus, guide, image. Each step completes before the next begins.
Parallel Instruction Set
All instructions inside run simultaneously. Perfect for startup tasks where actions are independent. For example, you can cool the camera, unpark the mount, and start a remote file copy all at the same time rather than waiting for each to finish sequentially.
Deep Sky Object Set
This is a specialized sequential set tied to a specific target. It holds the coordinates and rotation for your subject, and any coordinate-dependent instructions inside (slew, center, frame) automatically use those coordinates. When you want to image multiple targets in one night, each one gets its own DSO Set.
Loop Conditions: Making Sequences Smart
Without a loop condition, an Instruction Set runs once and moves on. Add a loop condition and that set repeats until the condition is no longer met. This is what turns a static sequence into a dynamic one that adapts to the night.
Loop Until Time
Loop a set of exposures until a specific time, like astronomical dawn. Your sequence automatically ends when the sky brightens, regardless of how many exposures you captured.
Loop Until Sun Altitude
More flexible than a fixed time. Set the loop to continue until the sun reaches a specific altitude (say, minus 15 degrees). This adapts automatically as the seasons change and dawn shifts earlier or later.
Loop for N Iterations
Run the set a specific number of times. Combine a Smart Exposure of 10 exposures with a loop of 3 iterations and you get 30 total exposures, each block dithering and handling its own housekeeping.
Nested Loops
Loop conditions in parent Instruction Sets are evaluated even while child sets are running. If you have an outer loop that runs until astronomical dawn and an inner loop capturing 15 exposures per iteration, NINA checks the time condition after each exposure. When dawn arrives, the current exposure finishes cleanly and the sequence winds down.
Triggers: Event-Driven Automation
Triggers are instructions that fire when specific conditions are met, evaluated after every instruction within the set. They let you handle events that occur at unpredictable times during a session.
Auto-Focus Trigger
Fire an auto-focus run after a set number of exposures, or when the HFR (Half-Flux Radius) degrades beyond a threshold. For example, trigger a refocus every 15 exposures, or when the average HFR increases by more than 10 percent over the last 10 frames. This keeps your stars sharp through temperature changes that shift focus.
Meridian Flip Trigger
Automatically performs a meridian flip when your target crosses the north-south meridian line. NINA parks the mount, flips to the other side of the pier, re-centers the target, restarts guiding, and resumes imaging. Essential for all-night sessions on equatorial mounts.
Dither Trigger
Shifts the telescope position slightly between exposures to randomize sensor noise patterns. Set it to dither every 3 exposures (a good starting point), with the dither amount tuned to your guide scope resolution. This is critical for reducing walking noise and banding in your final stacked images.
Center After Drift Trigger
Checks target positioning after a set number of exposures and recenters if the target has drifted beyond a threshold (typically 2 arcminutes). This keeps your subject centered despite polar alignment imperfections or mount tracking errors over long sessions.
Smart Exposure: The Power User’s Capture Tool
The Smart Exposure instruction replaces the basic exposure command with a much more capable version. Key features include:
- Exposure count within a single instruction
- Binning mode selection (1×1 for luminance, 2×2 for color)
- Gain and offset settings per exposure
- Dither every N frames built into the exposure itself
- Automatic save with organized file naming
A typical Smart Exposure might be: 12 exposures of 300 seconds each, binned 2×2, gain 121, offset 30, dithering every 3 frames. Nest that inside a loop set to run until astronomical dawn and you have a complete night of imaging configured in just a few clicks.
Building a Complete Advanced Sequence
Sequence Start Area
Use a Parallel Set for startup tasks that can run concurrently: cool the camera to your target temperature, unpark the mount, and start any file synchronization. Follow with a Sequential Set for tasks that need ordering, like connecting equipment and running an initial autofocus.
Sequence Target Area
Each target gets a Deep Sky Object Set. Inside, a Sequential Set handles the workflow: slew to target, plate solve and center, start guiding, then a nested Sequential Set with loop conditions contains your Smart Exposures. Triggers for auto-focus, dithering, meridian flips, and recentering live at this level.
Sequence End Area
A Sequential Set wraps up the session: stop guiding, warm the camera gradually, park the mount, and send a notification that imaging is complete.
Templates: Build Once, Reuse Forever
Once you have an Instruction Set configured exactly how you like it, save it as a template. Right-click the set and choose the save option. Your template appears in the right sidebar under user templates. The next time you build a sequence for a new target, drag in your pre-configured imaging block and just update the coordinates.
Templates that use a Deep Sky Object Set become available in NINA’s Sky Atlas and Framing Assistant, so you can plan targets and build sequences in one smooth workflow.
A Practical Example
Here is how a typical advanced sequence might look for a night of imaging from my backyard in Columbia, Tennessee:
Start Area:
Parallel Set: Cool camera to -10C, Unpark mount, Start PHD2 guiding
Sequential Set: Connect equipment, Run initial auto-focus
Target Area (DSO Set: NGC 4565):
Slew and center on NGC 4565
Sequential Set with triggers:
– Auto-focus every 15 exposures or HFR delta greater than 10 percent
– Dither every 3 exposures
– Meridian flip when needed
– Recenter after drift beyond 2 arcminutes every 5 exposures
Nested Sequential Set with loop condition:
– Loop until sun altitude reaches -15 degrees
– Smart Exposure: 10 x 300s, bin 1×1, gain 121, dither every 3
End Area:
Stop guiding
Warm camera to 0C (5 degrees per minute)
Park mount
Send notification
Tips for Success
- Start simple. Build a basic sequence first, test it during the day with the equipment connected, then add advanced features gradually.
- Validate your sequence. Red exclamation marks next to instructions mean something is wrong. Hover over them to see the issue before you start imaging.
- Use time-based loops with altitude conditions. Looping until sun altitude adapts automatically as seasons change, unlike fixed clock times.
- Save your sequence files. NINA sequences are JSON files. Back them up so you can reload and tweak them for future targets.
- Monitor the first run. Even with a well-built sequence, watch the first session to catch any issues with focus, guiding, or centering.
Wrapping Up
The Advanced Sequencer is where NINA truly shines. Once your sequence is configured and tested, you can walk away knowing that NINA will handle focusing, dithering, meridian flips, and even recentering automatically. On a good night, you can set it running at dusk and wake up to a folder full of calibration-ready light frames.
For more NINA tips and astrophotography tutorials, check out our Getting Started guide and Auto-Focus tutorial. Clear skies!