commit 5e0c44899c48c7bc2030035873ffd4eec99b4f2a Author: Kyle Isom Date: Sun Apr 3 17:42:05 2022 -0700 Initial import. diff --git a/Hardware/SmartCarBasePlate.scad b/Hardware/SmartCarBasePlate.scad new file mode 100644 index 0000000..4501507 --- /dev/null +++ b/Hardware/SmartCarBasePlate.scad @@ -0,0 +1,76 @@ +M2 = 1; +M25 = 1.25; +M3 = 1.75; +M4 = 2.1; +PlateHeight = 2.5; + + +module screw_hole(size, x, y, height=PlateHeight+1) { + union() { + translate([x, y, -1]) + cylinder(h=5, r=size, $fn=60); + }; +} + +// x and y are the center point for the battery mount. +module battery_mount(x, y, size=M3, rotation=0) { + offset = 19.5 / 2; + union() { + screw_hole(size, x-offset, y); + screw_hole(size, x+offset, y); + } +} + +module arduino_uno(x, y, size=M3, rotation=0) { + union() { + screw_hole(size, x, y); + screw_hole(size, x+50.8, y-15.2); + screw_hole(size, x+50.8, y-43.1); + screw_hole(size, x, y-48.3); + } +} + +module robot_power_board(x, y, size=M3, rotation=0) { + union() { + screw_hole(size, x, y); + screw_hole(size, x+31.5, y); + screw_hole(size, x, y+18.5); + screw_hole(size, x+31.5, y+18.5); + } +} + +module raspberry_pi_zero(x, y, size=M3, rotation=0) { + union () { + screw_hole(size, x, y); + screw_hole(size, x+58, y); + screw_hole(size, x, y+23); + screw_hole(size, x+58, y+23); + } +} + +module raspberry_pi_3(x, y, size=M3, rotation=0) { + union () { + screw_hole(size, x, y); + screw_hole(size, x+58, y); + screw_hole(size, x, y+49); + screw_hole(size, x+58, y+49); + } +} + +module ultrasonic_mount(x, y, size=M3, rotation=undef) { + //rotate(rotation?rotation:[0,0,0]) + union() { + screw_hole(size, x, y); + screw_hole(size, x+13, y); + } +} + + +difference () { + cube([100, 100, 2.5]); + raspberry_pi_3(21, 25.5); + screw_hole(M3, 92.5, 83.5); + screw_hole(M3, 92.5, 9.5); + screw_hole(M3, 37, 94.5); + screw_hole(M3, 13.5, 35.5); +} \ No newline at end of file diff --git a/Hardware/SmartCarBasePlate.stl b/Hardware/SmartCarBasePlate.stl new file mode 100644 index 0000000..f65e1e7 Binary files /dev/null and b/Hardware/SmartCarBasePlate.stl differ