Go Down

Topic: Can't figure out this sensor (Read 959 times) previous topic - next topic

dc42

On the connector, the ground connection is evidently the middle pin. Try connecting a 330 ohm resistor (or thereabouts) between +5V and one of the outer pins. Connect the other outer pin to an Arduino input with pullup enabled. You're looking for it to read LOW when there is nothing in the gap and HIGH when there is. If you don't get that, swap the 2 outer pins.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

eliganem


On the connector, the ground connection is evidently the middle pin. Try connecting a 330 ohm resistor (or thereabouts) between +5V and one of the outer pins. Connect the other outer pin to an Arduino input with pullup enabled. You're looking for it to read LOW when there is nothing in the gap and HIGH when there is. If you don't get that, swap the 2 outer pins.


It worked!  8)
Thanks for the info!

JimboZA

Hmmmm I'm going to try dc's approach on a similar sensor I also liberated from a printer. Iirc, I did manage to read a part number and even find a data sheet and still didn't get it to work.... Assuming I didn't release magic smoke during my testing (read as: blundering about with wires and batteries) I might actually get it to work. Then all I have to do is find a use for it.

(Always assuming I can still find the darn thing....)
Roy from ITCrowd: Have you tried turning it off an on again?
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

Go Up