Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
a7eb8b888This file is pinned to the selected release. Download the original to open it in your design tool.
use <Fan_60x25.scad>
$fn = 60;
FILTER_WIDTH = 134;
FILTER_LENGTH = 134;
FILTER_THICKNESS = 10;
FAN_WIDTH=70;
FAN_THICKNESS=15;
FAN_DIAMETER=67;
HOLE_DISTANCE = 62 / 2;
HOLE_DIAMETER = "M3";
/*
FAN_WIDTH=80;
FAN_THICKNESS=25;
FAN_DIAMETER=77;
HOLE_DISTANCE = 72 / 2;
HOLE_DIAMETER = "M3";
*/
/*
FAN_WIDTH=120;
FAN_THICKNESS=25;
FAN_DIAMETER=120;
HOLE_DISTANCE = 105 / 2;
HOLE_DIAMETER = "M3";
*/
HEIGHT=22;
MARGIN = 10;
MARGIN_HEIGHT = 7;
PYRAMID_HEIGHT = 20;
ARM_THICKNESS = 7;
/*
* AUTOMATICALLY GENERATED VARIABLE
* DO NOT TOUCH THIS !
*/
WIDTH = FILTER_WIDTH + MARGIN;
module filter() {
cube(size = [FILTER_WIDTH, FILTER_LENGTH, FILTER_THICKNESS], center = true);
}
module fan() {
coeff_width = FAN_WIDTH / 60;
coeff_height = FAN_THICKNESS / 25;
scale([coeff_width, coeff_width, coeff_height]) {
fan_60mm_x_25mm();
}
}
/*
module armsUlti() {
cube(size = [WIDTH + ARM_THICKNESS * 2 - ARM_THICKNESS * 2, 10, ARM_WIDTH], center = true);
for (pos = [
[WIDTH / 2 + ARM_THICKNESS / 2, 0, 0],
[-WIDTH / 2 - ARM_THICKNESS / 2, 0, 0]
]) {
translate(pos) {
rotate([90, 0, 0]) {
difference() {
cylinder(r = ARM_THICKNESS * 1.2, h = 10, center = true);
rotate([90, 0, 0]) {
scale([1.05, 1.05, 1.05]) {
cube(size = [ARM_THICKNESS, 50, ARM_WIDTH], center = true);
}
}
}
}
}
}
}
*/
PIVOT_HEIGHT = 5;
PIVOT_MALE_DIAMETER = 16;
module pivot(male = true, diff = false) {
female_diameter = 12;
male_diameter = PIVOT_MALE_DIAMETER + 4;
offset = 0.95;
clear = 0.2;
if (diff) {
//cylinder(r = 1.8, h = WIDTH * 2, center = true);
m4_hole(WIDTH * 2);
for (pos = [
[0, 0, FILTER_WIDTH / 2],
[0, 0, -FILTER_WIDTH / 2],
]) {
translate(pos) {
m4_nut(5);
//cylinder(r = 4.0, h = 4, center = true, $fn = 6);
}
}
} else {
if (male) {
color("orange") {
translate([0, 0, -PIVOT_HEIGHT / 2 + offset / 2]) {
cylinder(r = male_diameter / 2, h = 1, center = true);
}
translate([0, 0, 1]) {
cylinder(r = female_diameter / 2, h = PIVOT_HEIGHT, center = true);
}
}
} else {
difference() {
cylinder(r = male_diameter / 2, h = PIVOT_HEIGHT + 2, center = true);
translate([0, 0, -PIVOT_HEIGHT / 2 + offset + clear]) {
cylinder(r = female_diameter / 2 + clear, h = PIVOT_HEIGHT + offset, center = true);
}
m4_hole();
/*
translate([-4, -4, -female_diameter / 2 + PIVOT_HEIGHT + offset - 10]) {
cube(size = [20, 30, 20]);
}
*/
}
}
}
}
arm_thickness = ARM_THICKNESS;
arm_length = 95;
offset = 1;
offset_arm = 6;
module cyl(diff = false) {
rotate([90, 0, 0]) {
cylinder(r = PIVOT_MALE_DIAMETER / 2, h = arm_thickness, center = true);
}
}
module handle() {
for (pos = [
[WIDTH / 2 + arm_thickness / 2 + offset, 0],
[-WIDTH / 2 - arm_thickness / 2 - offset, 180]
]) {
translate([pos[0], 0, 0]) {
rotate([0, 90, pos[1]]) {
pivot(male = false);
}
}
translate([pos[0], -offset_arm, 0]) {
rotate([0, pos[1], 0]) {
arm(arm_length);
}
}
}
length = WIDTH + offset * 2;// + arm_thickness * 2 + offset * 2;
difference() {
union() {
// Lateral arm
rotate([0, 0, 90]) {
translate([-arm_length - offset_arm + arm_thickness / 2, length / 2, 0]) {
arm(length, arm_thickness, false);
}
}
translate([0, -arm_length - offset_arm + arm_thickness / 2, 0]) {
cyl();
}
}
rotate([90, 0, 0]) {
m4_hole();
}
}
}
ARM_WIDTH = 10;
ARM_THICKNESS = 7;
module arm(length, thickness = ARM_THICKNESS, light = true) {
module tank(diameter, length) {
if (diameter / 2 < length) {
cylinder(r = diameter / 2, h = length);
sphere(r = diameter / 2);
translate([0, 0, length]) {
sphere(r = thickness / 2);
}
}
}
difference() {
translate([0, -length / 2, 0]) {
cube(size = [thickness, length, ARM_WIDTH], center = true);
}
if (light) {
rotate([90, 0, 0]) {
for (pos = [
[-thickness / 1.15, 0, thickness / 2 + 1],
[thickness / 1.15, 0, thickness / 2 + 1],
]) {
translate(pos) {
tank(thickness, length - thickness - 1);
}
}
}
}
}
}
module verticalBase() {
coeff = 1.06;
difference() {
cyl();
scale([coeff, coeff, coeff]) {
arm(10, arm_thickness, false);
}
translate([0, 10, 0]) {
rotate([90, 0, 0]) {
cylinder(r = 2.05, h = 20);
}
}
}
}
module support() {
module pyramid() {
width = WIDTH / 2 * sqrt(2);
width_fan = (FAN_WIDTH) / 2 * sqrt(2) + 4;
rotate([0, 0, 45]) {
translate([0, 0, FILTER_THICKNESS / 2 + MARGIN_HEIGHT / 2]) {
difference() {
cylinder(r1 = width, r2 = width_fan, h = PYRAMID_HEIGHT, $fn = 4);
translate([0, 0, -4]) {
cylinder(r1 = width, r2 = width_fan, h = PYRAMID_HEIGHT, $fn = 4);
}
}
}
}
}
difference() {
union() {
cube(size = [WIDTH, FILTER_LENGTH + MARGIN, FILTER_THICKNESS + MARGIN_HEIGHT], center = true);
pyramid();
for (pos = [
[WIDTH / 2 + PIVOT_HEIGHT / 2, 0],
[-WIDTH / 2 - PIVOT_HEIGHT / 2, 180]
]) {
translate([pos[0], 0, 0]) {
rotate([0, 90, pos[1]]) {
pivot();
}
}
}
}
cylinder(r = FAN_DIAMETER / 2, h = 100, center = true);
scale([0.95, 0.95, 2]) {
filter();
}
translate([0, -FILTER_LENGTH / 2, 0]) {
scale([1, 1.1, 1]) {
filter();
}
}
filter();
for (pos = [
[ HOLE_DISTANCE, HOLE_DISTANCE, 0 ],
[ HOLE_DISTANCE, -HOLE_DISTANCE, 0 ],
[ -HOLE_DISTANCE, HOLE_DISTANCE , 0],
[ -HOLE_DISTANCE, -HOLE_DISTANCE , 0],
]) {
translate(pos) {
if (HOLE_DIAMETER == "M3") {
m3_hole();
translate([0, 0, HEIGHT]) {
m3_nut(10);
}
} else {
cylinder(r = HOLE_DIAMETER / 2, h = 100, center = true);
translate([0, 0, HEIGHT]) {
cylinder(r = 3, h = 10, $fn = 6);
}
}
}
}
rotate([0, 90, 0]) {
pivot(diff = true);
}
//cube(size = [200, 200, 40], center = true);
}
}
module m4_nut(height = 3) {
cylinder(r = 4.3, h = height, center = true, $fn = 6);
}
module m4_hole() {
cylinder(r = 2.2, h = WIDTH * 2, center = true);
}
module m3_nut(height = 2) {
cylinder(r = 3.4, h = height, center = true, $fn = 6);
}
module m3_hole() {
cylinder(r = 1.9, h = WIDTH * 2, center = true);
}
module m2_nut(height = 2) {
cylinder(r = 2.6, h = height, center = true, $fn = 6);
}
module m2_hole() {
cylinder(r = 1.2, h = WIDTH * 2, center = true);
}
if (0) {
difference() {
cube(size = [35, 12, 4], center = true);
// M4
translate([-10, 0, 1.5]) {
m4_hole();
m4_nut();
}
// M2
translate([10, 0, 1.5]) {
m2_hole();
m2_nut();
}
// M3
translate([0, 0, 1.5]) {
m3_hole();
m3_nut();
}
}
} else {
/*
intersection() {
cube(size = [50, 50, 50], center = true);
arms();
}
*/
//support();
handle();
/*
difference() {
pivot(true);
pivot(true, true);
}
//translate([0, 20, 0])
//difference() {
%pivot(false);
//pivot(false, true);
//}
*/
}
//translate([0, 0, HEIGHT / 2]) {
// cube(size = [10, 10, HEIGHT], center = true);
//}
/*
translate([0, 0, HEIGHT + PYRAMID_HEIGHT]) {
%fan();
}
*/
//translate([0, -10, 0])
// %filter();