Pages

Showing posts with label OpenSCAD. Show all posts
Showing posts with label OpenSCAD. Show all posts

Friday, 29 August 2014

3D Modelling for 3D Printing #4

In this video we go through the process of creating the bracket we created in OpenScad in SketchUp to show you the differences and some tips and trick I've picked up along the way. At the end we compare the STL file created in OpenScad with the version we create in this session.


The full playlist to view this series from the start

The Sketchup Model together with the OpenScad model is available on thingiverse.com
90 degreee Bracket on thingiverse

Sunday, 24 August 2014

3D Modelling for 3D Printing #3

In this video we finish off the OpenScad Model and start with creating the same model in SketchUp to show the comparison and some of the the required tips and trick.


The final object can be found on thingiverse.com


Below is the code which you should get to by the end of the video if you were following along.

OpenScad
/*
Created by David Taylor as part of a video series
Video are available at http://bit.ly/GineerTube
*/

include <libraries/MCAD/boxes.scad>

hw=40;
d=20;
t=5;
hr=3;
cr=2.5;

difference()
{
 union()
 {
  translate([(hw/2)-(t/2),0,0])
  {
   //cube([hw,d,t], center=true);
   roundedBox([hw,d,t],cr,true);
  }
  translate([0,0,(hw/2)-(t/2)])
  {
   rotate([0,90,0])
   {
    //cube([hw,d,t], center=true);
    roundedBox([hw,d,t],cr,true);
   }
  }
  translate([((hw/2)*sqrt(2))/2,0,((hw/2)*sqrt(2))/2])
  {
   rotate([0,45,0])
   {
    cube([hw,d,t], center=true);
   }
  }
  cube([t,d,t],center=true);
 }
 translate([(hw/4),0,0])
 {
  cylinder(h=(t*2), r=hr, $fn=100, center=true);
 }
 translate([(hw/4)*3,0,0])
 {
  cylinder(h=(t*2), r=hr, $fn=100, center=true);
 }
 rotate([0,-90,0])
 {
  translate([(hw/4),0,0])
  {
   cylinder(h=(t*2), r=hr, $fn=100, center=true);
  }
  translate([(hw/4)*3,0,0])
  {
   cylinder(h=(t*2), r=hr, $fn=100, center=true);
  }
 }
 translate([(hw/4),0,(hw/2)+(t/2)+0.1])
 {
  cylinder(h=(hw), r=(hr*2), $fn=100, center=true);
 }
 translate([(hw/2)+(t/2)+0.1,0,(hw/4)])
 {
  rotate([0,90,0])
  {
   cylinder(h=(hw), r=(hr*2), $fn=100, center=true);
  }
 }
 translate([(hw/4)*3,0,(hw/2)+(t/2)])
 {
  cylinder(h=(hw), r=(hr*2), $fn=100, center=true);
 }
 translate([(hw/2)+(t/2),0,(hw/4)*3])
 {
  rotate([0,90,0])
  {
   cylinder(h=(hw), r=(hr*2), $fn=100, center=true);
  }
 }
 translate([(hw/4)+(hw/2),0,(hw/4)+(hw/2)])
 {
  cube([hw,(hr*4),hw], center=true);
 }
 translate([(hw)-sqrt(pow(hw/8,2)-pow(t/2,2)),0,(t)])
 {
  rotate([0,20,0])
  {
   cube([(hw/4),d,t],center=true);
  }
 }
 translate([(t),0,(hw)-sqrt(pow(hw/8,2)-pow(t/2,2))])
 {
  rotate([0,-20,0])
  {
   cube([t,d,(hw/4)],center=true);
  }
 }
}

Thursday, 21 August 2014

3D Modeling for 3D Printing #2

In this video we continue working on the bracket we started in the first video and cut the screw holes by using difference and union as well as introducing libraries. This vide continues on from the first video in this series which you can find at: http://youtu.be/rUwoMPB4Lv8


Below is the code which you should get to by the end of the video if you were following along.

OpenScad
include <libraries/MCAD/boxes.scad>

hw=40;
d=20;
t=6;
hr=3;
cr=2.5;

difference()
{
 union()
 {
  translate([(hw/2)-(t/2),0,0])
  {
   //cube([hw,d,t], center=true);
   roundedBox([hw,d,t],cr,true);
  }
  translate([0,0,(hw/2)-(t/2)])
  {
   rotate([0,90,0])
   {
    //cube([hw,d,t], center=true);
    roundedBox([hw,d,t],cr,true);
   }
  }
  translate([((hw/2)*sqrt(2))/2,0,((hw/2)*sqrt(2))/2])
  {
   rotate([0,45,0])
   {
    cube([hw,d,t], center=true);
   }
  }
  cube([t,d,t],center=true);
 }
 translate([(hw/4),0,0])
 {
  cylinder(h=(t*2), r=hr, $fn=100, center=true);
 }
 translate([(hw/4)*3,0,0])
 {
  cylinder(h=(t*2), r=hr, $fn=100, center=true);
 }
 rotate([0,-90,0])
 {
  translate([(hw/4),0,0])
  {
   cylinder(h=(t*2), r=hr, $fn=100, center=true);
  }
  translate([(hw/4)*3,0,0])
  {
   cylinder(h=(t*2), r=hr, $fn=100, center=true);
  }
 }
 translate([(hw/4),0,(hw/2)+(t/2)+0.1])
 {
  cylinder(h=(hw), r=(hr*2), $fn=100, center=true);
 }
 translate([(hw/2)+(t/2)+0.1,0,(hw/4)])
 {
  rotate([0,90,0])
  {
   cylinder(h=(hw), r=(hr*2), $fn=100, center=true);
  }
 }
}

3D Modeling for 3D Printing #1

In this video I will take you through a bit of my own learning on how to use OpenScad which I am planning to make into a series where I show the benefits of using both OpenScad and higher level modelling tools like SketchUp to model different aspects such as components and full systems.


Below is the finished code for this video for those that don't want to go through the trouble of typing it all in.

OpenScad
hw=40;
d=20;
t=6;
hr=3;

translate([(hw/2)-(t/2),0,0])
{
 cube([hw,d,t], center=true);
}
translate([0,0,(hw/2)-(t/2)])
{
 rotate([0,90,0])
 {
  cube([hw,d,t],center=true);
 }
}
translate([((hw/2)*sqrt(2))/2,0,((hw/2)*sqrt(2))/2])
{
 rotate([0,45,0])
 {
  cube([hw,d,t], center=true);
 }
}

Friday, 4 July 2014

Tool Carrier

posted 17 Oct 2013 23:09 by David Taylor

I spent a bit of time designing a tool carrier. I.E. the hot-end carrier. I've seen loads of these printed, but I'm trying to keep the printed parts on my printer to a minimum until I actually have a 3D printer. All the guys I do know with 3D printers are just too busy so I spend allot of time having to wait for them, not to mention any rework required if a design was wrong.
 
I figured if I made one from aluminium, I could make this with a bit of work at home. For the fun of it, I decided to get a quote to have the parts laser cut and was pleasantly surprised: To have the carrier cut from 3mm aluminium and 3 clamps cut from 4.5mm aluminium (See pictures below) would cost me a grand total of R 26.16 (1.65GBP or 2.66USD). I was shocked. I thought it would be at least 2 extra zeros to that number. Needless to say, I'm not going to make them manually.
 
4.5mm is however not the required 4.6mm I need to hold a hot-end securely (http://reprap.org/wiki/File:Jhn_nozzle_holder_v5_metric.jpg) so I decided to see what it would cost to have a slightly better version CNC'ed. This would allow me to cut the clamps from 6mm aluminium and then have a perfect 4.6mm height machined out. I'm still waiting for quotes from two local companies that I've asked. (I hate the fact that South African companies do not deal well with e-mail. Unless you phone them, you never get anything out of them)
 
Anyway, below are some pictures of the designs done in OpenSCAD

 


Thingiverse: Threaded Servo Pulley

posted 9 Oct 2013 01:01 by David Taylor

I've uploaded another thing to Thingiverse: http://www.thingiverse.com/thing:159208
 
This is a 25mm (working diameter) made to fit a Standard Nema 17 Stepper motor Shaft (5mm diameter with 4.5mm, 15mm long shaft cut-out).
This pulley should line up perfectly with the 25mm idler pulley to allow for perfectly parallel strings either side of the toper. 11mm maximum lateral travel should be fairly easy to contain. The version I uploaded to Thingiverse was made for 0.8mm string/cable so it provides a bit more margin on the sides.
As shown In the diagram above, the trucks will have a maximum vertical travel of 638mm which requires 8.12 revolutions to move the ruck through its full range. The hole for the nut to tie it to the shaft will have to be threaded though and should take M3 screws.
OpenSCAD
The other neat thing is that I initially drew the model in Sketchup. A friend of mine told me about OpenSCAD and after downloading it and familiarising myself for about 30 minutes, I was able to recreate the pulley in OpenSCAD. Awsome tool for parametric work. The OpenSCAD file is also available on thingiverse as part of the download.



I'd love to hear your comments and feedback.