Hello Schnee,
Thanks for your reply!
I had connecting the IOIO to Tb6612 like the picture, and I set all pin to
output 3.3v . PWM frequency was set 100
but it still didn't work , when I turn on the power, it turns on for a
split second then back off.
This is my setup code , is there anything I missed ?
protected void setup() throws ConnectionLostException {
led_ = ioio_.openPwmOutput(39, 100);
ain_ = ioio_.openDigitalOutput(40, false);
bin_ = ioio_.openDigitalOutput(41, true);
cin_ = ioio_.openDigitalOutput(42, true);
}
public void loop() throws ConnectionLostException{
led_.setDutyCycle((float)1.0);
try {
Thread.sleep(10);
} catch (InterruptedException e) {
}
}
}
Thank you for your help!!
best regards
Jack
2014-05-25 3:27 GMT+08:00 <[email protected]>:
> Hello Jack,
>
> according to my knowledge the TB6612 should be able to handle 3V input
> signals very well. Please note that you have VCC for the logic ( VCC can be
> 2.7V to 5.5V )
> and you have VM for the motor ( VM ranges from 4.5V to about 13.5V )
>
> Connect the 3.3V from IOIO to the VCC of TB6612. Use standard digital
> outputs ( no open drain, no pull-up ) and it should be ok.
>
> best regards
> Schnee
>
>
> On Saturday, May 24, 2014 12:28:03 PM UTC+2, jack wrote:
>>
>> thank you! it can output 3.3V now ,but still can't output 5V
>> i use ioio_.openDigitalOutput(1, DigitalOutput.Spec.Mode.OPEN_DRAIN,
>> true);
>> is it correct?
>>
>>
>> jack於 2014年5月24日星期六UTC+8上午10時56分56秒寫道:
>>>
>>> Hello, i'm trying to use IOIO-otg board drive DCmotor by driver
>>> tb6612fng.
>>> Unfortunately,it didn't work,and i found that the pin didn't output
>>> neither 3.3v nor 5v, i have no idea how to fix it.
>>> Please help me!!!
>>> Thank you very much!!
>>>
>>> And here is my source code,my IOIOlib is IOIO0503
>>>
>>> --
> 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.