I want to try to put all servos on one arduino mega, and am not sure where to look. I know it has to be in a file, and yes i could write my own script in python and assign the oins that way, but i want to use other scripts fast and simple.

 

GroG

10 years 3 months ago

There is not a single mega InMoov script ..
but we could make one .. then there would be one :)

Interested?

wvantoorn

10 years 3 months ago

Yes, that would be great, im not sure if that could be copy pasted into other scripts afterwards to make it worky for one mega?
So when somebody makes a script that i wanted to use, i could copy paste that single mega script in and it would work. Not sure if it would be alot of work, but would be great, and my py.fu isnt that great right now, so any help would be great!

GroG

10 years 3 months ago

what script do you "want" to use ... mebbe you pick that out first ... and then we'll make it work with your single mega

I think that might be a good battle plan

wvantoorn

10 years 3 months ago

Holy crap i knew it, your mexican mob!

I was tinking abou [[InMoov2.full3.byGael.Langevin.1.py]]

GroG

10 years 3 months ago

Ya, ok .. lets start small .. lets just move the pins on a Hand

i01 = Runtime.start("i01","InMoov")
rightHand = Runtime.start("i01.rightHand","InMoovHand")
rightHand.thumb.setPin(20)
rightHand.index.setPin(21)
rightHand.majeure.setPin(22)
rightHand.ringFinger.setPin(23)
rightHand.pinky.setPin(24)
rightHand.wrist.setPin(25)
i01.startHand("right", "COM12", "mega")

wvantoorn

10 years 3 months ago

Ok Grog, i get the picture, gonna try to adjust Gaels script according to the servo board pinout, its a bit confusing, because jaw is on 26, eyes on 22 and 24, an the neck and head are on 13 and 12.

 

And logic would state that they would be close, to fit on a single servo board. But now that you gave the right rules to change the pins in the script, i can try to reroute the pins to make it more logic.

Seeing that there will be more servo's to come, it would make sense to put some parts and pins in groups, say right hand would be 2,3,4,5,6,7 and right arm would be 8,9,10,11 ( this beeing an example, have to look at the little boards to make right numbers).

 

Thank you Grog. Ill make an tuto with pics for the too come servo boards and the possibility to adjust the pins to make it fit to the settings a user has.

 

Wilco

I really recommend you start "small" - just do a hand, and verify it works the way you want before you convert the Mega script !

Saves your hair from being pulled out !

wvantoorn

10 years 3 months ago

Can that be a shoulder, having trouble stringing the hands so i thiught to begin with shoulder. And no, not first gaels script, but. If all works...