--
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 ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/groups/opt_out.
--
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 ioio-users+...@googlegroups.com.
Please read my last email again
Do you have a pull-up attached? Do you actually need open drain? At least for testing purposes I would start with push-pull (aka "normal") mode.


You're push()ing from inside a while loop that repeats 32 times.
1. When you say "the app is stopped", what exactly do you mean?
2. Leaving your loop() method empty is a very bad idea. It will cause your app to busy-loop. If you have nothing to put there the best idea is to leave it empty.
3. Where is cue1_ defined and initialized?
...
--
When an app crashes the logcat output will contain information on what happened, I.e. a stack trace of an uncaught exception. It will tell you exactly what is the problem.
...
And by the way in this case your problem is that you're pushing cues whose format doesn't match the format of the configuration used for opening the sequencer.
...
--
--
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 ioio-users+...@googlegroups.com.
...
[Message clipped]
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_;
@Overridepublic 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_;@Overrideprotected void setup() throws ConnectionLostException, InterruptedException {
...
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.
--
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 ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
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 ioio-users+...@googlegroups.com.
Setting the pulse width to 0, as you did, is the correct way to stop.
There is only one motor. The motor driver is two pulse input motor driver. It means I have to send pulse signal to clockwise pin to rotate clockwise while sending pulse signal to anticlockwise pin is to rotate anticlockwise. However, I only can send one pulse signal to one of the pins either clockwise pin or anticlockwise pin while the another pin has to be off. Because the motor driver cannot receive two input pulse signals even one of the pulse signal is with 0 pulse width.


Let's take a step back again, since you've changed some stuff.
Please reduce your code to the minimum profile that doesn't work as you expect (for example, leave only one channel). Send out the code as well as the list output.
Also, it would help if you can use am oscilloscope or a logic analyze to get a capture of what's happening on the I/O pins.

And with both pins connected you're not seeing any pulses?
Is out possible that you have a short circuit somewhere, either in the breadboard or on the actual driver? The easiest way to check is to disconnect both on the IOIO side and measure continuity between the wires that would otherwise go to the IOIO pins.
Correct.
Next experiment, make your sequencer code only deal with one channel (for example, pin 10). Open the other pin as digital output, open drain and set it to low (false). Measure the voltage on pin 10 with a scope with and without connecting the wire going to the motor driver to pin 11.
Is that with an oscilloscope? Is the voltage constant?