I'm working on an Arduino lawn mower which runs with two DC gear motors and a brushless mowing motor.
First I ran my program on the Duemilanove without the brushless motor where the DC motors worked nice and quiet.
Then I added servo.h for running an additional brushless motor controller which unfortunately doesn't work with the Duemilanove.
With the Duemilanove:
VNH5019 uses Timer 1 which cannot be changed
Servo.h uses Timer 1 which cannot be changed
With the Mega:
VNH5019 uses Timer 1
Servo.h uses Timer 5 (I'm using Pin 11 as Pin 12 is already in use by the VNH)
The Mega now does a loud pwm-beeping (the DC-motors). (sounds like about 5-10kHz)
I took all the servo.h including etc. out of the program and tested again - the DC-Motors are still beeping.
For me it looks like the VNH lib doesn't set the Timer1 correctly doesn't it?
Does anyone know what I could do?
have a nice sunday