3D Printing Generator
DeutschEnglish

Bahtinov focus mask

Bahtinov mask to print: made for your telescope or lens

What a Bahtinov mask does

A Bahtinov mask is the simplest reliable focusing aid for astrophotography. It is a plate with three fields of parallel slots that you put in front of your telescope or telephoto lens. Point the camera at a bright star and the mask turns it into a pattern of diffraction spikes: one long spike through the center and two crossing spikes at an angle. When the center spike sits exactly between the other two, the star is in focus. Moving the focuser a hair in either direction shifts the spike visibly, so you can focus far more precisely than by eye on a blurry blob.

The catch is that the slot pattern depends on your optics. The width and spacing of the slots follow the focal length, and the plate has to fit the tube or dew shield. This generator calculates the pattern for you. Enter the focal length and the outer diameter of the tube, check the preview, and download an STL or 3MF. If you want to start from a typical setup, browse the examples: a 102/714 refractor, a 130/650 Newtonian, a 5-inch SCT or a 600 mm telephoto lens.

How the generator works

Everything runs in your browser, and nothing is uploaded. Your design is stored in the link (“Share”), so you can bookmark it or send it to a friend with the same telescope. The generator builds a single part: a slotted plate with a sleeve around it. The part lies flat on the bed with the plate down, so it needs no supports.

The slot pattern follows the classic layout. The disc is split into three fields. One field has slots parallel to a divider bar, the other two are tilted by the slot angle in opposite directions. The slot period is the focal length divided by the Bahtinov factor, and the slot and the bar each take half of a period. For a 900 mm telescope with the default factor of 150 the period is 6 mm, so every slot is 3 mm wide.

Measuring your telescope

You need two numbers, and one of them you probably know already.

Focal length. Take the value from the datasheet. If you use a reducer, flattener or Barlow, enter the effective focal length of the whole system, because the spikes depend on it. A 714 mm refractor with a 0.8× reducer is a 571 mm system for this purpose.

Tube diameter. Measure the outside of the tube or dew shield where the mask will sit, with calipers if you have them. Measure at two or three points, because dew shields are often slightly oval. Enter the result in “Tube outer diameter”. The generator adds the play for you.

Typical values from the examples:

SetupFocal lengthDiameterMount
70/420 refractor420 mm80 mmover the tube
80/480 ED refractor480 mm95 mmover the tube
102/714 refractor714 mm115 mmover the tube
130/650 Newtonian650 mm155 mmover the tube
5-inch SCT1250 mm142 mmover the tube
50 mm guide scope200 mm60 mmover the tube

Designing the mask

The editor groups the options in three sections.

Telescope

  • Mounting decides how the mask attaches. “Over the tube” (the default) slips the sleeve over the tube or dew shield, which is the easiest for most refractors and lenses. “Inside” plugs the sleeve into the opening and lets the plate rest on the edge. For this mode the diameter field becomes the inner diameter of the opening.
  • Tube outer diameter is 30–172 mm. The whole mask must fit a 180 mm printer bed, so very large tubes are limited and the generator tells you if it had to shrink the edge.
  • Focal length is 50–4000 mm and sets the slot width.
  • Center disc is a solid disc in the middle, 0–120 mm. Reflectors, SCTs and Maksutovs have a secondary mirror in the light path. Set the disc to its size so that no slot is wasted on the shadow. With 0 the slots run right through the middle, which is correct for refractors and lenses.

Fit

  • Play (0–1.5 mm, default 0.4) is the clearance on the diameter. Around 0.3–0.5 mm slides on easily, less sits tighter. Printers differ, so print a short test ring first if you are unsure.
  • Sleeve height (4–40 mm, default 15) is how far the sleeve reaches over or into the tube, and Sleeve wall (1.2–6 mm, default 2.4) is its thickness.
  • Overhang (2–20 mm) is how far the plate reaches beyond the opening, so the mask rests on the tube edge.
  • Plate thickness (1.2–6 mm, default 2) sets the stiffness. Up to roughly 120 mm, 2 mm is fine. For larger masks use 2.5–3 mm, which is what the Newtonian and Maksutov examples do.
  • Solid rim (0.8–20 mm) is a closed ring between the slots and the sleeve. Over the tube it should cover the tube wall, so no slot is hidden behind it.

Slot pattern

  • Bahtinov factor (150–200, default 150). The usual range is 150–200. A lower factor gives wider slots and brighter spikes, a higher one gives finer spikes.
  • Minimum slot width (0.8–10 mm, default 1.5). Slots narrower than this do not print cleanly. When the calculated slot is too narrow, as with short telescopes, the mask uses an odd multiple of the period (3×, 5×, and so on). That still produces a valid Bahtinov pattern, and the editor tells you which multiple it chose.
  • Slot angle (10–45°, default 30). Common values are 20–30°. Larger angles spread the side spikes further apart, which makes the pattern easier to read on small sensors but slightly dimmer.

Printing the mask

The mask prints in a single color and needs no supports. Here are the numbers from a real slice in PrusaSlicer (Prusa MINI, 0.20 mm SPEED profile, Prusament PLA, default infill), none of which needed automatic supports:

ExampleWeightPrint time
70/420 refractor15.6 g44 min
102/714 refractor31.9 g1 h 15 min
120/900 achromat47.2 g1 h 57 min
130/650 Newtonian57.2 g2 h 11 min
150/750 Newtonian, plug-in63.3 g2 h 29 min

Some tips:

  • Material. PLA is fine, but PETG or ASA hold up better if the mask lives in a car or a warm observatory. Black or dark gray is best because it reduces stray light.
  • Layer height. 0.2 mm is plenty. The slots are cut straight through, so layer height does not change the pattern.
  • Nozzle. A 0.4 mm nozzle handles all default designs. Slots below about 1 mm are the limit, and the minimum slot setting keeps you above it.
  • Fit. Print the sleeve, try it on the tube and adjust “Play” if it is too loose or tight. A strip of felt inside the sleeve makes a loose fit safer, especially on a lens.
  • Brims. Skip them. The part sits flat and the large plate adheres well. Clean the first layer edge if you see elephant foot near the sleeve.

Using the mask

Put the mask on, aim at a bright star (magnitude 2–3 is ideal), and take a short exposure at your usual gain. You will see the central spike and the two crossing spikes. Adjust the focuser until the central spike is exactly centered between the two others, then remove the mask. With a camera live view you can do this in a minute. For the best accuracy, use a few seconds of exposure, so seeing blurs the spikes less.

Origin and license

The slot pattern and the plug-in cap come from the “Telescope Bahtinov Mask (customizable)” model by agrif on Printables, which is released as CC0. The sleeve that goes over the tube, the play, the solid rim and the lead-in are new in this generator. The Bahtinov mask itself was invented by Pavel Bahtinov in 2005. The generator code is part of this site’s repository and its license is listed on the license page. Source: Printables model 574766.

Ready to try it? Open the generator, look at the examples, or build a matching accessory with another generator on the site.

All parameters

The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.

ParameterDefaultRangeMeaning
Telescope
Focal length900 mm50 – 4000 mmFocal length of the telescope or lens (with a reducer or Barlow: the effective one). It sets the slot width.
Tube outer diameter110 mm30 – 172 mmMeasure the outside of the tube or dew shield where the mask sits; the play is added on top.
Center disc0 mm0 – 120 mmSolid disc in the middle, e.g. the size of the secondary mirror of a reflector or SCT. 0 = slots right through the middle.
Fit
Play0.4 mm0 – 1.5 mmClearance on the diameter between sleeve and tube. 0.3–0.5 mm slides on easily; less gives a tighter fit.
Sleeve height15 mm4 – 40 mmHow far the sleeve reaches over or into the tube.
Sleeve wall2.4 mm1.2 – 6 mmWall thickness of the sleeve.
Overhang8 mm2 – 20 mmHow far the plate reaches beyond the opening, so the mask rests on the tube edge.
Plate thickness2 mm1.2 – 6 mmThickness of the slotted plate. 2 mm is stiff enough up to about 120 mm, use 2.5–3 mm for larger masks.
Solid rim4 mm0.8 – 20 mmClosed ring between the slots and the sleeve. Over the tube it should cover the tube wall, so no slot is hidden behind it.
Slot pattern
Bahtinov factor150150 – 200Slot period = focal length ÷ factor. 150–200 is the usual range; a lower factor gives wider slots and brighter spikes.
Minimum slot width1.5 mm0.8 – 10 mmNarrower slots do not print cleanly; the mask then uses an odd multiple of the period (3×, 5×, …), which still works.
Slot angle30 °10 – 45 °Angle of the two tilted slot fields against the main field. 20–30° is common; larger angles spread the side spikes further apart.

Frequently asked questions

Do I need supports?

No. The mask lies flat on the bed with the plate down and the sleeve pointing up, so it prints without supports.

How do I know the slots are the right size?

The generator calculates the slot period from your focal length divided by the Bahtinov factor. Enter the effective focal length, including any reducer or Barlow, and the pattern matches your optics.

Why are my slots wider than expected?

Slots narrower than the minimum slot width do not print cleanly. In that case the mask uses an odd multiple of the period (3×, 5×, …). The pattern still works, and the editor shows the factor it used.

Should the mask go over the tube or inside it?

Over the tube is easier and the default. Choose inside if the dew shield has no usable outside surface. Then enter the inner diameter of the opening instead.

Which filament is best?

PLA works well. Use PETG or ASA if the mask stays in a hot car or observatory. Dark colors reduce stray light.

Is anything uploaded?

No. The generator runs entirely in your browser and the design is stored only in the share link.

Origin & license