Skip to content

Instantly share code, notes, and snippets.

@makevoid
Created July 12, 2013 15:01
Show Gist options
  • Select an option

  • Save makevoid/5985142 to your computer and use it in GitHub Desktop.

Select an option

Save makevoid/5985142 to your computer and use it in GitHub Desktop.
Geeksphone Peak (phone) steering wheel mount (sizes are configurable), you need to switch the first variable to generate both pieces. Wheel sizes are for a Toyota Yaris TS1.5 steering wheel
// stl generation
part1 = true; // (switch to false for part2), you'll need both for a phone wheel mount
// parts configuration
// phone size
ph_x = 62.4;
ph_y = 134.1;
ph_z = 12.1;
// phone margin
ma_xy = 5;
// support size
su_x = 142;
su_y = ph_x+ma_xy*2;
su_z = 45;
// wheel size
wh_y = 26.5;
wh_z = 33.4;
// positioning
pos_y = 30;
// phone enclosure
if (part1) {
// borders
translate([pos_y+-ma_xy, 0]) cube([ma_xy, ph_x, 16]);
translate([pos_y+ph_y+ma_xy*2, 0]) cube([ma_xy, ph_x, 16]);
translate([pos_y+-ma_xy, -ma_xy]) cube([ph_y+ma_xy*4, ma_xy, 16]);
translate([pos_y+-ma_xy, ph_x]) cube([ph_y+ma_xy*4, ma_xy, 16]);
}
// steering wheel mount
support_z = wh_z;
if (!part1) {
translate([-50,-ma_xy,-5]) cube([270, su_y, 5]); // plane
translate([170,-ma_xy,-support_z-5]) cube([10, su_y, support_z]); // up1
translate([210,-ma_xy,-support_z-5]) cube([10, su_y, support_z]); // up2
// translate([-50,-ma_xy,-support_z-5]) cube([30, su_y, support_z]); // down
// down (angulated)
intersection() {
translate([-50,-ma_xy,-support_z-5]) cube([30, su_y, support_z]);
rotate([0, 45 ,0]) translate([-50,-ma_xy,-support_z-5]) cube([100, su_y, support_z]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment