EEG-Cap/3d_Printing/Neuer_Nubbel/top.scad

89 lines
2 KiB
OpenSCAD
Raw Normal View History

2024-08-05 20:59:00 +02:00
$fn=160;
2024-08-05 19:50:21 +02:00
2024-08-05 21:11:19 +02:00
// # import original Nibble and remove Mounts
2024-08-05 19:50:21 +02:00
module Original_nibble(){
union(){
2024-08-05 20:59:00 +02:00
import("../Printabals/EEG-Cap-Qriginal/files/spool-diffuser-v3.stl", convexity = 5);
rotate([0,0,60],center=true) import("../Printabals/EEG-Cap-Qriginal/files/spool-diffuser-v3.stl", convexity = 5);
2024-08-05 19:50:21 +02:00
}
}
2024-08-05 21:11:19 +02:00
// # Create Mounting Slots on original (Tophalf)
2024-08-05 20:59:00 +02:00
module nibble_for_Dropinnibble(){
difference()
{
difference(){
Original_nibble();
trimod(5.5,3);
}
translate([0,0,-0.4])cylinder(h = 1, d2=16, d1=16 ,center=true);
}
}
2024-08-05 21:11:19 +02:00
// # Create Outer Nibbles do fit against mainblock
2024-08-05 20:59:00 +02:00
module Outernibbles(){
intersection(){
union(){
translate([0,0,-0.5])cylinder(h = 1, d2=16, d1=16 ,center=true);
Original_nibble();
}
trimod(5.6,2.9);
}
}
2024-08-05 21:11:19 +02:00
// # Mounting Cutter Function
2024-08-05 20:59:00 +02:00
module trimod(space,h){
union(){
for ( i = [0:3] ){
rotate([0,0,120*i])
translate([space,-25/2,-1])cube([5,25,h]);
}
}
}
2024-08-05 21:11:19 +02:00
// # create down half
2024-08-05 20:59:00 +02:00
module downshell(){
difference(){
2024-08-05 21:11:19 +02:00
union() {
Outernibbles();
translate([0,0,-1])cylinder(h = 2, d2=16, d1=16 ,center=true);
translate([0,0,-2.25])cylinder(h = .5, d2=16, d1=15.5 ,center=true);
}
union(){
// Magnet
translate([0,0,-3])cylinder(d=5.1,h=2,cernter=true);
scale([1,1,0.2])sphere(d=11);
2024-08-05 21:53:15 +02:00
difference(){
union(){
translate([0,0,0.1]){
rotate([0,100,0]) wire();
rotate([0,100,180]) wire();
}
}
union(){
translate([0,-5,0])cube([10,10,10]);
rotate([0,0,180])translate([0,-5,0])cube([10,10,10]);
}
}
2024-08-05 21:11:19 +02:00
}
2024-08-05 20:59:00 +02:00
}
}
2024-08-05 21:11:19 +02:00
2024-08-05 21:53:15 +02:00
module wire(){
union(){
for ( i = [-1:1]){
translate([0,i*1.5,0])cylinder(h = 20, d=1.81, center=true);
}
}
}
2024-08-05 21:11:19 +02:00
// base for magnets
2024-08-06 21:26:09 +02:00
//downshell();
2024-08-05 21:11:19 +02:00
// Lighting insert
2024-08-06 21:26:09 +02:00
nibble_for_Dropinnibble();