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
Resolved Resolved by Redzone!

Tuttorial About Talk Servo For Leds

hi

is there a window for talk servo with led?insteadt of inmoove mouth opens,
while talking,but with a led then.


ARC Pro

Upgrade to ARC Pro

ARC Early Access will give you immediate updates and new features needed to unleash your robot's potential!

AI Support Bot
Related Content
Synthiam
PRO
Belgium
#100  
ezang

do you use desame sound servo pc for moving the mouth?
PRO
USA
#101  
moving a mouth, like my Mr. Roman, I use the talk servo

EzAng
PRO
Belgium
#102  
okay thanks .i saw your video.
PRO
USA
#103  
Thank, good night
#104  
I had to go to work. I'm back, I'm going to do my best to try this again without slamming my fist through the wall...

Here's my project. 
User-inserted image


Sound servo Mic...
User-inserted image


The blocky code to tell the LED what to do.... (Port D14 is where the LED has been successfully connected, so the code is modified to incorporate port D14.)
User-inserted image


The script of a bit of test dialogue...
User-inserted image


The settings for my PWM control.
User-inserted image


I raise the slider on the PWM (which immediately snaps back into the OFF position), I hit the START button on the script controls, and THIS is the result.


It's talking, but we don't SEE it talking. And even if we COULD see it talking, it would look like THIS.


I want the talking LED to be as bright as the eye LEDs, and I want it to flash with each spoken syllable, but neither action is taking place. When it DOES work, it's stuck at a barely visible random flicker, and it continues even after the speech has stopped.

"i see only one pwm in his project."
No mention of needing more than one PWM was made before now. 

"Or a simple script to turn on and off:"
I just tried that new script you provided.
User-inserted image


This isn't giving me the effect I want.

 

"I see you have sound servo mic. you need sound servo (PC)"
This is EXACTLY what I've been talking about this entire time; these are the most confusing, unclear instructions I've ever read in my life. Nomad said that I needed "servo mic".  I pointed out how there ISN'T any control listed as "servo mic", that there are instead FIVE different sound servo Controls, and even after listing each one by name, all he said was "Sound Servo".  I switched over to Sound servo (PC) after you made that suggestion, and THAT didn't work either. (Post #73) 

But okay.... Just for the sake of argument.... Just to show you that I'm honest-to-everything-holy TRYING here...  I'm going to re-insert the original code combined with the Sound servo (PC) control....

New set-up....
User-inserted image


Sound servo (PC)...
User-inserted image

Original LED script, modified with $Soundv4Value and D14...
User-inserted image


The final result....


*sigh* No... It's still too dim, it's not blinking in sync with the dialogue, and it prematurely stops blinking before the dialogue is completed.  Then again... it actually TURNS OFF when it's done talking.

I'm exhausted....
PRO
Belgium
#105  
Bobsheaux

the sync off the LED  wil not work 100% correct.you will need to try diff kinds off LED.
you wil need clear LED with higher MCD .some between 500 and 1000 mcd
also you can tinker a little with these settings .

User-inserted image

there is another way to get beter sync for the LED ,that is solder the wire on the pads from the speaker.
any sound that comes out the speaker,the LED will flach same ritme.here a video.



this way you cant cotrole the LED itself.
PRO
Canada
#106  
Hi @Bobsheaux,

There are a couple methods in hardware that you can do. As Nomad mentioned you could use a Super Bright LED that has a high millicandela (mcd) value.

Another way to make it bright is to use a transistor and adjust the resistor so that more current gets to the LED. An LED hooked up to an EZ-B I/O port is limited to 10mA by the on-board resistor but you can still use an I/O port to control a transistor to get access to more current.

Rich wrote a great tutorial here about using a transistor to control a bulb. A TIP120 is a bit overkill for your application but you can use the same concept with a common 2N3904.

One thing to note is that with PWM you'll always want to stay near the higher percentages for your on time as that will keep the LED bright. 

Come to think of it, I like Nomad's idea of using the speaker voltages to activate the LED, it would need to be attached to the amplified side of the amplifier (extra speaker pins), combine that with a transistor circuit and I think that could work well.
PRO
USA
#107  
hi Bobsheaux,

I see you have sound servo mic - wrong

under servo
you need sound servo (PC)

EzAng
PRO
Belgium
#109  
hi bobsheaux

iff you take for excample a white wire and solder on the SPKR .

then connect the ezbv4 to your arc.

then touch with the wire the pins off the speaker.only one way will work.

as jeremie stated color positif or min does matter. 

User-inserted image


here you see color red on the left side.but it works also with the red on the left.

its the other side of the wire thats going on the speaker that you need to test,
#110  
Okay, but how did you attach your LED to your speaker? You said you soldered it to the pads of the speaker? The soldering I understand, but what/where are the pads of the speaker? Apparently it doesn't matter in which direction you solder the wires of a speaker to the EZB, but I wouldn't think that's the case with LEDs, right? The proper position of positive vs. that of negative DOES matter, doesn't it?
PRO
Belgium
#111  
these are the pads off a speaker.

User-inserted image

it doesn matter on the ezbv4 what + or - is.

but on the speaker or LED you have to test wish wire goes where.

you can use colored wire if that easier to remember witsh color goes where.

1 solder a wire on the ezbv4 ( long enough ) see pic ptp

2 strip the wire on the other side .

3 connect your ezbv to arc

4 play sound file or sayezb

:loop

sleep(2000)

sayezb(" testing my speaker ")

sleep(2000)

goto(loop)

5 tough with the wire the pads from the speaker ,if you dont hear sound switsh sides .mark one wire so you know  wish pad it goes.

6 sound file is still playing ,now connect the LED and see if it lids up ,if not swish sides and mark one off the wire.

7 connect the wires that youve marked together ,and connect the two together that doesn is marked.

8 solder the wires on the pads or you can use one off these see pic.

User-inserted image
#112  
But where am I connecting the LED? The speaker has positive and negative terminals, you hook those up to the EZB, but where on the pads do you put the LED? I need to reiterate the point that I'm not trying to be confused or argumentative here, but it sounds like you're telling me to just put the LED anywhere and that will work.
PRO
Belgium
#113  
read number 7 in post 111

after you tested witsh wire goes where.

User-inserted image
PRO
USA
#114   — Edited
Bobsheaux, did you ever finish the LED project?

I always finish and understand a project before I go on to something else.
EzAng
#115  

Man, all of this was a chore... But it's WORKING. Whew!...
PRO
Belgium
#116  
hi bob

that looks fantastic.and sounds great.
PRO
USA
#117   — Edited
looks good Bobsheaux, 

Hi Nomad, how are you?


EzAng
PRO
USA
#118  
Hi Nomad,

Up to the past again - I just created again LEDs being activated by a script for sound 

Used Rich's script also from the past.

wow, everything is from the past, lol

User-inserted image
PRO
USA
#119   — Edited
Here is the video for the Two Leds activated by any sound



Hey Nomad, I this is old news, but it does work