2 // GNU AGPLv3 (or later at your option)
3 // project available at these locations:
4 // https://gitorious.org/ozzloy/challenge-bot
5 // https://github.com/waynegramlich/challenge-bot
7 // use $fn = 20 while developing, 100 when about to print
8 // 20 will make previews fast
9 // 100 will make printing smooth
12 include
<wheel
-dimensions
.scad
>
15 module
mounting_screw_flat() {
18 module
motor_shaft_flat(radius
, flat_width
) {
21 square([flat_width
, radius
* 2], center
= true); } }
23 module
motor_shaft(radius
,
26 linear_extrude(height
= shaft_length
) {
27 motor_shaft_flat(radius
, flat_width
); } }
29 module
rim(radius
, wall_width
, wheel_width
) {
30 linear_extrude(height
= wheel_width
) {
33 circle(radius
- wall_width
); } } }
35 module
motor_shaft_holder_flat(radius
, flat_width
, wall_width
) {
37 motor_shaft_flat(radius
+ wall_width
,
38 flat_width
+ wall_width
);
39 motor_shaft_flat(radius
, flat_width
); } }
41 module
motor_shaft_holder(radius
, flat_width
, wall_width
, height
) {
42 linear_extrude(height
= height
) {
43 motor_shaft_holder_flat(radius
, flat_width
, wall_width
); } }
45 module
tread(wheel_radius
, tread_radius
) {
46 rotate_extrude(convexity
= 10) {
47 translate([wheel_radius
, 0]) {
48 circle(tread_radius
); } } }
50 module
wheel_black(radius
,
58 rim(radius
, wall_width
, width
);
59 translate([0, 0, width
/ 2]) {
60 tread(radius
, tread_radius
); } }
61 linear_extrude(height
= qr_height
) {
64 mounting_screw_flat(); } }
65 translate([0, 0, qr_height
]) {
66 motor_shaft_holder(shaft_radius
,
69 width
- qr_height
); } } }
71 module
wheel_white() {
73 linear_extrude(height
= qr_height
) {
76 mounting_screw_flat(); } } } }
92 module
wheel_solid(radius
,
99 rim(radius
, wall_width
* 2, width
);
100 translate([0, 0, width
/ 2]) {
101 tread(radius
, tread_radius
); } }
102 linear_extrude(height
= qr_height
) {
104 square(qr_size
, center
= true);
105 mounting_screw_flat(); } }
106 translate([0, 0, qr_height
]) {
107 motor_shaft_holder(shaft_radius
,
110 width
- qr_height
); } }
116 motor_shaft_flat_width,
121 wheel_solid(wheel_radius
,
124 motor_shaft_flat_width
,