Skip to content

Commit

Permalink
frame for raspberry + ergo ready
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrizou committed May 5, 2015
1 parent e2fccc4 commit 1de2db5
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/raspberry-scad
72 changes: 72 additions & 0 deletions hardware/specific_frames/raspberry_pi_Bplus_base_frame.scad
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
include <specific_frame_def.scad>

include <../robotis-scad/ollo/ollo_def.scad>
include <../robotis-scad/dynamixel/xl320_def.scad>
include <../raspberry-scad/raspberry_pi_Bplus_def.scad>

use <../robotis-scad/ollo/ollo_tools.scad>
use <../raspberry-scad/raspberry_pi_Bplus_tools.scad>

use <base_frame.scad>

module raspberry_pi_Bplus_plate_sharp(nLayer=1) {

thickness = ollo_segment_thickness(nLayer);

translate([0,-RaspberryPiBplusWidth/2,0]){
linear_extrude(height=thickness) {
polygon(points=[[-RaspberryPiBplusFrameWidth/2,0], [-RaspberryPiBplusFrameWidth/2,RaspberryPiBplusWidth+RaspberryPiBplusFrameDistanceBoardToMotor], [-RaspberryPiBplusFrameEndWidth/2,RaspberryPiBplusFrameLenght], [RaspberryPiBplusFrameEndWidth/2,RaspberryPiBplusFrameLenght], [RaspberryPiBplusFrameWidth/2,RaspberryPiBplusWidth+RaspberryPiBplusFrameDistanceBoardToMotor], [RaspberryPiBplusFrameWidth/2,0]], paths=[[0,1,2,3,4,5]]);
}
}
}

module raspberry_pi_Bplus_plate(cornerRadius=RaspberryPiBplusFrameCornerRadius, nLayer=1) {

thickness = ollo_segment_thickness(nLayer);

if (cornerRadius > 0) {
translate([0,-RaspberryPiBplusWidth/2,0]){
minkowski() {
linear_extrude(height=thickness/2) {
polygon(points=[[-RaspberryPiBplusFrameWidth/2+cornerRadius,cornerRadius], [-RaspberryPiBplusFrameWidth/2+cornerRadius,RaspberryPiBplusWidth+RaspberryPiBplusFrameDistanceBoardToMotor], [-RaspberryPiBplusFrameEndWidth/2+cornerRadius,RaspberryPiBplusFrameLenght-cornerRadius], [RaspberryPiBplusFrameEndWidth/2-cornerRadius,RaspberryPiBplusFrameLenght-cornerRadius], [RaspberryPiBplusFrameWidth/2-cornerRadius,RaspberryPiBplusWidth+RaspberryPiBplusFrameDistanceBoardToMotor], [RaspberryPiBplusFrameWidth/2-cornerRadius,cornerRadius]], paths=[[0,1,2,3,4,5]]);
}
cylinder(h=thickness/2, r=cornerRadius);
}
}
} else {
raspberry_pi_Bplus_plate_sharp(nLayer=nLayer);
}

}

module raspberry_pi_Bplus_base_frame(boardHeight=5, holeType="spike", cornerRadius=RaspberryPiBplusFrameCornerRadius, nLayer=1) {

thickness = ollo_segment_thickness(nLayer);

baseYPos = RaspberryPiBplusWidth/2 + RaspberryPiBplusFrameDistanceBoardToMotor + MotorLength - MotorAxisOffset;

raspberry_pi_Bplus_plate(cornerRadius, nLayer);

translate([0,baseYPos,RaspberryPiBplusFrameHeight+thickness])
base_frame(RaspberryPiBplusFrameHeight);

translate([0,0,thickness])
raspberry_pi_Bplus_hole_support(boardHeight, holeType, center=true);

}

// Testing
echo("##########");
echo("In raspberry_pi_Bplus_base_frame.scad");
echo("This file should not be included, use ''use <filemane>'' instead.");
echo("##########");

use <../robotis-scad/dynamixel/xl320.scad>

p = 1;
if (p==1) {
raspberry_pi_Bplus_base_frame();

translate([0,0,ollo_segment_thickness(1)+5])
add_raspberry_pi_Bplus();
}
16 changes: 16 additions & 0 deletions hardware/specific_frames/specific_frame_def.scad
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
include <../robotis-scad/frames/frame_def.scad>
include <../raspberry-scad/raspberry_pi_Bplus_def.scad>


CircularBaseFrameRadius = 50;
CircularBaseFrameHeight = MotorHeight/2;

PenHolderInnerDiameter = 12;



RaspberryPiBplusFrameWidth = RaspberryPiBplusLength;

RaspberryPiBplusFrameDistanceBoardToMotor = 10;
RaspberryPiBplusFrameDistanceMotorToEnd = 10;
RaspberryPiBplusFrameEndWidth = MotorWidth + 10;

RaspberryPiBplusFrameLenght = RaspberryPiBplusWidth + RaspberryPiBplusFrameDistanceBoardToMotor + MotorLength + RaspberryPiBplusFrameDistanceMotorToEnd;

RaspberryPiBplusFrameCornerRadius = 3;

RaspberryPiBplusFrameHeight = MotorHeight/2;

0 comments on commit 1de2db5

Please sign in to comment.