hello,
servo's are _slightly_ different in that they dont take the classical pwm that you can regulate from 0..100%.
instead, a servo needs a repetetive pulse between 1 and 2 miliseconds. that pulse train can have a frequency from 30 to 400 hz, for example, but the pulse width stays in the same range. a pulse of 1.5 ms positions the servo into the center, 1 and 2 ms are for the full movement to the left or right respectively.
in the controller you need a loop (or, preferably, an interrupt) that just waits some 20 ms, then sets the pulse on, waits 1 to 2 ms, and turns off again, then repeat ....
greets,
chris
Am Montag, 29. Mai 2006 13:59 schrieb nomeparece:
On May 29, 2006, at 11:43 AM, Hans-Christoph Steiner wrote:
I don't recall the exact specs for even a plain servo. It will make your life much easier if you have a reference to what kind of signal you are trying to send it. It should be quite easy to find, just search the interweb using the manufacturer and part number, or maybe even more generic info would work.
you are right! thing is that..as said, me (a plain user) will like to be able to move the little motor either via [PWM] or just any of the digital pins.. but unfortunately from my user level capacity this doesnt seem to be easy, thought i keep the hope that its just my blindness and lack of understanding of what the patch is doing... reason why im so grateful to all you people out there openly discussing about similar issues. :)
this are the specs taken from the interweb:
Abm.: (L x B x H) 23.7 x 12.8 x 22.5 mm Gewicht: 8 g Stell-Moment bei 4,8 V: 10 Ncm Stell-Zeit bei 4,8 V: 0.17 s Getriebe: Kunststoff Stell-Zeit bei 6 V: 0.15 s Typ: 8 Stell-Moment bei 6 V: 12 Ncm Steck-System: Futaba
a pdf here: http://www.produktinfo.conrad.com/datenblaetter/ 225000-249999/230501-da-01-en-TopLine_Mini-Servo_ES-05_FUT.pdf
an image here: http://www1.conrad.de/m/ 2000_2999/2300/2300/2305/230500_RB_00_FB.EPS.jpg
Tx for the help, again /a
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list