Using encoder output

I am using the A + B outputs from a printer encoder to operate some other equipment through a Arduino Uno and my question is - I have take the A and B signals directly from the printer encoder to the interrupt pins on the Arduino also the ground connections are tied together when i use the encoder with the printer switched off the other equipment works fine through the Arduino but when the printer is on and running then i get interference and my other stepper motor chatters. Do i need to isolate the signals through something like optic isolators ? or is there a simpler way of filtering out this interference ?

Filter out the noise:

First use either shielded cable or route each of A and B as a twisted-pair with GND.

Do not run the cable near the motor...

Second try a small cap on the Arduino pins to ground, perhaps 1nF to 10nF range.

Hi,

when i use the encoder with the printer switched off the other equipment works fine through the Arduino but when the printer is on and running then i get interference and my other stepper motor chatters.

What is your application and why?
What is powering the encoder when the printer is turned OFF?
What is the other equipment?
Can you please post a copy of your sketch, using code tags.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png or pdf?
Can you please post a picture of your project.

WHY???
You have the project in-front of you, we don't.
You know how it is wired, we don't.
You know how you are powering the stepper motor and arduino, we don't.

Thanks... Tom..... :slight_smile: