optical printer encoder

Ty all, btw Riva your guess is right. I forgott that i can use multimeter to find were is the gnd and +.