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 .
Upgrade to ARC Pro
Get access to the latest features and updates with ARC Early Access edition. You'll have everything that's needed to unleash your robot's potential!
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
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.
Although I am away next Tuesday to Thursday (but guaranteed I'll still log on...)
There was a discussion on this a couple of months ago here
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.
set(dig port,on) and sleep etc.. but that s as far as I have ventured to do so far.any fun ideas?
Set the port to the same port your LED is connected to.
Get your robot to speak
You may need to play with the scalar setting in the SoundServo
It should increase the LED brightness depending on the sound.
If not, you could add the SoundServo control.
Set the port to V1
Add a script;
Play with the sleep and soundvalue.
Again awesome! Thanks
I just tested it and it works nicely.
I'm trying to sync my prototype´s mouth LED, but using the soundservo I don´t know how to avoid it to get the sound coming from the mic (and, if I turn the mic off, I can´t use the speach command...).
I´m using an bluetooth speaker... and I wired the leds on the speaker + and -... IT works, but it´s draining too much power...
can you help ?
thanks so much!
You're already doing what my first suggestion would have been. My only other suggestion would be to hook up the +ve side of the speaker to one of the ADC signal pins (make sure the speaker doesn't exceed 5V). You can then ReadADC(ADCPort) to get the level and use that to PWM a digital pin driving the LED...