Thanks Ante,
The encoder is LED with an amplifier output. I need to do some modifications to the schematic, I'll try to post it later. However, I have turned off the room lights and encounter the same problem. Secondly, the motor is a gearmotor, i.e. the shaft turns at only 1/3 rev/ second. One...