Go Down

Topic: Photointerupter (Read 536 times) previous topic - next topic

xan213

Can someone tell me how to use this sensor  to measure rpm on a stepper motor. Specifically I would like to know how this sensor works and how to connect the 4 pins from the sensor to my arduino. I have attached the data sheet for a similar sensor (i think).

1.http://i1062.photobucket.com/albums/t494/xan213/100_5040.jpg

2. http://i1062.photobucket.com/albums/t494/xan213/100_5046.jpg

3.http://i1062.photobucket.com/albums/t494/xan213/100_5050.jpg

Carsten53T


Can someone tell me how to use this sensor  to measure rpm on a stepper motor. Specifically I would like to know how this sensor works and how to connect the 4 pins from the sensor to my arduino.

I think that once you know how to connect and read the sensor, the rest will follow.

Quote

I have attached the data sheet for a similar sensor (i think).

Where?

The 4 pins probably comes in pairs. Two of them is for the emitter (arduino +5 -> resistor -> arduino ground).
One of the other two is the output from the sensor .. but you'll have to look up what else. It's not unusual that the sensor can take a higher voltage than the +5 arduino.



Magician

#2
Jul 10, 2012, 11:22 pm Last Edit: Jul 10, 2012, 11:25 pm by Magician Reason: 1
Look at SFE: http://www.sparkfun.com/products/9299
there is data sheet, though may be not exactly the same, but don't think they differ much.
And more on software (advanced level ?) : http://www.sparkfun.com/products/9209

Carsten53T

Magician,
The photointerrupter you link to has 5 wires.
You'll be surprised at what you can find on the net:

http://www.datasheetcatalog.org/datasheet/fairchild/H21A1.pdf

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy