My setup is pins 6,9,10,11 driving 2 motors via PWM. Pin 8 controls a servo and Pin 7 controls/reads from a Ping ultrasonic range finder.
I was excited to get my motors working exactly how I wanted them to but as soon as I added the servo and activated the pin ( myservo.attach(8); ), one of the motors stopped working. I removed the section of code and the motor started working again.
I’m beginning to realize that I can’t do PWM on 6 and use pins 7 and 8 for servo control.
Does anyone have any suggestions of which pins to use for servo and ping?
Many thanks in advance,