Arduino Forum

Using Arduino => Sensors => Topic started by: mattcf on Jun 08, 2011, 08:01 pm

Title: IR sensor and motor
Post by: mattcf on Jun 08, 2011, 08:01 pm
Recently I took apart an old printer,  and it had quite a few useful things inside, including this motor with an infrared transmitter and photoresistor.
The setup for the sensor is like that of the old trackball computer mice.
How would I go about using this as a "prescion" controlled motor, a rotation sensor, or something along those lines.

(http://1.bp.blogspot.com/-sYJ_c--7LHc/Te-0z-a2rSI/AAAAAAAAA0w/qpa7hFa9Czc/s1600/2011-06-08-124117.jpg)

The setup for the sensor is like that of the old trackball computer mice.
How would I go about using this as a "prescion" controlled motor, a rotation sensor, or something along those lines.


Here is a picture of the trace.
(http://1.bp.blogspot.com/-HS9ntDUSjKg/Te-4AWC9GqI/AAAAAAAAA00/d7Y5TATg_OA/s1600/trace.jpg)

The forum did not have much information on things like this, and Thank you in advance for any help.
Title: Re: IR sensor and motor
Post by: Grumpy_Mike on Jun 08, 2011, 08:05 pm
This produces a quadrature signal just like a rotary encoder:-
http://www.arduino.cc/playground/Main/RotaryEncoders (http://www.arduino.cc/playground/Main/RotaryEncoders)
Title: Re: IR sensor and motor
Post by: mattcf on Jun 08, 2011, 08:08 pm
Hmm. Thats helpful, I did not know that. (haha)
Thank You for you quick response.