<HTML><BODY>Ok. nobody answered, so i do it myself. <br><br>so the problem was , that it is nowhere described how to controll continues servo (the 360-servo in which PWM controlls not angle, but speed and direction) with PDUINO.<br>as no one answered this post i suppose - nobody knows it, or doesn't care )) <br>Hans-Christoph Steiner (author of PDuino) wrote to me, that he is not working with arduino for a long time. <br>Here's what i had to find experimentally. <br><br>1) need to switch pin to servo-mode in pduino interface<br>2) after that you can use pduino's servo-slider to experimentally find the proportions in which your servo is controlled, but doing it slowly and gradually. <br>3) then most probably you will need to send to the [arduino] abstraction the analogue messages like [ analog 7 0.88 ( - in my case i use 7th pin to control the FS5103r speed and direction.. some of the values will mean STOP.. and higher and lower this value will mean forward and backward.. <br>4) and all the changes should be gradual, but not jumping values, because the jumpings are too fast for the comport - that was the reason of it's overloading.<br>5) this means, that if you will need to change speed - you will need to use [line] object and find the appropriate speed of the ramp experimentally. <br>6) in case of pduino it also means that you can't do a thing like: going one way with high speed <-> going back with high speed.. because you can't switch speed immidiatly and always need to go through a STOP-value ..  don't know if it is common for the comport and all continues servos.. <br><br>thanks <br><br><br>Mon, 15 Sep 2014 06:19:06 +0400 от Фывапр Олджэвич <tofuckof@inbox.ru>:<br>
<blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
        <div id="">
        



    









        
        


        
        
        
        
        

        
        

        
        



<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
        <div>
                <base target="_self" href="https://e.mail.ru/">
                
                        <div id="style_14107479050000000681_BODY">
<span style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;">Dear List . <br><br>I'm trying to control Servo FS5103r (continuos rotation servo) with PDuino 0.5 via Firmata which was included into Arduino 1.0.4. . I use PureData 42.5. </span><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;"> </div><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;">I can't understand how to controll this servo. </div><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;"> </div><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;">When i just send to the digital outpin 0 and 1 every 20 or 10 milliseconds - i can control the direction of the motor (forward and backward), but it is very unstable. Finally it ruins comport with </div><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;"> </div><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;">[comport]: WriteFile:GetOverlappedResult error: 31</div><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;">[comport]: WriteFile:GetOverlappedResult error: 1167</div><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;"> </div><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;">If i switch the pin to SERVO-mode in PDuino interface - the motor just starts to go in one direction (slowly) .. and i don't know how to turn it to another direction or how to switch it off.. </div><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;"> </div><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;">Is there any tutorial on how to control servos with the PDuino ?</div><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;"> </div><div style="color: #222222;font-family: arial;font-size: small;" data-mce-style="color: #222222;font-family: arial;font-size: small;">Thanks !</div>

</div>
                        <div>_______________________________________________<br>
<a href="/compose?To=Pd%2dlist@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
</div>
                
                <base target="_self" href="https://e.mail.ru/">
        </div>

        
</div>


</div>
</blockquote>
<br></BODY></HTML>