
seigezapf
USA
Asked
— Edited

Hello again. My current question regards LED lights. I just want to turn them on and off. I searched the forum and all of the forum responses regarding LED lights were much more involved than the answer I need. I gather you use a servo control to do it. I've tried several different servo options, but none have worked to do what I need. I just want to turn them on and off. I have them connected to a digital connection D06. Maybe I should use an analog connection? Thanks.
If the current draw of the LEDs is less than 20mA connect the red wire to the white signal pin and the black wire to the black ground pin.
If the current draw is 20mA or above you will need to use a TIP122 Transistor switching circuit and possibly a voltage regulator.
Control will be the same for either option and as mentioned previously.
Thanks guys. Well, I tried the black/white connection as suggested and no soap.
Actually Alan I am using the 6 white LEDS from the Tamiya kit, but the AXIAL LED controller (AX24257). The plan was to have the ability to illuminate area my robotic arm was working with.
I may just have to power them with an external battery, but I wanted to remotely control the on/off with the EZ-B.
If you want them all controlled simultaneously, then Rich s suggestion of a TIP120 transistor is the way to go. Simple simple circuit to build. Allows you to use the EZ-B digital port to control switching of higher voltage or current.
Alan
Hey Rich and Alan. I appreciate the suggestions. The TIP120 may be a simple simple circuit, but it is way out of my league. I can solder two wires together, but after that it is pretty much plug and play. I don't think the current is a problem, but may be wrong. All of the LEDs do illuminate when connected to red and black, but I guess the draw may be too much for the EZ-B.
As an alternative, maybe I can power the light bars (there will be two - the 6 LED at the rear and a 2 LED at the front) with an external battery and run the power through a switch. Can I control a switch like that with the EZ-B? I guess it would have to be a digitally controlled switch.
Try controlling a toggle switch with a servo
You can use a relay or a mosfet as a switch... simplest would be a relay like this 5V relay
Controlling a switch from the EZ-B is exactly what the TIP120 circuit is for. It essentially is a digitally controlled switch.
It would be nice if someone manufactured them pre-wired into an inline switching circuit, but the parts are so cheap and the circuit so easy to do that I don't think they would make any money.
send me your mailing address (my email address is in my profile) and I'll see if I have time to throw one together for you this weekend (might even get to it tomorrow night).
I was planning on making one for myself for a similar reason, so I can just make 2 at once and mail one to you. My soldering skills are not great, so it will probably be a little ugly, but it will work.
Alan
A relay circuit would work as well, there's a bunch of small boards online (plug and play style) that only require you to hook up signal, voltage, and gnd wires in one side and your positive supply wire on the other side.
Just make sure you get one with a transistor onboard, I believe in the past @Technopro purchased a board that didn't come with one.