Two Motor Controller L298 on 1 Spider

Looking at past posts I see that technically the board supports it, but looking at the behavior that I see only the last one configured/initialized is working.

Is there any known workaround for this currently?

I’m trying to drive my 4 motor Rover 5 and with only two motors running it is very sluggish.

multiple modules should work just fine.

Please provide details on your connections and simple code demonstrating the issue so we can track it down on our end and solve.

Actually I had something similar - rather than two motor modules, I was trying to use one motor module and a pan/tilt servo - so I guess it’s still using 4 PWM pins on two P sockets same as if it were two L298 modules. In my case I was finding that the motors and the servos would interfere with each other and couldn’t all work properly at the same time. I remembered something I’d read Kerry Hammil of Microsoft Research say [here] - [em]“If I recall correctly, the Fez Spider has only two PWM timers shared among the PWM pins. So you can control 6 servos but only two different duty cycles.”[/em] - I assumed it was connected with that, and found some code to help me rewrite my servos code with fake PWM generated from OutputCompare instead of real PWM, which got it working for me - although I still find the two-motor Rover 5 sluggish, my motor module is outputting more on one side than the other and shows three LEDs lit where I would logically expect a maximum of two.

RorschachUK