Is on Arduino Mega 2560 only 13 PWM Pins? 0 to 13?
And I can use only 2-13, because the 0 and the 1 pin is for tx and rx.
So other 14 - 53 pins can`t be used as a PWM pin?
What are you planning that needs more than 12 PWM pins? There are expander chips.
And it has motor driver that uses 4 PWM pins
4 x PING ultra sound sensor, each needs 2 PWM pins
Now I want attach a stepper motor driver, he needs all so 4 PWM pins.
Is it driving 4 motors? If not, it doesn't need 4 PWM pins.
Which sensors are you talking about? The Ping page on the playground indicates that the PING sensor needs one pin for input, and that it doesn't need to be a PWM pin.
Again, which one? The stepper motor driver I use doesn't need any PWM pins, let alone 4 of them.
#define TRIGGER_PIN 12#define ECHO_PIN 13Ultrasonic ultrasonic(TRIGGER_PIN, ECHO_PIN);
No, it drives two motors. So one PWM output to turn motor A right, another PWM pin to turn motor A left. And the same with motor B. So I need 4 pins.