
canumanu
USA
Asked
— Edited
how can I turn on and off the LED from my robot eyes? I have them pludged in directly to a dig port(d3) but I don t know how to make this work. they stay on all the time but cant turn them off .
Sounds like you have connected the LED to the VCC and Ground not the Signal and Ground.
Connect the anode of the LED to the Signal of the digital port. Connect the cathode side of the LED to the Ground of the digital port.
In ARC add the Digital Set Digital control.
Set the Port in the Set Digital control to that of the LED
Click on the button to turn on and off.
Refer to the LED Hardware Tutorial for more info.
OK thanks rich simple enough.that should help.
I hope we never lose Rich
There's not much chance of losing me dude
Although I am away next Tuesday to Thursday (but guaranteed I'll still log on...)
Maybe you should add a current limiting resistor, you don't want to burn one of your EZ-B's outputs
@Niek
There was a discussion on this a couple of months ago here
@Rich
A pullup resistor is not the same as a current limiting one.
But hey, if DJ said it won't do any damage I believe him.
Thanks guys ! Working great !now I need help with a better script to make the leds to come on n off when the robot talk.all I ve done so far is to make it blink by: set(dig port,on) and sleep etc.. but that s as far as I have ventured to do so far.any fun ideas?