An OpenSCAD script to generate basic shapes to represent common bearing, stepper motor and PC cooling fan sizes for your scad models. Now with added jhead.
I wanted to test a design for an extruder in software to see if things would fit. So I had a go at making modules for the things I would be using repeatedly and this basic script is the result.
Recently remixed to include PC cooling fans as suggested by gddeen.
To use, download the scadscript and rename it back to hardware.scad (thingiverse will prepend some text to the script name to remove that first).
To call the functions from other scad scripts, add the following to the top of your own scad script:
Note: You can use the above include statement if the hardware.scad file is in the same directory as the scad file that has the include statement. Otherwise you need to include the relevant path for the file name.
Then you can call any of the predefined functions:
Remember these aren't meant to be nice looking models, just used to work out fit and function on other models and save you a bit of work trying to find dimensions.
The predefined functions are wrappers that define the dimensions for generic functions that define the model.
bearing688ZZ() calls the generic
bearing() function and passes in the dimensions for a 688ZZ bearing.
//Predefined LM8UU Bearing
bearing(16, 8, 5);
bearing() function takes the following arguments:
bearing(outerRaceSize, innerRaceSize, thickness)
nema17() function calls the generic
stepperMotor() functions and passes the relevant dimensions.
stepperMotor(35.2, 36, 26.0, 3, 5, 24, 22, 2);
stepperMotor() take the following arguments:
stepperMotor(caseSize, caseHeight, holeSpacing, holeDiameter, shaftDiameter, shaftHeight, shaftCollarDiameter, shaftCollarThickness)
The fan function works the same way. So for a 60mm fan call
fan60() which passes the relevant dimensions to
fan() takes the following dimensions.