Asked — Edited

Sound And Servo Control Bp Talk Board

I have the BP talk board that controls the servo by sound. If I plug a headset male plug into my headphone on the PC and run it to the talk board the servo works fine but I lose the sound. Should I split the cable and run a speaker in parallel with this so I can get the sound back or does does the software have an option to not shut off the PC's speaker. Bottom line I need to hear the voice coming from computer.

I guess the other option is to leave headset port on PC along and put a mic on the talk board but I really don't want this because of background noise.

Sincerely Frank, EZ Ver 4


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

#1  

I have a similar setup, but I have a light controller, instead of a servo controller. I used one of these, and put in a separate set of speakers. The external speakers sound much better anyway. "Y" connector Note; you can probably pick one up at Radio Shack. I just used the link to show it in a picture.

#2  

Depending on your computer hardware, you may be able to get both the plug and internal speakers to work together. Right click you speaker icon in the quicklaunch bar, and select "Open Volume Mixer"

Under "Device" you will see your currently connected device, and a little drop down arrow after it's name. If you click the arrow, it will show all of your devices. Select (if available) the internal speakers (name will vary depending on the driver) then, once selected, unclick the mute button.

You should now have sound from both sources.

Again, depending on hardware and the specific drivers, you may need to do this every time you boot up or unplug and replug the external source. I do on my HP Laptop:(

Alan

United Kingdom
#3  

Simple answer - yes, you can use a Y adaptor (which is essentially the same as running in parallel). Personally speaking I wouldn't over complicate things with using more than one output on the PC etc. If you run the speaker in parallel with the source for the servo board both speaker and servo board get the exact same signal and are in complete sync. No messing about, no fuss and a very cheap (or simple to make) Y adaptor.

PRO
Synthiam
#4  

You can also remove the BP talk board and replace it with the EZ-B v4. The EZ-B v4 has a Sound servo that does not require a microphone. It merely moves specified servos for any sound that plays through the EZ-B v4.

The v4 is a different beast, and does not require a microphone on your PC like the v3 did. The v4 has embedded audio so it all just happens magically:D

Brazil
#5  

hi... I just got my ez-b v4 ! perfect. But my firts question is about sound sync. How can I send the PC voice TO EZ-b ?! it works great with SoundBoard, but the voice (the microsoft one, that I use for general speech) still got going trhu PC speakers..

#6  

Simple, use the command SayEZB("Hello") instead of Say("Hello")

Brazil
#7  

YEAH! Just found it. Thanks.. BTW do you know if there is some threat that helps me to connect the EZB as client on my network ? I was able to configure it with my network, it says that is logged in that, but.. I cannot find it on ARC...

Brazil
#9  

yeah.. I've already try that.. It goes ok.. but when I try to find the IP adress.. got nothing!..

#10  

From the experience of other people in this community, the issue has been with the router itself. There have been a couple of different posts on this over the past few weeks. They were resolved by getting a new router. I will go dig them up and put links in this post for you.

#12  

@DJ Sures,

you said:

Quote:

The EZ-B v4 has a Sound servo that does not require a microphone.

Can you explain this... and there any examples from youtube videos using this feature?

You also said:

Quote:

The v4 is a different beast, and does not require a microphone on your PC like the v3 did. The v4 has embedded audio so it all just happens magically Grin

Does this mean, the EZB4 had a built in microphone? So I have a script that listens to "Robot Move Forward" I don't to say it to my computer mic?

Thanks, Aliusa

#13  

@aliusa... there is no built in mic on the ezb4, just a cell phone sized speaker... You speak to the mic on your pc only...

#14  

@aliusa,

The V4 doesn't have a mic. It does have an internal speaker and breakouts on the bottom of the V4 board to pass already amplified sound through another speaker, or to pass unamplified sound to an amplifier, then on to as large of a speaker as your robot can carry.

You can use a bluetooth headset or mic that is attached to your computer. Spoken commands would be heard by the computer and the resulting action of a script would then go to the robot.

The computer controls the robot and there is nothing currently that places the mic inside the robot due to robots being very noisy and the motors causing a lot of electrical interference with other electronics. There is not a place natively on the V4 for a standard mic to plug in either. The best that I have seen done is use the analog ports to identify where a sound is coming from, but that is all I would want my robot to do. Because the robot is being controlled by the computer via tethering through wifi, your microphone should be connecting to your computer and outside of the robot body to prevent issues.

Also, because voice recognition is trained, it becomes hard for different people to communicate with the robot, especially those who are meeting your robot for the first time. I have about 28 students. I write scripts for a robot to work and train it. My voice is deep so whey they try (4th and 5th graders) the robots dont work and we dont have time to spend training their voices. This is a limitation of the voice recognition system in Windows and not something that ARC can control.

I hope this helps.

#15  

Thanks that what I thought but wasn't sure what DJ meant in his post.

What is a sound servo?

@d.cochran EZB would be a good demo for students during National Engineers Week... Which was one of the main reasons why I purchased the kit. That and plus I had omni bot collecting dust.:)

Thanks

#16  

Sound servo is a control within ARC that makes a regular servo move with sound... You can use it to control a servo in a robots jaw to make him look like he is actually talking....

#17  

@Richard R,

That would come in handy actually -- but I'm still a few weeks away from that. I just got him to move with a new set of gears:)

Would it possible use the sound servo to trigger LEDs instead of servos?

Thanks, Aliusa

#18  

Quote:

Would it possible use the sound servo to trigger LEDs instead of servos?

Not directly, but the sound servo object also sets a variable "$SoundValue" which you could use in a script which adjusts the PWM of a digital port with an LED plugged in, so the louder the sound, the brighter the LED glows (or you could just have it flash on and off, or if using an array of LED's and a TIP120 circuit to power them all on and off... virtually endless possibilities).

Alan

#19  

@thetechguru My goal is to make the mouth light up when there's sound through the EZB.

#20  

One LED or many? Just on and off, or brighter the louder the sound?

What you want to do is possible. If you want step by step instructions, I would need a lot more information about what you want to do and what you are trying to do it with.

Alan

#21  

I have one of these... They respond to sound levels flashing a led or any other 12v light according to the sound level... Sound sensor LED

#22  

Quote:

I have one of these... They respond to sound levels flashing a led or any other 12v light according to the sound level... Sound sensor LED

that is a nice, simple, and cheap solution. Sometimes I get too wrapped up in figuring out how to do something with the EZ-B when a super simple and inexpensive solution already exists that could work beside, rather than as part of it.

Alan

#23  

Ha, Ha @Alan.. During the Apollo missions the American astronauts took expensive complicate nitrogen pressurized pens into space to compensate for writing in zero gravity... The soviets took pencils..... and probably a lot of vodka too...:P

#24  

Quote:

During the Apollo missions the American astronauts took expensive complicate nitrogen pressurized pens into space to compensate for writing in zero gravity... The soviets took pencils..... and probably a lot of vodka too...

Actually, that is a legend (well, not the part about Vodka), but it makes a good point.

Alan

#26  

I have asked @Steve G to pop in here since he is doing something very similar in his K9 2.0 project, and no sense re-inventing the wheel. I absolutely know how to do this with an EZ-B and a separate digital port for each LED. I am not much of a circuit wizard, but I think I know how to wire the LED's to use either a single digital port or the device Richard linked to have a similar effect (where the center is brighter than the edges, and all get brighter, or as you move out toward the edges turn on based on the volume or inflection of the speech), but I would like to hear from someone who has already done it before I start wiring things up and writing scripts.

Having seen Steve G's K9, I may want to do something similar with my Steampunk dog, so I am happy to help figure this out.

Alan

United Kingdom
#27  

@Alan.

As promised, here is how I did K-9's mouth. Some may say it's cheating but because of limited funds at the time during the build, and being rather new at this, I went for the K.I.S.S way of doing it. :P

Quite simply, I purchased a 3 wire sound responsive EL wiring kit, drilled holes is a peace of plastic (originally wood) and threaded the wires through. The different colours seem to have different frequency responses which made the bouncing "KITT" voice box effect, which was a bonus and unexpected. I extended the power cables, threaded through K-9's neck in the the body, and placed the battery pack/microphone near the on-board speaker.

The unit has sensitivity adjustment which works great, as I managed to set mine so it wouldn't pick up any servo or motor noise, but picks up the voice absolutely fine. Here's a link to the unit.

Hope this helps.

User-inserted image

User-inserted image

User-inserted image

User-inserted image

User-inserted image

#28  

So, we have off-the-shelf complete EL wire solution from Steve G.

Using the solution Richard R posted, if you connect multiple LEDs, they will all respond the same (brighter the louder the sound). You will need to know a little about electronics to determine whether to connect in parallel or series and how much voltage to supply and how big the resisters need to be on the LEDs, but a little research could get you there pretty easily.

I am pretty sure if you wire LEDs in series, with resistors between each one, when you connect that device to the first LEDs in the series, you will get exactly the effect in the linked video. (ie, the center LEDs would be closest to the power source, so they would turn on at low power when the others don't, and they would be bright when the others are just turning on).

The same could be done a single digital port on the EZ-B using a PWM control. To drive more than a couple of LEDs you would also need a TIP120 circuit and external power matched to the input of the LEDs (you could use a voltage regulator, resistors, or a combination. If you are supplying your EZ-B with 7.4 volts, you could probably use the power pin (not the signal pin) from your EZ-B to provide the voltage.

In the next few days I'll throw something together using 5 LEDs and 5 digital ports and an example script/project that will do the same function, but no additional circuits. Just EZ-B and as many digital ports as you have LEDs. So, super simple, but uses a lot of ports.

If you want to try yourself before I get to it, the concept will be that I will put a sound servo object in my project, but configure it to a virtual servo port.

I'll then create a script using WaitForChange and will use the value of the $SoundValue variable to determine which ports and how much PWM to supply every time it changes.

Alan

United Kingdom
#29  

What I would like to do in my next project is to connect a couple of EL wires directly to the EZ-B and control the light phasing from there.

I do have a question which may sound a little dumb or obvious. What voltage bulbs should be used to connect two LED's to one digital port with a 7.4v LiPo powering the EZ-B. I Suppose what I'm asking about is safty margins to comfortably run two LED's without under or over volting them.

#30  

The signal pin on the EZ-B can deliver 3.3 volts at 20 mA (I am getting the 20mA from other posts. It isn't on the datasheet, so it might be higher. I know it is not lower), so if you want direct control with no additional circuitry, you can use that to pick your LEDs (there is a wide variation in voltage and amperage on LEDs, so you will need to check their specs and do the math).

If you need more voltage or amperage, you can use a TIP120 transistor circuit to use the EZ-B signal pin to control but either the EZ-B power pin or external power to actually provide voltage to the LEDs.

I need to do some videos soon. On my ROLI, I have a superbright LED "headlight" mounted on one side of the camera, and a 5v laser diode on the other side. The LED is directly connected to a digital port, and I adjust the brightness with a PWM control.

The Laser worked, but was not bright enough at 3.3 volts, so I built a TIP120 and 5V regulator inline circuit so it is powered by the 7.4 v EZ-B input, but switched with a PWM control. I uses PWM instead of Digital On/Off because although 3.3 v was too weak to make a visible spot at any distance, 5v made a very bright spot, and since one of the primary uses for this is to play with the cat, I wanted to reduce the chance of accidently blinding her (or a person I guess), so I set the PWM to about 35% and it gives a decent spot without being too bright.

(note: if anyone wants a red laser diode, I got a pack of 10 for $6 through Amazon. http://www.amazon.com/gp/product/B00RABH0NM/ref=oh_aui_detailpage_o03_s00?ie=UTF8&psc=1 )

Alan

United Kingdom
#31  

Great. Thanks for the response Alan. That cleared things up a bit. What I'm looking to do is connect two LED's in series to one port to act as eyes, and blink at random intervals. I hope you do get around to doing a video or two on this. I'd be interested to see them.

#32  

@Steve, Im doing that too. But the LED wasn't very bright as it should be. Im hacking an omnibot.

#33  

@aliusa

I haven't set up the multiple LED's yet, but the project attached to the first post in this thread https://synthiam.com/Community/Questions/7167 uses a script to monitor the sound servo's variable and vary the PWM going to an LED when the script containing speech is run.

The sound servo EZ-B required no configuration since I am just using its variable and not actually driving a servo.

Connect an LED to port D11, run the Sound LED script, and then run the Speech Test script. Adjust Sound servo settings (speed and scaling) and scripts (port used, speech spoken, etc) as needed.

Alan

#34  

@thetechguru,

I'll give that a try tonight.

Thanks!