Canada
Asked — Edited
Resolved Resolved by DJ Sures!

Sound Servo Error

I continue to get a Sound servo error. I have been unable to solve this problem on a project I have been working on, so I started a whole new project to try to trouble shoot it further.

In this new project I only have 3 servo's connected; 1 for Pan; 1 for Tilt; and one for the sound servo. When I run scripts involving these 3 Servos I get no error messages. When I add a camera to the project I get the error message below;

10/17/2014 9:04 AM - Welcome to EZ-B v4 Beta! 10/17/2014 9:04 AM - EZ-B v4 ID: 44-54-0-0-47-255-59-58-62-37-38-38 10/17/2014 9:04 AM - Connected 10/17/2014 9:04 AM - Setting battery monitor voltage: 6.0 10/17/2014 9:04 AM - Setting battery protection: True 10/17/2014 9:04 AM - Setting i2c rate: 100000 10/17/2014 9:06 AM - Sound servo Error: Object is currently in use elsewhere. 10/17/2014 9:06 AM - Sound servo Error: Object is currently in use elsewhere.

I has tried the EZ-Robot camera and a Microsoft camera and I get the error message with both.

In another project I am running the Ez-Robot camera and no Sound servo and I do not get the error message.

So that's telling me that this error is somehow related to the use of a camera in a project with a sound sound servo . Doesn't make any sense to me.

Any thoughts - starting to drive me nuts!

Any help would be appreciated. Thanks


ARC Pro

Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming

#9  

$rsstext = filereadline("C:\somedirectory\somefile.txt")
say($rsstext)
filereadclose("C:\somedirectory\somefile.txt")
filedelete("C:\somedirectory\somefile.txt")
$rsstext = ""

you would just need your process to write the text to speek to C:\somedirectory\somefile.txt

Sorry, im at work and dont have much time, but I do this after I parse RSS feeds to clean up a lot of the garbage characters that in RSS feeds.

you can also use the sayEZB command instead of the say command above.

#10  

Thanks, and then how would I get a servo to move in sync with the text? That is what I am ultimately striving for. For example; Have a servo (not the Sound servo) move in sync with Sayezb("Hello world. How is everybody today").

#11  

ah, i gotcha. What I would do is just attach a 360 servo to the jaw, and have it rotate to move the jaw if you want the jaw to move. It wouldn't match with the text but, it could move and be started and stopped with the script.

I guess to me its not that important of a feature but I understand that it is to some. I am building an InMoov also, but dont see the jaw moving as a concern. I would personally rather that this robot could do sign language than move its jaw. I see a real application for something there. Having a robot that could understand what someone says and then sign it would be really cool, but I went way off topic.

#12  

Right on, To each his own. I want the jaw moving in sync with the text.

Thanks again