Asked
Resolved Resolved by Nomad 6R!

Led Voice Recognition

I'm sure this has most likely been answered but I did search prior to asking. How to I hook up LEDs in order to use them with voice recognition? For example where would I hook them on the v4 and how would i program it come on and off when i would say "lights on" "lights off" basically making lights for eyes in a helmet and would like to control leds and 2 servos inside the helmet by using voice recognition lights on, lights off, and open close commands


Related Hardware EZ-B v4

ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

PRO
Belgium
#1  

hi

solder a led from 3 volt on a white ( signal ) and a black ( negatif wire ) . you can use any port on the ezbv4. then choose the window PWM set the port you want. then make a script pwm(d0,100) off and pwm(d0,0) is on.sometimes its the other way 100 off and o on. depent on the color.for two eyes is twi pwm windows and two prts. then in speech recog typ L E D  on in first colum in the second colum typ pwm(d0,0) for on.

PRO
Belgium
#2  

here's a little video.my englich is not so good.

#3  

Outstanding, seems simple enough. I will try it out. thank you very much for the reply

PRO
Synthiam
#4  

Only use the pwm() command if you want to control the brightness. The pwm() lets you set a value between 0 and 100 for brightness

i recommend using Set() instead of pwm(). Because set() is merely on or off

PRO
Belgium
#5  

hi dj

indeed that works better.no need for pwm if you just want on and off . excample set(d0,0)

#6  

Thank you DJ and Nomad your responses are greatly appreciated