Hi,
 
The minimal sript for hand is:
 
rightPort = "COM8"
 
i01 = Runtime.createAndStart("i01", "InMoov")
i01.startRightHand(rightPort)
 
but every servo-motors used default pins.
 
Is it possible to define another pins to connect my servo motor ?
 
The aim, i would like to use a nano with mrlcom in the arm. (another arduino than the right mega).
 
Dom

moz4r

7 years 11 months ago

Yes you can

You must declare a servo with the same name of servo from inmoov service :

right = Runtime.createAndStart("i01.right", "Arduino")
rightPort = "COM8"
pinIndex=6
rightHandIndex = Runtime.createAndStart("i01.rightHand.index","Servo")
rightHandIndex.attach("i01.right",pinIndex,90,0)
i01 = Runtime.createAndStart("i01", "InMoov")
i01.startRightHand(rightPort)