Run the InMoov2 head on arduino uno

Hello

Is possible to change dafault board in inmoov2 scripts to uno and change some pins?

 

wvantoorn's picture

Everything is possible, but

Everything is possible, but it all depends on what you want to do, and with what you want to do it!

short answer yes, but im answering on my phone, so cant pull up my file.

please tell us as detailed as possible what you want, and what you need, so we can help. Also what version mrl are you using? Earlier version have some different python thinges, so please be detailed and we can help you the best we can!

Darek's picture

Currently I have printed

Currently I have printed inmoov head and torso. Also I have free uno. So I would like to run all possible services for head  base on uno.

I'm using mrl 0.98 or  0107 version
Old scripts doesn't work. New scripts are base on arduino mega. Mrl  looks for  flexible, so I think that will be possible setBoard or setPins in new mrl.

wvantoorn's picture

Scripts arent based on mega

Scripts arent based on mega or uno, but on services, and i tried and used an uno for head and neck. If you use mrl version 1.0.099 and right version of mrlcomm, you could make it work quit easily.

setpin should work, but my python isnt working today, sorry, thats why im on bed using my ipad, so cant show you how i did it. But anyone here can help.

 

And yes anything can be done with MRL, if a machine has an ic, mrl can control it! (ambassador mode off) 

Darek's picture

I uptade mrl to 1.0.99 send

I uptade mrl to 1.0.99 send new  mrl.comm to uno but setPint doesn't work still.

headPort = "COM15"

i01 = Runtime.createAndStart("i01", "InMoov")

mouthControl=i01.startMouthControl("COM15")

head = i01.startHead(headPort)

headTracking = i01.startHeadTracking("COM15")

i01.headTracking.startLKTracking()

i01.startEar()

i01.head.neck.setPin(8)
i01.head.rothead.setPin(12)
i01.head.jaw.setPin(9)
i01.head.jaw.setMinMax(10,75)
i01.head.jaw.moveTo(70)
i01.mouthControl.setmouth(75,55)

wvantoorn's picture

Darek,  https://github.com/My

Darek, 

https://github.com/MyRobotLab/pyrobotlab/tree/master/home here you find all the scripts, and how they work, also find in a script the comport, change only there to the right comport, and not anywhere else.

but my ipad is not working right, so wait for others to respond and learn from the scripts in the mrl pyrobotlab.

Alessandruino's picture

try adding a i01.detach()

try adding a i01.detach() before all the setPin lines, and a i01.attach() after you set pins

Darek's picture

Thanks you guys. Now is much

Thanks you guys. Now is much better....
 

If I don't have eyes servo, so face tracking should work? (in script above)

Alessandruino's picture

yep...in order to activate

yep...in order to activate the face tracking use this line of code after all :

i01.headTracking.faceDetect()

harland's picture

using uno bd for head

if you check my scooter.v21 py code i used a uno bd. for the head on scooter. code is under downloads at 

github.com/MyRobotLab/pyrobotlab/tree/master/home/harland