Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a peristaltic pump component consisting of two concentric cylindrical sections. Start by creating a wide, flat base cylinder with a radius of 3.86mm and a height of 1.5mm. Centered on top of this base, add a taller hollow cylinder with an outer radius of 3.36mm and a height of 3.5mm. Finally, remove a central cy...
include <settings.scad> $fn = 75; h=3.5; r=3.8/2; ew=0.48; th=ew*2; r1=r+th; r2=r+5*ew; d1 = 2*r1; d2 = 2*r2; echo(d1=d1); echo(d2=d2); difference(){ union(){ cylinder(r=r2, h=1.5); cylinder(r=r1, h=h); } cylinder(r=r, h=h); }
glb/cad_cfeffdf44dee.glb
Create a 3D scene containing two separate objects. First, construct a rectangular prism measuring 10mm by 20mm by 40mm, centered on its origin. From the center of this prism, remove a 10mm cube to create a void. Additionally, remove a cylinder with a 10mm radius and a height of 10mm, also centered on the origin, which ...
cube([10,20,40], center=true); difference() { color("red") { cylinder(r=10, h=10, center=true); } cube(size=[10, 10, 10], center=true); } translate([20, 30, 0]) { cylinder(r=10, h=20, center=true); }
glb/cad_d194adb67145.glb
Create a rectangular frame composed of four intersecting rectangular prisms. First, create two identical prisms with dimensions of 40mm by 40mm by 600mm. Position these two prisms parallel to each other, separated by a distance of 760mm along their length, such that their center points are located at x = -360 and x = 3...
module bearing(){ include<Examples/Ball_bearing_Generator/files/Bearing.scad> } fmW=600; fmD=800; module prank(pw,ph,pl){ cube([pw,pl,ph], center=true); } translate([-40,0,0]){ translate([-fmD/2+20,0,0]) color("blue") translate([40,0,0]) prank(40,40,fmW); translate([fmD/2-20,0,0]) color("red") translate([40,0,0]) ...
glb/cad_9729fe13bc08.glb
Create a 3D model of a geometric object formed by the intersection of a sphere and a cube, with three orthogonal holes passing through it. Start by creating a sphere with a radius of 10mm. Intersect this sphere with a cube that has side lengths of 15mm, centered at the origin, to create the main body. From this resul...
debug = true; $fs = 0.1; $fa = 5; difference() { intersection() { body(); intersector(); } holes(); } if (debug) helpers(); module body() { color("Blue") sphere(10); } module intersector() { color("yellow") cube(15, center=true); } module holeObject() { color("Lime") cylind...
glb/cad_a92ce20d3139.glb
Create a hammer-like object by combining a rectangular block and a vertical cylinder. First, center a rectangular prism with a length of 58mm, a width of 28mm, and a height of 40mm. Position a vertical cylinder with a radius of 15mm and a total height of 130mm so that it passes through the center of the block. To creat...
l=130; h_l=58; h_w=28; h_h=40; module hammer(){ color("grey") cube([h_l,h_w,h_h],true); rotate([0,0,0]) difference() { cylinder(r=15, h=l); translate([0, 0, 100]) rotate([90, 0, 0]) { cylinder(r=10, h=100, center=true); } } } rotate([0, 0, 10]) { hammer(); }
glb/cad_aa02414e073a.glb
Create a tutorial model consisting of several thin rectangular planks and small cylindrical axes. Start by placing two parallel planks, each 400mm long, 4mm wide, and 10mm thick, positioned 76mm apart along the Y-axis. Connect these with two perpendicular side planks, each 640mm long, 4mm wide, and 10mm thick, centered...
x1=400; x2=x1*1.6; x3=x1*1.2; x4=x1*0.2; y1=x1/10; z1=x1/40; module plank(x,y,z) { color("SaddleBrown"){ cube(size=[x, y, z], center=true); } } module axis(r1,r2,h1){ cylinder(r1,r2,h1, center=true); } module holder(x,y,z){ color("SaddleBrown"){ cube(size=[x,y,z], center=true); } } translate([0, (-x2+y1)/2...
glb/cad_fef181954975.glb
Create a 3D model consisting of several geometric primitives. Start with two identical rectangular slabs, each measuring 5000mm by 555.56mm by 178.57mm, centered on the X and Z axes; position the first at Y=277.78mm and the second at Y=2380.95mm. Add four smaller cubes, each measuring 555.56mm by 2941.18mm by 178.57mm,...
use <../MCAD-master/bearing.scad> d1=5000; w1=d1/9; l1=d1/28; module part1(){ translate([0,w1/2,0]){ color("red") cube(size=[d1,w1,l1], center=true); } } part1(); translate([0, d1/2.1, 0]) { part1(); } d2=d1/9; w2=d1/1.7; l2=d1/28; module part2(){ color("brown") cube(size=[d2,w2,l2], center=true); } translate([-d1/...
glb/cad_e7cc54a86292.glb
Create a dome camera spacer by starting with a main cylinder that has a radius of 46.8mm and a height of 26mm, centered on all axes. From this cylinder, remove a central cube measuring 58mm x 58mm x 27mm. Create four circular mounting holes with a radius of 2.5mm and a height of 27mm, positioned at coordinates (34.5, 0...
union() { difference() { cylinder(r=46.8, h=26, $fn=360,center=true); cube([58,58,27],center=true); translate([34.5,0,0]) cylinder(r=2.5,h=27,$fn=100,center=true); translate([-34.5,0,0]) cylinder(r=2.5,h=27,$fn=100,center=true); translate([0,34.5,0]) cylinder(r=2.5,h=27,$fn=100,c...
glb/cad_49f634129f89.glb
Create a custom Prusa X-end idler. Start with a base that incorporates a central body and a pulley side cut consisting of a cylinder with a radius of 9.5mm and a height of 9mm. Integrate a series of holes for assembly: a pulley screw hole with a radius of 1.55mm and a height of 80mm, a larger hole with a radius of 3m...
use <x-end.scad> module x_end_idler_holes() { x_end_holes(); translate([0,3.5,0]) { translate(v=[0,-19,30.25]) rotate(a=[0,-90,0]) cylinder(h = 80, r=1.55, $fn=50); translate(v=[-4,-19,30.25]) rotate(a=[0,-90,0]) cylinder(h = 4, r=3, $fn=50); translate(v=[-21.5,-19,30.25]) rotate(a...
glb/cad_b8ca307fec65.glb
Create a custom-prusa X-end motor mount. Start with a base block measuring 17mm by 44mm by 53mm, centered at [-15, 31, 26.5]. From this base, remove a central motor shaft cutout consisting of a hexagonal prism with a 17mm radius and a height of 70mm, combined with several rectangular cutouts of 60mm by 2mm by 10mm ro...
use <x-end.scad> module x_end_motor_base() { x_end_base(); translate(v=[-15,31,26.5]) cube(size = [17,44,53], center = true); } module x_end_motor_holes() { x_end_holes(); translate(v=[-1,32,30.25]) { translate(v=[-19,-21,-12]) cube(size = [10,25,22]); translate(v=[0,-15.5,15.5]...
glb/cad_49e69b4b6ce6.glb
Create a Bowden 3D Printer Extruder assembly consisting of four distinct components: an extruder block, an idler, a support strut, and an axle. First, create the extruder block. Start with a base plate 3mm thick. Add four mounting feet, each 5mm thick, extending from the base. On top of the base, construct a bearing h...
include<fasteners.scad> include<bearings.scad> include<steppers.scad> $fn = 48; filament300 = [d_M6_nut, h_M6_nut, 6.55, 3.4, 5.925]; filament175 = [d_M4_nut, h_M4_nut, 4.5, 2.2, 5.3]; filament = filament175; t_feet = 5; t_base = 3; render_part(5); module render_part(part_to_render) { d_retainer = filament[0]; h_...
glb/cad_637d024586bb.glb
Create a Retinal-Slice-Holder consisting of a main dish and a matching lid. For the dish, create a cylinder with a radius of 60mm and a height of 20mm. Hollow out the center to create a wall thickness of 2mm, leaving a flat base. Within this dish, create an outer ring chamber by removing a concentric cylinder of radius...
tol = 0.1; Wall = 2; smoothness = 30; sep = 20; Lid = 1; Dish = 1; h_pd = 20; r_pd = 120/2; h_sc = 5; r_sc = 5/2; w_outer = 7.5; r_outer_pin = 2; r_Bubble_hole =0.5; h_Holder = h_pd - 5*Wall; r_Holder = 5; pos_Holder = 30; module Petri_Dish(){ difference(){ cylinder(h=h_pd, r=r_pd, $fn=smoothness); differe...
glb/cad_1c5a5a6a3ae4.glb
Create a Retinal-Slice-Holder consisting of a main petri dish and a lid. For the dish, create a cylinder with a radius of 60mm and a height of 20mm. Hollow out the center to create a wall thickness of 2mm, leaving a flat base. Inside this, create a secondary concentric inner chamber by removing a cylinder with a radius...
tol = 0.1; Wall = 2; smoothness = 30; Lid = 10; Dish = 1; h_pd = 20; r_pd = 120/2; h_sc = 5; r_sc = 5/2; w_outer = 10; r_outer_pin = 2; r_Bubble_hole = 1; h_Holder = h_pd - 5*Wall; r_Holder = 5; module Petri_Dish(){ difference() { cylinder(h=h_pd, r=r_pd, $fn=smoothness); difference(){ translate([0,0...
glb/cad_87aaf12a0614.glb
Create a rectangular base plate with a width of 48mm, a height of 30mm, and a thickness of 3mm. At the center of the two shorter edges, create two circular holes that pass completely through the thickness of the plate, each with a diameter of 3mm and positioned at an inset distance from the edges. On the top surface of...
include <screw-mount.scad> include <lc-table-params.scad> channel_dia = 0.3; channel_depth = 0.0625; difference () { translate([-base_w/2, -base_h/2, 0]) cube( [base_w, base_h, brace_thickness], center = false ); { translate( [-base_w/2+hole_inset, 0, 0]) cylinder( h=brace_thickness, d=hole_dia, ce...
glb/cad_70bc8eba949d.glb
Create a camera housing called wgvc. Start by constructing a main box with a height of 1.5625mm (camera_size + thickness) and a wall thickness of 0.0625mm. The footprint of this box is defined by a hull encompassing a 0.1mm square, a 0.0625mm square positioned at [0, 1.5625, 0], a polygon with vertices at [1.7, 0], [1....
lens=.8; thickness = 0.0625; eps=.01; base_length = 1.7; up_angle = 5; camera_size = 1.5; rear_tab_length = 1; rear_tab_thickness = thickness; wire_port_w = .385; wire_port_h = .18; module shape (){ hull() { square( size = .1, center = false); translate ([0,camera_size + thickness,0]) square( size...
glb/cad_2eba3f0c396b.glb
Create a wgvc mechanical component starting with a main cylindrical rotor that has a diameter of 2mm and a height of 0.5mm. Attached to the side of this rotor, create a rectangular flange that is 1mm long, 0.5mm wide, and 0.25mm high. Cut a horizontal cylindrical hole through the center of the rotor and the flange wi...
$fn = 60; rotor_dia = 2; rotor_dome_rad = 3/8; pole_dia = 1/4; rotor_thickness = 1/2; pole_depth = 2/3; pole_flange_length = rotor_dia/2; pole_flange_width = pole_dia*2; pole_flange_height = rotor_thickness/2; ubolt_notch = [ 0.25, pole_flange_width, 3/32 ]; ubolt_notch_inset = 0.125; axle_dia = 3/8; axle_clearance...
glb/cad_72a645b40172.glb
Create a stress collar consisting of a thin, elliptical ring. Start by creating a hollow cylinder with an outer diameter of 0.5mm and an inner diameter of 0.3mm, and a height of 3mm. Scale the cross-section of this cylinder along one axis to transform the circular profile into an ellipse. To finish the geometry, add a ...
include <MCAD/regular_shapes.scad> $fn = 60; eps = 0.01; corner_base_h = 3; corner_base_thickness = 0.375; pole_mount_id = 0.3; pole_mount_od =.5; pole_mount_h = 3; theta = 60; phi = atan(48/30); fillet_r = 0.1; fillet_z = fillet_r*(1+cos(theta)); module torus_fillet() { difference() { ...
glb/cad_444546913116.glb
Create a wgvc stress collar consisting of a thin square base and a protruding cylindrical mount. Start by creating a square plate with a side length of 3mm and a thickness of 0.375mm. At the center of this plate, construct a hollow cylindrical tube with an outer diameter of 0.5mm and an inner diameter of 0.3mm, exten...
include <MCAD/regular_shapes.scad> $fn = 60; eps = 0.01; corner_base_h = 3; corner_base_thickness = 0.375; pole_mount_id = 0.3; pole_mount_od =.5; pole_mount_h = 3; theta = 30; phi = atan(48/30); fillet_r = 0.1; fillet_z = fillet_r*(1+cos(theta)); module torus_fillet() { translate([0, 0, fillet_z]) ...
glb/cad_a25b074bdd8d.glb
Create a hollow cylindrical plug with an outer diameter of 5/8 inch and a height of 1 inch. The center of the cylinder should be hollowed out with a hole 1/2 inch in diameter. At the base of the cylinder, add a torus with a major radius of 3/8 inch and a minor radius of 1/16 inch, positioned so it slightly overlaps the...
include <MCAD/regular_shapes.scad> $fn = 60; module plug() { translate([0,0,1/16]) hull() torus2(3/8,1/16); difference() { cylinder(d=5/8,h=1); cylinder(d=1/2, h=1); } } module cutout() { linear_extrude(height = 2, center = false) hull() { translate ([3/16, 0, 0]) circle(r=1/8); ...
glb/cad_a9d7c3447bfb.glb
Create a rectangular plate measuring 410mm in length, 60mm in width, and 5mm in height. Centered on the top face of this plate, create the text "WGVC.COM" as a 3D embossed feature with a height of 5mm and a font size of 50mm. At each of the four corners of the plate, inset by 2.54mm from the edges, create a vertical ...
include <screw_holes.scad> echo(version=version()); font = "Liberation Sans:style=Bold Italic"; cube_size = 60; letter_size = 50; letter_height = 5; eps = 0.01; light_bar_thickness = 0.05; screw_inset = 2.54; o = cube_size / 2 - letter_height / 2; module letter(l) { translate([0,0,0]) linear_extrude(height ...
glb/cad_46aa1ddfb433.glb
Create a two-part protective enclosure for a PCB measuring 45mm x 68mm x 15mm. Construct the lower box as a hollow rectangular container with outer dimensions of 55mm x 78mm x 11.5mm and a wall thickness of 3mm. The interior should feature a 3mm high base platform with a 2mm thick perimeter frame. Add four clamping b...
generate_upper=1; generate_lower=1; pcb = [45,68,15]; pcb_height = 2; owt = 3; iwt = 2; cable_drills = 3; y_drills_bot = [0]; y_drills_top = []; x_drills_left = []; x_drills_right = []; with_clamping= 1; clamp_size = 4; clamp_size_drill = 1; space_below = 3; extra_standups = 0; with_flange = 0; flange_...
glb/cad_f0c50e37c905.glb
Create a two-part electronics enclosure (upper and lower box) designed to house a PCB of 45mm x 68mm x 20mm. For the lower box, create a rectangular shell with outer dimensions of 51mm x 76mm and a height of 13mm. The walls should be 2mm thick. On the bottom surface, add a rectangular cutout measuring 5mm x 6mm to se...
include <screw-mount.scad> include <screw_holes.scad> screw_hole_fn=8; with_case_screws = 1; module case_screw () { screw_hole(DIN963, M3, 25, 3); } case_screw_inset = 4; case_screw_mount_w = 3; with_pcb_mounts = 1; pcb_mount_x_size = 30; pcb_mount_y_size = 50; pcb_mount_x_offset = 5; pcb_mount_y_offset = 5; pcb...
glb/cad_b50654bd3cfd.glb
Create a microbit_cover designed as a protective shell with a base plate and side walls. Start with a central base plate measuring 52mm wide, 35mm high, and 2.5mm thick. Add side walls and a bottom lip that are 2.5mm thick and 5.7mm high, positioned to enclose the board. Carve out the following openings from the struc...
board_w = 52; board_h = 35; board_d = 1.7; standoff = 2; thickness = 2.5; fire_pane_w = 22; fire_pane_h = 22; fire_pane_off = 10; fire_pane_d = 1; fire_cell_w = 3.2; fire_cell_off = 1; button_off_w = 4; button_off_h = 17; button_w = 8; usb_w = 45; Delta = 0.1; module plate() { translate([0,board_h/2,thickness/2])...
glb/cad_f95735ac5a34.glb
Create a ktCAR2 model consisting of a rectangular base with white markings. Start by creating a gray rectangular base measuring 50mm wide, 100mm long, and 3mm high. Remove a rectangular section from the front of this base by placing a 50mm wide by 30mm long by 3mm high block at the origin and rotating it 20 degrees alo...
gap1 = 0.001; gap2 = 0.002; h = 3; l = 100; w = 50; translate( [w*0, 0, 0] ) base(); translate( [w*0, 0, 0] ) line(); module base() { color( "Gray" ) difference() { cube( [w, l, h] ); translate( [0, 0, 0] ) rotate( [20, 0, 0] ) cube( [w, 30, h] ); line(); } } module line() { ...
glb/cad_dbb9a84c40f3.glb
Create a Polaroid 600se adapter by constructing a hollow rectangular holster. Start with a main outer block that is 132mm wide, 154mm deep, and 35mm high. From the center of this block, remove a smaller internal rectangular volume measuring 114mm wide, 154mm deep, and 27mm high to create the cavity. To this internal ...
include <lib/functions.scad> include <lib/base.scad> include <lib/seal.scad> include <lib/claws.scad> include <lib/misc.scad> module adapter() { rotate([0,180,0]) { union() { color( "green", 1.0 ){ seal(); } color( "blue", 1.0 ){ small_base(); } claw...
glb/cad_3bf567eabeda.glb
Create a flashlight stand for a Fenix UC35. Start by constructing a main cylindrical body with an outer diameter of 28.5mm and a total height of 31mm. Hollow out the center of this cylinder by removing a smaller cylinder with a diameter of 25.5mm, starting from a height of 3mm above the base and extending to the top. A...
module fenix_uc35_stand() { uc35_cutout_diameter = 25.5; button_cutout_diameter = 15; leg_dimensions = [40, 10, 2]; leg_count = 8; wall_height = 29; wall_thickness = 3; bottom_shelf_z = 3; difference() { union() { cylinder(h = leg_dimensions.z + wall_height, d = ...
glb/cad_5b6bcb6ef667.glb
Create a wheel for a metal robot construction kit. Start with a central hub consisting of a cylinder with a radius of 5mm and a height of 10mm. Around this hub, create a larger outer rim with a radius of 25mm and a total height of 20mm, centered vertically so it extends 10mm above and 10mm below the hub's center. The r...
$fn=100; print_error=0.2; wheel_with_axis(print_error=print_error); module wheel_with_axis(print_error=0) { difference() { wheel(); motor2_axis(print_error=print_error); translate([0,0,-0.1]) cylinder(r=2+print_error, h=1+0.1); } } module wheel() { difference() { translate([0, 0, 10]) { ...
glb/cad_b22312e6f547.glb
Create a 3D model of a Pololu motor with a gearbox and a D-shaft. Start by constructing the main motor body using two rectangular blocks: a primary box measuring 20mm x 11mm x 20mm positioned at [2.5, 1.5, 0], and a second block measuring 23mm x 7mm x 20mm positioned at [1, 3.5, 0]. Add a flat base plate, or "skirt," m...
pololu_dshaft(); module generic_axis(length=22, radius=1) { translate([0,0,-1]) cylinder(h=length, r=radius, $fn=100); } module dshaft_axis(length=22) { translate([0,0,-1]) difference() { cylinder(h=length, r=1.5, $fn=100); translate([0.75, -1.5, 0]) cube([2, 3, length]); } } module pololu...
glb/cad_746ffa87b1d5.glb
Create a sonar sensor model. Start with a central rectangular base plate measuring 45mm by 20mm with a thickness of 2mm, centered at the origin. Position two identical cylindrical "eyes" on top of the plate. Each eye is a cylinder with a radius of 8mm and a height of 12mm, located at x = -13mm and x = 13mm respective...
sonar(); module sonar() { module sonar_eye() { difference() { cylinder(r=8, h=12, $fn=100); translate([0, 0, 11]) cylinder(r=6, h=1+0.1, $fn=100); } } translate([0, 0, 1]) cube([45, 20, 2], center=true); translate([-13, 0, 2]) sonar_eye(); translate([13, 0, 2]) sonar_eye(); translat...
glb/cad_24c795b8a3da.glb
Create a metal robot wire assembly consisting of a thin central cable and two terminal pins. Start by creating a thin cable with a diameter of 1mm and a height of 1mm. At each end of this cable, attach a pin assembly. Each pin assembly consists of a central cylinder with a radius of 1.5mm and a height of 10mm, capped...
wire1_1core_pin_pin(); module wire1_1core_pin_pin() { linear_extrude(height=1) import(file="wire1-1core-d1mm-43d.dxf"); translate([0.7, 105, 0.5]) rotate([-90,0,0]) head_pin(); translate([55.6, 125, 0.5]) rotate([-90,0,15]) head_pin(); } module wire_power_cable() { linear_extrude(height=2) import(f...
glb/cad_b5e375787c68.glb
Create a motor fix mount consisting of a central rectangular block and two flanking tabs. Start with a central rectangular prism measuring 24mm in width, 17mm in depth, and 20mm in height. Centered on the front face of this block, remove a profile based on the motor face dimensions. Extend two flat tabs outward from ...
motor_fix(); module box_column() { difference(){ cylinder(h=6, r=3.5, $fn=100); translate([0,0,-1]) cylinder(h=8, r=2.5, $fn=100); } } module gear_shim() { difference(){ cylinder(h=1, r=4, $fn=100); translate([0,0,-1]) cylinder(h=3, r=1.2, $fn=100); } } module motor_fix() { dif...
glb/cad_79df36af6779.glb
Create a metal robot gearbox assembly consisting of two mirrored housing halves and a set of internal gears. Construct the motor-side housing half as a block with a central rectangular cutout for a motor (24mm x 17.4mm x 18mm) and a slot for electrical contacts. This half features several vertical cylindrical holes f...
use <../gears/gears.scad>; print_error=0.2; gearbox(); gear_transmission1_x=12.2; gear_transmission1_y=-6.1; gear_transmission1_r=12; gear_transmission2_x=23.6; gear_transmission2_y=2.2; gear_transmission2_r=12; gear_wheel_x=35; gear_wheel_y=-6.1; gear_wheel_r=12; hole1_x=49; hole1_y=2.3; hole2_x=49; hole2_y=-14...
glb/cad_347d0490ac68.glb
Create a gear rack for a metal construction set. Start by creating a rectangular base plate measuring 160mm in length, 12mm in width, and 6.8mm in height. The top surface of this plate should feature a linear gear rack profile. On the top face of the plate, create two larger mounting holes with a radius of 1.6mm. Posi...
print_error = 0.1; rack(print_error=print_error); module gear_motor(print_error=0) { difference() { union() { linear_extrude(height=5) import(file="gear-pa20-cp1.5-t18.dxf"); } d_shaft_axis(radius=2.5, d_radius=2, print_error=print_error); } } module gear_transmission1(p...
glb/cad_535fb4aefa6f.glb
Create a gear for a metal construction set. The main body is a thin cylinder with a height of 3mm, featuring a gear profile with 27 teeth and a circular pitch of 1.5mm. To ensure the teeth are structurally sound, add a supporting cylindrical base with a radius of 5.7mm and a height of 1mm, positioned 0.3mm below the ma...
3dp_error = 0.2; difference() { union() { linear_extrude(height=3) import(file="gear-cp1.5-t27.dxf"); translate([0, 0, -0.3]) cylinder(h=1, r=5.7, $fn=100); } motor2_axis(radius=1.5+3dp_error, cut_h=0.9+3dp_error); generic_axis(radius=1.1); } module generic_axis(length=22, radius=1.5) { transl...
glb/cad_801a2f1ac32b.glb
Create a mold half for a tire, consisting of a large cylindrical body with a radius of 33mm and a height of 28mm, centered at [0, 0, -7]. From this main cylinder, remove a central cylindrical void with a radius of 13mm and a height of 20mm, positioned at [0, 0, -10]. Incorporate a complex tire tread pattern by removi...
print_error = 0.1; outer_box_half2(hoop_width=3, print_error=print_error); module inner_surface(hoop_width=2, print_error=0) { fixator_width=4; difference() { union() { translate([0, 0, 10]) { linear_extrude(height=10, twist=10) import(file = "покрышка-внутр.dxf"); mirror([...
glb/cad_a64d45e8dffa.glb
Create a metal robot motor housing. Start by constructing the main body as a hollow cylinder with an outer radius of 10.3mm and a height of 10mm, with a wall thickness of 3mm. Add a second, smaller concentric cylinder extending downwards from the base with a radius of 9.3mm and a total height of 25mm. Remove a central ...
print_error = 0.2; magnet_width = 10; magnet_height = 10; magnet_thickness = 1; box(core_radius=7.3, rod_radius=1, print_error=print_error); module box(core_radius=7, rod_radius=1, print_error=0) { difference() { union() { difference() { union() { cylinder(r=core_radius+3, h=10, $fn=10...
glb/cad_75d86285d0a3.glb
Create a metal constructor angle bracket shaped like an L-profile. The bracket consists of two perpendicular walls, each 2mm thick. The vertical wall is 10mm wide and 10mm high. The horizontal wall is 10mm wide and 62mm long. Both walls are 2mm thick. The vertical wall has a single 4.2mm diameter hole centered at X=5...
print_error = 0.2; angle_1xX(holes=3, print_error=print_error); module angle_1xX(holes=1, print_error=print_error) { difference() { union() { cube([3+4+3, 2, 2+3+4+3]); cube([3+4+3, 2+(6+4)*holes, 2]); } translate([5, 3, 2+3+2]) rotate ([90, 0, 0]) cylinder(h=4, r=2+print_error, $f...
glb/cad_8a679a625604.glb
Create a metalrobot wheel assembly. Start by creating a main wheel body consisting of a central cylinder with a height of 20mm and a radius of 25mm. Remove a smaller concentric cylinder from the center with a radius of 20mm and a height of 22mm to create a hollow rim. At the center of the wheel, add a solid inner hub ...
wheel_with_axis(print_error=0.1); module wheel_with_axis(print_error=0) { difference() { wheel(); motor2_axis(print_error=print_error); } } module wheel() { difference() { translate([0, 0, 10]) { linear_extrude(height=10, twist=10) import(file = "протектор.dxf"); mirror([0, ...
glb/cad_88aaa4cca589.glb
Create a motor mount for a gear motor. Start with a main block that is 29mm wide, 18mm deep, and 28mm high. From this block, remove a central rectangular section to create a hollow space for the motor, measuring 20mm wide by 14mm deep, extending 28.2mm high. Additionally, remove a smaller rectangular section measuring ...
$fn=100; print_error = 0.2; motor_fix(print_error=print_error); module motor_fix(print_error=0) { mlenx_1 = 20; mlenx_2 = 25; mlenx_3 = 25; mlenx_4 = 23; mleny_1 = 14; mleny_2 = 7; mleny_3 = 14; mleny_4 = 12; mlenz_2 = 2; mlenz_3 = 3; difference() { union() { translate([-(...
glb/cad_a55d689bb7fb.glb
Create a hollowed-out chassis for a metal robot. Start by constructing a solid shell using a linear extrusion with a height of 110mm. The profile of this extrusion is a polygon defined by the vertices [0,0], [-110,0], [-130,20], [-130,45], [-110,65], [-50,60], and [0,35]. To create the interior cavity, subtract a sec...
use <../../gearbox/gearbox-prototype5/box/box.scad>; use <../chasis-43d/wheel.scad>; print_error=0.2; hull(); module hull() { difference() { translate([55, 55, -15]) rotate([90,0,0]) linear_extrude(height=110) polygon([ [0,0], [-110,0], [-130,20], [-130,45], [-110,65], [-50,60], [0,35] ]);...
glb/cad_19b79bc755b5.glb
Create a metalrobot model by first constructing a convex hull that encompasses several spheres to form the main body. Place two spheres of radius 5mm at coordinates (-10, 20, 0) and (10, 20, 0), and two spheres of radius 10mm at (-10, 22, 15) and (10, 22, 15). Add two more spheres of radius 5mm at (-10, 0, 20) and (10,...
$fn=100; rover(); module rover() { difference() { hull() { translate([-10, 20, 0]) sphere(5); translate([10, 20, 0]) sphere(5); translate([-10, 22, 15]) sphere(10); translate([10, 22, 15]) sphere(10); translate([-10, 0, 20]) sphere(5); translate([10, 0, 20]) sphere(5); ...
glb/cad_020589aa4c47.glb
Create a metal robot construction kit consisting of several flat, interlocking components. First, create the body parts. Construct two identical body plates by extruding a 2mm thick polygon with vertices at [0,0], [60,-20], [120,-20], [180,0], [170,18], [120,0], [60,0], and [10,18]. Add two rectangular support blocks...
body(); translate([0,40,0]) mirror([0,1,0]) body(); module full_leg() { translate ([80, 0, 0]) rotate(a=180, v=[0,0,1]) { rotate(a=45, v=[0,1,0]) 2servo_holders_for_printing(); translate([-20, 8, 50]) rotate(a=120, v=[0,1,0]) leg_with_servo(); translate([0, 6, -25]) servo_with_holder1(); ...
glb/cad_2726e3b75159.glb
Create a metal robot chassis assembly. Start by creating a main body and a bottom base, both 3mm thick, using the provided DXF profiles. Within the body section, include a motor mounting frame 3mm thick. Construct two identical motor units. Each unit consists of a main motor box (20x11x20mm), a secondary housing (23x7...
translate([0, 110]) rotate([-20, 0, 0]) translate([0, -110]) { linear_extrude(height=3) import(file = "корпус.dxf"); translate([0, 10, -6]) linear_extrude(height=3) import(file = "рама-моторы.dxf"); translate([0, 42, -5]) rotate([0, 0, 270]) motor2(); translate([110, 17, -5]) rotate([0, 0,...
glb/cad_470a6439c11c.glb
Create a battery holder for four AA batteries. The main body is a rectangular block with a height of 14mm. Inside, create four longitudinal cells to house the batteries. Each cell should have a width of 14mm and a length of 49mm, with an additional 1.5mm extension for the positive terminal and a 4mm deep space for the ...
use <../breadboard/breadboard.scad>; print_error = 0.2; holder(count=4, holes=6, spring_length=5, print_error=print_error); module holder(count=6, holes=6, body_width=14, body_length=49, noze_length=1.5, spring_length=4, print_error=0) { bed_width = body_width+1; difference() { union() { ...
glb/cad_460549b34d15.glb
Create a metalrobot socket by starting with a rectangular block measuring 22mm in width, 22mm in depth, and 4mm in height. Centered along the depth of the block, carve out a rectangular slot to create a rail guide. This slot should be 1mm wide, 24mm long, and 2mm deep, positioned so that it begins 4mm from the front ed...
print_error=0.2; rail_width=1; brbrd_bender_socket(print_error=print_error); module brbrd_bender_socket(print_error=0) { translate([0, 0, 3]) linear_extrude(height=19) import(file="brbrd-bender-socket-43d.dxf"); difference() { cube([22, 12+10, 4]); translate([22/2-rail_width/2-print_error, 4, 2.1])...
glb/cad_0cbabeffcad3.glb
Create a breadboard model consisting of two mirrored halves joined together. Each half is a rectangular block with a height of 8mm and a width determined by 17 parallel lines. Each line is a block 3.1mm wide (accounting for a 0.2mm print error) and 8mm high. Within each line block, create a central vertical slot 1.9m...
print_error=0.2; breadboard(print_error=print_error); module breadboard_block(holes=5, height=8, print_error=0) { block_base_width = 3.5; cover_height=1; contact_height=7; difference() { cube([block_base_width-print_error*2, 1.5+1+2*holes+0.5*(holes-1)+1+1.5, height]); translate([1-print_error*2...
glb/cad_1570068723a4.glb
Create a 3D model of an Arduino Uno board. Start with a rectangular base plate measuring 55mm by 70mm with a thickness of 2mm. Drill four mounting holes with a radius of 1.5mm through the plate at the following coordinates: (8.5, 2.5), (37, 2.5), (2.5, 55), and (52.5, 53). On top of the plate, add several components. ...
use <microchips.scad> arduino_uno(); module arduino_uno() { size_x = 55; size_y = 70; difference() { cube([size_x, size_y, 2]); translate([8.5, 2.5, -0.1]) cylinder(r=1.5, h=2+0.2, $fn=100); translate([37, 2.5, -0.1]) cylinder(r=1.5, h=2+0.2, $fn=100); translate([2.5, 55, -0.1]) cylinder(r=1.5...
glb/cad_076792e9599b.glb
Create a set of p25MatrixModels brackets for LED display panels. First, construct a center bracket by creating a 30mm wide by 80mm high rectangular plate with a thickness of 6mm. In this plate, create eight through-holes with a radius of 2.4mm. Position four holes at coordinates (±35.125, ±7.125) and four holes at (±...
farHole = 14.25; closeHole = 70.25; bracketWidth=30; bracketHeight=80; terminalHoleWidth=53; bracketThickness=6; screwDiameter = 4.8; screwRadius=screwDiameter/2; module center_bracket() { difference(){ union(){ cube([bracketWidth,bracketHeight,bracketThickness],center=true); rotate(90)cube([...
glb/cad_43fb53bf0cf3.glb
Create a p25MatrixModels bracket for a Raspberry Pi 3B. Start by creating a main rectangular base plate measuring 85mm by 56mm with a thickness of 1.25mm. Attached to this base, create a bracket assembly. The bracket consists of two mirrored "half bracket" components. Each half bracket is formed by the union of two b...
function piHoleLocations (board="3B") = (board=="1A+" || board=="1B+" || board=="2B" || board=="3B") ? [[3.5, 3.5], [61.5, 3.5], [3.5, 52.5], [61.5, 52.5]] : (board=="Zero") ? [[3.5, 3.5], [61.5, 3.5], [3.5, 26.5], [61.5, 26.5]] : (board=="1B") ? [[80, 43.5], [25, 17.5]] : []; function piBoardDim (board="3B"...
glb/cad_ad4dd4a808fe.glb
Create a camera holder for an M12 lens using a push-fit mechanism. Start by creating a central cube with dimensions 16mm x 16mm x 12mm. Subtract a cylindrical hole from the bottom of this cube to create a threaded internal mount for the lens, with a diameter of approximately 12mm and a length of 18mm. To secure the ca...
include <threads.scad> include <picam_2_push_fit.scad> corr=0.2; petri_h=15; petri_lid_d=92.4 + corr*3; LED_shield=40; base_d=petri_lid_d+LED_shield*2; screw_d=21; screw_r=2/2; screw_hold_r=2; sensor_h=2; sensor_x=8.5; wall_M12=1.5; base_xy=16; base_h=6; M12_r=12/2; mount_h = 12; wall=0.75; holder_x=54; holder_y=54; ...
glb/cad_d414a20efc1e.glb
Create a lightM tool for microbial analysis. Start by creating a main cylinder with a radius of 16mm and a height of 5mm. From the center of this cylinder, remove a self-tapping hole that is 11mm tall and centered vertically. This hole should have a mean radius of 10.2mm and a diameter range (dr) of 1.2mm. The internal...
d=0.05; function zeroz(size) = [size[0], size[1], 0]; module reflect(axis){ children(); mirror(axis) children(); } module repeat(delta,N,center=false){ translate( (center ? -(N-1)/2 : 0) * delta) for(i=[0:1:(N-1)]) translate(i*delta) children(); } module nut(d,h=-1,center=false,fudge=1.18,shaft=false){ h=(...
glb/cad_38342ffd98ba.glb
Create a trumpet-playing robot mechanism consisting of three identical gear racks. Each rack is composed of a main body, a toothed edge, and a finger attachment. The main body is a rectangular block 57.6mm long, 7.5mm wide, and 7mm thick. Along one 57.6mm edge, create nine teeth, each 6.4mm apart. Each tooth is a trape...
include <MCAD/units.scad> module Rack( numTeeth = 9, teethInterval = 6.4, toothHeight = 4.5, width = 7.5, thickness = 7, middle = false, ) { rackLength = teethInterval * numTeeth; fingerWidth = 8; fingerThickness = 7.5; fingerLength = 48 + (middle ? 3.5 : 0); $fn = 60; ...
glb/cad_2a9aec68477a.glb
Create a trumpet-robot servo mount consisting of three identical mirrored and positioned bracket units. Each unit is built around a base plate 6mm high and 42.4mm wide. On this base, construct a wall 2mm thick and 42.4mm wide that rises to a total height of 16.1mm. Attached to this wall is a rectangular rail 8mm high a...
include <MCAD/units.scad> baseHeight = 6; servoLength = 12; servoWidth = 22.4; motorWidth = servoWidth + 20; servoHoleDistance = 2.75; rackRailHeight = 8; mountingHoleDistance = 18; $fn = 60; module ServoMount(middle=false) { wallWidth = middle ? 6 : 2; difference() { union() { cube([wal...
glb/cad_4f5ff17ac6c9.glb
Create a gear for a trumpet-playing robot. The gear consists of two stacked sections. The main body is a 6mm thick gear with 16 teeth, an outer radius of 18mm, a root radius of 13.5mm, and a pitch radius of 15.9mm. This main section features a central hole with a diameter of 4.7mm, defined by a 12-sided polygonal profi...
include <MCAD/units.scad> use <MCAD/involute_gears.scad> function servoGearInnerRadius() = 13.5; function servoGearOuterRadius() = 18; module ServoGear(thickness=6) { linear_extrude(thickness) difference() { gear_shape( number_of_teeth=16, pitch_radius=servoGearOuterRadius() - ...
glb/cad_36471ded9d1f.glb
Create a trumpet-robot speaker spacer assembly consisting of four identical hollow cylindrical pillars. Position the four pillars in a square layout, with each pillar centered 40mm from the x and y axes (at coordinates [40, 40], [40, -40], [-40, 40], and [-40, -40]). Each pillar must have an outer diameter of 8mm and a...
include <MCAD/units.scad> shellSize = 5; speakerHoleDistance = 80; spacerHeight = 5; $fn = 60; module SpeakerSpacers() { for (x=[-1, 1], y=[-1, 1]) { translate([x * speakerHoleDistance / 2, y * speakerHoleDistance / 2]) difference() { cylinder(h=shellSize + spacerHeight, r=4); ...
glb/cad_dcd12f2edfbd.glb
Create a Servo Trumpet Attachment by starting with a rectangular block 24mm wide, 27.1mm long, and 6mm thick. Carve a semi-cylindrical groove through the center of the block along its length with a radius of 6.05mm and a depth of 6mm, effectively removing a cylinder of that radius from the top center. Additionally, rem...
include <MCAD/units.scad> module ServoTrumpetAttachment() { trumpetTubeRadius = 12.1 / 2; thickness = 6; length = trumpetTubeRadius * 2 + 3; holeDistance = 18; width = 24; $fn = 60; difference() { translate([-width / 2, -trumpetTubeRadius - 3, 0]) cube([width, length, thick...
glb/cad_ea30f717b0e9.glb
Create a trumpet-playing robot speaker base by stacking several concentric geometric volumes. Start with a square base 106mm wide and 106mm long with a height of 3mm and corner radii of 20mm. On top of this base, center a truncated cone that is 20mm tall, tapering from a bottom radius of 47.5mm to a top radius of 40mm....
include <MCAD/units.scad> $fn = 60; speakerSize = 106; module roundCube(width, length, height, cornerRadius) { hull() { for (x=[-1, 1], y=[-1, 1]) translate([x * (width / 2 - cornerRadius), y * (length / 2 - cornerRadius), 0]) cylinder(r=cornerRadius, h=height); } } module Speaker() {...
glb/cad_e9550f9dc658.glb
Create a trumpet-robot stand by starting with a base rounded rectangular slab 50mm wide, 200mm long, and 19mm thick, with corner radii of 20mm. Centered on the top face, remove a rounded rectangular slot 23mm wide and 72mm long with inner corner radii of 8mm. Extend the base by adding two perpendicular rounded rectan...
include <MCAD/units.scad> width = 50; length = 200; holeWidth = 23; holeLength = 72; cornerRadius = 20; innerCornerRadius = 8; $fn = 60; thickness = 19; feetPocket = 3; feetRadius = 10; feetInset = 20; crossInset = 30; crossWidth = 25; crossCornerRadius = 8; crossLength = 180; module roundCube(width, length, height, ...
glb/cad_c2d5557dafa0.glb
Create a 3D model of a micro servo motor. Start with a central rectangular block measuring 23mm x 12.5mm x 22mm. On top of this block, add a wider, thinner rectangular plate measuring 32mm x 12mm x 2mm, centered horizontally and positioned 5mm above the center of the main block. Integrate a 20-sided prism (cylinder) ...
module MicroServo(){ difference(){ union(){ color("black") cube([23,12.5,22], center=true); color("black") translate([0,0,5]) cube([32,12,2], center=true); color("black") translate([5.5,0,2.75]) cylinder(r=6, h=25.75, $fn=20, center=true); color("black") translate([-.5,0,2.75]) cylinder(r=1, h=25.75, $fn...
glb/cad_68d6d52b26df.glb
Create a trumpet-playing robot speaker enclosure. Start with a base plate that is a rounded square with a total width and length of 116mm, a height of 5mm, and corner radii of 30mm. Cut a central circular hole through this base with a diameter of 97mm. On top of the base, center a conical shell. The bottom of this she...
include <MCAD/units.scad> speakerSize = 106; speakerHole = 101 - 4; shellSize = 5; totalSize = speakerSize + shellSize; speakerHoleDistance = 80; enclosureHoleDistance = 100; cornerRadius = 30; coneHeight = 50; shellThickness = 1.5; rimRadius = 27.4 / 2; rimHeight = 7; $fn = 60; module roundCube(width, length, heigh...
glb/cad_957ab8981aba.glb
Create a fingertip for a trumpet-playing robot by starting with a solid cube that is 20mm wide, 20mm deep, and 11mm high. Centered on the top face, remove a cylindrical pocket with a radius of 9mm and a depth of 3mm. Within the remaining material of the cube, create a vertical hole through the center with a radius of 1...
include <MCAD/units.scad> include <MCAD/nuts_and_bolts.scad> $fn=60; module Fingertip( fingertipHeight = 11, valveCapPocket = 3 ) { nutHeight = 50; difference() { translate([-10,-10,0]) cube([20, 20, fingertipHeight]); translate([0, 0, -epsilon]) cylinder(h=fingertipH...
glb/cad_eadb50157902.glb
Create a speaker mount for a trumpet robot. Start by creating a rectangular base plate measuring 50.6mm in width, 90.7mm in length, and 2.5mm in height. Centered on this plate, add a concentric cylindrical rim with an outer radius of 15.125mm and a height of 5mm. Create a circular hole through the center of this rim an...
include <MCAD/units.scad> $fn = 60; height = 2.5; rimRadius = 27.25 / 2; rimHeight = 5; width = 50.6; length = 90.7; padding = 24; enclosureHoleInset=8; module SpeakerMount() { difference() { union() { color("silver") translate([-width/2, -length/2, 0]) cube([width, le...
glb/cad_6b568fd0536b.glb
Create a trumpet-robot model consisting of three vertical valve assemblies and a connecting horizontal cylinder. First, create three identical valve units spaced 24.2mm apart along the x-axis. Each unit consists of a main cylinder with a radius of 10mm and a height of 124.22mm, topped with a thin disc of radius 10.86mm...
include <MCAD/units.scad> $fn = 60; function valveDistance() = 24.2; function valvePressAmount() = 20.75 - 5.3; module SingleValve(pressed = 0) { translate([0, 0, -124.22]) cylinder(h=124.22, r=20 / 2.0); color("silver") translate([0, 0, -123.22]) cylinder(h=4, r=21.72/2); color("silver") ...
glb/cad_ec4a8891e3bc.glb
Create a speaker cover enclosure. Start with a base plate that is a rounded square with a width and length of 120mm, a thickness of 15mm, and corner radii of 30mm. Cut a rounded square hole through the center of this base with a width and length of 111mm and corner radii of 30mm. On top of this base, build a tapered h...
include <MCAD/units.scad> speakerSize = 106; baseThickness = 15; totalSize = speakerSize + 5; enclosureHoleDistance = 100; cornerRadius = 30; coneHeight = 50; shellThickness = 1.5; rimRadius = 27.4 / 2; rimHeight = 7; $fn = 60; module roundCube(width, length, height, cornerRadius) { hull() { for (x=[-1, ...
glb/cad_48a91f718317.glb
Create a trumpet stand foot consisting of two stacked cylinders. First, create a base cylinder with a radius of 12.5mm and a height of 10mm. Directly on top of this base, center and add a second, smaller cylinder with a radius of 9.5mm and a height of 2.7mm. Ensure both cylinders are rendered with a resolution of 60 fa...
include <MCAD/units.scad> feetUpperRadius = 9.5; feetLowerRadius = 12.5; feetLowerHeight = 10; feetUpperHeight = 2.7; module TrumpetStandFoot() { $fn=60; cylinder(h=feetLowerHeight, r=feetLowerRadius); translate([0, 0, feetLowerHeight]) cylinder(h=feetUpperHeight, r=feetUpperRadius); } TrumpetStand...
glb/cad_f675d7a6497e.glb
Create a MorsePaddles device consisting of a central base and two symmetrical movable arms. Construct a rectangular base 30mm wide, 40mm long, and 10mm high. The base features two outer walls 22mm high, leaving a central channel for the arms. At the rear of the base, create a rounded tip with a radius of 5mm. Incorpo...
wxbase=30; lybase=40; hzbase=10; dfinger=25; rround=1; hzarm=20; wallt=2; wallmin=2; txknobmin=3; yhinge=6.5; dxwedge=4; ahinginn=50; ahingout=80; armsep=1.5; dyarmrests=2; minstroke=0.5; dstopper=1.5; gap=0.1; dscrew1=4; dscrew2=3; hscrhrel=2/3; dscrhrel=7/4; dcable=4; dspring=9.5; dhingespring=5; cacc=4; preview=...
glb/cad_eae0603ef8ab.glb
Create a MorsePaddles model consisting of a base and two symmetrical lever arms. Start with a rectangular base 24mm wide, 40mm long, and approximately 8mm high. The base features two outer walls and a central hollow area to house wiring. Create a central vertical hole 4mm in diameter for a contact screw. At the front...
mountholes=true; cacc=4; preview=0; wxbase=24; lybasemin=40; hzarm=20; wallt=2; wallmin=2; dfinger=30; lyknob=25; rround=1; txknobmin=2; yhinge=6.5; dxwedge=4; ahinginn=50; ahingout=80; dstopper=1.5; armsep=0.75; dyarmrests=2; minstroke=0.25; dscrew1=4; dscrew2=3; hscrhrel=2/3; dscrhrel=7/4; dzcontact=0.1; dzsprwe...
glb/cad_4daafccc6876.glb
Create a Volantex FPV Raptor frame plate. Start with a main plate that is 4mm thick. The overall shape is a symmetrical, elongated flat body with rounded ends and a central rectangular cutout. At the front and rear ends, incorporate circular mounting holes with a diameter of 12mm and 6mm. Along the sides, integrate se...
$fn=60; plate_thickness =4; module hexaprismx( ri = 1.0, h = 1.0) { ra = ri*2/sqrt(3); cylinder(r = ra, h=h, $fn=6, center=false); } module roundCornersCube(x,y,z,r) { module createMeniscus(h,radius) { difference(){ translate([radius/2+0.1,radius/2+0.1,0]){ cube([radius+0.2,radius+0.1,h+0.2]...
glb/cad_0cd1d1dbf3f1.glb
Create a prusaclone LCD cover. Start with a main body consisting of a base rectangular block 155mm wide, 59.8mm deep, and 2mm thick, positioned at [-77, -4.5, 0]. Add structural elements by placing two rotated blocks (35 degrees) of 155mm x 2mm x 20.08mm and 7mm x 5mm x 15mm at the edges to create a tapered profile. In...
module main_body() { difference() { union() { translate( [ -77 , -4.5 , 0 ] ) cube( [ 155 , 59.8 , 2 ] ); translate( [ -77 , -4.5 , 0 ] ) rotate([35,0,0]) cube( [ 155 , 2 , 20.08 ] ); translate( [ -77 , -3.5 , -1 ] ) rotate([35,0,0]) cube( [ 7 , 5 , 15 ] ); ...
glb/cad_91a190b28bfe.glb
Create a coverLogidule, which is a thin rectangular plate. The main body is a flat cube with dimensions based on the logidule size and a thickness of 1.6mm. From this base plate, remove several cylindrical holes and recessed rings. Specifically, create vertical holes based on the drilling plane coordinates, each with...
include <config.scad> module drilling(param) { for(i_drill = [0:len(param)-1]) translate([param[i_drill][1], param[i_drill][2], 0]) cylinder(h = cover_thinkness, d = param[i_drill][0], $fn=60); } module holder(param) { thinkness = 1.6; for( i_holder = [0:len(param)-1] ) { h = param[i_holder][3]; dia =...
glb/cad_e4690634916b.glb
Create a handle-based doorstop consisting of two primary components: a main handle bracket and a wall knudge. The entire assembly has a uniform height of 7.5mm. First, construct the main handle bracket. Start with a base shape created by combining a 25mm by 25mm square with a 20mm radius cylinder. From this, remove a...
$fn=100; height = 5; handle_width = 50; module door_stop_inner_shape() { minkowski() { translate([0,-20,0]) cube([handle_width/4,50,height],center=true); cylinder(r=5,h=height,center=true); } } module door_stop_main_shape() { minkowski() { cube([handle_width,handle_width/2,1],cent...
glb/cad_a6702db16882.glb
Create a rectangular grid tray with outer dimensions of 230mm in width, 160mm in length, and a total height of 20mm. Start by adding a solid base plate that is 0.8mm thick across the entire 230mm by 160mm footprint. Construct the outer perimeter by adding walls 0.8mm thick and 20mm high along all four edges of the ba...
width = 230; length = 160; height = 20; walls = 0.8; base = true; N = 0; R = 1; B = 2; RB = 3; BR = 3; grid = [ [ RB, RB, RB, RB, RB ], [ RB, RB, RB, RB, RB ], [ RB, RB, RB, RB, RB ], [ RB, RB, RB, RB, RB ], ]; gridR = reverse(grid); unitsX = len(grid[0]); unitsY = len(grid); unitX = (width - ...
glb/cad_a1702dbe8cf8.glb
Create a zoom gear ring for a lens housing with a total height of 6mm. The main body is a ring with an outer radius of 50.45mm and an inner radius of 39.75mm. The central section is a gear with 98 teeth, 6mm in height, centered vertically. The gear teeth should have a profile angle of 20 degrees and a clearance of 0....
$fn=82*4 ; OuterRadius = 100.90 / 2; InnerRadius = 79.9 / 2; Height = 6.0; GearHeight = 6.0; InnerCutoutHeight = 2.5; InnerCutoutDepth = 2.4; NumberOfTeeth = 98; ToothBevelWidth = 1.0; GraspRingThickness = 3.35; OuterCorrection = 1.005; InnerCorrection = 0...
glb/cad_a4b7e79cca4f.glb
Create a Roller Chain model consisting of several distinct geometric components. First, create a roller as a hollow cylinder with an outer diameter of 11mm and a height of 6mm, with a concentric inner hole of 6.88mm. Next, create an inner link. This part is a flat plate 1.2mm thick. Its main body consists of two cir...
OneLinkSet(); ANSI_Size=0; Pin_d=3.8; Roller_w=6; UserRoller_od=11; Gap=0.44; EndGap=0.34; Link_t=1.2; ThinWall=1.2; UserLink_d=15; UserPitch=25.4; PinWeld_Xtra=0.8; PinEndInset_d=0.4; Overlap=0.05; IDXtra=0.2; $fn=90; Pin_id=Pin_d-ThinWall*2; LinkPin_id=Pin_d+Gap*2+IDXtra; LinkPin_d=LinkPin_id+ThinWall*2; Roller_i...
glb/cad_747f19d2c89b.glb
Create a Great-Grandfather-Clock face support consisting of a central hub and twelve radiating connector segments. Start by creating a central circular hub with a diameter of 120mm and a thickness of 10mm. Subtract a central circular hole with a diameter of 90mm from this hub. Around the perimeter of the hub, place t...
ShowBackingPlate(); include<GGC_Basic.scad> module Hub12(){ GearFrame_h=10; difference(){ union(){ cylinder(d=120,h=GGC_Band_t); for (j=[0:11]) rotate([0,0,30*j]) hull(){ translate([-GGC_Band_w*0.7/2,TwelfthInset,0]) cube([GGC_Band_w*0.7,0.1, GGC_Band_t]); translate([0,60,0]) cylinder(d=GGC_Band_w...
glb/cad_9f1383c1c180.glb
Create a Great-Grandfather-Clock escapement mechanism consisting of several interlocking components. First, construct an escapement wheel with a thickness of 5mm and an outer diameter of 158mm. This wheel should feature 30 pins arranged in a circle with a bolt circle of 150mm, where each pin is a cylinder with a diam...
include<GGC_Basic.scad> GGC_Escapement_h=5; module ShowEscapementNPendulum(){ translate([0,0,-GGC_Hub_h-Overlap*2]) color("Gold") EscapementDriveGear(); color("Blue") rotate([0,0,360/15*$t]) EscapementWheel(); translate([0,90,GGC_Escapement_h+2+Overlap*2]) color("Tan") PendulumHanger(); translate([0,90,-GGC_Hub...
glb/cad_a8ef06e528f6.glb
Create a Great-Grandfather-Clock escapement mechanism. Start by creating an escapement wheel as a thin disc with a diameter of 156.24mm and a height of 1mm. This disc should have a central hole and a ring-like cutout, leaving a outer rim. Around this rim, place 31 small cylindrical pins, each with a diameter of 2.4mm a...
Overlap=0.05; $fn=90; IDXtra=0.2; kPin_BC=150; kPin_BC_r=kPin_BC/2; nPins=30; Pin_d=3/32*25.4; Pin_h=1; Axil_h=1; kPinAntiRotation=0.25; ActivePin=2+kPinAntiRotation; cylinder(d=Pin_d,h=Axil_h); rotate([0,0,-360/nPins*(kPinAntiRotation+0.50-0.07)]) { translate([0,0,-1-Overlap*2]) difference(){ cylinder(d=kP...
glb/cad_3721394eb288.glb
Create a 3D model of two identical "C" shaped components arranged side-by-side to form a parametric graphics symbol. To construct a single "C" component, start with a cylinder that has a radius of 20mm, a height of 5mm, and a 5-sided polygonal cross-section. Hollow out this cylinder by removing a smaller concentric cyl...
module createC (x,y,z,r,o,w,a) { translate ([x,y,z]) rotate ([0,0,a]) difference () { cylinder (5,r,r,$fa=5); translate ([0,0,-1]) cylinder (7,r-w,r-w,$fa=5); translate ([o,o,-1]) cube ([r+1,r+1,7]); } } module cpair(x,y,z,w, rb, rl, ob, ol, ab, al) { createC(x,y,z,rb,ob,w,ab); createC(x,y,z,...
glb/cad_78a36292b88b.glb
Create two separate probe tip spacer components. The first component is a cap consisting of a cylinder with a diameter of 13mm and a height of 12mm. On top of this cylinder, add a truncated cone that transitions from the 13mm base diameter to a 6mm top diameter over a height of 12mm. Bore a central hole with a diameter...
ShowCap = true; ShowRetain = true; InnerDiameter = 13.0; OuterDiameter = 15.0; SpringDiameter = 7.3; RetainerHeight = 12; RetainerSlit = 1; TipHeight = 12; TipHole = 4.2; TipDiameter = 6; TipSleeveHeight = 12; module ProbeCap() { difference() { union() { cylinder(h = TipSl...
glb/cad_5a5c43b18ddd.glb
Create a cable spool holder assembly consisting of a backplane, side panels, and a front crossbar. Start by creating a rectangular backplane with a thickness of 3mm. Position two identical side panels perpendicular to the backplane. Each side panel is a flat plate 6mm thick, with a height of 50mm and a depth of 25mm....
SideThickness = 6; FrontThickness = 1; FrontWidth = 10; ClearenceSides = 3; ClearenceBack = 5; PinDiameter = 3; RollDiameter = 4; BackPlaneThickness = 3; FeedDiameter = 2; FrontColor = "silver"; FrontAngle = 45; BaseColor = "white"; SpoolColor = "blue"; ShowSpool = true; PinColor = "silver"; ShowRoll = true;...
glb/cad_8f0fc2f6214c.glb
Create a tuning knob consisting of a cylindrical base and a decorative top. Start with a cylindrical base 20mm in diameter and 15mm in height. Create a top section with an outer diameter of 50mm and a height of 18mm, shaped as a modified sphere that is flattened on the bottom and rounded on top. Remove several geometr...
$fn = 80; xTolerance = 0.1; module TuningKnob( dBase = 20, hBase= 15, dTop = 50, hTop = 18, dAxle = 6, dScrew = 2.5, dGrip = 30, gSmooth = 0.4, gCount = 8 ) { difference() { union() { difference() { translate([0,0,(...
glb/cad_bbee3972a8a5.glb
Create a Roller Shaft Bracket for a plotter. Start with a base rectangular block measuring 10mm wide, 18mm deep, and 63mm high. At the top center of this block, add a rounded cap formed by the union of three cylinders centered at (5, 9, 63) with diameters of 18mm, 25mm (with a height of 8.5mm), and 18mm (with a height ...
$fn=50; RenderMode = 0; module FullRSB() { union() { difference() { union() { cube([10,18,63]); translate([5,9,63]) rotate([0,90,0]) cylinder(d=18, h=10, center=true); translate([5+...
glb/cad_1a4f12212899.glb
Create a replacement foot for an HP 5512A case. Start with a main square base measuring 40mm by 40mm with a height of 7mm. Hollow out the center of this base by removing a 36mm by 36mm square area with a height of 5mm, leaving a 2mm thick wall around the perimeter. In the center of the base, place a cylinder with a dia...
$fn = 40; module Clamp() { translate([0,0,1.6]) cube([4.5,9,10], center=true); translate([2.5/2,0,6]) cube([7,9,2], center=true); } module Foot() { union() { difference() { cube([40,40,7], center=true); translate([0,0,2]) cube([...
glb/cad_fd4c206dc99f.glb
Create a capacitor clamp consisting of a curved band and a mounting tab. The main body is a semi-circular band with an outer diameter of 41mm (calculated as 40mm shrunk by 2.5%) and a thickness of 1.6mm. The band has a total height of 8mm. Integrated into the band is a rectangular mounting tab measuring 12mm wide by 6...
dCapacitor = 40; hClamp = 8; wTab = 12; hTab = 6; hSheet = 1; hCapacitor = 75; showUse = true; pSpring = 2.5; pThickness = 20; pInset = 5; $fn=80; module Holder(dmajor, hnorm, dinset, wwall, wtab, htab, hsheet, dminor, wback) { difference() { union() { hull() {...
glb/cad_1bf9659c4317.glb
Create a connector housing gadget. Start with a main rectangular base measuring 44.8mm wide, 15mm deep, and 6.8mm high. In the center of the base, create a row of 11 rectangular pin slots. The total span for these pins is 40mm, with each pin being 1.1mm wide and 9mm deep. The slots are spaced evenly across the width....
$fn = 40; h = 6.8; w = 44.8; sockDepth = 15; wOuter = 55; clipThick = 1.4; clipDepth = 2.7; clipHeight = 5.7; clipNotch = 1; gripHeight = 10; wNotch = 2.9; hNotch = 1.7; distNotch = 32.4; nPin = 11; pinDistance = 40; pinWidth=1.1; pinHeight=2.2; pinDepth = 9; dWire = 1.9; gripDepth = 15; crimpDepth = 3.9; cri...
glb/cad_2609a5f0ed97.glb
Create a Skywatcher AZ GTi Adapter consisting of a dovetail base and a counterweight support arm. Start by creating a dovetail-shaped block with a base width of 44mm, a top width of 32mm, and a height of 15mm. Extend this base into a larger rectangular platform that is 95mm long (dual_arm_counterweight + 15mm) and 22mm...
dovetail_base=44; dovetail_top=32; dovetail_height=15; dual_arms_gap=160; dual_arms_connector=125; dual_arm_counterweight=75+15; dual_arm_dovetail=80+15; dual_arm_append_thickness=10; Dovetail_CubePoints = [ [ 0, 0, 0 ], [ dual_arm_dovetail, 0, 0 ], [ dual_arm_dovetail, dovetail_base, 0 ], [ 0, doveta...
glb/cad_845dc16186d2.glb
Create a protective electronics enclosure called a ua-m2-ec91-2-tp. The main body is a rounded rectangular box with an outer length of 85mm, width of 110mm, and height of 45mm, with a wall thickness of 2mm. The enclosure consists of a bottom shell and a top shell. The bottom shell is a hollowed-out rounded box. Insid...
BPanel=1; FPanel=1; PHolder=1; BShell=1; TShell=1; Text=1; Holes=0; VHoles=1; Holewdt=1; PCBFix=1; PCBHight=10; PCBLength=56; PCBWidth=103; PCBThick=1.6; ShowPCB=1; txt = ""; TxtSize = 3; Police="Arial Black"; Length = 85; Width = 110; Height = 45; Round = 2; Resolution = 50; Thic...
glb/cad_616d7842528a.glb
Create a 3D model of an Arduino Mega board. Start with a main PCB base that is 53mm wide, 100mm long, and 2mm thick. Extend the PCB by adding a hull-shaped section at the front that is 41mm wide and 2mm thick, resulting in a total length of 108mm. Remove six cylindrical holes with a radius of 1.75mm and a height of 3m...
use <electronics.scad> module arduino_mega() { translate([-26.5, -54, -6.5]) union() { color("green") difference() { union() { cube([53, 100, 2]); translate([15, 100, 0]) hull() { cube([35, 2, 2]); translate([-3, -1, 0]) ...
glb/cad_dae1f085fb04.glb
Create a 3D model of a 12-volt sealed lead acid battery. The object is a simple rectangular prism with dimensions of 65mm in width, 149mm in length, and 65mm in height. Center the geometry on all axes.
use <rounded-beam.scad> use <centered-primitives.scad> module battery_9v() { translate([-13, -24, -8.25]) union() { color("black") translate([0, 28.5, 0]) roundedbeam(width=26, length=1.5, height=17); color("black") roundedbeam(width=26, length=29, height=17); translate([0, 30, 0]) ...
glb/cad_f9fc5d1d5f22.glb
Create a 4-inch gusseted corner brace. Start by creating a right-triangular gusset plate with a base width of 101mm and a thickness of 3mm. Attach two rectangular legs to the two shorter sides of the triangle. Each leg must be 99mm long, 25mm wide, and 2.5mm thick. Position the legs so they extend perpendicularly fro...
$fn=0; $fa=0.01; $fs=0.9; use <bolts-and-screws.scad> module galvanized_angle_1(length=180, odd_holes=true) { color("gray") difference() { union() { translate([0, 0, -15.5]) cube([32, length, 1], center=true); translate([-15.5, 0, 0]) cube([1, length, 32], center=true); } u...
glb/cad_581eb67da46e.glb
Create a 2.5-inch hinge consisting of two identical rectangular plates connected by a central cylindrical pin. Each plate should be a rectangular prism measuring 17.5mm wide, 63.65mm long, and 1.45mm thick. For each plate, create three circular holes with a radius of 3mm and a depth of 3mm. Position one hole at the c...
use <centered-primitives.scad> module 2_point_5_inch_hinge(angle=0) { color("silver") union() { difference() { cube([17.5, 63.65, 1.45], centered=true); union() { translate([0.75, 25.825, 0]) cylinder(r=3, h=3, centered=true); translate([3.25, 0, 0]) cylinder(r=...
glb/cad_cb4145bc30cc.glb
Create a 3D hexagon with a side length of 4mm and a height of 3mm. The shape should be a regular hexagonal prism, centered such that its total width from flat side to flat side is approximately 6.93mm (calculated as the side length multiplied by the sine of 60 degrees). Ensure the geometry is a solid extrusion with fla...
SIN_60=0.866025403784439; module hexagon(s=4, h=3) { A=0.5 * s; B=SIN_60 * s; C=s; translate([-s, -s * SIN_60, -h / 2]) linear_extrude(height=h) polygon([[0, B], [A, 0], [A + C, 0], [2 * C, B], [A + C, 2 * B], [A, 2 * B]], paths=[[0, 1, 2, 3, 4, 5]]); } $fn=0; $fa=0.01; $fs=0...
glb/cad_ab864324f767.glb
Create a Letry Robot plastic wheel by constructing a thick outer ring and a central axle. Start by creating a cylinder with a radius of 33mm and a height of 26mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 26mm and a height of 26.2mm, leaving a solid rim with a rad...
module letry_robot_wheel() { translate([0, 0, -15]) rotate([0, 270, 0]) union() { union() { rotate([0, 90, 0]) union() { difference() { color("black") cylinder(h=26, r=33); translate([0, 0, -0.1]) cylinder(h=26.2, r=26); } cylinder(h=26, r=26); } } translate([26, ...
glb/cad_08b02a578cf1.glb
Create a rectangular base plate measuring 165mm by 70mm with a thickness of 7mm. Within this plate, create a grid of connection points. Each connection point consists of a central cylinder with a radius of 1.7mm and a height of 10.2mm, centered vertically. Around this cylinder, add two thin discs with a radius of 3mm...
use <overhang-support.scad> use <bolts-and-screws.scad> use <makerbot-replicator-build-plate.scad> $fn=0; $fa=0.01; $fs=0.9; module spaced_connection_point() { cylinder(r=1.7, h=10.2, center=true); for (z_mult = [-1 : 2 : 1]) { translate([0, 0, (z_mult * 2.7) + (z_mult * 0.1)]) cylinder(r=3, h=1.6, cent...
glb/cad_cb3cb890a86e.glb
Create a DC gear motor model with a total width of 37mm, length of 71mm, and height of 22.5mm. Start with a rectangular motor body measuring 19mm by 37.75mm by 22.5mm. Subtract two horizontal cylindrical through-holes with a radius of 1.5mm, positioned at z=20mm and z=2.5mm, both centered along the length at y=32.25m...
$fn=0; $fa=0.01; $fs=0.8; module yellow_dc_gearmotor_straight() { translate([-9.5, -33.5, -11.25]) union() { difference() { cube([19, 37.75, 22.5]); union() { translate([-0.5, 32.25, 20]) rotate([0, 90, 0]) cylinder(h=20, r=1.5); translate([-0.5, 32.25, 2.5...
glb/cad_1fa201dcc505.glb
Create a 3D model of a PVC tee pipe fitting. Start by constructing the main horizontal run as a hollow cylinder with an outer radius of 34.5mm and an inner radius of 30mm, with a total length of 133mm. Perpendicular to the center of this main run, add a vertical branch. This branch is a hollow cylinder with an outer ...
module 2_inch_pvc_pipe(length=100) { difference() { cylinder(r=30.0, h=length, center=true); cylinder(r=52.3/2.0, h=(length + 1.0), center=true); } } module 2_inch_pvc_connector() { difference() { cylinder(r=35.0, h=22.0, center=true); cylinder(r=30.0, h=23.0, center=true); } } CXP2_OFFSET =...
glb/cad_1d57465234d9.glb
Create a mounting bracket for a 2WD turtle robot IR sensor. Start by constructing the main body as a combination of a cylinder with a radius of 11.5mm and a height of 1.5mm, joined to a rectangular base measuring 23mm wide, 21.5mm deep, and 1.5mm thick. From this combined shape, remove a central circular hole with a ra...
module robot_platform_loop_bracket() { color("black") translate([0, -16.5, -3.95]) union() { difference() { union() { translate([0, 21.5, 0]) cylinder(r=11.5, h=1.5); translate([-11.5, 0, 0]) cube([23, 21.5, 1.5]); } union() { ...
glb/cad_beb4a61f7586.glb
Create a battery pack holder for four AA batteries. Construct the main body as a rounded beam with a width of 64.5mm, a length of 70.5mm, and a height of 19.5mm. On the top surface of this body, add a small rectangular on/off switch measuring 7mm in width, 4mm in length, and 2mm in height. Position the switch so its ce...
use <rounded-beam.scad> module battery_pack_4_AA() { translate([-32.25, -35.25, -11]) color("black") union() { roundedbeam(width=64.5, length=70.5, height=19.5); translate([9, 4, 20]) cube([7, 4, 2]); }; } $fn=30; battery_pack_4_AA();
glb/cad_27f14c92db57.glb
Create a 3D model of an HC-SR04 ultrasonic distance sensor. Start with a rectangular printed circuit board measuring 45mm by 20.5mm with a thickness of 1.2mm. Remove two cylindrical holes with a radius of 1.25mm and a height of 5mm, positioned at coordinates (2.25, 2.25) and (42.75, 18.25). Place two silver cylindrica...
use <robot-platform-loop-bracket.scad> module ultrasonic_hy_srf05() { color("green") difference() { cube([45, 20.5, 1.6]); union() { translate([2.25, 2.25, -0.1]) cylinder(r=1.25, h=5); translate([42.75, 18.25, -0.1]) cylinder(r=1.25, h=5); } } color("silver") transl...
glb/cad_731553466b74.glb
Create an 8-inch inflatable wheel model. Start with the outer tire by combining a cylinder with a radius of 112.5mm and a height of 42mm, centered on the origin, with a torus-like shape created by rotating a circle of radius 30mm around the center at a distance of 73mm. Remove a central cylinder with a radius of 62.5mm...
module 6_inch_semi_solid_wheel() { color("black") difference() { cylinder(r=75, h=37); translate([0, 0, -0.05]) cylinder(r=97 / 2, h=37.1); } color("white") translate([0, 0, -0.05]) difference() { cylinder(r=97 / 2, h=37.1); translate([0, 0, -0.05]) cylinder(r=13 / 2, h=37.2); ...
glb/cad_6da9c4694205.glb