Skip to content

Commit

Permalink
Merge pull request #1 from suda/master
Browse files Browse the repository at this point in the history
automerge
  • Loading branch information
nonchip committed Jul 15, 2015
2 parents 20f5b9b + eb85864 commit b0d257f
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bitbeam-angle.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use <bitbeam-beam.scad>;

beam(4);
rotate([0, 0, 90])
translate([0, -8, 0])
beam(4);
42 changes: 42 additions & 0 deletions src/bitbeam-beam.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Description: "LEGO Technic-compatible gridbeam"
// Project home: http://bitbeam.org

// Each bitbeam is 8mm inches wide.
// Center of each hole is 8mm apart from each other
// Holes are 5.1 mm in diameter.

// Mini
//beam_width = 4;
//hole_diameter = 2.2;

// Standard
beam_width = 8;
hole_diameter = 5.1;

hole_radius = hole_diameter / 2;

module beam(number_of_holes) {
beam_length = number_of_holes * beam_width;
difference() {
// Draw the beam...
cube([beam_length,beam_width,beam_width]);

// Cut the holes...
for (x=[beam_width/2 : beam_width : beam_length]) {
translate([x,beam_width/2,-2])
cylinder(r=hole_radius, h=12, $fn=30);
}
for (x=[beam_width/2 : beam_width : beam_length]) {
rotate([90,0,0])
translate([x,beam_width/2,-10])
cylinder(r=hole_radius, h=12, $fn=30);
}

// Optional through-hole
//rotate([0,90,0])
//translate([-4,beam_width/2,-2])
//cylinder(r=hole_radius, h=number_of_holes*beam_width+4, $fn=30);
}
}

beam(3);
6 changes: 6 additions & 0 deletions src/bitbeam-cross.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use <bitbeam-beam.scad>;

beam(5);
rotate([0, 0, 90])
translate([-(8 * 2), -(8 * 3), 0])
beam(5);
10 changes: 10 additions & 0 deletions src/bitbeam-double-angle.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use <bitbeam-beam.scad>;

beam(4);
rotate([0, 0, 90])
translate([0, -8, 0])
beam(4);

rotate([0, 90, 0])
translate([-(8 * 4), 0, 0])
beam(4);
6 changes: 6 additions & 0 deletions src/bitbeam-t.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use <bitbeam-beam.scad>;

beam(4);
rotate([0, 0, 90])
translate([-(8 * 3), -8, 0])
beam(7);
10 changes: 10 additions & 0 deletions src/bitbeam-triple-angle.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use <bitbeam-beam.scad>;

beam(4);
rotate([0, 0, 90])
translate([-(8 * 3), -8, 0])
beam(7);

rotate([0, 90, 0])
translate([-(8 * 4), 0, 0])
beam(4);

0 comments on commit b0d257f

Please sign in to comment.