Home › Evil Mad Scientist Forums › Egg-Bot › 400 steps / revolution steppermotors higher speeds than 1000 steps per second › Re: 400 steps / revolution steppermotors higher speeds than 1000 steps per second
April 6, 2014 at 4:53 am #21785
OK so I have done some more tests.
As long as I run the motors over the manual function I can increase speed up to 10000 steps per second.
the Inkscape-plugin limits the speed to this value. So as the number of steps is limited to 3200 steps through
in plotting a drawing thinkgs work as expected up to a speed of 1000 steps/sec.
As soon as I go over this limit even at 1001 steps/sec The motors are driven at a much higher speed.
I estimate 5000-10000 steps per second. It is the same thing for speed pen up and pen down.
Whenever one or both of the speeds are over 1000 steps/sec the motors run at a much higer speed when I try
to plot a drawing.
So does this mean that the InkScape-plugin has a bug that it calculates the wrong speed?
I took a look into the python sourcecode
I guess these lines cause the problem
self.nTime = int( round( 1000.0 / self.fSpeed * distance( self.nDeltaX, self.nDeltaY ) ) )
strOutput = ‘,’.join( ) + ‘r’
self.doCommand( strOutput )
nTime = int( math.ceil( 1000 / self.fSpeed * distance( self.nDeltaX, self.nDeltaY ) ) )
I did’nt analysed the code in detail but I guess because these calculations are based on “1000”
that values above 1000 are causing the problem.