I'm working on a project, which my main goal at the moment is to control 4 dc electric motors. I am using arduino uno, but then I realized it only had 2 timers, so I was only capable to control 2 motors (timer 0 is not advised for motor control).. My question is: Arduino mega2560 has - Digital I/O Pins 54 (of which 15 provide PWM output) and 5 timers. But of these 5 timers, could you tell me how many can I use, or are recommended to control motors (if I'm thinking correctly I will need 4 timers for the 4 motors) ?
Fortunately the code I made to control the speed of the dc motor with arduino uno will not be completely thrown away.. the logic doesn't seem to change. As far as I'm concerned the only difference is in the number of timers, pins and memory.