that's cool and so simple, it took me a while to find something to flash an LED to sound, I followed this thread
https://synthiam.com/Community/Questions/7173
and also found this code I can't remember where
@bborastero, The advantage of the script and a digital port is that you can turn it on and off based on whether the robot is speaking or playing music, but Nomad's solution has a simple elegance and avoids all of the issue with the soundservo control. (I find using the script with sound servo it goes out of sync with longer sentences).
so where do you connect the led?on a digital or analog port?
On a digital port. Then, if using the script bborastero posted, you need a Sound Server V4 object, but you don't need to configure it to a servo (it is just to populate the variable used in the script), then create the script and start it. The LED will blink whenever the EZ-B makes sound and the script is running, and it varies in brightness based on the volume.
That example used port D10, but you can use others, just modify the PWM statement as needed.
@nomad... Just a reminder the white digital pin can only supply about 20mA... so just be careful what to attach to that pin as anything more than 20mA can damage the port...
@nomad... maybe, but without the digital pin you can control them... PWM is on the digital pin (white) not the red pin. If you are going to use @bborastero's script you will need to use the digital pin not the power pin...
The results will be about the same. Only advantage of the script and sound servo are that you can turn it off if you want to make other sounds without the mouth blinking.
i changed the mouth led cause it was not chowing up like i wanted.
i didn had brighter led but what i got is MP3 volumer.
i dont remembet who gave me the tip,sorry for that.
so it makes the mp3 file louder and also makes the led chine much better.
in the video you see bolt.the older mp3 files and the new ones.
it clicks together and the led stays in place.
the little ring has two sides.one side start the treath in the begin off the ring for ,
thinner plates.the other side start a little further for thiker plates.
i melt the hole whit a little iron screwdriver and then whit a little round vijl,
make it bigger.
Sorry to bother you again @nomad18.08
I have searched through the massive conrad store but cannot find the LED you have shown in your picture on the previous page
There are plenty of LEDs without the black socket (as per attached pic)
Is the socket a separate item?
Do you remember the name of it?
i checked my oreders from that year.i see two leds.
one 200 mcd and one 4000mcd.
i cant remember whits one i used.
here a link all kinds off resistors.
cute JD
ericEZ
thanks
@nomad... Not bad, dude...
@nomad18.08
Great Idea!
:D
thank you all
Great idea a new idea
@nomad18.08, CooL !
Not bad @nomad, not bad at all. Fairly simple, but very effective and looks great. Nice thinking and good job.
i got the tip from rich .next time use a brigher led.
that's cool and so simple, it took me a while to find something to flash an LED to sound, I followed this thread https://synthiam.com/Community/Questions/7173 and also found this code I can't remember where
both work but yours is so easy (EZ)
@bborastero, The advantage of the script and a digital port is that you can turn it on and off based on whether the robot is speaking or playing music, but Nomad's solution has a simple elegance and avoids all of the issue with the soundservo control. (I find using the script with sound servo it goes out of sync with longer sentences).
Alan
bborastero
i can use yours too.
so where do you connect the led?on a digital or anoloog port?
On a digital port. Then, if using the script bborastero posted, you need a Sound Server V4 object, but you don't need to configure it to a servo (it is just to populate the variable used in the script), then create the script and start it. The LED will blink whenever the EZ-B makes sound and the script is running, and it varies in brightness based on the volume.
That example used port D10, but you can use others, just modify the PWM statement as needed.
Alan
thanks alan
nomad, Great work and independent thinking! Maybe it will be on the next JD? Steve S
thanks steve S
@nomad... Just a reminder the white digital pin can only supply about 20mA... so just be careful what to attach to that pin as anything more than 20mA can damage the port...
rr
for leds i use only black/red
@nomad... maybe, but without the digital pin you can control them... PWM is on the digital pin (white) not the red pin. If you are going to use @bborastero's script you will need to use the digital pin not the power pin...
@thetechguru
agreed I've noticed the same thing. still I like the hard wire choice too.rr
ah.thanks for telling. so i use black/white and sound servo to get same or better result?
The results will be about the same. Only advantage of the script and sound servo are that you can turn it off if you want to make other sounds without the mouth blinking.
I think your solution may actually work better.
Alan
oh really ?
thanks for telling alan
i changed the mouth led cause it was not chowing up like i wanted. i didn had brighter led but what i got is MP3 volumer. i dont remembet who gave me the tip,sorry for that. so it makes the mp3 file louder and also makes the led chine much better. in the video you see bolt.the older mp3 files and the new ones.
Nice !
mtiberia
my test dummy .
@Nomad.... Good job Patrick..... I like how it completely syncs to speech... no delay...
thanks avery one
yes and its better to see. am almost reddy whit another surprise.hehe
@nomad.
The LED change looks so much better. Well done.
steve G
glad you like it
thank you
That looks and sounds fantastic @nomad18.08 ! How did you form the oval shaped mouth in JD's head?
hi tony
its actully round.
hi @nomad18.08 so you just drilled a hole? Do you have a small resistor wired into the red line?
hi tony
yes inside the ezb.
pics
Thanks @nomad18.08 Would it be a 1K ohm resistor?
hi tony.
i make a pic cause i dont have knowledge about these things.
here is the pic
Thanks @nomad18.08 ! Now I see how you got the neat black trim around the mouth
it clicks together and the led stays in place. the little ring has two sides.one side start the treath in the begin off the ring for , thinner plates.the other side start a little further for thiker plates. i melt the hole whit a little iron screwdriver and then whit a little round vijl, make it bigger.
@nomad18.08 you have come up with a simple and excellent solution! Did you get that LED locally or off ebay? I can't find one like that anywhere
hi tony
i by them from conrad.be or conrad.nl
make sure you test a led whit the resistor on if its bright enough.
Thanks @nomad18.08 I'll have a look!
Sorry to bother you again @nomad18.08 I have searched through the massive conrad store but cannot find the LED you have shown in your picture on the previous page There are plenty of LEDs without the black socket (as per attached pic) Is the socket a separate item? Do you remember the name of it?
tony i will look it up see if i can find it back.
tony here some links
led fitting
led
maybe someone can chime in for howmany mcd tony will need.
tony you find alot on ebay.us
Many thanks for your help @nomad18.08 ! Yes, they are very cheap on ebay!
i checked my oreders from that year.i see two leds. one 200 mcd and one 4000mcd. i cant remember whits one i used. here a link all kinds off resistors.
resistors