Photointerrupter

Thread Starter

Tomer123

Joined Jun 16, 2024
3
Hello,
i am trying to use this Photointerrupter sensor:
https://www.sharpsde.com/fileadmin/...hotointerrupter/GP1A173LCS3F_DS_OP14021EN.pdf

Sharp 173
but i am getting always high on the Vout, i try on 5V and also on 3.3V
and i try also to change beetween the VCC and the GND.
but keep getting always high on the Vout.
according to the datasheet the Vout should be normaly low, anwhen the is blocking it should be high.
what am i missing here ?

best regards.
 

Attachments

MrChips

Joined Oct 2, 2009
34,809
Did you install a 10kΩ pull-up resistor?
Show us a circuit diagram of how you have it connected.

Sounds like you once connected it incorrectly and it is now dead.
 

MrChips

Joined Oct 2, 2009
34,809
Something is amiss. If you were missing the output resistor, the output should have been LOW, not HIGH.

Thank you sir,
the resistor between VCC and Vout solve it out,
how should i figure out that should be a resistor between the VCC and Vout, Does it mention on the datasheet ?
best regards !!
Experience and reading the datasheet.
Experience would have told you that devices such as this commonly have open-collector outputs.
Experience would have told you what is an open-collector output and to expect this to happen.
Reading the datasheet would have told you that the output is open-collector.
 

eetech00

Joined Jun 8, 2013
4,705
When the light beam is interrupted (blocked), Q1 will be off, and Vout will be high.
The 100 ohm resistor (~20mA thru diode photo emitter) will be ok for 3.3v-5v dc.

1718597692141.png
 
Top