Shop OBEX P1 Docs P2 Docs Learn Events
I was wrong........ There is a next problem — Parallax Forums

I was wrong........ There is a next problem

ArchiverArchiver Posts: 46,084
edited 2003-10-20 23:17 in General Discussion
Can I start running a stepper motor and while he is running I want
to measure voltages. After I have do the measurements I want to stop
the stepper. Is this possible. Can the BS2-IC work with interupts.

Is there someone who knows of this is possible.

Running stepper - while running: make some measurements - stop the
stepper after the measurements

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-10-20 20:04
    If I am not mistaken the BS2 does not have a true interupt. But if you are
    very clever at programing (polling within the main loop) it can act like it has
    an interupt.

    Ken

    +++++++++++++++++++++++++++++++++++++++++++++



    In a message dated 10/20/2003 11:31:19 AM Pacific Daylight Time,
    drieelot@y... writes:
    Can I start running a stepper motor and while he is running I want
    to measure voltages. After I have do the measurements I want to stop
    the stepper. Is this possible. Can the BS2-IC work with interupts.

    Is there someone who knows of this is possible.

    Running stepper - while running: make some measurements - stop the
    stepper after the measurements


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-10-20 20:30
    That's why Parallax has a PWMPAL so motor control is seperate and the Stamp
    can do other tasks.
    Chuck
  • ArchiverArchiver Posts: 46,084
    edited 2003-10-20 21:53
    Juliano,
    When you say "start" a stepper motor and then "stop" it is important
    to realize that a stepper motor starts and stops at every step. Also,
    when you control a stepper motor with the Stamp, you have to put a
    delay between each motor position change because the Stamp runs much
    faster than a stepper motor.
    With this in mind, you can do your data collection while the Stamp is
    waiting to move the motor to its next step.
    If you truly want to start the motor and let it run on it's own you
    would have to use a dedicated stepper motor controller.


    --- In basicstamps@yahoogroups.com, "Juliano" <drieelot@y...> wrote:
    > Can I start running a stepper motor and while he is running I want
    > to measure voltages. After I have do the measurements I want to
    stop
    > the stepper. Is this possible. Can the BS2-IC work with interupts.
    >
    > Is there someone who knows of this is possible.
    >
    > Running stepper - while running: make some measurements - stop the
    > stepper after the measurements
  • ArchiverArchiver Posts: 46,084
    edited 2003-10-20 23:17
    If you can take measurements between steps, then yes. How fast does the
    stepper need to turn, and how long does it take to read from your A/D
    chip?

    No, the BS2 does not do interrupts.

    One solution may be to run the stepper with a second processor, then use
    the Stamp to control it and the A/D.


    > Can I start running a stepper motor and while he is running I want
    > to measure voltages. After I have do the measurements I want to stop
    > the stepper. Is this possible. Can the BS2-IC work with interupts.
    >
    > Is there someone who knows of this is possible.
    >
    > Running stepper - while running: make some measurements - stop the
    > stepper after the measurements
Sign In or Register to comment.