2023-04-27 00:58:59 +00:00
|
|
|
|
2023-05-09 18:57:23 +00:00
|
|
|
//include <./lamp.scad>;
|
2023-05-11 01:54:02 +00:00
|
|
|
//include <./box_laser.scad>;
|
2023-04-25 07:11:58 +00:00
|
|
|
include <./common/common.scad>;
|
|
|
|
include <./common/motors.scad>;
|
|
|
|
include <./common/2020_tslot.scad>;
|
|
|
|
include <./takeup/takeup.scad>;
|
2023-04-27 00:58:59 +00:00
|
|
|
include <./sprocketed_roller/sprocketed_roller_var.scad>;
|
2018-07-14 14:29:43 +00:00
|
|
|
|
2023-04-05 20:39:42 +00:00
|
|
|
IN = 25.4;
|
|
|
|
|
2024-02-24 13:18:05 +00:00
|
|
|
Film16mmStandard = 10.26;
|
|
|
|
Film16mmStandardZ = -0.7;
|
|
|
|
Film16mmFull = 16;
|
|
|
|
Film16mmFullZ = -1.1;
|
|
|
|
Film16mmSuper = 13.25;
|
|
|
|
Film16mmSuperZ = -(16 - Film16mmSuper) + 0.7;
|
|
|
|
Film16mmSound = Film16mmSuper - Film16mmStandard;
|
|
|
|
Film16mmSoundZ = -7.75;
|
2023-04-25 22:34:21 +00:00
|
|
|
|
2024-02-02 05:25:51 +00:00
|
|
|
FrameX = 400;
|
|
|
|
FrameY = 260;
|
2023-04-25 07:11:58 +00:00
|
|
|
FrameZ = -16;
|
|
|
|
|
2023-05-11 01:54:02 +00:00
|
|
|
Sprockets = 18;
|
2024-01-26 00:47:32 +00:00
|
|
|
SprocketedRollerBevel = true;
|
2023-05-11 01:54:02 +00:00
|
|
|
SprocketedRollerModel = "gearbox_motor";
|
|
|
|
SprocketedRollerSetScrewTop = true;
|
2024-01-17 23:48:05 +00:00
|
|
|
SprocketedRollerSetScrewSide = false;
|
2023-05-11 01:54:02 +00:00
|
|
|
SprocketedRollerBolts = true;
|
2023-05-12 20:31:28 +00:00
|
|
|
SprocketedRollerAdjustBase = -3;
|
2023-05-11 01:54:02 +00:00
|
|
|
|
2023-04-23 22:18:48 +00:00
|
|
|
DaylightW = 92;
|
2023-04-05 20:39:42 +00:00
|
|
|
DaylightH = 18;
|
|
|
|
|
2024-02-06 04:12:50 +00:00
|
|
|
PanelX = 155;
|
2023-05-09 18:57:23 +00:00
|
|
|
PanelY = 100;
|
2023-04-23 22:18:48 +00:00
|
|
|
PanelZ = 5;
|
2023-05-09 18:57:23 +00:00
|
|
|
PanelYOffset = 10;
|
2023-04-23 22:18:48 +00:00
|
|
|
PanelDimensions = [PanelX, PanelY, PanelZ];
|
|
|
|
|
2024-02-02 05:25:51 +00:00
|
|
|
ReelX = 145;
|
|
|
|
ReelY = 90;
|
2023-05-12 20:31:28 +00:00
|
|
|
|
2023-04-05 20:39:42 +00:00
|
|
|
MotorZ = -16;
|
2023-05-19 23:50:34 +00:00
|
|
|
TakeupMotorZ = -40;
|
2023-05-12 20:31:28 +00:00
|
|
|
|
|
|
|
PictureTakeupMotorRotationZ = -70;
|
2024-02-08 04:42:11 +00:00
|
|
|
StockTakeupMotorRotationZ = 110;
|
|
|
|
|
|
|
|
TakeupPanelX = 152;
|
|
|
|
TakeupPanelY = 100;
|
2023-05-12 20:31:28 +00:00
|
|
|
|
2024-02-02 05:25:51 +00:00
|
|
|
//Offsets the takeup panels by x,y
|
2024-02-08 04:42:11 +00:00
|
|
|
TakeupPanelPictureX = 127.5 + 6.25;
|
|
|
|
TakeupPanelPictureY = 90 + 10;
|
2023-05-12 20:31:28 +00:00
|
|
|
|
2024-02-08 04:42:11 +00:00
|
|
|
TakeupPanelStockX = 127.5 + 6.25;
|
|
|
|
TakeupPanelStockY = -90 - 10;
|
2023-05-19 22:17:23 +00:00
|
|
|
|
2024-02-08 04:42:11 +00:00
|
|
|
FeedPanelPictureX = -127.5 - 6.25;
|
|
|
|
FeedPanelPictureY = 90 + 10;
|
2023-05-20 14:08:47 +00:00
|
|
|
|
2024-02-08 04:42:11 +00:00
|
|
|
FeedPanelStockX = -127.5 - 6.25;
|
|
|
|
FeedPanelStockY = -90 - 10;
|
2023-05-20 14:08:47 +00:00
|
|
|
|
2023-05-12 20:31:28 +00:00
|
|
|
TakeupPanelPictureOffsetX = ReelX - TakeupPanelPictureX;
|
2024-02-08 04:42:11 +00:00
|
|
|
TakeupPanelStockOffsetX = ReelX - TakeupPanelStockX;
|
|
|
|
|
|
|
|
TakeupPanelPictureOffsetY = ReelY - TakeupPanelPictureY;
|
|
|
|
TakeupPanelStockOffsetY = -ReelY - TakeupPanelStockY;
|
2023-05-19 22:17:23 +00:00
|
|
|
|
2023-05-20 14:08:47 +00:00
|
|
|
FeedPanelPictureOffsetX = -ReelX - FeedPanelPictureX;
|
2024-02-08 04:42:11 +00:00
|
|
|
FeedPanelStockOffsetX = -ReelX - FeedPanelStockX;
|
|
|
|
|
2024-02-08 04:42:25 +00:00
|
|
|
FeedPanelPictureOffsetY = ReelY - FeedPanelPictureY;
|
2024-02-08 04:42:11 +00:00
|
|
|
FeedPanelStockOffsetY = -ReelY - FeedPanelStockY;
|
2023-05-20 14:08:47 +00:00
|
|
|
|
2024-02-05 04:33:15 +00:00
|
|
|
TakeupPanelBoltsOffsetX = -17.5;
|
|
|
|
FeedPanelBoltsOffsetX = 17.5;
|
|
|
|
|
2024-02-08 04:42:11 +00:00
|
|
|
|
2023-05-18 21:01:32 +00:00
|
|
|
TakeupCenterVoidD = 47;
|
|
|
|
TakeupCenterColumnD = 55;
|
2023-05-20 15:52:35 +00:00
|
|
|
TakeupCenterColumnZ = 23.25;
|
2023-04-05 20:39:42 +00:00
|
|
|
|
2023-05-19 02:55:23 +00:00
|
|
|
TakeupMotorMountX = 31;
|
|
|
|
TakeupMotorMountY = 31;
|
|
|
|
|
2023-05-20 15:52:35 +00:00
|
|
|
TakeupMotorPanelZ = -25;
|
2023-05-20 13:43:21 +00:00
|
|
|
|
2023-04-05 20:39:42 +00:00
|
|
|
RollerY = -20;
|
|
|
|
|
|
|
|
LampY = 20;
|
|
|
|
|
2023-04-25 07:11:58 +00:00
|
|
|
LampBoltX = 55;
|
|
|
|
LampBoltY = 30;
|
|
|
|
LampBoltH = 30;
|
|
|
|
|
2023-04-25 22:34:21 +00:00
|
|
|
LampWireX = 25;
|
|
|
|
LampWireY = 20;
|
|
|
|
|
|
|
|
LampGateX = 11;
|
|
|
|
|
|
|
|
IdleRollerPrintX = 55;
|
2023-05-22 17:24:21 +00:00
|
|
|
IdleRollerPrintY = 0;
|
|
|
|
IdleRollerStockX = 35;
|
|
|
|
IdleRollerStockY = -16;
|
2023-04-05 20:39:42 +00:00
|
|
|
|
2023-05-09 18:57:23 +00:00
|
|
|
IdleRollerBoltH = 30;
|
|
|
|
|
2024-01-17 23:48:05 +00:00
|
|
|
BearingOuterDiameter = 22.1 - .3;
|
2023-05-12 00:27:47 +00:00
|
|
|
BearingInnerDiameter = 8.05;
|
|
|
|
|
2023-05-19 23:50:34 +00:00
|
|
|
BearingY = (55/2) + 6 - 0.2;
|
2023-05-18 21:01:32 +00:00
|
|
|
BearingZ = -7;
|
|
|
|
BearingH = 9;
|
2018-07-14 14:29:43 +00:00
|
|
|
|
2023-05-12 20:31:28 +00:00
|
|
|
BearingRotateZ1 = 45;
|
|
|
|
BearingRotateZ2 = -45;
|
|
|
|
BearingRotateZ3 = 180+45;
|
|
|
|
BearingRotateZ4 = 180-45;
|
2018-07-14 14:29:43 +00:00
|
|
|
|
2023-05-18 21:34:29 +00:00
|
|
|
MotorMountX = (GearedMotorMountX + 0.1) / 2;
|
|
|
|
MotorMountY = (GearedMotorMountY + 0.1) / 2;
|
|
|
|
|
2024-02-11 14:39:57 +00:00
|
|
|
ESP32BoardX = 63.15;
|
|
|
|
ESP32BoardY = 77.6;
|
|
|
|
ESP32BoardZ = 1.7;
|
|
|
|
|
|
|
|
ESP32BoardClearanceX = 52.5;
|
|
|
|
ESP32BoardClearanceY = 66.66;
|
|
|
|
ESP32BoardClearanceZ = 20;
|
|
|
|
|
|
|
|
ESP32PostsX = 57.1;
|
|
|
|
ESP32PostsY = 72;
|
|
|
|
ESP32PostsD = 3.1;
|
|
|
|
|
|
|
|
L298NModuleX = 43.5;
|
|
|
|
L298NModuleY = 43.5;
|
|
|
|
L298NModuleZ = 1.5;
|
|
|
|
|
|
|
|
L298NModulePostsX = 36.5;
|
|
|
|
L298NModulePostsY = 36.5;
|
|
|
|
L298NModulePostsD = 2.8;
|
|
|
|
|
|
|
|
echo("BOM: [Frame] 2020 Extrusion X (x2)", FrameX + 20);
|
|
|
|
echo("BOM: [Frame] 2020 Extrusion Y (x4)", FrameY);
|
2023-04-05 20:39:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* DEBUG MODULES
|
|
|
|
**/
|
|
|
|
|
2024-02-05 04:33:15 +00:00
|
|
|
module daylight_spool (pos = [0, 0, 0], rot = [0, 0, 0], DEBUG = false) {
|
2023-04-05 20:39:42 +00:00
|
|
|
//inner starting d = 31.5 or 32
|
2024-02-05 04:33:15 +00:00
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
color([[255, 0, 0, 1]]) difference () {
|
|
|
|
cylinder(r = R(DaylightW), h = DaylightH - 0.1, center = true);
|
|
|
|
cylinder(r = R(DaylightW) + 1, h = DaylightH - 2, center = true);
|
|
|
|
cube([9, 9, 50], center=true);
|
|
|
|
translate([4.5, 4.5, 0]) {
|
|
|
|
rotate([0, 0, 45]) {
|
|
|
|
cube([3, 3, 50], center=true);
|
|
|
|
}
|
2023-04-05 20:39:42 +00:00
|
|
|
}
|
|
|
|
}
|
2024-02-05 04:33:15 +00:00
|
|
|
difference () {
|
|
|
|
cylinder(r = R(32), h = DaylightH - 0.2, center=true);
|
|
|
|
cylinder(r = R(32) - 1, h = DaylightH + 1, center=true);
|
|
|
|
translate([0, 32/2, 0]) {
|
|
|
|
cube([1.3, 10, 18], center=true);
|
|
|
|
}
|
2023-04-05 20:39:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-11 00:21:12 +00:00
|
|
|
module four_hundred_foot_spool (pos = [0, 0, 0]) {
|
|
|
|
W = 175;
|
|
|
|
H = 18;
|
2024-02-05 04:33:15 +00:00
|
|
|
translate(pos) difference() {
|
|
|
|
color([[255, 0, 0, 1]]) cylinder(r = R(W), h = H, center = true, $fn = 200);
|
|
|
|
cube([9, 9, 50], center=true);
|
|
|
|
translate([4.5, 4.5, 0]) {
|
|
|
|
rotate([0, 0, 45]) {
|
|
|
|
cube([3, 3, 50], center=true);
|
|
|
|
}
|
|
|
|
}
|
2023-05-11 00:21:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-05 20:39:42 +00:00
|
|
|
module centered_geared_motor (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
translate([8.25, 0, 0]) geared_motor();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-17 23:48:05 +00:00
|
|
|
module bearing (pos = [0, 0, 0], width = 8, hole = true, padding = 0.1) {
|
2023-05-12 20:31:28 +00:00
|
|
|
translate (pos) {
|
|
|
|
difference () {
|
2024-01-17 23:48:05 +00:00
|
|
|
cylinder(r = R(BearingOuterDiameter) + padding, h = width, center = true);
|
2023-05-12 20:31:28 +00:00
|
|
|
if (hole) {
|
2024-01-17 23:48:05 +00:00
|
|
|
cylinder(r = R(BearingInnerDiameter) - padding, h = width + 1, center = true);
|
2023-05-12 20:31:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-11 14:39:57 +00:00
|
|
|
module ESP32_board (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
translate (pos) rotate(rot) {
|
|
|
|
difference () {
|
|
|
|
cube([ESP32BoardX, ESP32BoardY, ESP32BoardZ], center = true);
|
|
|
|
rect_bolt_voids(X = ESP32PostsX, Y = ESP32PostsY, D = ESP32PostsD, H = ESP32BoardZ + 1);
|
|
|
|
}
|
|
|
|
translate([0, 0, (ESP32BoardZ / 2) + (ESP32BoardClearanceZ / 2)]) cube([ESP32BoardClearanceX, ESP32BoardClearanceY, ESP32BoardClearanceZ], center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module L298N_module (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
translate (pos) rotate(rot) {
|
|
|
|
difference () {
|
|
|
|
cube([L298NModuleX, L298NModuleY, L298NModuleZ], center = true);
|
|
|
|
rect_bolt_voids(X = L298NModulePostsX, Y = L298NModulePostsY, H = L298NModuleZ + 1, D = L298NModulePostsD);
|
|
|
|
}
|
|
|
|
translate([0, 10, (L298NModuleZ / 2) + (24.75 / 2)]) cube([23, 15.7, 24.75], center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-05 20:39:42 +00:00
|
|
|
/**
|
|
|
|
* CONTACT PRINTER MODULES
|
|
|
|
**/
|
|
|
|
|
2024-02-11 14:39:57 +00:00
|
|
|
module rect_bolt_voids (pos = [0, 0, 0], X = 1, Y = 1, D = 1, H = 1, $fn = 60) {
|
|
|
|
translate(pos) {
|
|
|
|
translate([ X / 2, Y / 2, 0]) cylinder(r = R(D), h = H, $fn = $fn, center = true);
|
|
|
|
translate([-X / 2, Y / 2, 0]) cylinder(r = R(D), h = H, $fn = $fn, center = true);
|
|
|
|
translate([ X / 2, -Y / 2, 0]) cylinder(r = R(D), h = H, $fn = $fn, center = true);
|
|
|
|
translate([-X / 2, -Y / 2, 0]) cylinder(r = R(D), h = H, $fn = $fn, center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module bearing_void (pos = [0, 0, 0], width= 8, hole = false, padding = 0.5) {
|
2023-05-12 00:27:47 +00:00
|
|
|
translate (pos) {
|
|
|
|
difference () {
|
2024-02-11 14:39:57 +00:00
|
|
|
cylinder(r = R(BearingOuterDiameter) + padding, h = width, center = true);
|
|
|
|
if (hole) {
|
|
|
|
cylinder(r = R(BearingInnerDiameter) - padding, h = width + 1, center = true);
|
|
|
|
}
|
2023-05-12 00:27:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-11 14:39:57 +00:00
|
|
|
module m3_panel_bolt_void (pos = [0, 0, 0], rot = [0, 0, 0], H = 10) {
|
|
|
|
translate(pos) rotate(rot) {
|
2023-04-25 07:11:58 +00:00
|
|
|
cylinder(r = R(6), h = 5, center = true, $fn = 40);
|
|
|
|
translate([0, 0, -(H/2) - (5/2) + 0.01]) cylinder(r = R(3.25), h = H, center = true, $fn = 25);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module takeup_mount_panel (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
translate(pos) rotate(rot) intersection() {
|
|
|
|
minimal_mount();
|
|
|
|
translate([10, 0, 0]) cube([50, 30, 10], center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module panel_motor_mount_void (pos = [0, 0, 0]) {
|
|
|
|
H = 10;
|
|
|
|
D = 7.5 + 1.5;
|
|
|
|
translate(pos) {
|
|
|
|
cylinder(r = R(6), h = H, center = true, $fn = 40);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-05 20:39:42 +00:00
|
|
|
module idle_roller (pos = [0, 0, 0]) {
|
2023-05-21 18:59:23 +00:00
|
|
|
H = 17.5;
|
|
|
|
InnerD = 5;
|
2023-05-22 04:07:59 +00:00
|
|
|
BaseD = 20;
|
|
|
|
D1 = 14;
|
|
|
|
D2 = D1 + 1.5;
|
2023-05-21 18:59:23 +00:00
|
|
|
|
|
|
|
$fn = 100;
|
|
|
|
Picture = 11;
|
2023-04-05 20:39:42 +00:00
|
|
|
translate(pos) {
|
2023-04-07 15:00:08 +00:00
|
|
|
difference () {
|
|
|
|
union () {
|
2023-05-21 18:59:23 +00:00
|
|
|
cylinder(r = R(BaseD), h = 1.5, center = true);
|
|
|
|
translate([0, 0, H]) cylinder(r = R(BaseD), h = 1.5, center = true);
|
2023-05-22 04:07:59 +00:00
|
|
|
translate([0, 0, H/2]) cylinder(r = R(D1), h = H, center = true);
|
|
|
|
translate([0, 0, (H - Picture)/4]) cylinder(r1 = R(D1), r2 = R(D2), h = (H - Picture) / 2, center = true);
|
|
|
|
translate([0, 0, H - ((H - Picture)/4)]) cylinder(r1 = R(D2), r2 = R(D1), h = (H - Picture) / 2, center = true);
|
2023-05-21 18:59:23 +00:00
|
|
|
}
|
|
|
|
cylinder(r = R(InnerD), h = 40, center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module idle_roller_half (pos = [0, 0, 0], rot = [0, 0, 0], flip = false) {
|
|
|
|
CutZ = -1.275;
|
|
|
|
translate(pos) rotate(rot) difference () {
|
|
|
|
idle_roller();
|
|
|
|
translate([0, 0, 25 + (1/2) + (17.5 / 2) + 2 + CutZ]) cube([50, 50, 50], center = true);
|
|
|
|
difference () {
|
|
|
|
translate([0, 24.9, 25 + (1/2) + (17.5 / 2) + CutZ]) cube([50, 50, 50], center = true);
|
|
|
|
if (flip) {
|
|
|
|
translate([4.25, -0.2, 25 + (1/2) + (17.5 / 2) + CutZ]) rotate([0, 0, 45]) cube([3, 3, 50], center = true);
|
|
|
|
} else {
|
|
|
|
translate([-4.25, -0.2, 25 + (1/2) + (17.5 / 2) + CutZ]) rotate([0, 0, 45]) cube([3, 3, 50], center = true);
|
2023-04-07 15:00:08 +00:00
|
|
|
}
|
2023-05-21 18:59:23 +00:00
|
|
|
}
|
|
|
|
if (flip) {
|
|
|
|
translate([-4.25, 0, 25 + (1/2) + (17.5 / 2) + CutZ]) rotate([0, 0, 45]) cube([3, 3, 50], center = true);
|
|
|
|
} else {
|
|
|
|
translate([4.25, 0, 25 + (1/2) + (17.5 / 2) + CutZ]) rotate([0, 0, 45]) cube([3, 3, 50], center = true);
|
2023-04-07 15:00:08 +00:00
|
|
|
}
|
2023-04-05 20:39:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-25 07:11:58 +00:00
|
|
|
module lamp_bolt_void (pos = [0, 0, 0], H = LampBoltH) {
|
|
|
|
translate(pos) {
|
|
|
|
cylinder(r = R(4.25), h = H, center = true);
|
|
|
|
translate([0, 0, -H/2]) m4_nut();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-09 18:57:23 +00:00
|
|
|
module idle_roller_bolt_void (pos = [0, 0, 0], H = IdleRollerBoltH) {
|
|
|
|
translate(pos) {
|
|
|
|
cylinder(r = R(4.25), h = H, center = true);
|
|
|
|
translate([0, 0, -H/2]) m4_nut();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-25 07:11:58 +00:00
|
|
|
module lamp_bolts_voids (pos = [0, 0, 0], H = 10) {
|
|
|
|
X = LampBoltX/2;
|
|
|
|
Y = LampBoltY/2;
|
|
|
|
$fn = 30;
|
|
|
|
translate(pos) {
|
|
|
|
lamp_bolt_void([X, Y, 0]);
|
|
|
|
lamp_bolt_void([-X, Y, 0]);
|
|
|
|
lamp_bolt_void([X, -Y, 0]);
|
|
|
|
lamp_bolt_void([-X, -Y, 0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module lamp_post (pos = [0, 0, 0]) {
|
|
|
|
$fn = 40;
|
|
|
|
H = 20;
|
|
|
|
translate(pos) difference () {
|
|
|
|
cylinder(r = R(8), h = H, center = true);
|
2023-05-21 21:40:23 +00:00
|
|
|
cylinder(r = R(4.4), h = H + 1, center = true);
|
2023-04-25 07:11:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module lamp_posts (pos = [0, 0, 0], H = 10) {
|
|
|
|
X = LampBoltX/2;
|
|
|
|
Y = LampBoltY/2;
|
|
|
|
$fn = 30;
|
|
|
|
translate(pos) {
|
|
|
|
lamp_post([X, Y, 0]);
|
|
|
|
lamp_post([-X, Y, 0]);
|
|
|
|
lamp_post([X, -Y, 0]);
|
|
|
|
lamp_post([-X, -Y, 0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-25 22:34:21 +00:00
|
|
|
module lamp_gate_bracket (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
X = LampGateX;
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
difference () {
|
|
|
|
cube([X, 15, 18], center = true);
|
2023-05-08 17:37:50 +00:00
|
|
|
translate([0, 4, 1]) cube([X-4, 15, 18], center = true);
|
|
|
|
translate([0, -3, 1]) cube([X-7, 15, 18], center = true);
|
2023-05-22 04:07:59 +00:00
|
|
|
translate([0, -5.25, 0]) cube([X-3.5, 1.6, 18.01], center = true);
|
2023-04-25 22:34:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module picture_gate_bracket (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
2023-05-09 18:57:23 +00:00
|
|
|
translate(pos) rotate(rot) difference() {
|
2023-04-25 22:34:21 +00:00
|
|
|
lamp_gate_bracket();
|
2023-05-09 18:57:23 +00:00
|
|
|
translate([0, 0, 0]) cube([4, 20, 17], center = true);
|
2023-04-25 22:34:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module sound_gate_bracket (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
LedD = 5;
|
|
|
|
LedZ = -6.5;
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
difference () {
|
|
|
|
lamp_gate_bracket();
|
|
|
|
translate([0, 2, LedZ]) rotate([0, 90, 90]) {
|
|
|
|
cylinder(r = R(LedD), h = 16, center = true, $fn = 40);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module gate_blank () {
|
|
|
|
X = LampGateX;
|
|
|
|
//front
|
2023-05-09 18:57:23 +00:00
|
|
|
translate([0, -6.25, 0]) cube([X-7.2, 1.2, 19.25], center = true);
|
|
|
|
//middle
|
|
|
|
translate([0, -5.1, -0.5]) cube([X-4.2, 1.4, 19], center = true);
|
|
|
|
|
|
|
|
//top
|
|
|
|
translate([0, -5.9, 9]) cube([X-4.2, 3, 2], center = true);
|
2023-04-25 22:34:21 +00:00
|
|
|
}
|
|
|
|
//standard, super, full, sound
|
2023-05-08 17:37:50 +00:00
|
|
|
module picture_gate (pos = [0, 0, 0], rot = [0, 0, 0], Type = "full", Width = 2) {
|
2023-04-25 22:34:21 +00:00
|
|
|
X = LampGateX;
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
gate_blank();
|
|
|
|
}
|
|
|
|
if (Type == "standard") {
|
2024-02-24 13:18:05 +00:00
|
|
|
translate([0, -6, Film16mmStandardZ]) cube([Width, 10, Film16mmStandard], center = true);
|
2023-04-25 22:34:21 +00:00
|
|
|
} else if (Type == "full") {
|
2024-02-24 13:18:05 +00:00
|
|
|
translate([0, -6, Film16mmFullZ]) cube([Width, 10, Film16mmFull], center = true);
|
2023-05-23 05:20:39 +00:00
|
|
|
} else if (Type == "super16") {
|
2024-02-24 13:18:05 +00:00
|
|
|
translate([0, -6, Film16mmSuperZ]) cube([Width, 10, Film16mmSuper], center = true);
|
2023-05-23 05:20:39 +00:00
|
|
|
} else if (Type == "sound") {
|
2024-02-24 13:18:05 +00:00
|
|
|
translate([0, -6, Film16mmSoundZ]) cube([Width, 10, Film16mmSound], center = true);
|
2023-04-25 22:34:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-12 20:31:28 +00:00
|
|
|
module lamp_dual (pos = [0, 0, 0]) {
|
2023-05-09 18:57:23 +00:00
|
|
|
Z = 10;
|
|
|
|
WallZ = Z;
|
|
|
|
GateZ = Z;
|
|
|
|
PostsZ = Z - 1;
|
2023-04-05 20:39:42 +00:00
|
|
|
translate(pos) {
|
2023-04-25 07:11:58 +00:00
|
|
|
intersection () {
|
|
|
|
difference () {
|
2023-05-09 18:57:23 +00:00
|
|
|
rounded_cube([70, 70, 2], d = 4, center = true);
|
2023-04-25 22:34:21 +00:00
|
|
|
translate([0, -45, 0]) cylinder(r = R(60), h = 4 + 1, center = true, $fn = 200);
|
2023-04-25 07:11:58 +00:00
|
|
|
lamp_bolts_voids([0, 15, -2]);
|
2023-04-25 22:34:21 +00:00
|
|
|
translate([LampWireX, LampWireY, 0]) cylinder(r = R(10), h = 10, center = true);
|
|
|
|
translate([-LampWireX, LampWireY, 0]) cylinder(r = R(10), h = 10, center = true);
|
2023-04-25 07:11:58 +00:00
|
|
|
}
|
2023-04-25 22:34:21 +00:00
|
|
|
translate([0, 45, 0]) cylinder(r = R(130), h = 4 + 1, center = true, $fn = 200);
|
|
|
|
}
|
|
|
|
//walls
|
2023-05-09 18:57:23 +00:00
|
|
|
translate([0, 15, WallZ]) difference () {
|
2023-04-25 22:34:21 +00:00
|
|
|
rounded_cube([70, 40, 18], d = 4, center = true);
|
|
|
|
cube([70-6, 40-6, 18 + 1], center = true);
|
|
|
|
translate([0, -20, 0]) cube([20, 40-6, 18 + 1], center = true);
|
2023-04-05 20:39:42 +00:00
|
|
|
}
|
2023-05-09 18:57:23 +00:00
|
|
|
lamp_posts([0, 15, PostsZ]);
|
2023-04-25 22:34:21 +00:00
|
|
|
//sound
|
|
|
|
difference () {
|
|
|
|
union () {
|
2023-05-09 18:57:23 +00:00
|
|
|
sound_gate_bracket([5.35, -7, GateZ], [0, 0, -7]);
|
|
|
|
picture_gate_bracket([-5.35, -7, GateZ], [0, 0, 7]);
|
2023-04-25 22:34:21 +00:00
|
|
|
}
|
|
|
|
translate([0, -53.5, 11]) cylinder(r = R(80), h = 18.01, center = true, $fn = 200);
|
|
|
|
}
|
|
|
|
//barrier
|
2023-05-12 20:31:28 +00:00
|
|
|
translate([0, 10.6+7, Z]) cube([5.5, 34, 18], center = true);
|
|
|
|
translate([0, 5, Z]) cube([3, 20, 18], center = true);
|
2023-04-25 22:34:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-22 14:37:11 +00:00
|
|
|
module lamp_single (pos = [0, 0, 0]) {
|
|
|
|
Z = 10;
|
|
|
|
WallZ = Z;
|
|
|
|
GateZ = Z;
|
|
|
|
PostsZ = Z - 1;
|
|
|
|
translate(pos) {
|
|
|
|
intersection () {
|
|
|
|
difference () {
|
|
|
|
rounded_cube([70, 70, 2], d = 4, center = true);
|
|
|
|
translate([0, -45, 0]) cylinder(r = R(60), h = 4 + 1, center = true, $fn = 200);
|
|
|
|
lamp_bolts_voids([0, 15, -2]);
|
|
|
|
translate([LampWireX, LampWireY, 0]) cylinder(r = R(10), h = 10, center = true);
|
|
|
|
translate([-LampWireX, LampWireY, 0]) cylinder(r = R(10), h = 10, center = true);
|
|
|
|
}
|
|
|
|
translate([0, 45, 0]) cylinder(r = R(130), h = 4 + 1, center = true, $fn = 200);
|
|
|
|
}
|
|
|
|
//walls
|
|
|
|
translate([0, 15, WallZ]) difference () {
|
|
|
|
rounded_cube([70, 40, 18], d = 4, center = true);
|
|
|
|
cube([70-6, 40-6, 18 + 1], center = true);
|
|
|
|
translate([0, -20, 0]) cube([10, 40-6, 18 + 1], center = true);
|
|
|
|
}
|
|
|
|
lamp_posts([0, 15, PostsZ]);
|
|
|
|
//
|
|
|
|
picture_gate_bracket([0, -7, GateZ]);
|
|
|
|
}
|
2024-02-18 15:33:09 +00:00
|
|
|
translate([40, 12, 10]) gate_holder();
|
2023-05-22 14:37:11 +00:00
|
|
|
}
|
|
|
|
|
2023-04-25 22:34:21 +00:00
|
|
|
module lamp_cover (pos = [0, 0, 0]) {
|
|
|
|
translate(pos) difference () {
|
|
|
|
union () {
|
|
|
|
rounded_cube([70, 40, 2], d = 4, center = true);
|
|
|
|
translate([5.35, -15-7, 0]) rotate([0, 0, -7]) cube([LampGateX, 15-6, 2], center = true);
|
|
|
|
translate([-5.35, -15-7, 0]) rotate([0, 0, 7]) cube([LampGateX, 15-6, 2], center = true);
|
|
|
|
translate([0, -15-7, 0])cube([4, 4, 2], center = true);
|
|
|
|
|
|
|
|
}
|
|
|
|
lamp_bolts_voids([0, 0, 0]);
|
2023-04-05 20:39:42 +00:00
|
|
|
}
|
|
|
|
}
|
2024-01-17 23:48:05 +00:00
|
|
|
module takeup_mount_bearing_plug (pos = [0, 0, 0]) {
|
|
|
|
H = 6.75 + 1;
|
|
|
|
translate(pos) difference() {
|
|
|
|
translate([0, 0, -7 / 8]) cylinder(r = R(16), h = H, center = true);
|
|
|
|
translate([0, 0, -H + 1]) cylinder(r = R(13.5), h = H, center = true);
|
|
|
|
cylinder(r = R(7), h = H * 2, center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module panel_bearing_void (pos = [0, 0, 0]) {
|
|
|
|
translate(pos) difference () {
|
|
|
|
cylinder(r = R(24), h = 2, center = true);
|
|
|
|
cylinder(r = R(12), h = 2 + 1, center = true);
|
|
|
|
}
|
|
|
|
}
|
2023-04-05 20:39:42 +00:00
|
|
|
|
|
|
|
module panel (pos = [0, 0, 0]) {
|
2023-05-11 01:54:02 +00:00
|
|
|
BoltX = (PanelX-20)/2;
|
2023-05-09 18:57:23 +00:00
|
|
|
BoltY2 = (PanelY)/2;
|
|
|
|
|
|
|
|
BoltY1 = 30;
|
|
|
|
|
2023-05-10 16:31:46 +00:00
|
|
|
LampBoltsZ = (LampBoltH/2) - 1.5;
|
|
|
|
IdleRollerBoltsZ = (IdleRollerBoltH/2) - 1.5;
|
|
|
|
|
2024-01-17 23:48:05 +00:00
|
|
|
SprocketedRollerZ = -3.5 - 1;
|
|
|
|
|
|
|
|
MotorMountZ = 0;
|
2023-05-09 18:57:23 +00:00
|
|
|
|
2023-05-22 14:37:11 +00:00
|
|
|
color("green") translate (pos) {
|
|
|
|
difference() {
|
|
|
|
translate([0, PanelYOffset, 0]) cube([PanelDimensions[0], PanelDimensions[1], PanelDimensions[2]], center = true);
|
|
|
|
|
|
|
|
//sprocketed roller
|
|
|
|
translate([0, RollerY, 0]) cylinder(r = R(15), h = PanelZ + 1, center = true, $fn = 60);
|
|
|
|
translate([0, -12.5, -4 + 2.5]) rotate([0, 0, 90]) {
|
|
|
|
panel_motor_mount_void([MotorMountX, MotorMountY, 0]);
|
|
|
|
panel_motor_mount_void([-MotorMountX, MotorMountY, 0]);
|
|
|
|
panel_motor_mount_void([MotorMountX, -MotorMountY, 0]);
|
|
|
|
panel_motor_mount_void([-MotorMountX, -MotorMountY, 0]);
|
|
|
|
}
|
|
|
|
|
|
|
|
//panel bolts
|
|
|
|
m3_panel_bolt_void([BoltX, -BoltY1, 3]);
|
|
|
|
m3_panel_bolt_void([-BoltX, -BoltY1, 3]);
|
|
|
|
m3_panel_bolt_void([BoltX, BoltY1, 3]);
|
|
|
|
m3_panel_bolt_void([-BoltX, BoltY1, 3]);
|
|
|
|
m3_panel_bolt_void([BoltX, BoltY2, 3]);
|
|
|
|
m3_panel_bolt_void([-BoltX, BoltY2, 3]);
|
|
|
|
|
|
|
|
//idle roller posts
|
|
|
|
idle_roller_bolt_void([ IdleRollerPrintX, IdleRollerPrintY, IdleRollerBoltsZ]);
|
|
|
|
idle_roller_bolt_void([-IdleRollerPrintX, IdleRollerPrintY, IdleRollerBoltsZ]);
|
2023-05-22 17:24:21 +00:00
|
|
|
idle_roller_bolt_void([ IdleRollerStockX, IdleRollerStockY, IdleRollerBoltsZ]);
|
|
|
|
idle_roller_bolt_void([-IdleRollerStockX, IdleRollerStockY, IdleRollerBoltsZ]);
|
2023-05-22 14:37:11 +00:00
|
|
|
|
|
|
|
//lamp
|
|
|
|
lamp_bolts_voids([0, LampY + 15, LampBoltsZ]);
|
|
|
|
//lamp wire voids
|
|
|
|
translate([0, LampY, 0]) {
|
|
|
|
translate([LampWireX, LampWireY, 0]) cylinder(r = R(10), h = 10, center = true);
|
|
|
|
translate([-LampWireX, LampWireY, 0]) cylinder(r = R(10), h = 10, center = true);
|
|
|
|
}
|
|
|
|
//voids for motor pad
|
|
|
|
translate([0, RollerY + 7.4, SprocketedRollerZ]) cube([27, 43, 6], center = true);
|
2024-01-17 23:48:05 +00:00
|
|
|
panel_bearing_void([0, RollerY, 2.5]);
|
|
|
|
}
|
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
takeup_mount_panel([0, RollerY, SprocketedRollerZ], [0, 0, 90]);
|
|
|
|
takeup_mount_bearing_plug([0, RollerY, -0.5]);
|
|
|
|
}
|
|
|
|
panel_bearing_void([0, RollerY, 2.5]);
|
2023-04-25 22:34:21 +00:00
|
|
|
}
|
2023-04-05 20:39:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-05 04:33:15 +00:00
|
|
|
module panel_corner (pos = [0, 0, 0], rot = 0) {
|
2024-02-08 04:42:25 +00:00
|
|
|
D = 20;
|
|
|
|
translate([pos[0] - R(D), pos[1] - R(D), pos[2]]) rotate([0, 0, rot]) difference() {
|
|
|
|
cube([D * 2, D * 2, 10], center = true);
|
|
|
|
cylinder(r = R(D), h = 10 + 1, center = true, $fn = 60);
|
|
|
|
translate([-D, -D / 2, 0]) cube([D * 2, D * 2, 10 + 1], center = true);
|
|
|
|
translate([-D / 2, -D, 0]) cube([D * 2, D * 2, 10 + 1], center = true);
|
2024-02-05 04:33:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-18 21:34:29 +00:00
|
|
|
module takeup_panel_motor_mount_bolt_void (pos = [0, 0, 0]) {
|
2023-05-19 23:50:34 +00:00
|
|
|
cap = 25;
|
2023-05-18 21:34:29 +00:00
|
|
|
bolt = 10;
|
|
|
|
translate(pos) {
|
2023-05-19 12:39:58 +00:00
|
|
|
translate([0, 0, -bolt / 2]) cylinder(r = R(3.5), h = bolt, center = true, $fn = 30);
|
2023-05-18 21:34:29 +00:00
|
|
|
translate([0, 0, cap / 2]) cylinder(r = R(6), h = cap, center = true, $fn = 30);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-18 21:01:32 +00:00
|
|
|
module takeup_panel_bearings_voids (pos = [0, 0, 0]) {
|
|
|
|
translate(pos) {
|
|
|
|
rotate([0, 0, BearingRotateZ1]) bearing_void([0, BearingY, BearingZ], BearingH);
|
|
|
|
rotate([0, 0, BearingRotateZ2]) bearing_void([0, BearingY, BearingZ], BearingH);
|
|
|
|
rotate([0, 0, BearingRotateZ3]) bearing_void([0, BearingY, BearingZ], BearingH);
|
|
|
|
rotate([0, 0, BearingRotateZ4]) bearing_void([0, BearingY, BearingZ], BearingH);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-18 21:34:29 +00:00
|
|
|
module takeup_panel_bearings_post (pos = [0, 0, 0]) {
|
|
|
|
translate(pos) {
|
2023-05-19 02:55:23 +00:00
|
|
|
cylinder(r = R(12), h = 0.5, center = true);
|
2023-05-19 23:50:34 +00:00
|
|
|
translate([0, 0, - (0.5 / 2) - (8 / 2)]) cylinder(r = R(BearingInnerDiameter) - 0.1, h = 8, center = true);
|
2023-05-18 21:34:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module takeup_panel_bearings_posts (pos = [0, 0, 0]) {
|
|
|
|
translate(pos) {
|
|
|
|
rotate([0, 0, BearingRotateZ1]) takeup_panel_bearings_post([0, BearingY, BearingZ]);
|
|
|
|
rotate([0, 0, BearingRotateZ2]) takeup_panel_bearings_post([0, BearingY, BearingZ]);
|
|
|
|
rotate([0, 0, BearingRotateZ3]) takeup_panel_bearings_post([0, BearingY, BearingZ]);
|
|
|
|
rotate([0, 0, BearingRotateZ4]) takeup_panel_bearings_post([0, BearingY, BearingZ]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-05 04:33:15 +00:00
|
|
|
module takeup_panel_bearings_m3_bolt_void (pos = [0, 0, 0]) {
|
2023-05-19 02:55:23 +00:00
|
|
|
cap = 10;
|
|
|
|
bolt = 20;
|
|
|
|
translate(pos) {
|
|
|
|
translate([0, 0, cap / 2]) cylinder(r = R(6), h = cap, center = true);
|
|
|
|
translate([0, 0, -(bolt / 2) + 0.1]) cylinder(r = R(3.25), h = bolt, center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module takeup_panel_bearings_bolts_voids (pos = [0, 0, 0]) {
|
|
|
|
translate(pos) {
|
2024-02-05 04:33:15 +00:00
|
|
|
rotate([0, 0, BearingRotateZ1]) takeup_panel_bearings_m3_bolt_void([0, BearingY, BearingZ]);
|
|
|
|
rotate([0, 0, BearingRotateZ2]) takeup_panel_bearings_m3_bolt_void([0, BearingY, BearingZ]);
|
|
|
|
rotate([0, 0, BearingRotateZ3]) takeup_panel_bearings_m3_bolt_void([0, BearingY, BearingZ]);
|
|
|
|
rotate([0, 0, BearingRotateZ4]) takeup_panel_bearings_m3_bolt_void([0, BearingY, BearingZ]);
|
2023-05-19 02:55:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module takeup_panel_motor_mount_m4_bolt_void (pos = [0, 0, 0], rot = [0, 0, 0], H = 20) {
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
cylinder(r = R(4.25), h = H, center = true);
|
|
|
|
translate([0, 0, H/2]) m4_nut();
|
2023-05-20 15:52:35 +00:00
|
|
|
translate([0, 0, -14.01]) cylinder(r = R(10), h = 25, center = true, $fn = 60);
|
2023-05-19 02:55:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-20 13:43:21 +00:00
|
|
|
module takeup_panel_motor_mount_m4_bolts_voids (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
translate(pos) rotate(rot) {
|
2023-05-19 02:55:23 +00:00
|
|
|
takeup_panel_motor_mount_m4_bolt_void([TakeupMotorMountX, 0, 0], [0, 0, 30]);
|
|
|
|
takeup_panel_motor_mount_m4_bolt_void([-TakeupMotorMountX, 0, 0], [0, 0, 30]);
|
|
|
|
takeup_panel_motor_mount_m4_bolt_void([0, TakeupMotorMountY, 0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module takeup_panel_motor_mount_pad (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
translate(pos) rotate(rot) {
|
2023-05-20 15:52:35 +00:00
|
|
|
cylinder(r = R(10), h = 8, center = true, $fn = 60);
|
|
|
|
translate([5, 0, 0]) cube([10, 10, 8], center = true);
|
2023-05-19 02:55:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-20 13:43:21 +00:00
|
|
|
module takeup_panel_motor_mount_pads (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
translate(pos) rotate(rot) {
|
2023-05-19 02:55:23 +00:00
|
|
|
takeup_panel_motor_mount_pad([TakeupMotorMountX, 0, 0], [0, 0, 180]);
|
|
|
|
takeup_panel_motor_mount_pad([-TakeupMotorMountX, 0, 0], [0, 0, 0]);
|
|
|
|
takeup_panel_motor_mount_pad([0, TakeupMotorMountY, 0], [0, 0, -90]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-11 01:54:02 +00:00
|
|
|
module takeup_panel_picture (pos = [0, 0, 0]) {
|
2024-02-06 04:12:50 +00:00
|
|
|
BoltX = (TakeupPanelX / 2) - 10;
|
|
|
|
BoltY = (TakeupPanelY / 2) - 10;
|
2023-05-11 01:54:02 +00:00
|
|
|
OtherX = 25;
|
|
|
|
OtherY = 45;
|
2023-05-18 21:01:32 +00:00
|
|
|
|
2023-05-12 20:31:28 +00:00
|
|
|
translate(pos) {
|
|
|
|
difference() {
|
|
|
|
union(){
|
2024-02-06 04:12:50 +00:00
|
|
|
cube([TakeupPanelX, TakeupPanelY, PanelZ], center = true);
|
2024-02-08 04:42:11 +00:00
|
|
|
takeup_panel_bearings_posts([TakeupPanelPictureOffsetX, TakeupPanelPictureOffsetY, 4.25]);
|
2023-05-12 20:31:28 +00:00
|
|
|
}
|
2024-02-05 04:33:15 +00:00
|
|
|
//void for motor
|
2024-02-08 04:42:11 +00:00
|
|
|
translate([TakeupPanelPictureOffsetX, TakeupPanelPictureOffsetY, 0]) cylinder(r = R(TakeupCenterVoidD), h = 50, center = true, $fn = 100);
|
2024-02-08 04:42:25 +00:00
|
|
|
panel_corner([(TakeupPanelX / 2), (TakeupPanelY / 2), 0]);
|
2024-02-06 04:12:50 +00:00
|
|
|
//bearings bolts voids
|
2024-02-08 04:42:11 +00:00
|
|
|
takeup_panel_bearings_bolts_voids([TakeupPanelPictureOffsetX, TakeupPanelPictureOffsetY, 5]);
|
2023-05-19 02:55:23 +00:00
|
|
|
//bolts
|
2024-02-05 04:33:15 +00:00
|
|
|
//top center
|
2024-02-06 04:12:50 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([0, BoltY, 0]);
|
2024-02-05 04:33:15 +00:00
|
|
|
//top right
|
2024-02-06 04:12:50 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([BoltX, BoltY, 0]);
|
2024-02-05 04:33:15 +00:00
|
|
|
//top left
|
2024-02-06 04:12:50 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([-BoltX, BoltY, 0]);
|
2024-02-05 04:33:15 +00:00
|
|
|
//bottom right
|
2024-02-06 04:12:50 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([BoltX, -BoltY, 0]);
|
2024-02-05 04:33:15 +00:00
|
|
|
//bottom left
|
2024-02-06 04:12:50 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([-BoltX, -BoltY, 0]);
|
|
|
|
|
2024-02-05 04:33:15 +00:00
|
|
|
//center left
|
2024-02-06 04:12:50 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([-BoltX, BoltY - 20, 0]);
|
|
|
|
//center right
|
|
|
|
takeup_panel_bearings_m3_bolt_void([BoltX, BoltY - 20, 0]);
|
2023-05-18 21:34:29 +00:00
|
|
|
|
2024-02-08 04:42:11 +00:00
|
|
|
takeup_panel_motor_mount_m4_bolts_voids([TakeupPanelPictureOffsetX, TakeupPanelPictureOffsetY, -8.99]);
|
2023-05-12 20:31:28 +00:00
|
|
|
}
|
2024-02-08 04:42:25 +00:00
|
|
|
|
2023-05-18 21:01:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module takeup_panel_picture_motor_mount (pos = [0, 0, 0] ) {
|
|
|
|
translate(pos) {
|
2024-02-08 04:42:11 +00:00
|
|
|
translate([TakeupPanelPictureOffsetX, TakeupPanelPictureOffsetY, 0]) {
|
2023-05-18 21:01:32 +00:00
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
translate([0, 0, -(PanelZ/2) - (TakeupCenterColumnZ/2)]) cylinder(r = R(TakeupCenterColumnD), h = TakeupCenterColumnZ, center = true, $fn = 100);
|
|
|
|
translate([0, 0, -16]) cylinder(r = R(TakeupCenterColumnD), h = 3, center = true, $fn = 100);
|
2023-05-20 15:52:35 +00:00
|
|
|
takeup_panel_motor_mount_pads([0, 0, -6.5]);
|
2023-05-18 21:01:32 +00:00
|
|
|
}
|
2023-05-19 23:50:34 +00:00
|
|
|
translate([0, 0, -16]) cylinder(r = R(15), h = TakeupCenterColumnZ, center = true, $fn = 100);
|
2023-05-20 15:52:35 +00:00
|
|
|
translate([0, 0, -8]) cylinder(r = R(TakeupCenterVoidD), h = TakeupCenterColumnZ, center = true, $fn = 100);
|
2023-05-19 12:39:58 +00:00
|
|
|
|
2023-05-18 21:01:32 +00:00
|
|
|
//bearings
|
|
|
|
takeup_panel_bearings_voids();
|
2023-05-19 23:50:34 +00:00
|
|
|
translate([2.55, -7.1, -17-6]) rotate([0, 0, PictureTakeupMotorRotationZ]) {
|
2023-05-18 21:34:29 +00:00
|
|
|
takeup_panel_motor_mount_bolt_void([MotorMountX, MotorMountY, 0]);
|
|
|
|
takeup_panel_motor_mount_bolt_void([-MotorMountX, MotorMountY, 0]);
|
|
|
|
takeup_panel_motor_mount_bolt_void([MotorMountX, -MotorMountY, 0]);
|
|
|
|
takeup_panel_motor_mount_bolt_void([-MotorMountX, -MotorMountY, 0]);
|
|
|
|
}
|
2023-05-19 02:55:23 +00:00
|
|
|
takeup_panel_motor_mount_m4_bolts_voids([0, 0, -8.99]);
|
2023-05-19 23:50:34 +00:00
|
|
|
translate([0, 0, -29]) rotate([0, 0, PictureTakeupMotorRotationZ]){
|
2023-05-20 13:28:57 +00:00
|
|
|
translate([10, 0, 0]) cube([50, 27, 10], center = true);
|
2023-05-19 23:50:34 +00:00
|
|
|
}
|
2023-05-18 21:01:32 +00:00
|
|
|
}
|
2023-05-20 13:43:21 +00:00
|
|
|
takeup_mount_panel([0, 0, TakeupMotorPanelZ], [0, 0, PictureTakeupMotorRotationZ]);
|
2023-05-11 01:54:02 +00:00
|
|
|
}
|
2023-05-18 21:01:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module takeup_panel_stock (pos = [0, 0, 0]) {
|
2024-02-08 04:42:11 +00:00
|
|
|
BoltX = (TakeupPanelX / 2) - 10;
|
|
|
|
BoltY = (TakeupPanelY / 2) - 10;
|
2023-05-19 22:17:23 +00:00
|
|
|
OtherX = 25;
|
|
|
|
OtherY = 45;
|
|
|
|
|
2023-05-18 21:01:32 +00:00
|
|
|
translate(pos) {
|
2023-05-19 22:17:23 +00:00
|
|
|
difference() {
|
|
|
|
union(){
|
2024-02-08 04:42:11 +00:00
|
|
|
cube([TakeupPanelX, TakeupPanelY, PanelZ], center = true);
|
|
|
|
takeup_panel_bearings_posts([TakeupPanelStockOffsetX, TakeupPanelStockOffsetY, 4.25]);
|
2023-05-19 22:17:23 +00:00
|
|
|
}
|
2024-02-05 04:33:15 +00:00
|
|
|
//motor void
|
2024-02-08 04:42:11 +00:00
|
|
|
translate([TakeupPanelStockOffsetX, TakeupPanelStockOffsetY, 0]) cylinder(r = R(TakeupCenterVoidD), h = 50, center = true, $fn = 100);
|
2024-02-08 04:42:25 +00:00
|
|
|
panel_corner([(TakeupPanelX / 2), -(TakeupPanelY / 2) + 20, 0], -90);
|
2023-05-19 22:17:23 +00:00
|
|
|
//bearings
|
|
|
|
//takeup_panel_bearings_voids([TakeupPanelStockOffsetX, 0, 0]);
|
2024-02-08 04:42:11 +00:00
|
|
|
takeup_panel_bearings_bolts_voids([TakeupPanelStockOffsetX, TakeupPanelStockOffsetY, 5]);
|
2023-05-19 22:17:23 +00:00
|
|
|
//bolts
|
2024-02-05 04:33:15 +00:00
|
|
|
//bottom center
|
2024-02-08 04:42:11 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([0, -BoltY, 0]);
|
2024-02-05 04:33:15 +00:00
|
|
|
//bottom right
|
2024-02-08 04:42:11 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([BoltX, -BoltY, 0]);
|
2024-02-05 04:33:15 +00:00
|
|
|
//bottom left
|
2024-02-08 04:42:11 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([-BoltX, -BoltY, 0]);
|
2024-02-05 04:33:15 +00:00
|
|
|
//top right
|
2024-02-08 04:42:11 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([BoltX, BoltY, 0]);
|
2024-02-05 04:33:15 +00:00
|
|
|
//top left
|
2024-02-08 04:42:11 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([-BoltX, BoltY, 0]);
|
2024-02-05 04:33:15 +00:00
|
|
|
//center left
|
2024-02-08 04:42:11 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([-BoltX, -BoltY + 20, 0]);
|
2024-02-08 04:42:25 +00:00
|
|
|
//center right
|
|
|
|
takeup_panel_bearings_m3_bolt_void([BoltX, -BoltY + 20, 0]);
|
2023-05-19 22:17:23 +00:00
|
|
|
|
2024-02-08 04:42:11 +00:00
|
|
|
takeup_panel_motor_mount_m4_bolts_voids([TakeupPanelStockOffsetX, TakeupPanelStockOffsetY, -8.99], [0, 0, 180]);
|
2023-05-19 22:17:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module takeup_panel_stock_motor_mount (pos = [0, 0, 0] ) {
|
|
|
|
translate(pos) {
|
2024-02-08 04:42:11 +00:00
|
|
|
translate([TakeupPanelStockOffsetX, TakeupPanelStockOffsetY, 0]) {
|
2023-05-19 22:17:23 +00:00
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
translate([0, 0, -(PanelZ/2) - (TakeupCenterColumnZ/2)]) cylinder(r = R(TakeupCenterColumnD), h = TakeupCenterColumnZ, center = true, $fn = 100);
|
|
|
|
translate([0, 0, -16]) cylinder(r = R(TakeupCenterColumnD), h = 3, center = true, $fn = 100);
|
2023-05-20 15:52:35 +00:00
|
|
|
takeup_panel_motor_mount_pads([0, 0, -6.5], [0, 0, 180]);
|
2023-05-19 22:17:23 +00:00
|
|
|
}
|
2023-05-20 13:43:21 +00:00
|
|
|
translate([0, 0, -16]) cylinder(r = R(15), h = TakeupCenterColumnZ, center = true, $fn = 100);
|
2023-05-20 15:52:35 +00:00
|
|
|
translate([0, 0, -8]) cylinder(r = R(TakeupCenterVoidD), h = TakeupCenterColumnZ, center = true, $fn = 100);
|
2023-05-19 22:17:23 +00:00
|
|
|
//bearings
|
|
|
|
takeup_panel_bearings_voids();
|
2023-05-20 13:43:21 +00:00
|
|
|
translate([-2.55, 7.1, -17-6]) rotate([0, 0, StockTakeupMotorRotationZ]) {
|
2023-05-19 22:17:23 +00:00
|
|
|
takeup_panel_motor_mount_bolt_void([MotorMountX, MotorMountY, 0]);
|
|
|
|
takeup_panel_motor_mount_bolt_void([-MotorMountX, MotorMountY, 0]);
|
|
|
|
takeup_panel_motor_mount_bolt_void([MotorMountX, -MotorMountY, 0]);
|
|
|
|
takeup_panel_motor_mount_bolt_void([-MotorMountX, -MotorMountY, 0]);
|
|
|
|
}
|
2023-05-20 13:43:21 +00:00
|
|
|
takeup_panel_motor_mount_m4_bolts_voids([0, 0, -8.99], [0, 0, 180]);
|
|
|
|
translate([0, 0, -29]) rotate([0, 0, StockTakeupMotorRotationZ]){
|
|
|
|
translate([10, 0, 0]) cube([50, 27, 10], center = true);
|
|
|
|
}
|
2023-05-19 22:17:23 +00:00
|
|
|
}
|
2023-05-20 13:43:21 +00:00
|
|
|
takeup_mount_panel([0, 0, TakeupMotorPanelZ], [0, 0, StockTakeupMotorRotationZ]);
|
2023-05-19 22:17:23 +00:00
|
|
|
}
|
2023-05-11 01:54:02 +00:00
|
|
|
}
|
|
|
|
}
|
2023-05-21 21:40:23 +00:00
|
|
|
|
2023-05-21 20:12:56 +00:00
|
|
|
module feed_panel_motor_mount_pad (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
cylinder(r = R(10), h = 17, center = true, $fn = 60);
|
|
|
|
translate([5, 0, 0]) cube([10, 10, 17], center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module feed_panel_motor_mount_pads (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
feed_panel_motor_mount_pad([TakeupMotorMountX, 0, 0], [0, 0, 180]);
|
|
|
|
feed_panel_motor_mount_pad([-TakeupMotorMountX, 0, 0], [0, 0, 0]);
|
|
|
|
feed_panel_motor_mount_pad([0, TakeupMotorMountY, 0], [0, 0, -90]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module feed_panel_motor_mount_m4_bolt_void (pos = [0, 0, 0], rot = [0, 0, 0], H = 30) {
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
cylinder(r = R(4.25), h = H, center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module feed_panel_motor_mount_m4_bolts_voids (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
feed_panel_motor_mount_m4_bolt_void([TakeupMotorMountX, 0, 0], [0, 0, 30]);
|
|
|
|
feed_panel_motor_mount_m4_bolt_void([-TakeupMotorMountX, 0, 0], [0, 0, 30]);
|
|
|
|
feed_panel_motor_mount_m4_bolt_void([0, TakeupMotorMountY, 0]);
|
|
|
|
}
|
|
|
|
}
|
2023-05-11 01:54:02 +00:00
|
|
|
|
2023-05-20 14:08:47 +00:00
|
|
|
module feed_panel_picture (pos = [0, 0, 0]) {
|
2024-02-08 04:42:25 +00:00
|
|
|
BoltX = (TakeupPanelX / 2) - 10;
|
|
|
|
BoltY = (TakeupPanelY / 2) - 10;
|
2023-05-20 14:08:47 +00:00
|
|
|
OtherX = 25;
|
|
|
|
OtherY = 45;
|
|
|
|
|
|
|
|
translate(pos) {
|
|
|
|
difference() {
|
2024-02-08 04:42:25 +00:00
|
|
|
cube([TakeupPanelX, TakeupPanelY, PanelZ], center = true);
|
|
|
|
|
2024-02-05 04:33:15 +00:00
|
|
|
//motor void
|
2024-02-08 04:42:25 +00:00
|
|
|
translate([FeedPanelPictureOffsetX, FeedPanelPictureOffsetY, 0]) cylinder(r = R(TakeupCenterVoidD), h = 50, center = true, $fn = 100);
|
|
|
|
panel_corner([-(TakeupPanelX / 2) + 20, (TakeupPanelY / 2), 0], 90);
|
2023-05-20 14:08:47 +00:00
|
|
|
//bolts
|
|
|
|
//top center
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([0, BoltY, 0]);
|
2023-05-20 14:08:47 +00:00
|
|
|
//top right
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([BoltX, BoltY, 0]);
|
2023-05-20 14:08:47 +00:00
|
|
|
//top left
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([-BoltX, BoltY, 0]);
|
2023-05-20 14:08:47 +00:00
|
|
|
//bottom left
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([-BoltX, -BoltY, 0]);
|
2024-02-05 04:33:15 +00:00
|
|
|
//bottom right
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([BoltX, -BoltY, 0]);
|
2023-05-20 14:08:47 +00:00
|
|
|
//center right
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([BoltX, BoltY - 20, 0]);
|
|
|
|
//center left
|
|
|
|
takeup_panel_bearings_m3_bolt_void([-BoltX, BoltY - 20, 0]);
|
2023-05-20 14:08:47 +00:00
|
|
|
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_motor_mount_m4_bolts_voids([FeedPanelPictureOffsetX, FeedPanelPictureOffsetY, -8.99]);
|
2023-05-20 14:08:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-21 18:59:23 +00:00
|
|
|
module feed_panel_stock (pos = [0, 0, 0]) {
|
2024-02-08 04:42:25 +00:00
|
|
|
BoltX = (TakeupPanelX / 2) - 10;
|
|
|
|
BoltY = (TakeupPanelY / 2) - 10;
|
2023-05-21 18:59:23 +00:00
|
|
|
OtherX = 25;
|
|
|
|
OtherY = 45;
|
|
|
|
|
|
|
|
translate(pos) {
|
|
|
|
difference() {
|
2024-02-08 04:42:25 +00:00
|
|
|
cube([TakeupPanelX, TakeupPanelY, PanelZ], center = true);
|
|
|
|
|
2024-02-05 04:33:15 +00:00
|
|
|
//motor void
|
2024-02-08 04:42:25 +00:00
|
|
|
translate([FeedPanelStockOffsetX, FeedPanelStockOffsetY, 0]) cylinder(r = R(TakeupCenterVoidD), h = 50, center = true, $fn = 100);
|
|
|
|
panel_corner([-(TakeupPanelX / 2) + 20, -(TakeupPanelY / 2) + 20, 0], 180);
|
2023-05-21 18:59:23 +00:00
|
|
|
//bolts
|
|
|
|
//bottom center
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([0, -BoltY, 0]);
|
2023-05-21 18:59:23 +00:00
|
|
|
//bottom right
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([BoltX, -BoltY, 0]);
|
2023-05-21 18:59:23 +00:00
|
|
|
//bottom left
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([-BoltX, -BoltY, 0]);
|
2024-02-05 04:33:15 +00:00
|
|
|
//top left
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([-BoltX, BoltY, 0]);
|
2024-02-05 04:33:15 +00:00
|
|
|
//top right
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([BoltX, BoltY, 0]);
|
2023-05-21 18:59:23 +00:00
|
|
|
//center right
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_bearings_m3_bolt_void([BoltX, -BoltY + 20, 0]);
|
|
|
|
//center left
|
|
|
|
takeup_panel_bearings_m3_bolt_void([-BoltX, -BoltY + 20, 0]);
|
2023-05-21 18:59:23 +00:00
|
|
|
|
2024-02-08 04:42:25 +00:00
|
|
|
takeup_panel_motor_mount_m4_bolts_voids([FeedPanelStockOffsetX, FeedPanelStockOffsetY, -8.99], [0, 0, 180]);
|
2023-05-21 18:59:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-21 20:12:56 +00:00
|
|
|
module feed_panel_motor_mount (pos = [0, 0, 0]) {
|
|
|
|
translate(pos) {
|
|
|
|
translate([FeedPanelPictureOffsetX, 0, 0]) {
|
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
translate([0, 0, -(PanelZ/2) - (TakeupCenterColumnZ/2)]) cylinder(r = R(TakeupCenterColumnD), h = TakeupCenterColumnZ, center = true, $fn = 100);
|
|
|
|
translate([0, 0, -16]) cylinder(r = R(TakeupCenterColumnD), h = 3, center = true, $fn = 100);
|
|
|
|
feed_panel_motor_mount_pads([0, 0, -11]);
|
|
|
|
}
|
|
|
|
translate([0, 0, -4.5]) cylinder(r = R(TakeupCenterVoidD), h = TakeupCenterColumnZ, center = true, $fn = 100);
|
|
|
|
feed_panel_motor_mount_m4_bolts_voids([0, 0, -8.99]);
|
|
|
|
}
|
|
|
|
translate([0, 0, -14]) cylinder(r = R(COUPLING_D), h = 5, center = true, $fn = 100);
|
|
|
|
translate([0, 0, -10]) magnetic_coupling();
|
|
|
|
}
|
|
|
|
//remove bottom
|
|
|
|
translate([0, 0, -TakeupCenterColumnZ - 7.875]) cylinder(r = R(TakeupCenterColumnD) + 1, h = TakeupCenterColumnZ, center = true, $fn = 100);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-20 02:49:31 +00:00
|
|
|
module bearing_post_nut (pos = [0, 0, 0]) {
|
|
|
|
translate(pos) difference() {
|
2023-05-20 13:28:57 +00:00
|
|
|
cylinder(r = R(10), h = 5, center = true, $fn = 70);
|
2023-05-20 02:49:31 +00:00
|
|
|
cylinder(r = R(3.5), h = 5 + 1, center = true, $fn = 30);
|
|
|
|
translate([0, 0, -2]) m3_nut(2);
|
|
|
|
translate([0, 0, 3.25]) cylinder(r = R(BearingInnerDiameter) + 0.1, h = 5, center = true, $fn = 50);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-11 14:39:57 +00:00
|
|
|
module m3_nut_bolt_void (pos = [0, 0, 0], rot = [0, 0, 0], H = 20) {
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
m3_nut(3);
|
|
|
|
cylinder(r = R(3.5), h = H, center = true, $fn = 30);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-19 22:32:15 +00:00
|
|
|
module corner_foot (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
H = 30;
|
|
|
|
D1 = 16;
|
|
|
|
D2 = 26;
|
|
|
|
translate(pos) rotate(rot) {
|
2023-05-18 12:57:35 +00:00
|
|
|
difference () {
|
|
|
|
union() {
|
|
|
|
translate([0, 20, 0]) cube([20, 60, 6], center = true);
|
|
|
|
translate([20, 0, 0]) cube([60, 20, 6], center = true);
|
|
|
|
}
|
2023-05-19 22:32:15 +00:00
|
|
|
rotate([180, 0, 0]) m3_panel_bolt_void([20, 0, 3]);
|
|
|
|
rotate([180, 0, 0]) m3_panel_bolt_void([40, 0, 3]);
|
|
|
|
translate([0, 20, 0]) rotate([180, 0, 0]) m3_panel_bolt_void([0, 0, 3]);
|
|
|
|
translate([0, 40, 0]) rotate([180, 0, 0]) m3_panel_bolt_void([0, 0, 3]);
|
2023-05-18 12:57:35 +00:00
|
|
|
}
|
|
|
|
translate([0 , 0, -(6/2) - (H / 2)]) rotate([0, 0, 45]) cylinder(r1 = R(D1), r2 = R(D2), h = H, center = true, $fn = 4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-11 14:39:57 +00:00
|
|
|
module L298N_mount (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
$fn = 40;
|
|
|
|
DISTANCE = L298NModulePostsX;
|
2023-05-21 18:59:23 +00:00
|
|
|
H = 4;
|
|
|
|
THICKNESS = 3;
|
|
|
|
module stand () {
|
|
|
|
difference () {
|
2024-02-11 14:39:57 +00:00
|
|
|
cylinder(r1 = R(8), r2 = R(6), h = H, center = true);
|
|
|
|
cylinder(r = R(3), h = H + 1, center = true);
|
2023-05-21 18:59:23 +00:00
|
|
|
}
|
|
|
|
}
|
2024-02-11 14:39:57 +00:00
|
|
|
translate([pos[0] - (DISTANCE / 2), pos[1] - (DISTANCE / 2), pos[2]]) rotate(rot) {
|
2023-05-21 18:59:23 +00:00
|
|
|
translate([0, 0, 0]) stand();
|
|
|
|
translate([DISTANCE, 0, 0]) stand();
|
|
|
|
translate([DISTANCE, DISTANCE, 0]) stand();
|
|
|
|
translate([0, DISTANCE, 0]) stand();
|
|
|
|
difference () {
|
|
|
|
translate([DISTANCE/2, DISTANCE/2, -3]) rounded_cube([DISTANCE + 8, DISTANCE + 8, THICKNESS], 8, center = true); //base
|
|
|
|
translate([DISTANCE/2, DISTANCE/2, -3]) rounded_cube([DISTANCE - 5, DISTANCE - 5, THICKNESS + 1], 10, center = true); //base
|
|
|
|
translate([0, 0, 0]) cylinder(r = 1.5, h = H * 5, center = true);
|
|
|
|
translate([DISTANCE, 0, 0]) cylinder(r = 1.5, h = H * 5, center = true);
|
|
|
|
translate([DISTANCE, DISTANCE, 0]) cylinder(r = 1.5, h = H * 5, center = true);
|
|
|
|
translate([0, DISTANCE, 0]) cylinder(r = 1.5, h = H * 5, center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-22 04:07:59 +00:00
|
|
|
module motor_controller_panel (pos = [0, 0, 0]) {
|
|
|
|
translate(pos) difference() {
|
|
|
|
union () {
|
|
|
|
translate([-5, 17, 0]) rounded_cube([110, 50, 3], d = 4, center = true, $fn = 30);
|
2024-02-11 14:39:57 +00:00
|
|
|
L298N_mount([5, 0, 6]);
|
|
|
|
L298N_mount([-52, 0, 6]);
|
2023-05-22 04:07:59 +00:00
|
|
|
}
|
|
|
|
translate([23, 18, 0]) rounded_cube([28, 28, 10], d = 4, center = true, $fn = 30);
|
|
|
|
translate([-34, 18, 0]) rounded_cube([28, 28, 10], d = 4, center = true, $fn = 30);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-22 23:19:29 +00:00
|
|
|
module sprocketed_roller_upright (pos = [0, 0, 0]) {
|
|
|
|
translate (pos) {
|
2024-01-17 23:48:05 +00:00
|
|
|
difference () {
|
|
|
|
sprocketed_roller(sprockets = Sprockets, bevel = SprocketedRollerBevel, model = SprocketedRollerModel, set_screw_top = SprocketedRollerSetScrewTop, set_screw_side = SprocketedRollerSetScrewSide, bolts = SprocketedRollerBolts, adjust_base = SprocketedRollerAdjustBase, reinforced = true);
|
2024-02-11 14:39:57 +00:00
|
|
|
bearing_void([0, 0, 12.4 + 0.3], hole = true, padding = 0.2);
|
2024-01-17 23:48:05 +00:00
|
|
|
}
|
2023-05-22 23:19:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module sprocketed_roller_invert (pos = [0, 0, 0]) {
|
|
|
|
D = (FrameC * Sprockets) / PI;
|
|
|
|
translate(pos) difference () {
|
|
|
|
sprocketed_roller(sprockets = Sprockets, bevel = SprocketedRollerBevel, model = "", set_screw_top = false, set_screw_side = SprocketedRollerSetScrewSide, bolts = SprocketedRollerBolts, adjust_base = SprocketedRollerAdjustBase, reinforced = true);
|
|
|
|
translate([0, 0, 1]) gearbox_motor_shaft_void();
|
|
|
|
if (SprocketedRollerSetScrewTop) {
|
|
|
|
m3_bolt_void([0, 0, 1]);
|
|
|
|
}
|
|
|
|
if (SprocketedRollerSetScrewSide) {
|
|
|
|
m3_nut_void(pos=[D/4, 0, 8.5], rot = [90, 0, 90], H = D/2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-17 23:48:05 +00:00
|
|
|
module sprocketed_roller_upright_solid (pos = [0, 0, 0]) {
|
|
|
|
OverhangD = 42.85;
|
|
|
|
OverhangH = 2.5;
|
|
|
|
ChannelD = 1;
|
|
|
|
translate (pos) {
|
|
|
|
difference () {
|
|
|
|
sprocketed_roller(sprockets = Sprockets, bevel = SprocketedRollerBevel, model = SprocketedRollerModel, set_screw_top = SprocketedRollerSetScrewTop, set_screw_side = SprocketedRollerSetScrewSide, bolts = SprocketedRollerBolts, adjust_base = SprocketedRollerAdjustBase, reinforced = false);
|
2024-02-11 14:39:57 +00:00
|
|
|
bearing_void([0, 0, 12.4 + 0.3], hole = true, padding = 0.2);
|
2024-01-17 23:48:05 +00:00
|
|
|
|
|
|
|
//to be printed in resin
|
|
|
|
translate([0, 0, 16.2]) {
|
|
|
|
for (i = [0 : 3]) {
|
|
|
|
rotate([0, 0, i * 90]) {
|
|
|
|
rotate([90, 0, 0]) translate([0, 0, 60]) cylinder(r = R(ChannelD), h = 100, center = true, $fn = 20);
|
|
|
|
translate([7, 0, 0]) cylinder(r = R(ChannelD), h = 40, center = true, $fn = 20);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-04 23:42:14 +00:00
|
|
|
//reinforce space above motor shaft
|
2024-01-26 00:47:32 +00:00
|
|
|
translate([0, 0, 4]) difference () {
|
|
|
|
cylinder(r = R(10.5), h = 9, center = true, $fn = 80);
|
|
|
|
cylinder(r = R(3), h = 9 + 1, center = true, $fn = 40);
|
|
|
|
}
|
|
|
|
|
2024-02-04 23:42:14 +00:00
|
|
|
//offset bearing = 0.8
|
2024-01-26 00:47:32 +00:00
|
|
|
translate([0, 0, 8.5]) difference () {
|
|
|
|
cylinder(r = R(23), h = 2, center = true, $fn = 80);
|
|
|
|
cylinder(r = R(19.8), h = 2 + 1, center = true, $fn = 40);
|
|
|
|
}
|
2024-01-17 23:48:05 +00:00
|
|
|
|
|
|
|
//reinforce overhang
|
|
|
|
translate([0, 0, 2.6]) difference () {
|
|
|
|
cylinder(r1 = R(OverhangD), r2 = R(OverhangD - (OverhangH * 2)), h = OverhangH, center = true);
|
|
|
|
cylinder(r = R(20), h = OverhangH + 1, center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-04 23:42:14 +00:00
|
|
|
module sprocketed_roller_invert_solid (pos = [0, 0, 0]) {
|
|
|
|
D = (FrameC * Sprockets) / PI;
|
|
|
|
OverhangD = 42.85;
|
|
|
|
OverhangH = 2.5;
|
|
|
|
ChannelD = 1;
|
2024-02-05 02:50:07 +00:00
|
|
|
BearingZ = 12.4 + 0.3 - 11.7 - 0.5;
|
2024-02-04 23:42:14 +00:00
|
|
|
translate(pos) {
|
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
sprocketed_roller(sprockets = Sprockets, bevel = SprocketedRollerBevel, model = "", set_screw_top = false, set_screw_side = SprocketedRollerSetScrewSide, bolts = SprocketedRollerBolts, adjust_base = SprocketedRollerAdjustBase, reinforced = false);
|
|
|
|
translate([0, 0, -2]) cylinder(r = R(D), h = 1.5, center = true);
|
|
|
|
}
|
|
|
|
translate([0, 0, 1]) gearbox_motor_shaft_void();
|
2024-02-11 14:39:57 +00:00
|
|
|
bearing_void([0, 0, BearingZ], hole = true, padding = 0.2);
|
2024-02-04 23:42:14 +00:00
|
|
|
if (SprocketedRollerSetScrewTop) {
|
|
|
|
m3_bolt_void([0, 0, 1]);
|
|
|
|
}
|
|
|
|
if (SprocketedRollerSetScrewSide) {
|
2024-02-11 14:39:57 +00:00
|
|
|
m3_nut_void(pos = [D/4, 0, 8.5], rot = [90, 0, 90], H = D/2);
|
2024-02-04 23:42:14 +00:00
|
|
|
}
|
|
|
|
//to be printed in resin
|
|
|
|
translate([0, 0, 16.2]) {
|
|
|
|
for (i = [0 : 3]) {
|
|
|
|
rotate([0, 0, i * 90]) {
|
|
|
|
rotate([90, 0, 0]) translate([0, 0, 20]) cylinder(r = R(ChannelD), h = 100, center = true, $fn = 20);
|
|
|
|
translate([7, 0, 0]) cylinder(r = R(ChannelD), h = 40, center = true, $fn = 20);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//reinforce space above motor shaft
|
|
|
|
translate([0, 0, 9]) difference () {
|
2024-02-05 02:50:07 +00:00
|
|
|
cylinder(r = R(10.5), h = 8.5, center = true, $fn = 80);
|
2024-02-04 23:42:14 +00:00
|
|
|
cylinder(r = R(3), h = 9 + 1, center = true, $fn = 40);
|
|
|
|
}
|
|
|
|
|
|
|
|
//offset bearing
|
2024-02-05 02:50:07 +00:00
|
|
|
translate([0, 0, 8.5 - 2.5 - 0.8 - 0.5]) difference () {
|
2024-02-04 23:42:14 +00:00
|
|
|
cylinder(r = R(23), h = 2, center = true, $fn = 80);
|
|
|
|
cylinder(r = R(19.8), h = 2 + 1, center = true, $fn = 40);
|
|
|
|
}
|
|
|
|
|
|
|
|
//reinforce overhang
|
|
|
|
translate([0, 0, 2.6]) difference () {
|
|
|
|
cylinder(r1 = R(OverhangD), r2 = R(OverhangD - (OverhangH * 2)), h = OverhangH, center = true);
|
|
|
|
cylinder(r = R(25), h = OverhangH + 1, center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-23 05:20:39 +00:00
|
|
|
module lamp_LEDs (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
D = 5.1;
|
|
|
|
X = LampGateX;
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
difference () {
|
|
|
|
cube([X-4.2, 10, 16], center = true);
|
|
|
|
rotate([90, 0, 0]) cylinder(r = R(D), h = 11, center = true);
|
|
|
|
translate([0, 0, 5.2]) rotate([90, 0, 0]) cylinder(r = R(D), h = 11, center = true);
|
|
|
|
translate([0, 0, -5.2]) rotate([90, 0, 0]) cylinder(r = R(D), h = 11, center = true);
|
|
|
|
|
|
|
|
translate([0, -6, 0]) cube([5.2, 10, 16 + 1], center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
module gate_holder () {
|
|
|
|
X = LampGateX;
|
|
|
|
difference () {
|
|
|
|
translate([0, 2.5, -1]) cube([X, 20, 20], center = true);
|
|
|
|
|
|
|
|
translate([0, 0, 1]) cube([X-7, 20 + 10, 18], center = true);
|
|
|
|
for ( i = [0 : 5] ) {
|
|
|
|
translate([0, -5.25 + (i * 4), 0]) cube([X-3.5, 1.6, 18.01], center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-11 14:39:57 +00:00
|
|
|
module electronics_panel_m3_bolts_voids (pos = [0, 0, 0]) {
|
|
|
|
XY = L298NModulePostsX;
|
|
|
|
Z = 1;
|
|
|
|
translate(pos) {
|
|
|
|
translate([32, 0, 0]) {
|
|
|
|
m3_panel_bolt_void([ XY / 2, XY / 2, Z]);
|
|
|
|
m3_panel_bolt_void([-XY / 2, XY / 2, Z]);
|
|
|
|
m3_panel_bolt_void([ XY / 2, -XY / 2, Z]);
|
|
|
|
m3_panel_bolt_void([-XY / 2, -XY / 2, Z]);
|
|
|
|
}
|
|
|
|
translate([-32, 0, 0]) {
|
|
|
|
m3_panel_bolt_void([ XY / 2, XY / 2, Z]);
|
|
|
|
m3_panel_bolt_void([-XY / 2, XY / 2, Z]);
|
|
|
|
m3_panel_bolt_void([ XY / 2, -XY / 2, Z]);
|
|
|
|
m3_panel_bolt_void([-XY / 2, -XY / 2, Z]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module button_void (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
cylinder(r = R(7), h = PanelZ + 1, center = true, $fn = 40);
|
|
|
|
translate([0, 0, -10 / 2]) cylinder(r = R(9.5), h = 10, center = true, $fn = 40);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module electronics_panel (pos = [0, 0, 0], rot = [0, 0, 0]) {
|
|
|
|
X = PanelX - 40;
|
|
|
|
Y = 100;
|
|
|
|
WallX = 3;
|
|
|
|
WallY = Y - 20;
|
|
|
|
WallZ = 20;
|
|
|
|
ESP32PostsOffsetY = 10;
|
2024-02-11 17:55:08 +00:00
|
|
|
ESP32PostsZ = 23 + 15;
|
2024-02-11 14:39:57 +00:00
|
|
|
L298NModuleOffsetY = 5;
|
|
|
|
DCJackZ = 45;
|
|
|
|
translate(pos) rotate(rot) {
|
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
cube([X, Y, PanelZ], center = true);
|
|
|
|
translate([(X / 2) - (WallX / 2), 10, -WallZ / 2]) cube([WallX, WallY, WallZ], center = true);
|
|
|
|
translate([-(X / 2) + (WallX / 2), 10, -WallZ / 2]) cube([WallX, WallY, WallZ], center = true);
|
|
|
|
rect_bolt_voids([0, ESP32PostsOffsetY, -ESP32PostsZ / 2], X = ESP32PostsX, Y = ESP32PostsY, D = 8, H = ESP32PostsZ);
|
|
|
|
L298N_mount([ 32, 46 + L298NModuleOffsetY, -4], [180, 0, 0]);
|
|
|
|
L298N_mount([-32, 46 + L298NModuleOffsetY, -4], [180, 0, 0]);
|
|
|
|
//panel for DC jack
|
|
|
|
translate([44.5, -(Y / 2) + 20 + (PanelZ / 2), -DCJackZ / 2]) cube([20, PanelZ, DCJackZ], center = true);
|
|
|
|
}
|
|
|
|
rect_bolt_voids([0, ESP32PostsOffsetY, -ESP32PostsZ], X = ESP32PostsX, Y = ESP32PostsY, D = 2.8, H = 10);
|
|
|
|
translate([0, ESP32PostsOffsetY, -ESP32PostsZ]) cube([ESP32BoardX + 0.3, ESP32BoardY + 0.3, 3], center = true);
|
|
|
|
//top panel bolts
|
|
|
|
m3_panel_bolt_void([(X / 2) - 10, -(Y / 2) + 10, 3]);
|
|
|
|
m3_panel_bolt_void([-(X / 2) + 10, -(Y / 2) + 10, 3]);
|
|
|
|
//underside panel bolts
|
|
|
|
m3_panel_bolt_void([-(X / 2) + 5, (Y / 2) - 12, -13], [0, 90, 0]);
|
|
|
|
m3_panel_bolt_void([ (X / 2) - 5, (Y / 2) - 12, -13], [0, -90, 0]);
|
|
|
|
electronics_panel_m3_bolts_voids([0, 9.5 + L298NModuleOffsetY, 1.5]);
|
|
|
|
//DC jack
|
|
|
|
translate([44.5, -(Y / 2) + 20 + (PanelZ / 2), -DCJackZ + 10]) rotate([90, 0, 0]) cylinder(r = R(11), h = 5 + 1, center = true, $fn = 60);
|
|
|
|
button_void([-40, -20, 0]);
|
|
|
|
button_void([40, -20, 0]);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-17 23:48:05 +00:00
|
|
|
module debug () {
|
|
|
|
DaylightZ = 11.5;
|
|
|
|
PanelOffsetZ = -2.5;
|
|
|
|
BearingOffsetZ = -2.5;
|
|
|
|
//////
|
2024-02-11 14:39:57 +00:00
|
|
|
|
2024-02-04 23:42:14 +00:00
|
|
|
UseDaylight = true;
|
|
|
|
UseAll = false;
|
2024-02-11 14:39:57 +00:00
|
|
|
FrameOnly = true;
|
|
|
|
|
|
|
|
panel([0, -10, PanelOffsetZ]);
|
2024-01-17 23:48:05 +00:00
|
|
|
|
2024-02-11 14:39:57 +00:00
|
|
|
if (!FrameOnly) {
|
|
|
|
translate([0, RollerY, 18]) rotate([180, 0, 0]) difference () {
|
|
|
|
//sprocketed_roller_upright();
|
|
|
|
//translate([50, 0, 0]) cube([100, 100, 100], center = true);
|
2024-02-02 05:25:51 +00:00
|
|
|
}
|
2024-02-11 14:39:57 +00:00
|
|
|
//translate([0, RollerY, 18]) rotate([180, 0, 0]) sprocketed_roller_upright_solid();
|
|
|
|
//centered_geared_motor([0, RollerY, MotorZ], [180, 0, 90]);
|
|
|
|
//lamp
|
|
|
|
//difference () {
|
|
|
|
//lamp_dual([0, LampY, 0 + 1]);
|
|
|
|
//lamp_single([0, LampY, 0 + 1]);
|
|
|
|
// translate([45, LampY, 0 + 2]) cube([100, 100, 100], center = true);
|
|
|
|
//}
|
|
|
|
//color("green") lamp_cover([0, LampY + 15, 21]);
|
|
|
|
color("red") lamp_bolts_voids([0, LampY + 5, (LampBoltH/2) - 1.5 - 2.5]);
|
|
|
|
//gates
|
|
|
|
translate([-5.35, LampY -7.1, 11 + 1 + .1]) rotate([0, 0, 7]) color("blue") picture_gate();
|
|
|
|
|
|
|
|
//idle rollers
|
|
|
|
idle_roller([ IdleRollerPrintX, IdleRollerPrintY, 3]);
|
|
|
|
idle_roller([-IdleRollerPrintX, IdleRollerPrintY, 3]);
|
|
|
|
idle_roller([ IdleRollerStockX, IdleRollerStockY, 3]);
|
|
|
|
idle_roller([-IdleRollerStockX, IdleRollerStockY, 3]);
|
|
|
|
|
|
|
|
//idle roller path
|
|
|
|
translate([0, IdleRollerPrintY - 8, 10]) cube([200, .1, 16], center = true);
|
|
|
|
translate([0, IdleRollerStockY + 8, 10]) cube([200, .1, 16], center = true);
|
|
|
|
|
|
|
|
if (UseDaylight) {
|
|
|
|
//feed
|
|
|
|
daylight_spool([-ReelX, ReelY, DaylightZ]);
|
|
|
|
if (UseAll) {
|
|
|
|
daylight_spool([-ReelX, -ReelY, DaylightZ]);
|
|
|
|
//takeup
|
|
|
|
daylight_spool([ReelX, ReelY, DaylightZ]);
|
|
|
|
daylight_spool([ReelX, -ReelY, DaylightZ]);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
four_hundred_foot_spool([-ReelX, ReelY, DaylightZ]);
|
|
|
|
if (UseAll) {
|
|
|
|
four_hundred_foot_spool([-ReelX, -ReelY, DaylightZ]);
|
|
|
|
//takeup
|
|
|
|
four_hundred_foot_spool([ReelX, ReelY, DaylightZ]);
|
|
|
|
four_hundred_foot_spool([ReelX, -ReelY, DaylightZ]);
|
|
|
|
}
|
2024-02-02 05:25:51 +00:00
|
|
|
}
|
2024-02-11 14:39:57 +00:00
|
|
|
|
|
|
|
//takeup
|
|
|
|
takeup_panel_picture([TakeupPanelPictureX, TakeupPanelPictureY, PanelOffsetZ]);
|
|
|
|
takeup_panel_picture_motor_mount([TakeupPanelPictureX, TakeupPanelPictureY, PanelOffsetZ]);
|
2024-01-17 23:48:05 +00:00
|
|
|
|
2024-02-11 14:39:57 +00:00
|
|
|
takeup_panel_stock([TakeupPanelStockX, TakeupPanelStockY, PanelOffsetZ]);
|
|
|
|
takeup_panel_stock_motor_mount([TakeupPanelStockX, TakeupPanelStockY, PanelOffsetZ]);
|
|
|
|
|
|
|
|
//feed
|
|
|
|
|
|
|
|
feed_panel_picture([FeedPanelPictureX, FeedPanelPictureY, PanelOffsetZ]);
|
|
|
|
feed_panel_motor_mount([FeedPanelPictureX, FeedPanelPictureY, PanelOffsetZ]);
|
2024-01-17 23:48:05 +00:00
|
|
|
|
2024-02-11 14:39:57 +00:00
|
|
|
feed_panel_stock([FeedPanelStockX, FeedPanelStockY, PanelOffsetZ]);
|
2024-01-17 23:48:05 +00:00
|
|
|
|
2024-02-11 14:39:57 +00:00
|
|
|
difference() {
|
|
|
|
union(){
|
|
|
|
translate([ReelX, ReelY, -10]) magnetic_coupling();
|
|
|
|
translate([ReelX, ReelY, -8]) slip_coupling();
|
|
|
|
}
|
|
|
|
translate([ReelX + 50, ReelY, -10]) cube([100, 100, 100], center = true);
|
2024-01-17 23:48:05 +00:00
|
|
|
}
|
2024-02-11 14:39:57 +00:00
|
|
|
difference() {
|
|
|
|
union(){
|
|
|
|
translate([-ReelX, ReelY, -8]) slip_coupling();
|
|
|
|
}
|
|
|
|
translate([-ReelX + 50, ReelY, -10]) cube([100, 100, 100], center = true);
|
2024-01-17 23:48:05 +00:00
|
|
|
}
|
2024-02-11 14:39:57 +00:00
|
|
|
translate([ReelX, ReelY, BearingOffsetZ+1]) {
|
|
|
|
rotate([0, 0, BearingRotateZ1]) color("blue") bearing([0, BearingY, BearingZ]);
|
|
|
|
rotate([0, 0, BearingRotateZ2]) color("blue") bearing([0, BearingY, BearingZ]);
|
|
|
|
rotate([0, 0, BearingRotateZ3]) color("blue") bearing([0, BearingY, BearingZ]);
|
|
|
|
rotate([0, 0, BearingRotateZ4]) color("blue") bearing([0, BearingY, BearingZ]);
|
|
|
|
}
|
|
|
|
|
|
|
|
translate([ReelX, ReelY, BearingOffsetZ+1-5]) {
|
|
|
|
rotate([0, 0, BearingRotateZ1]) color("red") bearing_post_nut([0, BearingY, BearingZ-.75]);
|
|
|
|
rotate([0, 0, BearingRotateZ2]) color("red") bearing_post_nut([0, BearingY, BearingZ-.75]);
|
|
|
|
rotate([0, 0, BearingRotateZ3]) color("red") bearing_post_nut([0, BearingY, BearingZ-.75]);
|
|
|
|
rotate([0, 0, BearingRotateZ4]) color("red") bearing_post_nut([0, BearingY, BearingZ-.75]);
|
|
|
|
}
|
|
|
|
|
|
|
|
//centered_geared_motor([ReelX, ReelY, TakeupMotorZ], [180, 0, PictureTakeupMotorRotationZ]);
|
|
|
|
//centered_geared_motor([ReelX, -ReelY, TakeupMotorZ], [180, 0, StockTakeupMotorRotationZ]);
|
|
|
|
|
|
|
|
//translate([0, 0, DaylightZ]) color("red", 0.25) cube([250, 100, 16], center = true);
|
2024-01-17 23:48:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//2020 frame
|
|
|
|
//top/bottom
|
|
|
|
translate([0, (FrameY/2) + 10, FrameZ]) rotate([0, 90, 0]) 2020_tslot(FrameX + 20);
|
|
|
|
translate([0, -(FrameY/2) - 10, FrameZ]) rotate([0, 90, 0]) 2020_tslot(FrameX + 20);
|
|
|
|
//far sides
|
|
|
|
translate([FrameX/2, 0, FrameZ]) rotate([90, 0, 0]) 2020_tslot(FrameY);
|
|
|
|
translate([-FrameX/2, 0, FrameZ]) rotate([90, 0, 0]) 2020_tslot(FrameY);
|
|
|
|
//inner rails
|
|
|
|
translate([(PanelX/2) - 10, 0, FrameZ]) rotate([90, 0, 0]) 2020_tslot(FrameY);
|
|
|
|
translate([-(PanelX/2) + 10, 0, FrameZ]) rotate([90, 0, 0]) 2020_tslot(FrameY);
|
|
|
|
|
|
|
|
//feet
|
2024-02-11 14:39:57 +00:00
|
|
|
corner_foot([FrameX / 2, (FrameY / 2) + 10, -26], [0, 0, 180]);
|
|
|
|
corner_foot([PanelX / 2 - 10, -(FrameY / 2) - 10, -26], [0, 0, 90]);
|
2024-01-17 23:48:05 +00:00
|
|
|
|
|
|
|
//motor_controller_panel([0, -75, PanelOffsetZ]);
|
2024-02-11 14:39:57 +00:00
|
|
|
|
|
|
|
//electronics
|
|
|
|
//ESP32_board([0, -90, -25], [180, 0, 0]);
|
|
|
|
L298N_module([-32, -85, -9], [180, 0, -90]);
|
|
|
|
L298N_module([32, -85, -9], [180, 0, 90]);
|
|
|
|
electronics_panel([0, -100, -3]);
|
2024-01-17 23:48:05 +00:00
|
|
|
}
|
|
|
|
|
2024-02-18 15:33:09 +00:00
|
|
|
PART = "super_gate";
|
2023-04-24 01:57:30 +00:00
|
|
|
LIBRARY = true;
|
2023-04-05 20:39:42 +00:00
|
|
|
|
|
|
|
if (PART == "panel") {
|
2024-01-28 20:49:17 +00:00
|
|
|
rotate([180, 0, 0]) panel();
|
2023-05-12 20:31:28 +00:00
|
|
|
} else if (PART == "lamp_dual") {
|
|
|
|
lamp_dual();
|
2023-05-22 14:37:11 +00:00
|
|
|
} else if (PART == "lamp_single") {
|
|
|
|
lamp_single();
|
2023-05-22 23:19:29 +00:00
|
|
|
} else if (PART == "lamp_cover") {
|
|
|
|
lamp_cover();
|
2023-05-18 01:10:05 +00:00
|
|
|
} else if (PART == "takeup_panel_picture"){
|
|
|
|
takeup_panel_picture();
|
2023-05-19 02:55:23 +00:00
|
|
|
} else if (PART == "takeup_panel_picture_motor_mount") {
|
|
|
|
takeup_panel_picture_motor_mount();
|
2023-05-19 22:17:23 +00:00
|
|
|
} else if (PART == "takeup_panel_stock"){
|
|
|
|
takeup_panel_stock();
|
|
|
|
} else if (PART == "takeup_panel_stock_motor_mount") {
|
|
|
|
takeup_panel_stock_motor_mount();
|
2023-05-20 14:08:47 +00:00
|
|
|
} else if (PART == "feed_panel_picture") {
|
|
|
|
feed_panel_picture();
|
2023-05-21 18:59:23 +00:00
|
|
|
} else if (PART == "feed_panel_stock") {
|
|
|
|
feed_panel_stock();
|
2023-05-21 20:12:56 +00:00
|
|
|
} else if (PART == "feed_panel_motor_mount") {
|
|
|
|
feed_panel_motor_mount();
|
2023-05-09 18:57:23 +00:00
|
|
|
} else if (PART == "picture_gate") {
|
|
|
|
rotate([-90, 0, 0]) picture_gate(Type = "standard");
|
2023-05-22 23:19:29 +00:00
|
|
|
} else if (PART == "full_gate") {
|
|
|
|
rotate([-90, 0, 0]) picture_gate(Type = "full");
|
|
|
|
} else if (PART == "super_gate") {
|
|
|
|
rotate([-90, 0, 0]) picture_gate(Type = "super16");
|
2023-05-23 05:20:39 +00:00
|
|
|
} else if (PART == "sound_gate") {
|
|
|
|
rotate([-90, 0, 0]) picture_gate(Type = "sound");
|
2023-05-22 23:19:29 +00:00
|
|
|
} else if (PART == "sprocketed_roller") {
|
|
|
|
rotate([180, 0, 0]) sprocketed_roller_upright();
|
2024-01-17 23:48:05 +00:00
|
|
|
} else if (PART == "sprocketed_roller_solid") {
|
|
|
|
rotate([180, 0, 0]) sprocketed_roller_upright_solid();
|
2023-05-22 23:19:29 +00:00
|
|
|
} else if (PART == "sprocketed_roller_invert") {
|
|
|
|
sprocketed_roller_invert();
|
2024-02-04 23:42:14 +00:00
|
|
|
} else if (PART == "sprocketed_roller_invert_solid") {
|
|
|
|
sprocketed_roller_invert_solid();
|
2023-07-13 23:05:29 +00:00
|
|
|
} else if (PART == "sprocketed_wheel") {
|
|
|
|
rotate([180, 0, 0]) sprocketed_roller_reinforced(sprockets = 18, bevel = true, model = "gearbox_motor", nuts = true);
|
2023-05-18 12:58:59 +00:00
|
|
|
} else if (PART == "magnetic_coupling") {
|
|
|
|
magnetic_coupling();
|
2023-05-18 21:01:32 +00:00
|
|
|
} else if (PART == "slip_coupling"){
|
|
|
|
slip_coupling();
|
2023-05-18 12:58:59 +00:00
|
|
|
} else if (PART == "corner_foot") {
|
|
|
|
rotate([180, 0, 0]) corner_foot();
|
2023-04-25 13:31:07 +00:00
|
|
|
} else if (PART == "2020_tslot_insert") {
|
|
|
|
2020_tslot_insert();
|
2023-05-20 02:49:31 +00:00
|
|
|
} else if (PART == "bearing_post_nut"){
|
|
|
|
bearing_post_nut();
|
2023-05-20 16:01:41 +00:00
|
|
|
} else if (PART == "daylight_spool_insert_reinforced_nut") {
|
|
|
|
daylight_spool_insert_reinforced_nut();
|
2023-05-20 20:51:16 +00:00
|
|
|
} else if (PART == "daylight_spool_insert_reinforced") {
|
|
|
|
daylight_spool_insert_reinforced();
|
2023-05-21 18:59:23 +00:00
|
|
|
} else if (PART == "idle_roller_half_a") {
|
|
|
|
idle_roller_half();
|
|
|
|
} else if (PART == "idle_roller_half_b") {
|
|
|
|
idle_roller_half(flip = true);
|
2023-05-22 04:07:59 +00:00
|
|
|
} else if (PART == "motor_controller_panel") {
|
|
|
|
motor_controller_panel();
|
2023-05-23 05:20:39 +00:00
|
|
|
} else if (PART == "gate_holder") {
|
|
|
|
gate_holder();
|
|
|
|
} else if (PART == "lamp_LEDs") {
|
|
|
|
lamp_LEDs();
|
2024-02-11 14:39:57 +00:00
|
|
|
} else if (PART == "electronics_panel") {
|
|
|
|
electronics_panel(rot = [180, 0, 0]);
|
2023-04-05 20:39:42 +00:00
|
|
|
} else {
|
2024-02-05 04:33:15 +00:00
|
|
|
debug();
|
2023-04-05 20:39:42 +00:00
|
|
|
}
|