projects
/
challenge-bot
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use spokes instead of square for wheel
[challenge-bot]
/
3d-printables
/
wheel-data.scad
diff --git
a/3d-printables/wheel-data.scad
b/3d-printables/wheel-data.scad
index 70dc71039d081f537db10ccc54f10b20bcce0a10..5245266a8c857e637c8a741011094b8806ffd693 100644
(file)
--- a/
3d-printables/wheel-data.scad
+++ b/
3d-printables/wheel-data.scad
@@
-12,14
+12,14
@@
// 100 will make printing smooth
$fn = 100;
// 100 will make printing smooth
$fn = 100;
-wheel_s
quare_spoke_size
= 45;
-wheel_s
quare_s
poke_thickness = 2;
+wheel_s
poke_length
= 45;
+wheel_spoke_thickness = 2;
wall_width = 3;
wall_width = 3;
-
wheel
_width = 7;
+
rim
_width = 7;
wheel_radius =
wheel_radius =
- sqrt(2 * pow(wheel_s
quare_spoke_size
/ 2, 2)) + wall_width / 2 + 1;
+ sqrt(2 * pow(wheel_s
poke_length
/ 2, 2)) + wall_width / 2 + 1;
motor_shaft_radius = 3.9;
motor_shaft_flat_width = 5.2;
motor_shaft_radius = 3.9;
motor_shaft_flat_width = 5.2;
@@
-40,8
+40,8
@@
module motor_shaft(radius,
linear_extrude(height = shaft_length) {
motor_shaft_flat(radius, flat_width); } }
linear_extrude(height = shaft_length) {
motor_shaft_flat(radius, flat_width); } }
-module rim(radius, wall_width,
wheel
_width) {
- linear_extrude(height =
wheel
_width) {
+module rim(radius, wall_width,
rim
_width) {
+ linear_extrude(height =
rim
_width) {
difference() {
circle(radius);
circle(radius - wall_width); } } }
difference() {
circle(radius);
circle(radius - wall_width); } } }
@@
-73,7
+73,7
@@
module wheel(radius,
rim(radius, wall_width * 2, width);
translate([0, 0, width / 2]) {
tread(radius, tread_radius); } }
rim(radius, wall_width * 2, width);
translate([0, 0, width / 2]) {
tread(radius, tread_radius); } }
- linear_extrude(height = wheel_s
quare_s
poke_thickness) {
+ linear_extrude(height = wheel_spoke_thickness) {
difference() {
union(){
for(spoke = [0: spoke_count - 1]) {
difference() {
union(){
for(spoke = [0: spoke_count - 1]) {
@@
-81,11
+81,11
@@
module wheel(radius,
translate([-spoke_width / 2, 0]){
square([spoke_width, radius - 2]); } } } }
mounting_screw_flat(); } }
translate([-spoke_width / 2, 0]){
square([spoke_width, radius - 2]); } } } }
mounting_screw_flat(); } }
- translate([0, 0, wheel_s
quare_s
poke_thickness]) {
+ translate([0, 0, wheel_spoke_thickness]) {
motor_shaft_holder(shaft_radius,
shaft_flat_width,
wall_width,
motor_shaft_holder(shaft_radius,
shaft_flat_width,
wall_width,
- width - wheel_s
quare_s
poke_thickness); } }
+ width - wheel_spoke_thickness); } }
/*
This file is part of challenge-bot.
/*
This file is part of challenge-bot.