projects
/
challenge-bot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cbc5ea8
)
move motor shaft z-size into its module
author
daniel watson
<ozzloy@gmail.com>
Wed, 23 Oct 2013 18:29:46 +0000
(11:29 -0700)
committer
daniel watson
<ozzloy@gmail.com>
Wed, 23 Oct 2013 18:29:46 +0000
(11:29 -0700)
wheel.scad
patch
|
blob
|
blame
|
history
diff --git
a/wheel.scad
b/wheel.scad
index a3bb53aac8d6b9923d3f5a96bbebd73324679043..2ba290a5985de42f99fe0f43595b7421b0ad2bfe 100644
(file)
--- a/
wheel.scad
+++ b/
wheel.scad
@@
-8,15
+8,18
@@
wheel_depth = 6;
wheel_radius = 68/2;
module encoder_shaft(){
wheel_radius = 68/2;
module encoder_shaft(){
+ // measured with calipers, checked against the motor shaft
motor_shaft_big = 3.7;
motor_shaft_small = 4.8;
motor_shaft_big = 3.7;
motor_shaft_small = 4.8;
- motor_shaft_length = wheel_depth
/ 2
;
+ motor_shaft_length = wheel_depth
* 3 / 4
;
intersection(){
cylinder(h = motor_shaft_length,
r = motor_shaft_big,
center = true,
intersection(){
cylinder(h = motor_shaft_length,
r = motor_shaft_big,
center = true,
- $fn=30);
+ $fn = 30);
+ // x direction is multiplied by 2 because the radius of the cylinder
+ // goes in both directions. the extra .1 is for overlap
cube([motor_shaft_big * 2.1, motor_shaft_small, motor_shaft_length],
center = true);}}
cube([motor_shaft_big * 2.1, motor_shaft_small, motor_shaft_length],
center = true);}}
@@
-28,7
+31,7
@@
module wheel(){
difference(){
cylinder(h = wheel_depth, r = wheel_radius, center = true, $fn = 30);
translate([0, 0, wheel_depth / 4]){
difference(){
cylinder(h = wheel_depth, r = wheel_radius, center = true, $fn = 30);
translate([0, 0, wheel_depth / 4]){
- scale([1, 1,
2
]){
+ scale([1, 1,
1.1
]){
encoder_shaft();}}
mounting_screw();
for(i = [1 : 5]){
encoder_shaft();}}
mounting_screw();
for(i = [1 : 5]){