You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bearing-puller.scad 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. Copyright © 2018 Bernd Zeimetz <bernd@bzed.de>
  3. License: Creative Commons Attribution-ShareAlike 4.0 International
  4. */
  5. /*
  6. bearing configuration. 26/10/8 is a standard 6000 bearing
  7. */
  8. bearing_outer_diameter = 26;
  9. bearing_inner_diameter = 10;
  10. bearing_height = 8;
  11. /*
  12. If you own a bike like the Cube Stereo 120 HPA MY2015
  13. where the frame design was obviously done by somebody
  14. who will never ever remove the pivot bearings on their own,
  15. you can enable this workaround to produce a bearing removal
  16. tool which will fit on the frame.
  17. Might also work for other frames/parts where there is not enough
  18. space for the full circle of the tool to sit on the frame/part.
  19. */
  20. enable_cube_stereo_120_workaround = false;
  21. cube_stereo_120_workaround_height = 1.4;
  22. /*
  23. you should not have to change these options, but
  24. feel free to do if necessary.
  25. */
  26. $fn=360;
  27. space_for_bearing_height = bearing_height * 1.25;
  28. space_for_bearing_diameter = bearing_outer_diameter*1.0385;
  29. wall_thickness = 3;
  30. outer_diameter = space_for_bearing_diameter + (2*wall_thickness);
  31. outer_cylinder_height = space_for_bearing_height + wall_thickness;
  32. translate(v=[0,0,outer_cylinder_height]) {
  33. rotate(a=[180,0,0]) {
  34. difference() {
  35. cylinder(
  36. h=outer_cylinder_height,
  37. d=outer_diameter
  38. );
  39. union() {
  40. cylinder(
  41. h=space_for_bearing_height,
  42. d=space_for_bearing_diameter
  43. );
  44. cylinder(
  45. h=outer_cylinder_height*1.5,
  46. d=bearing_inner_diameter
  47. );
  48. if (enable_cube_stereo_120_workaround) {
  49. cube(
  50. [
  51. outer_diameter,
  52. outer_diameter,
  53. cube_stereo_120_workaround_height
  54. ],
  55. false
  56. );
  57. }
  58. }
  59. };
  60. };
  61. };