Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked — Edited

How To Control Servo Moving When Play Music Or Audio?


Anyone can help to control the servo moving during play music? EZB4 have a talk servo function for text speech. But how about the music or audio?

I have tried the Sound board(PC) and Sound Servo(PC Speaker) to play the Music file, then the sound servo screen have a wave form, but the servo motor is not active(It already set min. & max number).

Pls. note the attached picture for ref.
User-inserted image

Can anyone help to answer this question?

Thanks a lot!;)


Upgrade to ARC Pro

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

AI Support Bot
Related Content
United Kingdom
"Soundboard EZB" will do what you want.


But if you want to use the "Soundboard PC" and "Sound servo (PC speaker)", you can use a simple script. Add an "Ez-Script" control to your project, and, as an example, add the following example script...


#Assuming servo is connected to port D0

if($SoundValue >30)
elseif($SoundValue <29)

When the sound level goes above 30, the servo will move to position 180.
When the sound level is below 29, the servo will move to position 1.
Play with the "Update Speed" and "Scalar" settings, and the servo positions and length of sleep()'s in the script to suit your needs.
Hong Kong
Hi Steve

Thanks your help again:D

Yes, I have copy & paste your script to EZ-script, but it pop up the message...
Pls. see the picture file.

User-inserted image

And I have try to use the Sound board EZB & press the edit button, it is not show the wave form and pop up error message.. why?
Pls. see the picture file.:(

User-inserted image

So depression....:(
Hi, in line 3 of the code it should be ":loop" not "loop"
United Kingdom
Sorry, typing error. That should be...


Hong Kong
Hi Steve & Proteusy,

Thanks a lots!

So, do you know what wrong with my sound board ezb problems?

My music is MP3 and then import and press the edit button, it can not shown the wave form and pop up the error message box!

Appreciated for help!;)

Post your project with the soundboard EZB in it so one (or more) of us can test. I suspect we might have another locale/internationalization issue, but I am not sure. Would like to see what the error message is saying in English if the problem is duplicated on US systems. Can you tell us what that error message is saying?

Might be good to make a zip file and also include the MP3 you are using, so we can see if it is an issue with the music file itself.

Hong Kong
Hi Alan,

Yes, I will do that before Sat! Thanks for your reply and help!;)
Hong Kong
Hi DJ,

Great! it work normally now!

Thanks a lot!;)