I'm new to these forums..... I already posted this question to the Due section, but this sections seem more appropriate and well read, so maybe I have a better chance of getting my question answered.
My original post from yesterday:
For my project, I need extremely high servo resolution. The servos I am working with have 12-bit resolution, and work with a frequency of 250-333Hz (http://www.savoxusa.com/Savox_SB2271SG_Digital_Servo_p/savsb2271sg.htm). I assume this is somehow possible to achieve on the Due, but I don't see any documentation specifically how. Can I use the analogWrite function in 12 bit mode, with the PWM frequency scaled down to fit within the 250-333Hz range?
Then I added:
Ok...... so I found another post that explains that in arduino PWM can't be used to control servo position (http://forum.arduino.cc/index.php?topic=14146.0). The servo library uses something which could be called PPM. Does that mean, then, that the servo library would have to be updated to handle 12 bit resolution?
This might do what you want. https://www.adafruit.com/product/815
Then my response:
Thanks for the reply. I actually just ordered one of those last night after I made my post, in case I couldn't get this to work on just the Due alone. It seems that it should be possible to get this work on the Due. For various reasons, it would be great if I could have as few components involved as possible......
Ok..... so maybe I'm answering my own question here, please tell me if I am correct. My servo can receive up to 333hz signal. So say I set the PWM signal to 333Hz at 12 bit resolution. (Though I'm not sure I can get it exactly to 333hz as it seems the clock can be only divided in certain ways). That would give me 4096 divisions of the a single wave at 333Hz?
So one cycle is: 3ms If center pulse width is 1.5ms, then analogWrite value of 2,047 would properly center my servo?
"mem" from the discussion I mentioned in my previous post says that using analogWrite to control servos would destroy the servo. But don't see why. I want to get approval from someone more knowledgable than me before I try this out!!