I am running the  "minimalhand.py" script.

The pinky, ring finger and majeure were running backwards, so I edited thes lines (in red):

##############
i01.startRightHand(rightPort)
# tweaking defaults settings of right hand
i01.rightHand.thumb.setMinMax(25,150)
i01.rightHand.index.setMinMax(40,150)
i01.rightHand.majeure.setMinMax(40,150)
i01.rightHand.ringFinger.setMinMax(30,115)
i01.rightHand.pinky.setMinMax(35,125)
i01.rightHand.thumb.map(0,180,25,150)
i01.rightHand.index.map(0,180,40,150)
i01.rightHand.majeure.map(180,0,40,150)
i01.rightHand.ringFinger.map(180,0,30,115)
i01.rightHand.pinky.map(180,0,35,125)
#################

 

Now all the fingers are moving correctly, I can open and close the hand with voice control, but the manuak sliders on the fingers that I edited do not move.

 

Is there something else I need to change?

As you can tell, I am not a programmer, but I could use some help learning how to make these scripts work.

Thanks!

 

Artemus

 

oldfarmhand

8 years 6 months ago

by any chance are your lines from the fingers inverted

Artemus

8 years 6 months ago

In reply to by oldfarmhand

Yes, the "tendons" must be reversed, but I thought it would be easier, and give me a chance to get familiar with the code, to revese them with software instead of disassembilng the hand.

How are you coming with your project? Looks like we are at about the same stage.

GroG

8 years 6 months ago

Instead of this :

i01.rightHand.ringFinger.map(180,0,30,115)

Do this

i01.rightHand.ringFinger.map(0,180,115,30)

The "input" on the left will always be 0 - 180 from the gui ... you just want to reverse & change the output

Cheers !

Yes, that works!

 Now I can see that this Python script must be passing these lines to the MRLComm script running on the Arduino. and the "map" is an Arduino function.

I am still trying to reverse engineer this but having trouble figuring out what parts of the script is Python and what is  Arduino

 

Thank you, GroG!

oldfarmhand

8 years 6 months ago

I 'm about 80%  with the printing been spending a lot of time making gearboxes run smooth and pulling the pots to do external hook up. I loved making the head and mouth with all of the servos.

 Did you get the nervo boards? It sure helped in the wiring up along with the stl files for the mounts

I have avoiding the two adrunios mega's because of the python script

Yes i have Nervo boards, they are nice for cleaning up the wiring.

From your other posts on "Trying to learn the basics of MRL"  I see you had trouble connecting your Mega  to COM4, did you ever let Grog connect with a remote desktop connection? What kind of PC are you running and what OS?

Maybe we should move this thread back to the original folder Trying to learn the basics of MRL, you can answer there?