The short version: suggest a small relay or transistor (Preferably transistor) that I can turn eight of on with a single output pin on the arduino.
The long version:
I have looked for a way to do this, but I have not really come up with a good way to word my search. If there is a simple way for me to look, or a simple solution please tell me and this topic will be removed.
The "problem" is that I would like to use the pins (2-9 specifically, not that it matters that much) as an output, and an input within the same sketch. My code is fine, but I need help with the design of the hardware. I would like a way to have the pins 2 through 9 to have led's connected to them, but also to be able to detect input (not at the same time) I planned on using transistors as switches for the led's so that the led circuit would not effect the outcome of the digitalRead(and get a false HIGH) but because I have eight of them, the remaining pins 11, 12, and 13 were not strong enough to open the transistors wide enough to keep the LED's bright. Is there any transistors that I could drive 8 of with one pin. If not is there any that I could drive 3 of. I would like to keep the whole thing powered by the arduino(with usb), with no relays. If I do get new transistors, how should I wire them. I currently have all of the base pins and the collector pins wired together (not base to ground, but ground to ground, and base to base but i assume that you knew that) and then each of the collectors this is likely where my problem is, but I can not think of another way to do It. I am not looking right now (I am home for Winter break, and I switch between my parents houses) but I think that the collector line is wired to ground, and the base is to pin 13. The emitter goes through the led, and then to the output pin. Unless I have forgotten something very important(which is probably true) that is the only way to wire it, and get the leds to light when I need.
I could use relays if need be, but I would prefer not to. If i do end up needing to use relays, I would like a suggestion of small ones that are fairly cheap. I would also need to know how to run all of them off of a single (or three) pins on the arduino. I assume that if I just wired them in series that they would all get activated, but I am not sure.
Thanks in advance for any help.