// Robot Bumper with Microswitch Mount (2 Parts)
// Original design. Free to print for personal and educational use (CC BY-NC 4.0).
// Units: millimetres. Edit the numbers below and press F6 in OpenSCAD to re-render.

// Generated from the same geometry as robot-bumper-arc.stl

translate([76,-35,0])
  difference() {
    union() {
      difference() {
        difference() {
          cylinder(d=150, h=24, $fn=128);
          translate([0,0,-1])
            cylinder(d=138, h=26, $fn=128);
        }
        translate([-100,-100,-5])
          cube([200,136,40]);
      }
      difference() {
        translate([-32,34,0])
          cube([64,42,3]);
        translate([0,0,-2])
          difference() {
            cylinder(d=400, h=10, $fn=96);
            translate([0,0,-1])
              cylinder(d=149, h=12, $fn=96);
          }
      }
      hull() {
        translate([-7.2,44,0])
          cube([2.4,1,3]);
        translate([-7.2,67,0])
          cube([2.4,1,10]);
      }
      hull() {
        translate([4.8,44,0])
          cube([2.4,1,3]);
        translate([4.8,67,0])
          cube([2.4,1,10]);
      }
    }
    hull() {
      translate([-20,44,-1])
        cylinder(d=3.4, h=10, $fn=48);
      translate([-20,52,-1])
        cylinder(d=3.4, h=10, $fn=48);
    }
    hull() {
      translate([20,44,-1])
        cylinder(d=3.4, h=10, $fn=48);
      translate([20,52,-1])
        cylinder(d=3.4, h=10, $fn=48);
    }
  }
