Hi All,
I am building an XY table out of two old printer mechanisms and 3.5" in floppy drive as Z axis which is holding a pen right now. The electronics are arduino uploaded with reprap firmware 1.1 and stepper drivers are l297/298 combos.
This crazy contraption is working as a plotter and i could draw some pictures. The problem is, i don't have the specs for one of the printer head driving motor. It has got a 15 mm timing pulley attached to the belt and no word about step angle. I stuck a pen and tried to measure the angle by plotting 1000 step line and divide by inch to obtain the steps/in and came to the conclusion that it is 0.9 deg.
Here i discovered that 1000 steps forward and 1000 steps backward doesn't come to the same position. Each successive 1000 back and forth movement keeps shifting the start and stop positions to one side. I guess it is not missing the steps, because the distance between start and stop is consistent.
Here is the code snippet which moves 1000 steps forward and reverse the same amount once i click on the serial monitor in Arduino (alpha) IDE.
boolean done = false;
void loop(){
if(!done){
digitalWrite(7,HIGH);// Enable stepper motor
digitalWrite(6,LOW); // Direction
for(int i = 0;i < 1000;i++){
digitalWrite(5,HIGH); // step pulse
delay(5);
digitalWrite(5,LOW); // step pulse
delay(5);
}
digitalWrite(6,HIGH); // reversing the direction
delay(5);
for(int i = 0;i < 1000;i++){
digitalWrite(5,HIGH); // step pulse
delay(5);
digitalWrite(5,LOW); // step pulse
delay(5);
}
done = true;
digitalWrite(7,LOW); // disable motor
}
I tried changing the board with same results. BTW i am using the unipolar motor as bipolar by using the half coil config. mechanisms are stacked one over the other and the bottom one driving a thick board to hold paper. Both motors are behaving the same way. But i have to mention that the mechanisms are shaky at various places.
Am i missing something obvious ?
Thanks
Kannan
(Running on Vista Home pre/arduino/arduino (Alpha)/ reprap 1.1
Edited 1 time(s). Last edit at 11/06/2009 06:09AM by kkannan.