mirror of
https://github.com/nophead/Mendel90.git
synced 2025-01-17 12:58:16 +01:00
9daef0d573
Removed some assigns and child for new OpenScad. Now renders the sheets for more responsive preview.
35 lines
752 B
OpenSCAD
35 lines
752 B
OpenSCAD
//
|
|
// Mendel90
|
|
//
|
|
// GNU GPL v2
|
|
// nop.head@gmail.com
|
|
// hydraraptor.blogspot.com
|
|
//
|
|
// Raspberry PI model
|
|
//
|
|
pi_width = 56;
|
|
pi_length = 85;
|
|
pi_clearance = 0.25;
|
|
pi_thickness = 1.6;
|
|
|
|
module pi_holes()
|
|
for(hole = [[25.5, 18], [pi_length-5, pi_width-12.5]])
|
|
translate([pi_width / 2 - hole[1], hole[0] - pi_length / 2, 0])
|
|
children();
|
|
|
|
function raspberry_pi_width() = pi_width;
|
|
function pi_on_psu() = atx_psu(psu);
|
|
|
|
card_width = 30.3;
|
|
card_thickness = 4;
|
|
card_offset = 11.5;
|
|
pi_card_clearance = 20;
|
|
|
|
module raspberry_pi() {
|
|
vitamin("RASPBERY: Raspberry PI model B");
|
|
color("green")
|
|
rotate([0, 0, 90])
|
|
translate([-pi_length / 2, - pi_width / 2, 0])
|
|
import("../imported_stls/R-Pi.stl");
|
|
}
|