
frankcottnj
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
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
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
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
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
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
Actually, that is a legend (well, not the part about Vodka), but it makes a good point.
Alan
LM 3915 Robotic LED mouth test: http://youtu.be/se1hc8p_AIc
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
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.
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.
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
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.
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
I haven't set up the multiple LED's yet, but the project attached to the first post in this thread http://www.ez-robot.com/Community/Forum/Thread?threadId=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
I'll give that a try tonight.
Thanks!