Shop OBEX P1 Docs P2 Docs Learn Events
Stepper motor SPEED control — Parallax Forums

Stepper motor SPEED control

nhwadianhwadia Posts: 2
edited 2008-12-22 09:38 in BASIC Stamp
Hi!

I wish to control the speed of a stepper motor, with my basic stamp 2. and display that speed on a four digit led volt meter.

I know this topic must exist somewhere but cannot find it. Can someone help?

nhwadia

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-12-21 17:58
    Duplicate post removed. Please post messages only once in the forums. If you need to make an edit, do not repost. Use the pencil icon to the top right of the message to edit your post.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2008-12-21 18:30
    I took the Parallax example code for the Unipolar stepper and added a PULSOUT (spd_pulse)·that gets executed with each "Do_Step".· So, that equivalent voltage (P0, pin_0) on a voltmeter will reflect the speed.· It's an extra program line, but by experimenting with values of PW (CON) and stpDelay, a transparent compromise should be practical.

    I'm sure that other options will evince forthwith.
  • nhwadianhwadia Posts: 2
    edited 2008-12-22 09:38
    Thank you, P J Allen.
    That seems the simplest route many Thanks.
    Nariman.
Sign In or Register to comment.