jurriaan / Arduino-PowerFunctions

Lego Power Functions Infrared Control for Arduino
MIT License
73 stars 20 forks source link

How to start two motors at the exact same time for an indefinite time #5

Open miki85 opened 4 years ago

miki85 commented 4 years ago

Hi,

Here is what I want to do : Starting two motors at the exact same time and let them rotating indefinitely. Here is my issue : If I use the method "combo_pwm" the motors will stop after a second or two.

If I want to rotate one motor indefinitely I use the "single_pwm" and it works. But if I use "single_pwm" to start the first motor then the same method again to start the second motor they will obviously not start at the same time.

What am I doing wrong ? Can I have some help ? Thank you.

-Miki