From 896e93d7c352ffdd92bb5f6b161636d13e62d915 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Fri, 16 Jun 2017 14:49:08 -0700 Subject: [PATCH] use spokes on wheels --- .gitignore | 1 + 3d-printables/wheel-data.scad | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 361fe6d..9367188 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ media/ *.JPG *.aux *.log +*.tex diff --git a/3d-printables/wheel-data.scad b/3d-printables/wheel-data.scad index 2fd9f7f..70dc710 100644 --- a/3d-printables/wheel-data.scad +++ b/3d-printables/wheel-data.scad @@ -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, -- 2.30.2