PWM pins 5 and 6 not working as expected.

grimreaper:

Why are you using analogWrite commands to try and control ESCs?

I didn't just try, it worked like i told, in pwm pins 3 and 11. It doesn't work only on pins 5 and 6. I didn't want to add another library to code and increase its size. Could you tell me what difference there is between the two?

Thanks

analogWrite() pwm output uses a 500 Hz switching frequency, a servo is expecting a 40 Hz switching frequency.
Servo library is the correct way to interface with R/C type ESC controllers.

Lefty