That question in particular makes me go hmm. Are you using multiple power sources (batteries, power supplies, whatever)? If so, you have to make sure you have a common ground for everything to work properly together. On the flip side, you don't want to get carried away with tying all sorts of grounds together or you could create a ground loop that will also be a source of noise.
If you're using two batteries, tie their grounds together, then send this common ground to each device that needs power, and of course tie the positive of the appropriate battery to each device as well. One battery will power the Sabertooth motor controller, and the other will power the Arduino and encoder. Do not tie grounds together between devices though.
Yes, I have 2 12v batteries wired in series powering the sabertooth. The arduino that listens to the optical encoders are powered by the usb voltage coming from the laptop. I was afraid of wiring the ground on the arduino to the 12v ground. But it sounds like that is the right thing to do?
I was afraid of wiring the ground on the arduino to the 12v ground. But it sounds like that is the right thing to do?
Nothing to be afraid of there. It is the right thing to do and it is necessary to do. So long as you keep the positive lines separate, you will be fine.
I'm not familiar with the sabertooth, but in general DC motors create a lot of EMI with their brushes.
Probably you're reading the PWM signals-echo?
Therefore they need ceramic capacitors between plus/minus and the housing as well.
I am doing a big bot project with the sabertooth 2X60 but I got the Kangaroo X2 also, It does all the encoder work for me. leaves the Arduino free for more important tasks like speed, distance, and direction...