explaingit

kaysiebke-cell/gates-cdx-kettenspanner-ritzel-generator-brompton

Analysis updated 2026-05-18

0PythonAudience · generalComplexity · 3/5Setup · moderate

TLDR

A FreeCAD macro and web configurator that generates a custom belt tensioner sprocket for Brompton bikes converted to Gates Carbon Drive.

Mindmap

mindmap
  root((repo))
    What it does
      Generates a tensioner sprocket
      Offers web configurator
      Exports STL for printing
    Tech stack
      Python
      FreeCAD
      PySide6
    Use cases
      Replace a worn tensioner pulley
      Customize tooth count
      Print a belt guide sprocket
    Audience
      Brompton owners
      3D printing hobbyists
    Setup
      Use online configurator
      Or run macro in FreeCAD

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Generate a custom 3D printable belt tensioner sprocket for a Gates Carbon Drive converted Brompton.

USE CASE 2

Download a ready made STL for a standard tooth count without installing any software.

USE CASE 3

Adjust tooth count, pitch, and fillets inside FreeCAD for a fully custom part.

USE CASE 4

Follow the included print settings to produce a durable PA12-CF sprocket.

What is it built with?

PythonFreeCADPySide6

How does it compare?

kaysiebke-cell/gates-cdx-kettenspanner-ritzel-generator-brompton0xallam/my-recipe0xhassaan/nn-from-scratch
Stars00
LanguagePythonPythonPython
Last pushed2022-11-22
MaintenanceDormant
Setup difficultymoderatemoderatemoderate
Complexity3/52/54/5
Audiencegeneralgeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

FreeCAD usage requires version 1.1 or newer, 3D printing PA12-CF needs a heated bed and hardened steel nozzle.

In plain English

This project is a FreeCAD macro that generates a custom guide sprocket, also called an idler pulley, for the belt tensioner on a Brompton folding bike that has been converted to a Gates Carbon Drive CDX belt system. It is not the main drive sprocket on the rear wheel, but the smaller ball bearing wheel that keeps the belt properly tensioned. Users have two ways to get a sprocket. The simplest is an online web configurator where the tooth profile, mud ports, belt guide, and bearing seats can be adjusted and previewed live in 3D, with ready made STL files available for common sizes between 12 and 18 teeth, or a custom STL that can be dragged straight out of the browser. For more control, the project can also be run directly as a macro inside FreeCAD, where a dedicated panel lets a user preview the tooth profile quickly, build the full solid model, and export a clean finished part for printing. The generator is fully parametric, meaning tooth count, pressure angle, pitch, and tooth depth can all be adjusted, and the tool remembers the last settings used along with working fillet values so recalculating after a failed attempt does not start from scratch. The README includes detailed guidance for 3D printing the part in PA12-CF, a carbon fiber reinforced nylon filament, covering nozzle type, infill, print speed, bed and chamber temperature, drying, and which printer models are compatible. It also covers optional post-processing steps like filling layer lines, wet sanding, and sealing the surface, along with safety notes about the irritating dust produced when sanding carbon fiber parts. This project is aimed at Brompton owners who have converted their bike to a Gates belt drive and want a replacement or upgraded tensioner sprocket, and it assumes some familiarity with 3D printing or FreeCAD.

Copy-paste prompts

Prompt 1
Walk me through using the online configurator to generate a 14 tooth tensioner sprocket STL.
Prompt 2
Help me set up and run freecad/main.py as a macro in FreeCAD to build a custom sprocket body.
Prompt 3
Explain the recommended PA12-CF print settings for this sprocket, including nozzle and bed temperature.
Prompt 4
Show me how to adjust the bearing seat diameter for a proper press fit after printing.

Frequently asked questions

What is gates-cdx-kettenspanner-ritzel-generator-brompton?

A FreeCAD macro and web configurator that generates a custom belt tensioner sprocket for Brompton bikes converted to Gates Carbon Drive.

What language is gates-cdx-kettenspanner-ritzel-generator-brompton written in?

Mainly Python. The stack also includes Python, FreeCAD, PySide6.

How hard is gates-cdx-kettenspanner-ritzel-generator-brompton to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is gates-cdx-kettenspanner-ritzel-generator-brompton for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.