Go Down

Topic: Understanding servo library (Read 755 times) previous topic - next topic

Pando855

I'm using servo library and it say that we can't use this pins in arduino mega:


I'm using 18 servos with this library and I'm using pins 44,45,46 and it is working :S
I don't understand why. Anyone knows ?

The second question is if reducing the number of servos per timer will increase the performance. I think it is working almost perfect right now but in some positions servos vibrate. This could help in it?

The library that I'm using have some extended features: https://github.com/KurtE/Arduino_Phoenix_Parts/tree/master/ServoEx


MarkT

On the Mega you can use upto 48 pins with the Servo library, what you cannot
do is use _analogWrite_ on the pins that are controlled by any of the timers the servo library
is using....  Look at the source code of the Servo library to see which timers it uses in
which order (12 pins max per timer).
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Go Up