Pages: [1]   Go Down
Author Topic: Can this DC motor w/encoder be reused?  (Read 1600 times)
0 Members and 1 Guest are viewing this topic.
Portugal
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone, I am new to arduino and I started harvesting some parts from old devices I had around here.
I harvested a cool DC motor from an old multifunction printer which has an optical encoder attached and would like to have some help with the wiring.

How can I find out which pin is Vcc or GND and which are the output of the encoder and how do I read it?
There are 6 pins on the connector.

See pictures attached...
 
Thank you all...
Arduino is a really cool project. Love it.


* DSC01389.JPG (291.67 KB, 1080x810 - viewed 34 times.)

* DSC01390.JPG (276.82 KB, 1080x810 - viewed 35 times.)
« Last Edit: December 29, 2011, 10:44:32 am by hugo_rosario » Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 202
Posts: 8711
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can often figure out which pin is which by tracing the lines on the circuit board.  I expect two of the pins will go to the motor, two will go to the LED in the optical interrupter, and two will go to the light sensor (phototransistor) in the optical interrupter.  You will need a high current source to drive the motor.  An NPN transistor will do if you only want the motor to go in one direction.  Use an H-bridge chip to go in either direction.  The LED can probably be hooked to 5v but it might need a resistor to limit the current.  The sensor can probably go between an input pin and ground.  Turn on the internal pull-up resistor for the input pin.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

do you have a picture from the bottom / circuitry?
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Portugal
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you johnwasser, really looking at the circuit board I identified a few things :

- Pin 1 and 2 go directly to the motor, I will use a TIP121 transistor and an external power source.
- The Emitter has 2 connections, there is a resistor between pin3 and the Emitter, so its the Vcc, the other is connected to pin4, which is GND.
- The Sensor has 3 connections : one is going to pin4 (GND), the other is connected to Pin5 and the other is connected to Pin6 and Pin3 (this one got me confused)

Check the circuit on the picture below.



* DSC01392.JPG (233.11 KB, 1080x810 - viewed 23 times.)

* pinout.jpg (23.69 KB, 388x265 - viewed 13 times.)
« Last Edit: December 29, 2011, 01:21:01 pm by hugo_rosario » Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 202
Posts: 8711
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks to me like there are probably two optical sensors for quadrature output.  That will allow you to detect direction of motion.

Pins 5 and 6 are the quadrature outputs with pull-up resistors.

Try +5 on 3 and ground 4 to turn on the LED.  Then use 5 and 6 to detect motion.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Portugal
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi again, hope you all had a good new year´s eve.

I am back to attempting to read the optical sensors and I dont get it. I connected the 5 and 6 pins to the arduino analog inputs and I dont get any different values, its the always the same output, when the motor is either running or stopped.
Pin6 is always HIGH (1023 in Analog) and Pin5 is always different (which is what happens when you read a pin that is not connected to anything).

Maybe I damaged something when I soldered the wires on the board...

Thanks for your help anyway, the positive side here is that I learned a little bit more about motors and optical encoders.
You guys rock...
Logged

Pages: [1]   Go Up
Jump to: