QUESTION: How to use a top of page detection sensor out of an HP printer?

I recently had a lot of damaged printers to salvage, and I would like to use the top of page detection sensors that come with the printers to measure the rotation of motors with toothpicks atached to their axis.

The following link is that of the sensor, RM1-1283-000CN HP Top sensor assembly - Includes at Partshere.com .

and I thought that someone here would know about them and what is the way to operate with them. I have already tried every combination of connections of ground, detection and power (one each), including 5 and 3,3V provided by the arduino, but maybe the power supply just isn't enough, I don't know, and that's why I'm asking.

Thanks

Well, its just a light detector, right? So you've got power, ground, and an output signal that will be high or low.
See if you can find a part number on the black part, then trace the signals out of it to the wires.
The link doesn't have enough info.
Should be a part like these, how many pins it has and what else is in the board could help narrow it down:

Digital output:

Analog output:

I have tried to serach the web for the ID on the detector, it is P1241 C57G the first is at the top line, and the second follows in the next line and is followed by : (two dots). The detector has 3 terminals, I thought as well that those might be ground power and detection. Doesn't have anything attached, just the connectors.

Sorry, just realized the links I posted were useless
Should have been these for "slot sensor"

Really only 3? Most have 4 just to secure it to the board better.

Browse the links above, see if you can find something similar and see what the electrical connections are.

It is similar to this. And I comprehend that you might find awkward that it has only 3 terminals. Well... in fact, if I look at the bottom of the sensor I see that there are 4 terminals, but there's a piece of white plastic that covers everything but the terminals and then outputs only 3 connectors.

One more thing: I tried using analog input instead of digital, resulting in some irregular measurings in almost every combination of connections, not being related to whether there is an interruption on the light or not... I really don't know what's happening... :frowning:

Look at page 3, the part is an optisolator with the light path open vs being normally enclosed.

Add some current limit resisters like on page 2. 390 ohm should do okay.
Then put 5v on the LED cathode and collector (pin1 & 3), should see a high on the emitter (pin 4).

it will be a photo interuoter.

You did not post what medel it was from so I can not look at a scematic and see the pin out or voltage levels.

Most are +5 devices but I have seen +12v is some places.

Hey, I solved my problem in a different approach, using a phototransitor and a common visible laser pointing at it. Thanks for the replies, I will someday in the near future try to use the original detector for other applications.

ok.