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:
| Setup | Focal length | Diameter | Mount |
|---|---|---|---|
| 70/420 refractor | 420 mm | 80 mm | over the tube |
| 80/480 ED refractor | 480 mm | 95 mm | over the tube |
| 102/714 refractor | 714 mm | 115 mm | over the tube |
| 130/650 Newtonian | 650 mm | 155 mm | over the tube |
| 5-inch SCT | 1250 mm | 142 mm | over the tube |
| 50 mm guide scope | 200 mm | 60 mm | over 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:
| Example | Weight | Print time |
|---|---|---|
| 70/420 refractor | 15.6 g | 44 min |
| 102/714 refractor | 31.9 g | 1 h 15 min |
| 120/900 achromat | 47.2 g | 1 h 57 min |
| 130/650 Newtonian | 57.2 g | 2 h 11 min |
| 150/750 Newtonian, plug-in | 63.3 g | 2 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.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Telescope | |||
| Focal length | 900 mm | 50 – 4000 mm | Focal length of the telescope or lens (with a reducer or Barlow: the effective one). It sets the slot width. |
| Tube outer diameter | 110 mm | 30 – 172 mm | Measure the outside of the tube or dew shield where the mask sits; the play is added on top. |
| Center disc | 0 mm | 0 – 120 mm | Solid disc in the middle, e.g. the size of the secondary mirror of a reflector or SCT. 0 = slots right through the middle. |
| Fit | |||
| Play | 0.4 mm | 0 – 1.5 mm | Clearance on the diameter between sleeve and tube. 0.3–0.5 mm slides on easily; less gives a tighter fit. |
| Sleeve height | 15 mm | 4 – 40 mm | How far the sleeve reaches over or into the tube. |
| Sleeve wall | 2.4 mm | 1.2 – 6 mm | Wall thickness of the sleeve. |
| Overhang | 8 mm | 2 – 20 mm | How far the plate reaches beyond the opening, so the mask rests on the tube edge. |
| Plate thickness | 2 mm | 1.2 – 6 mm | Thickness of the slotted plate. 2 mm is stiff enough up to about 120 mm, use 2.5–3 mm for larger masks. |
| Solid rim | 4 mm | 0.8 – 20 mm | 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 | 150 – 200 | Slot period = focal length ÷ factor. 150–200 is the usual range; a lower factor gives wider slots and brighter spikes. |
| Minimum slot width | 1.5 mm | 0.8 – 10 mm | Narrower slots do not print cleanly; the mask then uses an odd multiple of the period (3×, 5×, …), which still works. |
| Slot angle | 30 ° | 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
- 574766-telescope-bahtinov-mask-customizable by agrif · CC0 1.0 · code ported – Slot pattern (period from focal length and Bahtinov factor, three fields, divider) and the plug-in cap ported; the over-the-tube sleeve, play and rim are new.