I have managed to write a sketch for my Arduino Uno that controls a traffic light system based on the input from a IR collision detector. I plan to build signals for a model railway.
The programming/prototype works great. The only issue I can foresee is the current limitation of 200mA on the UNO.
The project currently uses 4 standard LEDs (220 Ohm resistors in parallel) for each signal, there is an output pin for each LED and the code does the switching ON/OFF.
What is the best way for me to incorporate more signals from one Arduino UNO board?
Do I set up transistors to do the switching while feeding a separate power supply to the LEDs?
Do I investigate shift registers with a separate power supply to them?
I am very new to the Arduino and still learning about the fundamentals, so apologies for the lack of detail in my questions.
Any help or suggestions would be very helpful at this point, so I can continue with my fiddling!
Thanks in advance for your help.
What is the best way for me to incorporate more signals from one Arduino UNO board?
Define 'best'
Do I set up transistors to do the switching while feeding a separate power supply to the LEDs?
Sure.
Do I investigate shift registers with a separate power supply to them?
Yes.
Assuming I power 1 LED, via 5.5v (seperate to arduino) with 220 Ohm resistor and have the arduino providing the signal to the PN2222 transistor (ALL with a common ground), what would the transistor need to operate in terms of mA?
I just wanted to know how may sets of signals I could run without exceeding pin current and overall current.
How many LEDs do you need? This board I offer has up to 12 TPIC6B595 shift registers to control up to 96 LEDs at 150mA each (so you can multiple parallel LEDs on each output, or strings of LEDs if you want to use a higher voltage source).