Saturday, February 25, 2012

simple linear drive test

I used an Arduino Uno r3 with a Arduino Motor Shield r3, with belt and pulley from motionco.co.uk ( parts pl032, cpmxl025, bmxl025OL ).

I broke the "VIn Connect"  jumper at the back of the motor shield board.

I used a 12V 1.5A power supply from an old scanner.

I achieved 300mm per second.









arduino code:

// stepper motor control using http://arduino.cc/en/Main/ArduinoMotorShieldR3

#define ADIR 12
#define BDIR 13
#define APOWER 3
#define BPOWER 11

void setup() {
    pinMode(3, OUTPUT);
    pinMode(11, OUTPUT);
    pinMode(12, OUTPUT);
    pinMode(13, OUTPUT);
    pinMode(9, OUTPUT);
    pinMode(8, OUTPUT);
    pinMode(0, INPUT);
    pinMode(1, INPUT);
}

int stage = 0;

void set_stage(int i)
{
  switch(i)
  {
  case 0:
    digitalWrite(ADIR, 0);
    analogWrite(APOWER, 255);
    digitalWrite(BDIR, 1);
    analogWrite(BPOWER, 255);
    break;
  case 1:
    digitalWrite(ADIR, 1);
    analogWrite(APOWER, 255);
    digitalWrite(BDIR, 1);
    analogWrite(BPOWER, 255);
    break;
  case 2:
    digitalWrite(ADIR, 1);
    analogWrite(APOWER, 255);
    digitalWrite(BDIR, 0);
    analogWrite(BPOWER, 255);
    break;
  case 3:
    digitalWrite(ADIR, 0);
    analogWrite(APOWER, 255);
    digitalWrite(BDIR, 0);
    analogWrite(BPOWER, 255);
    break;
  }
 
}

void ddelay(float d)
{
  for(float t = 0.0; t < d; t += 0.01)
  {
    int h = 4;
    h = h + 5;
    h = 3*h;
    h--;
  }
}

void sstep(int forward)
{
  if(forward)
  {
    stage++;
    if(stage > 3)stage = 0;
  } 
  else
  {
    stage--;
    if(stage<0)stage = 3;
  }
  set_stage(stage);
}

void loop() {
  // set brake pins to 0
  digitalWrite(9, 0);
  digitalWrite(8, 0);
 
  // set motor pins
  stage = 1;
  set_stage(stage);
 
    float d = 2;
 
  while(1)
  {
    ddelay(d);
    sstep(1);
    d = d * 0.99975;
    if(d<0.85)d = 0.85;
  }
}

Monday, January 30, 2012

Engraving Aluminium Alloy

I sharpened an engraving cutter to a finer point, approximately 55 degrees included angle, instead of 90 degrees, with a clearance of 1/4 of a thousandth of an inch per 20 degrees rotation of the tool, with an initial clearance angle of about 13 degrees ( I hope I remember what I mean by all these numbers, so I can do it again ). The flat of the cutter was no more than 0.1mm diameter, which is dangerously fine. The material was aluminium alloy. Cutting time about 10 hours. 50mm/minute horizontal feedrate. 20mm/min vertical feedrate. The result was beautiful. I can't wait to see the impression it makes. I hope it doesn't get damaged in use too quickly, as it's not as hard as steel. Interesting marks on the surface must be because of a lack of coolant; I couldn't stand there for 10 hours, so I just put some oily paraffin on the surface, but I guess it got used up or dried out while I was out at work.



Friday, January 20, 2012

Hardened Steel

Bad news: Broke a cutter.
Good news: Found dad's packet of 90 degree engraving cutters
Bad news: Kept breaking them until I only had two left
Good news: Discovered that the steel I am using is much harder than some of the other steel I got.
Bad news: I want to wait for this one to be finished, but it's cold in the workshop
Good news: I have a small office and a fan heater, so I'll be warm in no time
The cutter broke to some extent on the first couple of passes on all of the above attempts and got steadily worse from right to left.

Thursday, January 19, 2012

Roller-pressing onto copper


We have put the steel with ridges through the roller-press with some copper. It actually looks ok in most places. We need to modify the design though to make sure there are no areas with lines running nearly parallel too close to each other.

Engraving Ridges

It took almost 10 hours to machine this; 21:30 to 07:30. I was using a fairly slow feedrate; 60mm/min, 5000rpm.
But we can see a problem where lines cross each other or get close to each other, the cutter can't get into the gap, because of the size of the flat.
Maybe we could use chemical etching to make this?



Tuesday, January 17, 2012

Toolpath for engraving ridges

Instead of engraving grooves we wanted to engrave ridges!
I found this simple way to create the toolpath with HeeksCNC.
I drew all the ridges as sketches, made from lines.
I extruded the sketches down, 1mm.
I made a 3D attach operation and a zigzag pocket operation, specifying an engraving tool.
 

Tidier


Almost finished tidying the workshop.