5
\$\begingroup\$

I have very little experience with phototransistors. I'm trying to create a circuit that will effectively function as collision detection. I'm using OPB608A which utilizes an NPN transistor. My goal is to use said transistor to output logical signal to my PIC18F4520. The I/O pin I'm using for this has Schmitt Trigger Buffer - according to the datasheet any input above 0.8VDD (~4V) will be treated as logical high (and 0.2VDD - 1V - will bring it back down).

Having very little experience I am tempted to use the following circuit: circuit

and adjust value of R1 to adjust the sensitivity. My question is: is this a good idea? Won't this cause any problems (such as pretty much shorting the circuit if R1 is low value)? Any better way to handle it?

\$\endgroup\$
  • \$\begingroup\$ Your circuit is fairly common. I don't see any glaring problems. It might just work for you. \$\endgroup\$ – Nick Alexeev Nov 23 '12 at 23:42
  • \$\begingroup\$ @NickAlexeev: Thanks! It's really having somebody with experience say it has a chance to work! :) \$\endgroup\$ – Bart Platak Nov 24 '12 at 0:09
  • \$\begingroup\$ consider 10Kohm for now .. The current gain on the reflective sensor is very low. What object is being used for this>? It is not very sensitive and very close proximity. Is that ok? 1.35 mm gap to reflective surgface hFE= 10% \$\endgroup\$ – Sunnyskyguy EE75 Nov 24 '12 at 0:13
  • \$\begingroup\$ Try 1K, 10K, 100K. 1M might work but it's a bit high to drive the PIC input. The best value will depend on the light level. A digital voltmeter and a sheet of black paper are handy! \$\endgroup\$ – Brian Drummond Nov 24 '12 at 0:21
2
\$\begingroup\$

Agreed, just be careful using the really high resistance values. 100k+ and beyond leaves your circuit more vulnerable to noise injection. It takes a bit of experimentation like the above responses have indicated.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.