Inmoov Doing Math

bhouston

Canada

A short video of my InMoov doing math. Thanks to the Community Members who helped me out with the script for this using my EZ-B v4 and ARC

By — Last update

ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

#1  

@Bob... Simply awesome!... Every time I see your videos of inMoov, it never fails to seriously impress me... :)

Trinidad/Tobago
#3  

That is so wicked:D but what happens if he doesn't have enough fingers for the number? lol

PRO
Synthiam
#4  

I'm speechless - absolutely blown away!

Belgium
#5  

Unbelievable ! You're a true robot master !

#6  

So cool! I gotta build one of these for sure! Very sweet!

#7  

Here's the main script for "Doing Math". There are several sub-scripts that need to go with this but working off of this main script you should be able to make your own sub-scripts to suit your robot. Let me know if you need any additional information.



Say("ok, I like doing math")
ControlCommand("Script Manager", ScriptStart, "Repeat speech3")

sleep(500)
ControlCommand("Script Manager", ScriptStart, "Do math")
sleep(5000)
say("ready")
ControlCommand("Script Manager", ScriptStart, "repeat speech 1")

:start
$heard = "speech"
WaitForChange($heard)
if($Heard = "won")
$x = 1
elseif($heard="two")
$x = 2
elseif($heard ="three")
$x = 3
elseif($heard = "four")
$x = 4
elseif($heard = "five")
$x = 5


endif

WaitForChange($heard)
if($heard = "plus one")
$y = 1
elseif($heard = "plus two")
$y = 2
elseif($heard ="plus three")
$y = 3
elseif($heard ="plus four")
$y = 4
elseif($heard = "plus five")
$y = 5
#print($x + $y)
EndIf


WaitForChange($heard)
if($heard = "what does that equal")
servo(d0,150)
servospeed(d0,3)
servo(d1,90)
servospeed(d1,3)
say("ummm")
ControlCommand("Script Manager", ScriptStart, "repeat speech 1")

ControlCommand("Script Manager", ScriptStart, "Close right Hand")
ControlCommand("Script Manager", ScriptStart, "Close left hand")
Sleep(2500)
Servo(d0,116)
servospeed(d0,3)
servo(d1,118)
servospeed(d1,3)
sleep(2000)
$sum = Abs($x + $y)
Say($x + " plus " + $y + " equals " + $sum)
ControlCommand("Script Manager", ScriptStart, "Repeat speech3")

endif

#print($x + $y)


if($sum = 2)
ControlCommand("Script Manager", ScriptStart, "equals two")
elseif($sum = 3)
ControlCommand("Script Manager", ScriptStart, "equals three")
elseif($sum = 4)
ControlCommand("Script Manager", ScriptStart, "equals four")
elseif($sum = 5)
ControlCommand("Script Manager", ScriptStart, "equals five")
elseif($sum = 6)
ControlCommand("Script Manager", ScriptStart, "equals six")
elseif($sum = 7)
ControlCommand("Script Manager", ScriptStart, "equals seven")
elseif($sum =8)
ControlCommand("Script Manager", ScriptStart, "equals seven")
elseif($sum = 9)
ControlCommand("Script Manager", ScriptStart, "equals nine")
elseif($sum = 10)
ControlCommand("Script Manager", ScriptStart, "equals ten")
endif

sleep(4000)
ControlCommand("Script Manager", ScriptStart, "Close right Hand")
ControlCommand("Script Manager", ScriptStart, "Close left hand")
Sleep(500)

GoTo(start)

#9  

Very cool! Excellent fabrication!

Did you make the hands?

#10  

@EEGBioFeedBack Yes I did. Check out www.inmoov.fr - all of the robots STL files are available there for download.

#11  

Very nice work..... What audio amp hardware are you using ?

#12  

@Robot-Doc I am using an amp I hacked out of a cheap set of speakers, the speakers are mounted in the robots ears. The sound system is running off of the computer, so I can get the volume I need. I had everything hooked up to to come thru the EZBv4 but I fried the sound board in the v4. I need to research and build a a better system to come thru the v4.