Full Screen Video Player icon Full Screen Video Player — Fullscreen overlay video player controlled by ControlCommand: play/pause/resume/stop; ESC cancels playback and locks new playback until unpaused. Try it →

ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

Author Avatar
PRO
Belgium
Thingiverse
#9  

so the led works when i speak into a headset mic.i can see jd mouthled lid up. but thats not the effect am looking for.am looking for the led to lid up when jd speaks .

#10  

I thought you did that already with a sound servo controlling the LED? Or did you just wire an LED to the speaker of your JD before?

#11  

@Norman, I do not have a JD so I don't know, but... Am guessing you are using the built in speaker on the EZB controoller. Use the servo Servo (EZB Playback) not the Sound Servo.

If so just change the variable name from $soundvalue to $Soundv4Value in your script.

Example... if ($Soundv4Value < 10) $pwmvalue = 0 ELSEif ($Soundv4Value < 20)

Change it to ... if ($EZBPlayingAudio < 10) $pwmvalue = 0 ELSEif ($EZBPlayingAudio< 20)

in your script.

Author Avatar
PRO
Belgium
Thingiverse
#12  

ah thanks i will try that.

Author Avatar
PRO
Belgium
Thingiverse
#13  

i use a led with pwm

Author Avatar
PRO
Belgium
Thingiverse
#14  

what value comes here? i have a led on port D22.

User-inserted image

#15  

Nothing goes there, it's a variable name representing the value of each PWM value listed above.

Author Avatar
PRO
Belgium
Thingiverse
#16  

ah ok. so this works only with headset mic.