Setting the pulse width to 0, as you did, is the correct way to stop.
On Mar 20, 2014 3:41 AM, "Synn Yong Tan" <[email protected]> wrote:

> Hi, Ytai. I'm using two pulse input motor driver for my stepper motor.
> Stepper1StepCue_ is for clockwise of my motor while stepper2StepCue_ is for
> anticlockwise of my motor. I'm trying to control the direction of motor
> rotation. I tried the command as below when i attempt to rotate the motor
> clockwise but the motor is not operate correctly as both of the
> pulse(stepper1StepCue_ and stepper2StepCue_) are send simultaneously. Is
> there any way for me to send one pulse only while the other one is set to
> OFF?
>
> private void push2() throws ConnectionLostException, InterruptedException
>  {
>  stepper1StepCue_.clk = Clock.CLK_2M;
>  stepper1StepCue_.pulseWidth = 300;
> stepper1StepCue_.period = 5000;
>
>  stepper2StepCue_.clk = Clock.CLK_2M;
> stepper2StepCue_.pulseWidth = 0;
> stepper2StepCue_.period = 5000;
>
> sequencer_.push(cue_, 62500/20);
> }
>
>
> On Mon, Mar 10, 2014 at 3:00 PM, Ytai Ben-Tsvi <[email protected]> wrote:
>
>> The JavaDocs are the comments that are inside the Sequencer.java code.
>> They get converted into HTML, which can be found under the IOIOLib/doc
>> directory in your software bundle.
>> There's also a wiki page called Motoro Control which has a good
>> introductory material.
>> On Mar 9, 2014 4:40 PM, "Vic Wintriss" <[email protected]> wrote:
>>
>>> Ytai:
>>>
>>> I can't seem to find the sequencer JavaDocs.  Where are they?
>>>
>>> I have your example working with my VicsWagon robot that we will be
>>> using again at iARoC 2014 here in San Diego.
>>>
>>> Thanks for all the great work that you have been doing with motor
>>> control!
>>>
>>> Vic
>>>
>>> On Tuesday, January 21, 2014 7:33:24 PM UTC-8, Synn Yong Tan wrote:
>>>>
>>>> Hi,
>>>> I'm trying to do control on step motor.
>>>> My app didn't working but i cannot find out where is the problem.
>>>> Can please help me to see the code?
>>>>
>>>> package ioio.examples.simple;
>>>>
>>>> import ioio.lib.api.DigitalOutput;
>>>>
>>>> import ioio.lib.api.Sequencer;
>>>> import ioio.lib.api.Sequencer.ChannelConfig;
>>>> import ioio.lib.api.Sequencer.ChannelConfigBinary;
>>>> import ioio.lib.api.Sequencer.ChannelConfigSteps;
>>>> import ioio.lib.api.Sequencer.ChannelCueBinary;
>>>> import ioio.lib.api.Sequencer.ChannelCueSteps;
>>>> import ioio.lib.api.exception.ConnectionLostException;
>>>> import ioio.lib.util.BaseIOIOLooper;
>>>> import ioio.lib.util.IOIOLooper;
>>>> import android.os.Bundle;
>>>> import ioio.lib.util.android.IOIOActivity;
>>>> import android.widget.ToggleButton;
>>>>
>>>>
>>>>
>>>>
>>>> public class IOIOSimpleApp extends IOIOActivity {
>>>> private ToggleButton toggleButton_;
>>>>
>>>> @Override
>>>> public void onCreate(Bundle savedInstanceState) {
>>>> super.onCreate(savedInstanceState);
>>>>  setContentView(R.layout.main);
>>>> toggleButton_ = (ToggleButton) findViewById(R.id.ToggleButton);
>>>>
>>>>  }
>>>>
>>>> class Looper extends BaseIOIOLooper {
>>>>  private Sequencer.ChannelCueBinary stepperDirCue_ = new
>>>> ChannelCueBinary();
>>>>  private Sequencer.ChannelCueSteps stepperStepCue_ = new
>>>> ChannelCueSteps();
>>>> private Sequencer.ChannelCue[] cue_ = new Sequencer.ChannelCue[]
>>>> {stepperDirCue_, stepperStepCue_ };
>>>>
>>>> private Sequencer sequencer_;
>>>>
>>>>  @Override
>>>>  protected void setup() throws ConnectionLostException,
>>>> InterruptedException {
>>>> ...
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "ioio-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/ioio-users.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "ioio-users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/ioio-users/jxhTI2gAhMk/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/ioio-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "ioio-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/ioio-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to