Lamp Pen Holder

I printed this Simple Pen Holder from thingiverse, but wanted to move it completely off the top of my small typing table I use for my keyboard and mouse to get some extra space back. So I designed this thing:

penholder.scad

// Adapt a simple penholder from thingiverse
// (http://www.thingiverse.com/thing:140136) to attach to the post on my Ott
// Lite desk lamp.

slop=0.5;

basedia=16.93;
baseheight=7.4;
postdia=12.73;
slotdia=9.82;
tall=34;
solidbottom=13;

outerdia=basedia+slop+4;


// import("PenHolder75.stl");

module hanger() {
   difference() {
      union() {
         cylinder(h=tall,r=(outerdia/2));
         cylinder(h=2.3,r=15);
      }
      translate([0,0,-1])
         cylinder(h=tall+2,r=((postdia+slop)/2));
      translate([0,0,-1])
      cylinder(h=1+baseheight+slop,r=((basedia+slop)/2));
      translate([0,-(slotdia+slop)/2,-1])
         cube([50,slotdia+slop,tall+2]);
   }
}

difference() {
   union() {
      translate([(66.56/2)+(outerdia/2)-2.3,0,0])
         hanger();
      translate([-66.56/2, -66.68/2, 0])
         import("PenHolder75.stl");
      difference() {
         cylinder(r=((66.56+66.68)/2)/2, h=solidbottom, $fn=64);
         translate([0,0,-1])
            cylinder(r=(((66.56+66.68)/2)/2)-2.4, h=solidbottom+2, $fn=64);
      }
   }
   translate([(66.56/2)+(outerdia/2)-2.3,0,0])
      cylinder(h=baseheight+slop,r=((basedia+slop)/2));
}

That slips over the small diameter flexible conduit at the top of my desk lamp and can be pushed down on the column very securely. It has slots where I can glue in the penholder so I can hang it off the lamp, thus reclaiming the space it took up on the table:

Now I'm a lot less likely to set down my drink on top of a pen and have a disaster :-).

P.S. The original design was much taller, but the print head knocked it over when it got to be about 34mm high, and when I tried it out, it was really quite secure, so I didn't try to print a new one and I changed the height in the openscad file to be 34mm.

I've revised this again to merge the two STL files instead of printing them separately, and I added a solid ring around the base to keep pens from sliding out the bottom holes:

As you can see, this also gave me an opportunity to try out the pause feature in RepetierHost to swap in some red filament when I used up the last of the green. (It obviously worked :-).

Go back to my main Solidoodle page.

Page last modified Sat Jan 3 14:56:25 2015