Buy an Axon, Axon II, or Axon Mote and build a great robot, while helping to support SoR.
0 Members and 1 Guest are viewing this topic.
I get 4.7V coming off the emitter, and when my desk lamp is right on top of the phototransistor it reads about 50mA.
I can make it work the way I want, but I'd like to understand what I'm doing. I think the real difficulty is that I'm not understanding the data sheet for the phototransistor.
I don't understand what it's telling me about how much current / voltage I should normally expect from the emitter.
I've done some measurements on a breadboard with 5V on the positive rail. I get 4.7V coming off the emitter, and when my desk lamp is right on top of the phototransistor it reads about 50mA. I can't match that up with what I'm seeing in the datasheet.
I guess I'm asking how to read this thing. Maybe too big a question, but it doesn't hurt to ask.
First, be careful with your units:QuoteI get 4.7V coming off the emitter, and when my desk lamp is right on top of the phototransistor it reads about 50mA.Are you sure you measured 50mA or did you mean 50mV??
Figure 4 of the photo-transistor data sheet relate the illuminance to the current through the photo-transistor collector to emitter( Ipce).
Now apply Ohm's Law to the resistor between the emitter of the photo-transistor the the base of the LED drive transistor.
If the voltage at emitter of the photo-transistor relative to the common (also called ground) is 4.7V then the drop across the resistor is 4.7-0.6 = 4.1V and the current is 4.1V/R1 = Amps. Since you didn't give the value of R1 I can't calc the current so I'll make some assumptions.
Look at Fig4, say the illuminance is 200 lx. Then the photo-transistor current is about 150uA. Use this current and the voltage drop across R1, 4.1/0.00015 = 27k Ohm resistor. Am I close to the resistor value you used?
Now the next part is the driving the LED. Do remember that BJT's are current driven devices (the current through the Base multiplied by the DC gain equals the current flowing from collector to emitter). This means that the photo-transistor's current flows into the Base the the LED drive transistor and the photo-transistor's current can be derived from Fig4 or calculated from the measured voltage drop across R1.Any help?
To be honest, I think it's more that you don't understand the circuit as a whole (and while you probably read this as offensive, judging from previous discussions, it's not meant to be).
That must be the emitter of the 2N2222(?), as the phototransistor should give only around 750µA at 1000 lx and that sound like a reasonable value for a desklamp up close (depending on the wattage of course).
Just look at fig. 4.However, the circuit as a whole is a bad way of regulating the light. If you use a white LED, the color will shift over the range, but more important, it will depend a lot on the specific transistor used - not the type number, but the exact specimen you've got. This is because you operate the transistor in its linear region without any biasing or gain tailoring, so everything depends on the untamed parameters of the transistor.