SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By adamatronix
#198395
Hi,

I'm attempting to learn basic electronics and I have project that I want to do, but am not sure how to approach it.

The idea is to wire approximately 50 phototransistors to the arduino. I have read various tutorials on wiring in a series and parallel, but I think the common issue when searching this topic is insufficient power; so it is not as simple as wiring them sharing the same power rail.

Are there any particular guides or posts people recommend that explain some of the concepts needed to achieve such a project?

Thanks
By lyndon
#198406
Assuming you are using standard IR phototransistors for object detection/communication, etc and not trying to drive a load directly, you'll be fine. Each one can be biased to take less than a milliamp each from the supply. i.e., put a 10k ohm resistor between the collector and +5V.
By Valen
#198414
First, is the problem supplying power to 50 IR LEDs emiting IR light, or 50 infrared receiving phototransistors?

Once that is answered and you mean photo transistors receiving light:
How do you intend to monitor those 50 different output signals to a device that (in the case of the largest: an Arduino Mega) barely has enough pins to monitor them individually. What sort of signals are you expecting to receive from the phototransistors? Digital on/off? PWM? Analog? Describe the sensing part of your project a bit more in detail.
By adamatronix
#198427
They will be receiving light. I want to detect whether the transistor is being touched. so on or off. Could this be problematic if encased in something, making ambient light already extremely dark?

I did intend on using a mega, to avoid multiplexing, but maybe this is the way to go. I am not sure how to implement that.
By jremington
#198429
They will be receiving light. I want to detect whether the transistor is being touched. so on or off. Could this be problematic if encased in something, making ambient light already extremely dark?
The exact design of the sensor will depend very strongly on the details of the environment, especially the ambient lighting, how the transistor is mounted, how well the finger "covers" the phototransistor, which will in turn lead to design decisions regarding the best choice of collector load resistor, program constants, etc.

Did you know that fingers are semitransparent to IR light?

So, get your project working as well as possible with 1 phototransistor before considering adding 49 more. If you run into trouble, post your circuit and code, along with the details.
By n1ist
#198437
What is the part number for the "phototransistor"? From the diagram, it looks like you have a photointerruptor (phototransistor and LED in one package). If that's the case, it looks like you have the resistors swapped.
/mike
By Valen
#198462
Ok, now we know what IR photoreflector sensor you are talking about, how do they need to be activated? Powering, or rather pulling up, 50 phototransistors is not a very high power drain. Making each of those leds emit is however. If each is required to be fed with 20 mA then you'll need to supply them with 1 A total worst case. Must they all be operating simultaneously? In groups? Individually one at a time? Or individually randomly?

Pulsing instead of continously lighting them up is better to filter out ambient light levels. This can help reduce the instantaneous current draw. But could also introduce noise on the powersupply which might disturb other parts of your project.