Help with connecting the printer encoder from HP photosmart 6520

We are going to need a lot more information.

1 Like

What other information do you need?

Why do you want to connect to the printer.
Describe what a printer encoder is.
What do you want to connect to.

That is a 12 year old design, it could be problematic to interface to.

See the pinned post re How to get the most from the forum. Eventually you will need to post code in code tags, any error logs also in code tags, and a wiring diagram, a photo of a hand drawn diagram is fine.

What printer function was it encoding? Was it working properly when you removed it? Did you record the working voltages and signals on each connection?

ohhhh, you misunderstood me, and I also didn't finish writing in the topic that I want to connect this encoder to the Arduino Leonardo, forgive me if I offended anyone....

Why the Leonardo? If you know you need that board, then you must have done a thorough requirements analysis, is that true?

Why, and what do you expect it to do?

I just need to connect this encoder to the Arduino board and it doesn't matter which one, if you can, please tell me the pinout of this encoder

How would I know, you have it in front of you. It sounds like you are just wishing for some magic to happen, that won't work. You need to describe what it is you want to happen.

I need to read data from the encoder so that the Arduino Leonardo can convert it into action on the PC.

There is some progress. Next you need to get the information we need about the encoder. Try searching on any numbers you see on the encoder. When you are positive you have found a match, post the link here so we know what you know.

Sorry, but I did this without you, I searched for all the signs, there is nothing like this

I can provide additional photos.

Then there is no way forward as we have no idea what it does, how it can be connected to an Arduino.

1 Like

First cut off those black cable ties they are hiding the number I expect will lead somewhere. Take pictures that show one side of the board, fill the frame, look at it before you post it to make sure it is well lit (use flash if needed) and in focus (tap screen) Then do the same with the other side.
Lay the board on a flat dark surface and shoot from directly over the board. I think I see the start of a part number but it is blocked.

1 Like


Thank you for the pictures. After some searching it seems this is a proprietary HP part so I have no idea how it can be connected to an Arduino. You can try writing to HP to see if they will give you free access to a schematic but I doubt it. Without that it is impossible to know if and how this part can be connected to an Arduino.
If you can observe the signals on the ribbon cable while performing whatever printer actions you want to work with, perhaps you can come up with some sort of scenario where the Arduino can fit in.

1 Like

If anyone has enough knowledge, please help share all the contacts. I will be very grateful.

Hi there,
That's a basic encoder that has two photodiodes and one IR LED. It can be used to determine the linear or the rotary position. The encoder part has 6 pins:
IR LED: GND, VCC
Photodiodes: GND, VCC, Channel A, Channel B
Most of these encoders will be mounted on a small PCB with 4 output pins (GND, VCC, Chanel A, and Chanel B).

On the PCB, the row with two pins are the LED pins. Therefore you can identify positive and negative with a mustimeter. Then find their match on the output pins. The reminder two pins are A and B.
Connect the pins to an Arduino following instructions of the encoder library you are using (start with 3.3v first). Place a encoder disk or strip in the dedicated slot and move it slowly as there is a limit to what the Arduino can detect in terms of raising edges.

Let me know how you go.

1 Like