Linear bearings

⚙️ Spec sheet →  —  visual schematic and metrics measured from a real rendered STL.

Pure-Python port of BOSL2’s linear_bearings.scad: models of LMxUU linear ball bearings that run along a rod, and the pillow-block housings that clamp them to a plate. lmXuu_bearing() looks a standard size up in lmXuu_info() (a LinearBearingSpec table); linear_bearing() is the generic form. .. autoclass:: bosl2.linear_bearings.LinearBearingSpec

members:

class bosl2.linear_bearings.LinearBearings[source]

Bases: object

Linear (LMxUU) ball bearings and pillow-block housings (BOSL2 linear_bearings.scad).

static lmXuu_info(size)[source]

The LinearBearingSpec (outer_diameter, length) for a standard LMxUU size (BOSL2 lmXuu_info()).

Parameters:

size (int)

Return type:

LinearBearingSpec

static linear_bearing(length=24, outer_diameter=15, inner_diameter=8, color='silver')[source]

A generic linear ball-bearing cartridge, bore inner_diameter / outer outer_diameter / length length (BOSL2 linear_bearing()).

Examples

An LM8UU-sized bearing:

from bosl2.linear_bearings import LinearBearings
LinearBearings.linear_bearing(length=24, outer_diameter=15, inner_diameter=8).show()

⬇ Download STL mesh

Parameters:
  • length (float)

  • outer_diameter (float)

  • inner_diameter (float)

  • color (str | None)

Return type:

Bosl2Solid

static lmXuu_bearing(size=8, color='silver')[source]

A standard LMxUU linear bearing for a size mm rod (BOSL2 lmXuu_bearing()).

Parameters:
  • size (int)

  • color (str | None)

Return type:

Bosl2Solid

static linear_bearing_housing(diameter=15, length=24, tab=8, gap=5, wall=3, tabwall=5, screwsize=3, fn=None, fa=None, fs=None)[source]

A pillow-block housing that clamps a linear bearing (bore diameter, length length) to a plate (BOSL2 linear_bearing_housing()).

The teardrop bore prints without support; the split gap and a screwsize clamp screw through the tabs let it grip the bearing.

Parameters:
  • diameter (float)

  • length (float)

  • tab (float)

  • gap (float)

  • wall (float)

  • tabwall (float)

  • screwsize (float)

  • fn (int | None)

  • fa (float | None)

  • fs (float | None)

Return type:

Bosl2Solid

static lmXuu_housing(size=8, tab=7, gap=5, wall=3, tabwall=5, screwsize=3, fn=None, fa=None, fs=None)[source]

A pillow-block housing sized for a standard LMxUU bearing (BOSL2 lmXuu_housing()).

Parameters:
  • size (int)

  • tab (float)

  • gap (float)

  • wall (float)

  • tabwall (float)

  • screwsize (float)

  • fn (int | None)

  • fa (float | None)

  • fs (float | None)

Return type:

Bosl2Solid

Examples

These mirror the examples in BOSL2’s linear_bearings.scad, rendered live through PythonSCAD. Examples that rely on BOSL2’s attachment/anchor system, or on features not in this port, are omitted.

linear_bearing

A generic cartridge:

LinearBearings.linear_bearing(length=24, outer_diameter=15, inner_diameter=8).show()

⬇ Download STL mesh

lmXuu_bearing

A standard LM10UU:

LinearBearings.lmXuu_bearing(size=10).show()

⬇ Download STL mesh

linear_bearing_housing

A pillow-block housing:

LinearBearings.linear_bearing_housing(diameter=19, length=29, wall=2, tab=8, screwsize=2.5).show()

⬇ Download STL mesh

lmXuu_housing

A housing sized for an LM10UU:

LinearBearings.lmXuu_housing(size=10, wall=2, tab=6, screwsize=2.5).show()

⬇ Download STL mesh