Loading...
Pages: [1]   Go Down
Author Topic: Printer optical encoder as analog input step counter.  (Read 267 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, I would like to use optical encoder from old HP printer (It has 4 pins, and capacitor between pin 1 and 3. Part no. 09845 Agilent 58), and count steps with Arduino Mega.
Can anyone help?
Does anyone know how to connect this encoder to the Arduino, and some code?

Logged

0
Offline Offline
Faraday Member
**
Posts: 3669
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you have a photo(s) of the unit you could post?
Logged

Offline Offline
Newbie
*
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have attached a photo.
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Posts: 19553
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Does anyone know how to connect this encoder to the Arduino, and some code?
It looks like a rotory encoder. You have to work out what wires are 5V and ground then the other two are the quadrature index pulses.
Code you can use is here:-
http://arduino.cc/playground/Main/RotaryEncoders
Logged

Offline Offline
Newbie
*
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do I need some resistors, or not?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Posts: 19553
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't know, what signals are you getting out of it. Try first just connecting to the arduino inputs. If you can't get a reading then enable the internal pull up resistors.
Logged

Pages: [1]   Go Up
Print
 
Jump to: