Shop OBEX P1 Docs P2 Docs Learn Events
Micro Step Stepper Motor Driver — Parallax Forums

Micro Step Stepper Motor Driver

Christof Eb.Christof Eb. Posts: 1,161
edited 2008-02-02 16:21 in Propeller 1
Hi,
others are playing with stepper motors too, so perhaps this is interesting.
The microsteps lead to smoother running of the motor.
(Well, sorry, I am not the very good assembler programmer, but at least now it seems to work....)

Stepper Motor Driver with 8 Microsteps per Step. = 32 microsteps per cycle.
The outputs are directly coupled with L298 inputs. The driver has two PWM-outputs, which
output sin- waves and two direction (of current) outputs.
The second half of the sin wave is mirrored!
There is a phase shift between the sin- waves of 8 microsteps = 90°.

The circuit, that I use, can be downloaded at www.pollin.de, search for "Schrittmotorplatine".

Comments are welcome.

Does anyone have a driver circuit for high voltages for high speeds?

Have fun,
Christof

Comments

  • hal2000hal2000 Posts: 66
    edited 2008-02-01 23:47
    Thank you for sharing your routine
    I am very interested in the control of stepping motors
    For what kind of stepping motors is this routine?
    Regards
  • rjo_rjo_ Posts: 1,825
    edited 2008-02-02 14:24
    Thanks,

    Please forgive a stupid question... Your code looks absolutely beautiful... what do I need to test it?

    Looks like you have 4 output pins... does that mean that I can use this with Parallax's steppers?

    For Safari users only, google http://www.pollin.de/shop/shop.php
    then hit "translate this page"

    Doppel means "double," which is evidence of modesty on the part of the author[noparse]:)[/noparse]
  • Christof Eb.Christof Eb. Posts: 1,161
    edited 2008-02-02 16:21
    Hi rjo_ and hal2000,

    this routine is good for bipolar step motors with two coils inside. The direction of the current in the coils are changed and switched on off. The current is switched by the L298 chip.

    Best regards Christof
Sign In or Register to comment.