I am trying to control two motors and three servos using an arduino nano. When I hook up the motors using the pwm pins everything works great. When I add the line to my setup function: "myservo.attach(2) " I lose the ability to use PWM for one of my motors.
I am using pins 5,6,9,10 to control two motors bi-directionally using an L293 Driver so there is no concern with current draw. The servo is being powered using a 7805 voltage regulator from my supply. I can control the servo just fine, but lose my PWM control when I enable it.
I lose PWM on pins 9 and 10 to be more specific.