Pages: [1]   Go Down
Author Topic: Photointerupter  (Read 419 times)
0 Members and 1 Guest are viewing this topic.
USA
Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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


* 100_5040.JPG (2096.38 KB, 3264x2448 - viewed 6 times.)
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 153
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.


Logged

Montreal
Offline Offline
Faraday Member
**
Karma: 27
Posts: 2556
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: July 10, 2012, 04:25:22 pm by Magician » Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 153
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: