Hello.
I got some old printers for my project and I am using printer head to get left and right movements , for later use on school project.
Now, I got motor driver L298N to drive head. But I was control it with PWM to reduce speed , and HIGH and LOW for the direction ,and delay function to set start time , stop time and reverse time. But it is very tricky , I know that printers use encoder strip to determine position and direction. I know how it works, getting 0 and 1 voltages to phototransistor at the various speed and direction.
Now my question is how to wire it up and make sketch to Arduino that is know position and direction of the printer head.
Thanks ,and sorry for my bad English.
If its a quadrature detector there would be one LED and two photodiodes/transistors
sensing the A and B phases, that would seem to match the 6 connections - the RHS
2 pins are likely the LED then - trace the PCB traces to figure it out. There are various
examples of interfacing a quadrature encoder on these forums, try searching.
hm, so there is a one LED and two photodiodes/transistors. Close to that on PCB is a one resistor of 150 ohm, and down below is a three more resistors of 7.8kOhm , 12.9kOhm and 8.48kOhm.
This one of 150 Ohm maybe for the LED?