I was wrong........ There is a next problem
Archiver
Posts: 46,084
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
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
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]
can do other tasks.
Chuck
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
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