3D-printed holder for magnetic spheres built with OpenSCAD

When I built the low-cost and precise rotary encoder with magnetic spheres I used 21 spheres because they fitted nicely in the other parts of the build I had around.

However, if an arbitrary number of spheres is to be used then an appropriate holder must be built.

The magnetic spheres are 5mm in diameter. Knowing the number and the radius of the external spheres it is possible to calculate the radius of a circle surrounded by adjacent circles by using the inverse formula for the Numbers of circles around a circle.

I firstly wrote a test program (draw_circle_surrounded_by_circles.py) as a proof of concept, and then used the same math to build a 3D model with OpenSCAD.

OpenSCAD makes it easy to build parametric objects:

OpenSCAD - Tetramag spheres holder animation

I chose a number of spheres to match a minimum internal radius that was needed to fit the holder on a bike wheel, the nine couples of square holes are for tying the holder to the spokes.

The source code is in the OpenSCAD-Tetramag_spheres_holder git repository.

The end result is not bad and fits the wheel quite nicely:

Tetramag spheres holder mounted on a bike wheel

Tetramag spheres holder mounted on a bike wheel


CommentiCondividi contenuti

Invia nuovo commento

Il contenuto di questo campo è privato e non verrà mostrato pubblicamente. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Indirizzi web o e-mail vengono trasformati in link automaticamente
  • Elementi HTML permessi: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Linee e paragrafi vanno a capo automaticamente.

Ulteriori informazioni sulle opzioni di formattazione

CAPTCHA
Questa domanda serve a verificare che il form non venga inviato da procedure automatizzate
R
K
H
d
V
A
Enter the code without spaces.