Skip to content

walkerdanny/PendulumBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pendulum Bot

Simulates random spherical pendulum and exports the traced path as an STL file for 3D printing!

Automatically Tweets an image of the results and pushes the STL to this repo!

Example of what you can make!

The code simulates a pendulum moving in three dimensions based on random initial conditions, and then stores the traced path. This path is then used to generate a "bowl" shape based on the motion of the pendulum as an OpenSCAD script.

The width of the traced path varies according to the pendulum's velocity. Narrower is slower, wider is faster.

If the code thinks that the pendulum's path has formed something resembling a bowl shape, it adds a "base" to the bottom of it to help the print. If you want to remove it, the OpenSCAD files are automatically pushed to this repo as well as the .STL, so it's easy to edit.

The non-bot, non-randomised version of this lives here

If you care, here's a writeup and also a short Twitter thread on its development and my reasoning for it.

About

Bot that tweets simualted pendulums as STLs, and then pushes the results here!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published