Enclosures & cases

KY-040 rotary encoder knob box

A small control box for a KY-040 rotary encoder (about 32 × 19 mm board, 6 mm D shaft, M7 bushing). The box is 40 × 40 × 25 mm with a 7.2 mm bushing hole, a 3 × 12 mm slot for the pins and a matching 30 × 15 mm knob with a 6 mm D bore and knurled edge. Walls are 2 mm. Print the box upside down and the knob flat in PLA. Describe your measurements and SpeakCAD builds it with AI (credits), then download STL, 3MF or sliced G-code.
No ready-made model yet: building it uses credits (4 credits for the part on a plan, its first 3 small changes free; Maker: 50 credits a month for $7.99, cancel anytime).Updated

No ready-made model for this part yet

Sign in and SpeakCAD builds it from the prompt below (4 credits for the part on a plan, its first 3 small changes free; Maker: 50 credits a month for $7.99, cancel anytime). Want to try the editor first? The live demo is free, no account.
1

Describe

Sign in: the example prompt below is filled in. SpeakCAD builds the part from it with AI, 4 credits for the part on a plan, its first 3 small changes free (Maker: 50 credits a month for $7.99, cancel anytime). Replace any number with what you measured first.
2

Adjust

Change its numbers in the viewer for free, or ask the AI for a change in the chat (2 credits for a small change, 1 for a quick edit, 3 for a redesign; the first 3 small changes are free on a plan).
3

Print

Download a watertight STL or 3MF, included in every plan (4 credits without one), or G-code sliced for your printer at the same price.

Example prompt

Model a KY-040 encoder box 40×40×25 mm, 7.2 mm bushing hole, 3×12 mm pin slot, plus a 30×15 mm knurled knob with 6 mm D bore.

Build it with AI opens the app with this prompt already typed. Replace any number with what you measured before sending it; the rest of the design stays consistent.

Fit notes

The EC11 encoders without the breakout board have a different footprint.

Also searched as: ky-040 case stl, rotary encoder box 3d print, ky-040 knob 3d print, rotary encoder enclosure 3d model.

Questions people ask about a KY-040 rotary encoder knob box

A small control box for a KY-040 rotary encoder (about 32 × 19 mm board, 6 mm D shaft, M7 bushing). The box is 40 × 40 × 25 mm with a 7.2 mm bushing hole, a 3 × 12 mm slot for the pins and a matching 30 × 15 mm knob with a 6 mm D bore and knurled edge. Walls are 2 mm. Print the box upside down and the knob flat in PLA.

There is no ready-made model for this part yet. Click Build it with AI and sign in: the example prompt on this page is filled in, and SpeakCAD builds the part from it in your browser (4 credits for the part on a plan, its first 3 small changes free). Change any number in the viewer for free, then download a watertight STL or 3MF, included in every plan (4 credits without one), or G-code sliced for your printer at the same price. Start with Maker: 50 credits a month for $7.99, cancel anytime.

SpeakCAD builds it to your measurements from the example prompt on this page: the part uses 4 credits on a plan, its first 3 small changes free (3 without a plan), and a small change after them 2, then the STL or 3MF download is included in every plan (4 credits without one), or G-code sliced for your printer at the same price. Start with Maker: 50 credits a month for $7.99, cancel anytime. To try the editor before paying, the live demo is free, no account.

A shared STL is modelled for someone else's measurements. SpeakCAD builds this part to the millimetres you give it (AI requests use credits), so the file you download is sized for the part you actually own.

Yes. SpeakCAD slices the part on its servers with OrcaSlicer and your printer's official profile (380+ printers, including Bambu Lab, Prusa, Creality and Elegoo), and you download the G-code (a sliced .gcode.3mf for Bambu Lab printers). G-code sliced for your printer costs the same as the STL: included in every plan, free for a part you shaped by hand, 4 credits without a plan for a part with AI work in it. Pick your printer on the printers page to see its profile.

No. SpeakCAD runs in the browser on your phone or computer: the chat, the 3D engine and the live viewer load in the tab. The only file you download is the finished STL, 3MF or sliced G-code.

Build, adjust and print your KY-040 rotary encoder knob box

Nothing to install. The prompt is waiting in the app after you sign in: SpeakCAD builds the part with AI (credits), no CAD skills needed, you check the fit, then download the STL, 3MF or sliced G-code.

Looking for a finished design by a maker? Browse the enclosures & cases on the marketplace, where makers share their models, most of them free.