Stepper motor success and PWM question
Archiver
Posts: 46,084
I would like to first of all thank you for helping me out earlier
with the stepper porblem. I have managed to control my stepper from
EMC-linux box last night. I am starting the construction for the
table top cnc and the rest of the boards now. I still have a grin
ear to ear...
I have a question of course... about PWM. BS2 has a PWM command but
I didnt have any succes with it at running the step motor. I use
PWM 0,255,80
this should be putting out up to 5v from Port 0 at 80 cycles or
someting close to this [noparse]:)[/noparse] what I noticed is if you increase the
cycles the voltage range increasesI was going to tinker with it
alittle more but I decided to ask first before I blew up someting [noparse];)[/noparse]
(I have already done so with an L298 LOL
oh well you can not make omlet with out breaking eggs...
oh oh and happy merry christmas to all
Serdar
with the stepper porblem. I have managed to control my stepper from
EMC-linux box last night. I am starting the construction for the
table top cnc and the rest of the boards now. I still have a grin
ear to ear...
I have a question of course... about PWM. BS2 has a PWM command but
I didnt have any succes with it at running the step motor. I use
PWM 0,255,80
this should be putting out up to 5v from Port 0 at 80 cycles or
someting close to this [noparse]:)[/noparse] what I noticed is if you increase the
cycles the voltage range increasesI was going to tinker with it
alittle more but I decided to ask first before I blew up someting [noparse];)[/noparse]
(I have already done so with an L298 LOL
oh well you can not make omlet with out breaking eggs...
oh oh and happy merry christmas to all
Serdar
Comments
the manual states that the PWM command is not an exact time base and
duty cycle based output, but that it varies and that over the time
period, it totals the level (pulses) that your command sets.
also, I assume you connected your output thru a transistor or direct
and NOT thru and resistor/capacitor like the manual shows. That
would yield a voltage level, not a pulse train.
Dave
--- In basicstamps@yahoogroups.com, "serdar_toughbeard
<serdar_a@k...>" <serdar_a@k...> wrote:
> I would like to first of all thank you for helping me out earlier
> with the stepper porblem. I have managed to control my stepper
from
> EMC-linux box last night. I am starting the construction for the
> table top cnc and the rest of the boards now. I still have a grin
> ear to ear...
>
> I have a question of course... about PWM. BS2 has a PWM command
but
> I didnt have any succes with it at running the step motor. I use
>
> PWM 0,255,80
>
> this should be putting out up to 5v from Port 0 at 80 cycles or
> someting close to this [noparse]:)[/noparse] what I noticed is if you increase the
> cycles the voltage range increasesI was going to tinker with it
> alittle more but I decided to ask first before I blew up
someting [noparse];)[/noparse]
> (I have already done so with an L298 LOL
>
> oh well you can not make omlet with out breaking eggs...
>
> oh oh and happy merry christmas to all
>
> Serdar