Hi there folks.
I’m having a bit of a pickle with my little Arduino, I’ve got two servos attached to pin 9 and 10 and i have two motor controllers attached to pin 5 and 6 (I’m using the pins as variable voltages to drive the motor controller pots) pins 5, 6, 9 and 10 are all pwm pins.
If i run the codes for both servos and for both motors separate it works fine, but when i put them together to run simultaneously the motors drive erratically, almost like they are just getting a full 5 volts or 0(full speed or off)
I’ve read that when you run the servo.h library it shuts off the pwm for pins 9 and 10, but the servos are connected to those pins and work fine on their own? also the motors are connected to pins 5 and 6 not 9 or 10 so why would it limit them?
I’ve also heard that the Arduino mega doesn’t have that limiting factor, and if that is the case then i will just buy and use a mega. I just want to confirm this so i don’t waste time and money on something i don’t need!
All servos and motors are powered externally so they don’t use any current from the Arduino, it is only a signal in case some people think its reaching a maximum current draw.
I will upload the code if need be but at the moment i think its a wiring/capability problem.
Let me know you you all think