Ik heb niet veel verstand van elektronica, en ben nog een beginner - ik probeer zo veel mogelijk al op te zoeken maar sommige dingen begrijp ik nog niet volledig.
Ik heb wat spotjes ontworpen in 3D en deze geprint met mijn 3D printer. Nu zou ik in deze spotjes een 10-tal leds willen maken, welke ik dan aan en uit kan schakelen met een Arduino. Het gaat dan om 10 leds die op 1 pin aan/uit geschakeld kunnen worden.
Ik weet dat een digitale poort een 40mA current heeft, en een led gemiddeld tussen de 10-20mA zit. Theoretisch zou ik dus 2 leds op 1 pin kunnen aan/uit zetten. Nu is mijn vraag is het mogelijk om meer leds op een pin aan/uit te zetten? En zo ja hoe is dit mogelijk en wat heb ik hiervoor nodig? Ik heb een externe voeding op 5v met een output van 18A, welke ik al gebruik om een paar led strips te voeden.
Ik heb al een aantal gemaakt met Led Ringen (ws2812b) die ik vanuit een externe voeding voedt en de data op 1 digitale pin van de arduino heb staan, maar omdat die een aparte data ingang hebben is het makkelijker om daarvan een hoop aan/uit te zetten.
Zoals gezegd - ik ben programmeur, heb een basis kennis aan elektronica maar ben een beginner wat dit betreft, hoop dat iemand mij op de juiste weg kan helpen.
Why not use the WS2812Bs as intended? Data In to the first one from the Arduino, then connect data out to data in for the rest. Only need one dataline from the Arduino that way.
Sparkfun carries WS2812B in 5mm thru package if that is what your package needs
[ https://www.sparkfun.com/products/12999ekenen](http:// https://www.sparkfun.com/products/12999ekenen)
https://www.sparkfun.com/search/results?term=LED+-+RGB+Addressableettable
Well i already have the WS2812B running, and it works fine - but i wanted to create a spotlight (printed on my 3d printer) and put leds in there (so no ws2812b), and i would like to run 8-10 leds controlled on 1 pin. The ws2812b works perfectly, but the leds i have have more light capacity then the ws2812b.
A transistor or some other high current driver is needed.
Do you have a higher voltage available? Strings of LEDs with a single current limit resistor per string can be powered from 12V, 24V, etc.
If you only have 5V, then multiple LEDs, each with a current limit resistor, can be connected in parallel and controlled by 1 transistor.
TPIC6595 is a shift register similar to 74HC595, but the outputs can sink 250mA. (+ Supply to LED anode, LED cathode to resistor, other side of resistor to shift register output).
So you could connect 10 LEDs in parallel to each output, could be more convenient than wiring up 8 transistors.
Do not confuse that with the TPIC6B595, which only supports 150mA per output.
Or, if you had a Lot of LEDs, than a transistor board could be used to drive even more of them.
This 32 MOSFET board can be populated with four 74HC595 shift registers to drive the MOSFET gates and can sink at least 1A of current per output.
Or the shift registers can be left off, a header put in their place, and the 32 gates can be driven from 32 outputs on a Mega to provide 32 high current sink outputs. The LEDs still need a current limit resistor.
Well i have 2 of these: %product-title% kopen and i use these to power the ws1812b strips and rings, so i hoped to be able to power the leds with this power source too.
That is ok.
You just to buffer the IO pins with a transistor or some other kind of driver.
Here are 3 ways. I showed TPIC6C595 as I had that part symbol available, it is just for the example, as it only has 100mA output capability. I would use TPIC6595 with its 250mA outputs as discussed earlier.
If the LEDs have low enough Vf, like 2.2V, you might be able to use 2 in each string instead of just 1. Brighter LEDs usually have a a higher Vf tho. You can measure that. Connect 5V, 200 ohm resistor, LED, Gnd, and measure the voltage across the LED.
That makes sense - thank you! I will try it on a breadboard with a transistor
can you tell me where you got that board from? That seems very interesting..
I designed, build, and sell them.
More details here
www.crossroadsfencing.com/BobuinoRev17