sparkfun / SparkFun_TB6612FNG_Arduino_Library

Other
63 stars 30 forks source link

error function foward #1

Closed spectre59390 closed 6 years ago

spectre59390 commented 7 years ago

hello. I test your library. And I encounter a worry with the foward / back function with the speed in parameter. Only 1 engine is running. If I remove the speed in arguments the two motors rotate. ps: thank you for library

mshorter commented 7 years ago

Can you try different speeds. That seems weird, the functions are basically the same (the one that doesn't use the speed parameter uses a default variable instead). I did check the example sketch which uses both forward and back with speed and I know that was working fine for me.

spectre59390 commented 7 years ago

hello. I tested example and it's work . I tested with library VirtualWire and not work . Motor2 not work .

mshorter commented 7 years ago

Try changing the PWM pin on the one that doesn't work. My guess is that the pin is using the same timer that the virtual wire library is using for timing and causing problems.

spectre59390 commented 7 years ago

ok i try it and i recontact tomorrow

spectre59390 commented 7 years ago

hello . it 's work with other pin PWM . thank you for help me .

bboyho commented 6 years ago

Hi,

It looks like this was an issue with the pin that was being used but you got it workin gby using another PWM pin. I am going to resolve this issue. =)