PWM question


i using arduino control stepper , i'm having difficulties reaching speeds required. tried sort of doing manual pwm create step pulses:

digitalwrite(steppin, high);
delay(dly);
digitalwrite(steppin,low);
delay(dly);

but can't seem attain frequency high enough (my steady state speed needs 1000 steps/s). through searching found possible change frequency of pwm arduino puts out. should able use create pules, however, haven't seen vary frequency within void loop love able create type of acceleration profile. know may not possible figured i'd ask see if has ideas.

quote
(my steady state speed needs 1000 steps/s

so value in delay need 0.5ms, shortest can delay 1ms fastest speed can 500hz. it's slower in reality because write takes time well.

quote
i tried sort of doing manual pwm create step pulses:

if feed pwm signals stepping motor not control it's speed.

look @ arduino code in reprap project how accelerate stepping motor arduino.


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > PWM question


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums