Design cases for the bike lighting project #250

Merged
savanni merged 7 commits from bike-lights__case into main 2024-09-27 02:18:10 +00:00
1 changed files with 21 additions and 30 deletions
Showing only changes of commit ce91ebc2ba - Show all commits

View File

@ -111,34 +111,22 @@ module contact_box() {
wall_thickness * 2,
battery_contact_length + threshold],
center = true);
color("red", 1) translate([0,
-(wall_thickness + contact_thickness + threshold) / 2,
cell_holder_height / 2])
cube([5, wall_thickness + threshold * 2, cell_holder_height], center = true);
translate([0,
-(wall_thickness + contact_thickness + threshold) / 2 - wire_radius,
0])
rotate([0, 90, 0])
cylinder(h = cell_holder_width, r = wire_radius / 2, center = true);
}
/*
union() {
translate([box_width / 2 - (contact_width * .8) / 2,
wall_thickness,
box_height - contact_height])
cube([contact_width * .8,
wall_thickness + contact_thickness_ + cutout_threshold,
contact_height + cutout_threshold]);
translate([width / 2 + wall_thickness,
0,
width + wire_radius * 2])
rotate([-90, 0, 0])
cylinder(h=wall_thickness * 4, r=wire_radius, center = true);
rotate([0, 180, 0])
translate([-cutout_threshold / 2,
box_thickness,
width + wire_radius * 2])
cylinder(h = width + wall_thickness * 2 + cutout_threshold, r = 1, center = true);
}
*/
}
module battery_slot() {
difference() {
union() {
translate([0, -cell_holder_length / 2, 0]) contact_box();
translate([0, wall_thickness, 0]) cell_box();
@ -146,6 +134,9 @@ module battery_slot() {
rotate([0, 0, 180])
contact_box();
}
translate([cell_holder_width / 2, 1, 0]) rotate([90, 0, 0]) cylinder(h = cell_holder_length + wall_thickness * 4 + battery_contact_flange_height * 2, r = wire_radius / 2, center = true);
translate([-cell_holder_width / 2, 1, 0]) rotate([90, 0, 0]) cylinder(h = cell_holder_length + wall_thickness * 4 + battery_contact_flange_height * 2, r = wire_radius / 2, center = true);
}
}
module battery_case() {