use spokes on wheels
authordaniel watson <ozzloy@gmail.com>
Fri, 16 Jun 2017 21:49:08 +0000 (14:49 -0700)
committerdaniel watson <ozzloy@gmail.com>
Fri, 16 Jun 2017 21:49:08 +0000 (14:49 -0700)
.gitignore
3d-printables/wheel-data.scad

index 361fe6dfbd267bf1f856ca496135b1884ea5289c..9367188243ad3fdc4c654245e01d8085b7e3f17d 100644 (file)
@@ -35,3 +35,4 @@ media/
 *.JPG
 *.aux
 *.log
+*.tex
index 2fd9f7f5fb2a585cd5927941855dbcd6cc148ec6..70dc71039d081f537db10ccc54f10b20bcce0a10 100644 (file)
@@ -67,13 +67,19 @@ module wheel(radius,
              shaft_flat_width,
              wall_width,
              tread_radius) {
+  spoke_count = 7;
+  spoke_width = radius / 3;
   difference() {
     rim(radius, wall_width * 2, width);
     translate([0, 0, width / 2]) {
       tread(radius, tread_radius); } }
   linear_extrude(height = wheel_square_spoke_thickness) {
     difference() {
-      square(wheel_square_spoke_size, center = true);
+      union(){
+        for(spoke = [0: spoke_count - 1]) {
+          rotate(spoke * 360 / spoke_count) {
+            translate([-spoke_width / 2, 0]){
+            square([spoke_width, radius - 2]); } } } }
       mounting_screw_flat(); } }
   translate([0, 0, wheel_square_spoke_thickness]) {
     motor_shaft_holder(shaft_radius,