This would work. Not sure if it does what you want. What it *does* do is
open pin 35 for pulse input using the internal pull-up and counts width of
*positive* pulses on that line, i.e. how long it has been between when
whatever is connected to the pin pulled it low (as opposed to for how long
it was pulled low).


On Thu, Jun 19, 2014 at 6:11 PM, <[email protected]> wrote:

> Do you have an example of how to use pulseInput with the input pulled
> down.  Will this work:
>
> frontInput = ioio.openPulseInput(new DigitalInput.Spec(35,
> DigitalInput.Spec.Mode.PULL_UP),PulseInput.ClockRate.RATE_2MHz
> ,PulseInput.PulseMode.POSITIVE, false);
>
> On Wednesday, May 28, 2014 8:58:20 AM UTC-7, Ytai wrote:
>
>> PulseInput is what you want to use. This module limiting the bandwidth to
>> up to 200 messages per second from the IOIO to the Android regardless of
>> how fast the pulses are.
>> The Pulse Input page on the Wiki and the Javadocs should have detailed
>> explanations.
>>
>>
>> On Tue, May 27, 2014 at 6:33 AM, siqi wang <[email protected]> wrote:
>>
>>> Hello everyone,
>>>
>>> Now I am working on measuring the speed of a robot car which is
>>> connected with Android through IOIO. As i have 2 speed sensors on the car
>>> wheels, the pulses will be sent from the sensors when the wheel roll. The
>>> question is that if I use the PulseInput functions, will all pulses from
>>> the sensor pass to the Android device? As IOIO is connected with Android by
>>> USB/OTG cable, I am scared of the damages on the cable caused by high
>>> frequency pulses. If the pulses pass only to the IOIO card and IOIO send
>>> only the datas(i.e. the average frequency of pulses) to Android, that would
>>> be fine.
>>> Is there anyone who can tell me? Thank you very much!
>>>
>>> SIqi
>>>
>>> --
>>> 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.
>

-- 
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