Hello,
I can't understand why, in this sketch, the developer used different PWM values in order to move forward the servos.
Why don't use the same values to go forward ?
Also, it is using the Servo.h library and the docs says:
"On boards other than the Mega, use of the library disables analogWrite() (PWM) functionality on pins 9 and 10, whether or not there is a Servo on those pins"
But the sketch is using the pin 10 for one servo!
I don't understand! :o
TheMemberFormerlyKnownAsAWOL:
It disables analogWrite PWM for those pins.
I don't think that's what the OP was asking: seems to me s/he knows that, but wonders then how a servo works on pin 10. And the answer to that is, that servo.write(value) isn't PWM in the analogWrite() sense.
boggi:
the developer used different PWM values in order to move forward the servos.
Why don't use the same values to go forward ?
fishboneDiagram:
And the answer to that is, that servo.write(value) isn't PWM in the analogWrite() sense.
Thanks!
I was thinking it was!!!
fishboneDiagram:
Not sure what the question is....
Just now I realized the stupid question I did: these are not DC motor!
Plus, I forgot to say that they are mounted on a 2WD car chassis!!!
(So they are mounted in an opposite way)
If I was using the same values, of course, one goes clockwise and the other counter-clockwise!
So:
motor 1 = 120
motor 2 = (180-120) = 60