ARC Pro

Upgrade to ARC Pro

Don't limit your robot's potential – subscribe to ARC Pro and transform it into a dynamic, intelligent machine.

PRO
Belgium
#49  

you are using bolt windows at same time ? and where is the script for the sound mic?. does each led has its own port?

#50  

I don't understand the first question. Which windows are you talking about? Are you implying that using multiple windows it hindering what I'm trying to accomplish, or is there something else I should be using that I'm not?

Hang on... Sound MIC script? Did you mean to ask where my script for the Sound servo is? Because I do have that in my controls, I just didn't think I needed to include that in the screengrab for the purposes of this video. This original tutorial said to have a script for the Sound Servo, but are you saying I need a script for the Sound Mic too/instead?

And yes, each LED is in its own port.

PRO
USA
#51   — Edited

hi Bobsheaux. Nomad and I have showed you many ways to use the LED, just follow instructions please:

Here is DJ's take on LED again: https://synthiam.com/Community/Tutorials/Pulse-Flash-LED-with-PWM-16230

Here is a script that works like Dave's R2 robot, on and off:

remember, you can say anything

set the servo speed to 2

ServoSpeed(d0, 2)

pwm(d0, 0)

sayezb("good morning") sleep(2000)

pwm(d0, 0)

sayezb("how are you") sleep(2000)

pwm(d0, 0)

sayezb("have a great day") sleep(2000)

pwm(d0, 0)

my  screen:

User-inserted image

talk servo

User-inserted image

open the PWM control for just on and off - slider

another script for on and off

set the servo speed to 2

ServoSpeed(d0, 0)

:loop

Set LED On

pwm(d0, 100)

wait some time for the pwm to do its ramping thing

sleep(1000)

#set LED Off pwm(d0, 0)

wait some time for the pwm to do its ramping thing

sleep(1000)

goto(loop)

Here is a script that syncs with words and shuts off after each sentence. SayEZBWait("Good evening.") pwm(d0, 0) sleep(1000) pwm(d0, 0) SayEZBWait("Almost time for dinner.") pwm(d0, 0) sleep(1000) pwm(d0, 0) SayEZBWait("Are you hungry?") pwm(d0, 0) sleep(1000) pwm(d0, 0) SayEZBWait("What are we having?.") pwm(d0, 0) sleep(1000) pwm(d0, 0) SayEZBWait("some thing lite I hope.") pwm(d0, 0) sleep(1000) pwm(d0, 0) SayEZBWait("I am still full from lunch.") pwm(d0, 0) sleep(1000) pwm(d0, 0) SayEZBWait("have a great day.") pwm(d0, 0)

I do notice I have to disconnect and connect sometimes

EzAng

PRO
Belgium
#52  

bobsheaux

for led you need only the window  servo mic and this script .

# Sound servo to PWM range Script

Author: Rich

Version: 1.0.0

Date: 25th June 2013

Variables (do not adjust)

$soundright = auto

$pwmvalue = 0

Main script

Set the start point for the never ending loop

:loop

Check the variable from the Sound servo control against a list of pre-determined levels (you may need to change these) and set the PWM value to suit.

if ($soundright < 10) $pwmvalue = 0 ELSEif ($soundright < 20) $pwmvalue = 10 ELSEif ($soundright < 30) $pwmvalue = 20 ELSEif ($soundright < 40) $pwmvalue = 30 ELSEif ($soundright < 50) $pwmvalue = 40 ELSEif ($soundright < 60) $pwmvalue = 50 ELSEif ($soundright < 70) $pwmvalue = 60 ELSEif ($soundright < 80) $pwmvalue = 70 ELSEif ($soundright < 90) $pwmvalue = 80 ELSEif ($soundright < 100) $pwmvalue = 90 ELSE $pwmvalue = 100 endif

Set the PWM with the value chosen above (you may need to change the port to suit)

PWM(D1, $pwmvalue) PWM(D0, $pwmvalue)

Add any other PWM ports above this line with PWM(PortNo, $pwmvalue)

Sleep for 100ms to avoid saturation (you may need to adjust this to increase accuracy or increase stability. Reduce the delay for better accuracy, increase for better stability)

Sleep(100)

Jump back to the start

Goto(loop)

CHECK THIS BOX

User-inserted image

PRO
USA
#53  

Great Nomad, what else can we do? lol

EzAng

#54  

Yes, I'm aware that you've shown me several ways to do this. If "just following the instructions" was all I had to do, I wouldn't be here. Something is going wrong here, and I promise you, it isn't my being difficult for the sake of being difficult.

I followed these new instructions you gave me, and I'm still running into the same problems as before; the LED's just barely flickering at random, and it doesn't turn off when it's done talking.

PRO
Belgium
#55  

hi ezang

one step at the time i gess.

#56  

Trying Nomad's latest suggestion, stand by...