kapy academy

Panel components

19 min readUpdated Nov 2026

A panel component is held by a threaded bushing and a nut (large push buttons, toggles), by spring clips that snap in behind the panel (rockers, LED clips) or by the PCB it is soldered to, in which case the hole only guides it (tactile switches, bare LEDs, displays). Manufacturers' sizes assume sheet metal 1–2 mm thick; a printed wall is 2–3 mm, and in it holes print small. The thickness is corrected by thinning or reinforcing the wall around the hole; the undersize, by hole compensation (Why holes print small).

Cutout dimensions

Push buttons and switches (mm)
Part Example Cutout Panel thickness What covers or holds it Source
Tactile 6 × 6 Omron B3F-1000/-1020/-1060/-1070 Ø4.0 over the Ø3.5 actuator — The PCB; overall height 4.3 / 5.0 / 7.0 / 9.5 (body 3.4) Omron B3F, A070-E1-08
Tactile 12 × 12 Omron B3F-4000 Ø7.6 over the Ø7.1 actuator — The PCB; height 4.3 flat, 7.3 with a 3.8 square stem for a cap Omron B3F, A070-E1-08
12 mm push button ONPOW GQ12 Ø12 nominal, no tolerance given: measure your part ≤ 4 Head Ø17.5 ONPOW catalog (distributor copy)
16 mm metal push button APEM AV0630, M16 × 1 Ø16.2 1–6 Bezel Ø18 (0.9 per side); minimum center spacing 24 × 24 (20 × 20 with a knurled nut) APEM catalog, p. B2-80
19 mm anti-vandal APEM AV09100, M19 × 1 Ø19.2 1–11 Bezel Ø22 APEM catalog, p. B2-77/78
22 mm anti-vandal APEM AV03100, M22 × 1 Ø22.2 1–11 Bezel Ø25 APEM catalog, p. B2-79
22 mm industrial Schneider Harmony XB5 Ø22.3 +0.4/0, 22.5 recommended; notch 3.2 +0.2/0 wide, 24.1 +0.4/0 from the opposite edge 1–6 Head Ø29.5; minimum spacing 30 horizontal × 40 vertical with screw terminals Schneider datasheet; se.com FAQ000284038
Toggle, 1/4-40 bushing E-Switch 100 series Ø6.35 (thread); 0.85 × 0.55 keyway or Ø2.38 locating hole at 6.1 between centers 8.89 bushing: do the sum (below) Nut and lock washer E-Switch ST113013 rev. E and 100 series sheet
Toggle, 15/32-32 bushing E-Switch 100 series Ø11.91 (thread); 1.65 × 0.79 keyway or Ø3.81 locating hole at 9.6 Do the sum (below) Nut and lock washer 100 series sheet
KCD1 rocker Generic 19 × 13 0.6–2.5 21 × 15 bezel; body 18.6 wide and 13.6 deep below the bezel (16.2 from another maker) LCSC datasheets, two makers
KCD3 rocker Generic No published figure: take it from your datasheet or measure it No figure 30.5 × 13.5 bezel LCSC datasheet
SS-12D00 slide Generic 3.5 × 1.5 slot + 0.5 per side = 4.5 × 2.5 — The PCB; body 8.8 × 3.9 × 3.5 high; actuator 1.5 × 1.5, travel 2.0, protrudes 2 / 3 / 4 / 10; pins at 2.5 pitch, not 2.54 LCSC datasheets, two makers
LEDs (mm)
Part Example Dimensions Cutout Panel thickness Source
Bare 5 mm LED Kingbright WP7113 Body Ø5.0; flange Ø5.9 × 1.0; length with flange 8.6; leads at 2.54 Depends on how it is held (below) — Kingbright WP7113ID
Bare 3 mm LED Kingbright WP710A10 Body Ø2.9; flange Ø3.2; length 5.4 Depends on how it is held (below) — Kingbright WP710A10ID
Clip with ring for 5 mm Dialight 515-0004 — Ø6.73 ≤ 2.78 Dialight
Panel lens for 5 mm VCC CLB 300 — Ø6.35 ± 0.05; spacing 9.5 0.8–6.35 (SPC 125 spacer below 4.75) VCC CLB 300
Clipmount for 3 mm VCC SMC 130 — Ø4.34; spacing 6.35 0.79–1.59 VCC SMC 130

The hole comes from the thread or the body plus the maker's clearance, not from the button's name. "22 mm" names the head class; the hole is 22.2–22.5. The same goes for 16 and 19: 16.2 and 19.2. Part numbers are examples and availability changes: always check the drawing for your part.

flange (Ø3.2 slips through; Ø5.9 does not)3 mm LED in Ø3.45 mm LED in Ø5.5VCC SMC 130 clipmount,Ø4.34Dialight 515-0004clip, Ø6.73tactile 6 × 6, Ø4.0tactile 12 × 12, Ø7.63.2 notch,24.1 from theopposite edgeONPOW GQ12, Ø12 (headØ17.5)APEM 16, Ø16.2 (bezelØ18)APEM 19, Ø19.2 (bezelØ22)APEM 22, Ø22.2 (bezelØ25)Schneider XB5, Ø22.5locating hole21 × 15 bezelactuator travel,2.01/4-40 toggle, Ø6.35keyway version, 0.85 ×0.5515/32-32 toggle,Ø11.91, locating holeØ3.81 at 9.6KCD1, 19 × 13SS-12D00 slot, 4.5 × 2.5
The cutouts at the same scale, seen from outside. Dashed: the bezel, head or flange that sits behind or on top.

Three kinds of hole

Covered hole. The hole for a threaded push button hides under the bezel: the APEM 16 covers 0.9 mm per side and the XB5 head is Ø29.5. A few tenths too big will not show; a few tenths too small and the thread will not go in. So on large holes, err on the large side: print them with hole compensation and, if in doubt, add 0.1–0.2. Toggles are the same even without a bezel: the maker's cutout is the thread diameter (6.35 and 11.91), with no clearance. Print it with compensation and add 0.1–0.2, up to 6.5 and 12.1; the washer and nut cover it.

Hole that is the fit. For a bare LED that goes in from the front or is held by friction, a rocker whose clips bite the edges of the cutout, or the locating hole of a toggle, the hole must print to size: hole compensation and a check on a coupon (Real printed clearances, Test coupons).

Guide hole. A hole over a part soldered to the board only has to let the tactile actuator or the LED through even if the board ends up slightly off. Start at 0.25 per side, the same idea as the 0.5 per side in Connector cutouts: it soaks up the position errors that add up, it is not a sliding fit (Assemblies and tolerance stackups). If the chain is long, with the board in the base and the panel in the lid, give it more clearance or make the hole follow the board's position in the model.

With an LED, look at the flange. A 5 mm LED in Ø5.5 (5.0 + 0.25 per side) stops behind the panel on its Ø5.9 flange: 0.2 mm per side. The 3 mm Kingbright WP710A10 in Ø3.4 (2.9 + 0.25 per side) has a Ø3.2 flange, smaller than the hole, and goes straight through. Other 3 mm LEDs have a wider flange: measure yours; if it is larger than the hole, it acts as a stop. For a thin-flanged LED fitted from behind you have three options: a Ø3.0 hole (0.05 per side of clearance on the body; the Ø3.2 flange bears 0.1 per side on the edge), printed with compensation, tested on the coupon with the real LED and never reamed with a drill; the VCC SMC 130 clipmount in Ø4.34; or let the PCB hold it.

The part sets the wall thickness

Every part held by clips or a nut accepts a range of panel thicknesses. Below it, the part rattles. Above it, the clips do not catch or the nut cannot reach the thread. A printed wall is usually 2–3 mm, and the ranges are: KCD1 0.6–2.5; Dialight clip up to 2.78; VCC clipmount 0.79–1.59; ONPOW GQ12 up to 4; APEM 16 and XB5 1–6; APEM anti-vandal 1–11.

Wall too thick. Thin the wall from behind with a flat-bottomed pocket round the cutout until it falls within range. For a KCD1 in a 3.0 wall, pocket down to 2.0. The pocket has to clear the body (18.6 wide below the bezel) and the clips: as a starting point, cutout + 2 per side, about 23 × 17 (a starting value, not the maker's).

Wall too thin. Below 1.0 for APEM and XB5, or 0.6 for the KCD1, add a reinforcing ring on the inside to bring the local thickness up into range.

Threaded bushing. The panel thickness it accepts is the thread length minus the nut, the washer and the lock washer, the same sum as for threaded jacks in Connector cutouts. The E-Switch sheets give neither the nut thickness nor the maximum panel: measure the nut and do the sum with the 8.89 mm bushing of the 1/4-40.

Nuts in plastic. APEM's tightening torque (5–14 N·m) is for a metal panel. On a printed one, that torque crushes the plastic and creep loosens the nut within weeks. Tighten it by hand, with a washer, and if the panel carries loaded nuts choose ASA or PC; PETG only beats PLA if the enclosure runs warm (Creep and fatigue).

Anti-rotation. A round push button can turn with no harm beyond twisting its wires. A toggle, a selector or an emergency-stop mushroom cannot. On the toggle, use the locating hole (Ø2.38 at 6.1 on the 1/4-40) with its lock washer. The keyway slot (0.85 × 0.55) is barely two beads wide and its edge comes out fragile: the hole is better. On XB5 selectors and mushrooms, Schneider's 3.2 notch. APEM's round anti-vandal buttons have no notch: the nut holds them.

Fitting an emergency-stop mushroom or a mains rocker to a printed panel does not make it a certified safety device or an approved electrical installation. Anything running at 230 V is out of scope here.

3.0 wallpocket from behinddown to 2.0KCD1 range,0.6–2.5clips not caught / caughtthread = panel + washer + nutbezel outsidewashernuthand-tight5 mm LED in Ø5.50.2 per sidestop3 mm LED in Ø3.4Ø3.2 flangeslips through
Each part accepts a range of panel thickness. You correct the wall around the cutout, not the hole.

Display windows

The window comes from the active area (the pixel area), not from the module's PCB or the glass: window = active area + margin per side. On the 0.96″ OLED (active area 21.74 × 10.86), 1 mm per side gives 23.74 × 12.86, exactly the viewing area the maker quotes.

The window is not centered on the PCB. On the 0.96″ OLED, the active area starts 2.78 from the left edge and 10.57 from the bottom edge of a 27.3 × 27.8 board. With a 1 mm margin, the window center sits 2.1 mm above the board center: a window centered on the board covers 1.1 mm of the active area, about 6 rows of pixels. On the 1602 LCD (80 × 36, Ø2.5 holes at 75 × 31), the display center is at (40.55, 17.7), not (40, 18). That half-millimeter offset cuts no pixels, but the frame looks crooked.

Clones vary by 1–2 mm. The 1602's viewing area runs from 64.5 × 16 to 66 × 16.4 depending on the maker; there are OLEDs at 27.3 × 27.8 and at about 27 × 27, some with 2.5 holes and with GND and VCC swapped. Measure your module before printing (Measuring an undocumented standard).

Viewing angle. Seen at an angle, the wall hides the edge pixels: the edge of the active area disappears at atan(margin ÷ depth) off-axis, with the depth measured from the pixels, which on the OLED sit about 0.6 mm under the glass (measure yours). With a 1 mm margin in a 2.0 wall, the depth is 2.6 and the angle about 21°. A 1 × 45° outer chamfer takes it to about 32°, and a 1.5 × 45° one to about 42°.

Post height. Put posts behind the wall, at the module's holes. Their height is that of the glass (or frame) above the PCB, so the glass rests on the inner face without bending the board. Never clamp on the glass.

Display posts and screws (mm)
Module Post height Screw Modeled pilot
0.96″ OLED 1.45 M2 1.6–1.7
1602 LCD 8.9 M2.5 2.0–2.1
2004 LCD 9.0 M2.5 2.0–2.1
2.8″ TFT 4.0 M3 2.5

Screw and pilot. The pilots are those of Self-tapping screws in plastic, but the posts are the diameter of the board's copper pad (Ø3.5 on the OLED, Ø4.7 on the TFT), thinner than the 2 × d boss that article asks for, and on the OLED the screw engages less than 2 × d. Drive it once and stop as soon as it seats, or use a through screw and a nut.

Screw length. The screw passes through PCB, post and wall, and must leave at least 0.8 of skin on the visible face. With the OLED, a 1.45 post and a 2.0 wall, M2 × 4 at most; an M2 × 5 pokes through.

If you want a clear protector, leave a recess on the inside for a 1–2 mm acrylic or polycarbonate sheet, a couple of millimeters larger than the window on each side.

21.74 × 10.86active areawindow center, 2.1higherPCB center1 margin perside23.74 × 12.86 window27.3 × 27.8 PCB2.0 wall1.45 postM2 × 4 self-tapping screw1.45 glassline of sight27° counting only thewall (≈ 21° with theglass)45° counting only thewall (≈ 32° with theglass)1 × 45° outerchamfer
The window comes from the active area and is not centered on the board. The wall thickness, plus the glass, limits the viewing angle; an outer chamfer widens it.

Worked example: a remote-control lid with an OLED

A 2.0 mm PETG lid, printed visible face down. Inside, a PCB with two Omron B3F tactile switches and a 5 mm LED; the inner face of the lid sits 6.5 mm above the top of the PCB. Also inside, a 0.96″ OLED on its own posts and a KCD1 power rocker.

Buttons. The outer face is 6.5 + 2.0 = 8.5 above the PCB. The 9.5 mm B3F-1070 stands 1.0 proud through a Ø4.0 hole. The 7.0 version would sit 1.5 below the outer face: you would need a printed cap, its stem a sliding fit (0.20 per side) with a flange on the inside so it cannot fall out (Cantilever push button).

LED. Soldered down to the flange, the 5 mm LED reaches 8.6 against an outer face at 8.5: flush, ±0.3, because Kingbright's drawing gives ±0.25 and the lid adds its own. If you want it proud, lift it on a spacer or lower the face in that area. The Ø5.5 hole is a guide, not a seat: the PCB holds it.

OLED. A 23.74 × 12.86 window, its bottom-left corner at (1.78, 9.57) from the module's bottom-left corner, seen from outside. 1.45 posts with M2 × 4 self-tappers. A 1.0 × 45° outer chamfer widens the viewing angle from about 21° to about 32°.

Rocker. A 19 × 13 cutout in the 2.0 lid, inside the KCD1's 0.6–2.5 range: no pocket needed. But the body reaches 13.6 below the bezel, 11.6 below the inner face, and the PCB is at 6.5: the rocker has to go outside the board's footprint. If you place the reference part in the assembly, you see the clash before you print.

Bridges. None: the lid prints upside down. If the panel were vertical, the top edge of the window would be a 23.7 mm bridge, more than the roughly 20 mm a current printer bridges cleanly.

How to print it

Print front panels flat, outer face on the bed: holes come out round and windows have no ceiling. They still print small, so keep the compensation on. On the bed face, elephant's foot narrows the cutouts: compensate it in the slicer and also chamfer the edge of each cutout 0.5 mm at 45° (The face on the bed), or the LED and actuator will rub. That face is also the one people see; on a textured sheet, it comes out textured.

With the panel upright, holes up to Ø6 come out clean and those from 6 to 10 sag 0.1–0.3 mm at the top. Above 10 (XB5 22.5, APEM 16.2 / 19.2 / 22.2) use a 45° teardrop truncated at the circle's tangent (Designing out supports): its flat top is about 0.83 × the radius, 9 mm on the 22, and it stays under the bezel. A pointed teardrop does show: on the APEM 22 it reaches 15.7 from the center, against a bezel radius of 12.5. Rectangular cutouts are bridges: the KCD1, at 19, stays under 20; the OLED window (23.7) is already over, and the 1602's (about 66) needs support.

On parts held by clips, the clips grip the edge of the cutout: that edge has to be solid, with at least three beads (1.2 mm with a 0.4 mm nozzle) round it and no infill gaps (Walls, perimeters and infill).

For an indicator with no hole, a skin of 2–3 layers of white or natural filament over the LED lets the light through. Another option: a window in translucent filament using a filament switcher (Designing for multicolor). Check it on a coupon: it depends on the filament.

When it fails

Symptom, cause and fix
Symptom Cause Fix
The large push button's thread will not go in The maker's size was used as is and the hole printed small Hole compensation and +0.1–0.2; the bezel covers it
The toggle's thread will not go in Cutout at thread diameter (6.35 / 11.91), no clearance Compensation and 6.5 / 12.1; the washer covers it
The rocker falls out or rattles Wall below its range, or cutout printed oversize Coupon; reinforcing ring to bring it into 0.6–2.5
The rocker's clips do not catch Wall over 2.5 Pocket from behind down to 2.0
The rocker drops through the cutout The bezel (21 × 15) was modeled instead of the cutout 19 × 13
The 3 mm LED drops through Flange smaller than the hole (WP710A10's Ø3.2 in Ø3.4) Ø3.0 with compensation, clipmount in Ø4.34, or let the PCB hold it
The toggle turns when flicked No anti-rotation Ø2.38 locating hole at 6.1 with a lock washer; if it is the nut, see the next row
The nut works loose within weeks Too much torque on plastic, creep Washer, hand-tight, ASA or PC; retighten once after a few days
The display loses rows of pixels on one side Window centered on the PCB or sized from it Window = active area + margin, on the measured module
The display's edges vanish from the side Shadow of the wall and the glass: atan(margin ÷ depth) 45° outer chamfer, more margin
The display screw marks the visible face Screw longer than PCB + post + wall − 0.8 A shorter one (M2 × 4 on the OLED)
The tactile switch will not click or stays pressed Actuator height does not match the distance to the lid Another B3F height, or a printed cap with a stop
The slide switch only reaches one end Slot the size of the actuator, travel not counted 4.5 × 2.5 (actuator + travel + 0.5 per side)

How to test it

Print a strip first at the panel's real thickness, with the cutouts that work as fits (rocker, LED, toggle with its locating hole) and the window. It prints in 15–20 minutes; try the real parts in it (Test coupons). Once everything fits, move on to the part: the lid of an ESP32 or Arduino project with an OLED, buttons and LEDs (ESP32 and other small boards), the front of a bench power supply with a KCD1 and 22 mm buttons, or a blank rack panel with toggles and LEDs (19-inch racks).

See also

Design it in KapyCAD

Draw the part to the standard's dimensions and keep them as values you can edit.

Free plan, no card. Runs in your browser, nothing to install.

Open the editor

Still have a question?